|
Hello evreyone,
Is anyone could tell me what's wrong with code snippet. I get an error in vb.net 2005:
<br />
'1. Create 6 classes (I've removed all internal code since it is useless for the test)<br />
<br />
Public Class LockableDataObject<br />
<br />
End Class<br />
<br />
<br />
Public Class Business<br />
<br />
Inherits LockableDataObject<br />
<br />
End Class<br />
<br />
<br />
Public Class LockableDataManager(Of CustomType As LockableDataObject)<br />
<br />
End Class<br />
<br />
<br />
Public Class BusinessManager<br />
<br />
Inherits LockableDataManager(Of Business)<br />
<br />
End Class<br />
<br />
<br />
<br />
Module main <br />
<br />
Public Sub main() <br />
<br />
'This line works<br />
<br />
Dim MyManager As LockableDataManager(Of Business) = New BusinessManager<br />
<br />
<br />
<br />
'This line doesn't (Is this a bug? or is this wanted?)<br />
<br />
Dim MyManager2 As LockableDataManager(Of LockableDataObject) = New BusinessManager <br />
<br />
End Sub<br />
<br />
End Module
Thanks a lot in advance.
Jugurten.
|
|
|
|
|
That is by design.
The fact that B inherits A doesn't make C(Of B) inherit C(Of A).
---
b { font-weight: normal; }
|
|
|
|
|
I get a dataset returned by a webservice.
I'd like to put the data from the dataset into an infragistics ultradatasource and then hook up the ultradatasource to an ultradatagrid.
Could someone give me some idea how I do that ? (I'm a newbie to this).
Thanks,
Nathan
|
|
|
|
|
I'm building a Windows Service that converts any Office Document to PDF. So far it's working for Word,PowerPoint,Acces,OutLook, etc.. but for Excel always get the following error: Faulting application mspview.exe, version 11.0.1897.0, stamp 3ef1048b, faulting module kernel32.dll, version 5.1.2600.2180, stamp 411096b4, debug? 0, fault address 0x0001eb33. If you run the code in normal context, works fine, but when I put the same code in my service always get error ( also open DW20.exe and my computer stuck for a while).I think that is something realted with dialog box that Excel open when print sheets ( counting pages), but I'm not sure.
Has any experience for something similar? some ideas?
David
MSDE - Via Technology
|
|
|
|
|
Hi,
I'm create new store (.pst) in Outlook. There are two folders in it by default (Deleted Items and Search Folders). How can I delete this folders?
WBR, Rider.
|
|
|
|
|
|
I want to extract from a table when two fields are equal to two certain values.
Psuedocode: Extract from ProductPackaging WHERE ProductCategory is equal to Pasta and WHERE ProductSize is equal to 20x250g
Thank you
-- modified at 11:52 Friday 11th August, 2006
Nothing lasts but nothing is lost
|
|
|
|
|
I am not sure what you are asking as your psuedo seems to be in the correct direction. Your query string can be:
"SELECT * FROM ProductPackaging " _
& "WHERE ProductCategory = 'Pasta' AND ProductSize = '20x250g'"
Note that the single quote is for MS SQL Server.
If the Pasta or 20x250g change then just use the value but do not forget the quote mark like:
& "WHERE ProductCategory = '" & txtPCat.text & "' AND ProductSize = '" _
& txtPSiz.text & "'"
Good Luck
djj
|
|
|
|
|
djj55 wrote: Note that the single quote is for MS SQL Server.
Actually, that is the way you write strings according to the SQL standard, so that works everywhere.
---
b { font-weight: normal; }
|
|
|
|
|
Thank you guys it worked
Nothing lasts but nothing is lost
|
|
|
|
|
Hi all,
we are facing a problem in VB.NET application in sending the values from web form1 to next webform2 which is a pop up.
we are using view state to store variable in webform1
those values we need to pass to popup webform.
popup webform is just to give help information for users based on the values that are been sent from webform1 as viewstate.
the problem we are facing is we are not able to pass the values to popup form
please help us in this regard
h
|
|
|
|
|
Client side cookie?
Query string?
|
|
|
|
|
Hi Friend.
in WebForm1
-----------
Dim Send_Data
set Send_Data = createobject("Microsoft.XMLDOM")
Send_Data.load "WebForm2.aspx?popup='data'"
In WEBForm2
-----------
Page_Load
----------
Dim Somewhere
Somewhere = Trim(Request.QueryString("popup"))
You can use the 'Somewhere' variable to display the result 'data'.
With Regards,
Pandian S
|
|
|
|
|
thanks for oyur help.
but understand the problem first. we are even trying the same way to pass values in the URl and catching with query string. but we are not able to get the values.the problem is the webform 2 is a popup web form
ok tell me how do you make a form to appear as a popup
and then catch the querystring that is passed to this popup
h
|
|
|
|
|
hi every body. I want to change font size in crystal report at runtime in VB.Net. can u help me?
|
|
|
|
|
now my vb store date information as mm/dd/yyyy
how do i change the format to dd/mm/yyyy?
even my access also in mm/dd/yyyy
how to change it?
|
|
|
|
|
It's set by your system settings.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
so there is noway to change it?? is everyone PC also using same format mm/dd/yyy????
|
|
|
|
|
Of course you can change it. It's in the control panel.
If you want to use a different format or culture, specify it when you convert the date to a string.
---
b { font-weight: normal; }
|
|
|
|
|
I found that there is some activeX installed to my IE,
We may see them at IE -> Tools -> Manage Add-ons.
I know one of this is using for capture a drop event, eg:
When the user drop a email form outlook and then the activeX will do something.
If I need to write something such capture the drop event, What topic should I go for?
|
|
|
|
|
Hi,
Im quite new with using VB.NET and I am trying to find out how to send data between programs. From what I have read so far, there are a number of ways to do it. Can someone please give me advice on which method is the best to use with sending data between programs on the same computer and over a network? anyhelp would be greatly appreciated.
Thanks
|
|
|
|
|
How about using the winsock...
http://justicemansoftware.tk
|
|
|
|
|
Hello!
I’m sick and tired of Crystal Reports and it’s dll’s… Anyone knows a reporting tool simple to work, easy to deploy and (hopefully) free?
The objective is to work with vb.net 2003 in windows apps.
TIA
Jorge
|
|
|
|
|
I'm new to Reg Expressions and VB script, but after doing some seaches, I found that the following works well to return the first value...
Set re = New RegExp
With re
.Pattern = "\b[A-Z0-9._%-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b"
.IgnoreCase = True
.Global = True
End With
Set matches = re.Execute(htmlResult)
getadd = matches.item(0).value
msgbox getadd
If I change getadd to...
getadd = matches.item(0).value + ", " + matches.item(1).value
I can get the first 2 values. The problem is I want all of the values (the total number will vary) in the single variable getadd (I want to return all of the matches in a single message box). Any help?
|
|
|
|
|
create application by using vb.net2005 i add sqldataadapter to my project when i try to configure dataadapter to connect to database this error apear
*************************
an error has occurred while establishing a connection to the server.when connecting to sql server 2005 this failure may be caused by the fact that under the default setting sql server does not allow remote connection (provider:sql network interfaces,error:26-error location server/instance specificed)
**************************
i need to solve this error to end my project
plz answer me very quickly
thanks
ma_refay
ma_refay
|
|
|
|