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
Excel Breaking Links
IE8 Keeps Crashing - No logs in event viewer
Outlook 2007/2010 Prompts for Autodiscover Password
Find Modem port
Full Trust granting for Assembly in x64
What is a good server naming convention?
Multiple Netmeetings
Export Access to Word template
Windows XP - When logon in, system log off
TextBox and Validation Rule