Microsoft
Software
Hardware
Network
Question : How to call a sub in a seperate class file
Hi Experts, I am feeling particularly stupid this morning...
(vb.net 3.5. Visual studio pro 2008)
I have a class file called writeini. This call is a seperate file in solution explorer called writeini.vb. This calls contains one public sub called createini.
I need to call createini() from another form. I cannot find the right syntax. Could someone help me with the correct syntax to call the createini() sub from the writeini class?
Arghhhh. And thank you very much.
Answer : How to call a sub in a seperate class file
Hi,
Try changing:
Public Sub createini()
to
Public Shared Sub createini()
That should do the trick.
/Carl.
Random Solutions
how to add an additional front end server and remove the old one
Swap two columns using vba
Access query to select highest number in field
Auto populate date field for Microsoft CRM 4.0
How do I set up multiple RDPs thru my sonicwall TZ170 firewall
Entering No Data in a Microsoft Access Date Field
C# ,framework 2.0 , bindingsource filter question
Auto-Complete problem
How to make a web directory to be an application in Windows 2008 application server/web server?
How to format tag right?