|
IIRC, there's no such thing in VB6 because VB6 doesn't support true OOP. About the only approximation is to delcare a public variable in a module, but the variable will be exposed to everything, not just every instance of a class.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
"Shared" is a new keyword introduced in VB.NET.
Try using "Static" instead. VB6 classes have serious limitations, so cross your fingers.
|
|
|
|
|
Yes, I know the usage of Shared in VB.NET, but as far as this keyword existed in QBasic (long time ago!) I thought it might be used in vb6 (which was not very wrong, because vb6 IDE recognized it and removed it...)
But if it is the case that Dave mentioned, and I cannot expect such behavior from vb6, I guess I should do the Public Member in a module method...
Thanks anyway....
|
|
|
|
|
MohammadAmiry wrote: this keyword existed in QBasic
My mistake then.
Wow, it's been over 10 years since I've used QuickBasic. I can barely remember it now.
MohammadAmiry wrote: But if it is the case that Dave mentioned, and I cannot expect such behavior from vb6, I guess I should do the Public Member in a module method.
I just tried placing a Static variable inside of a VB6 class method. That way we can have it return a static object reference to a variable container. Unfortunately, it's not static between object instances.
Bummer! It looks like you have to use a Module.
|
|
|
|
|
Hi,
This is kiran
Like I four textboxes in my vb.net application and i want to display textbox controls data in tabular form in word document
plz any one help me
kiran
mailme@ vk_ravula@yahoo.com
|
|
|
|
|
can any one tell me the code at button_click event to trasfer data fro datagrid to excel sheet
mail at toneeraj.kumar@rediffmail.com
thankyou
neeraj kumar
|
|
|
|
|
1) Please use descriptive subjects - every post here is a "problem" of some sort
2) Please do not expect a private response from a public board - answers are posted here for everyones benefit
3) Please describe the problem fully, including relevant code, exception messages etc.
|
|
|
|
|
go to following link
http://www.codeproject.com/aspnet/ExportClassLibrary.asp
Shipra Pandey
Software Developer
Solversa Technology Pvt Ltd.
|
|
|
|
|
Hi,
I need an application, that read the document template (.dot) data and make those values as for my future reference.
Any help to read .dot file thru vb.net.
Thanks in Advance.
Be simple and Be sample.
|
|
|
|
|
hi,
we need to put ,some value in matrix report which is actuly based upon some calculation factor.
for example : martix is based upon the count of x value but we wish to refelect matrix value as x*factor
thanks
vipin
|
|
|
|
|
hi friends i am working on a vb.net project which uses access as db.I have to move the value in a date textbox to an access db when user click a button.I have set the text box text as dateobj.today().It returns date okay but when i transfer it into the data base it looks weird...sometimes it shows absolutly wrong dates(like 1899,1900 etc) BTW the dataype in access database is date/time.I am using access 2003...what am i doing wrong..?
|
|
|
|
|
Are you insterting the date into access in US format? ie mm/dd/yyyy
|
|
|
|
|
oh ok I'll remove it.
-- modified at 6:46 Wednesday 19th April, 2006
|
|
|
|
|
Does any easy method to to embed to IE6 into my form ?
Thank you!
|
|
|
|
|
Yes you can. If you are using .NET 2.0, you can use the inbuilt WebBrowser Control. If you're using .NET 1.1 or .NET 1.0, you can use the WebbrowserEx Control.
Yuvi Panda T
Microsoft Student Partner
Blogs at : http://yuvipanda.blogspot.com
|
|
|
|
|
into a function looking like this :
setStatus(id as Integer, Status as System.Nullable(of Short))
The function is automaticly created in the DataSet-designer for "INSERT INTO Status ...."
Regards // Maw
|
|
|
|
|
Null is called Nothing in VB.
---
b { font-weight: normal; }
|
|
|
|
|
Hrmmmz ...
If I want to use C#? how about it then?
//Maw
|
|
|
|
|
Then null is called null.
---
b { font-weight: normal; }
|
|
|
|
|
Hi guy's i want to set a grammer check and spell check in my text box control can i do this using visual basic 6 or .Net.
Sasmi
|
|
|
|
|
go to following link u will get code
http://www.devcity.net/Articles/89/1/spellcheck.aspx
Shipra Pandey
Software Developer
Solversa Technology Pvt Ltd.
|
|
|
|
|
Dear Sir,
I have taken a combo box in datagrid. that combo box allows the user to write in it. please tell me the code to stop the user to write anything in it.
code is :-
Private Sub CboUom(ByVal sender As System.Object, ByVal e As System.EventArgs)
Try
Dim cbo As New ComboBox
cbo = CType(sender, ComboBox)
dgrdItems.Item(dgrdItems.CurrentCell.RowNumber, dgrdItems.CurrentCell.ColumnNumber) = cbo.Text
dgrdItems.Item(dgrdItems.CurrentCell.RowNumber, dgrdItems.CurrentCell.ColumnNumber + 1) = CInt(cbo.SelectedValue.ToString)
Catch ex As Exception
clsXmlMessages.ShowError(ex.Message)
End Try
End Sub
please help.
Gurpreet
|
|
|
|
|
No code at all.
In the combobox properties, the DropDownStyle is probably set to "DropDown". Change it to "DropDownList".
Roy.
|
|
|
|
|
I havent taken combobox in datagrid...i think, u havent seen my code.
I am taking combobox like this.....dim tempcom as new combobox which will be converted into textbox after user lost its focus. and when we try to write smthing in dropped down combobox...after leaving the box...textbox comes and written word are displayed there instead of chosen field.
so, dont have property window.
please try to help me out.
thanks
Gurpreet
|
|
|
|
|
i have a problem.
In my code ,while design mode of project code work propperly.
when i make the exe & install & run it code doesn't work.
in my code i m doing a simple task.
i change the directory ,
call cmd.exe
& run a different file.
here on my cmd prompt
|
|
|
|