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
STOP: 0x00000007B (0xF7B44528, 0xC0000034, 0x00000000, 0x00000000)
Defining anamed range dunamically
Modifying tableadapter parameters
Exchange 2003 Cluster, Event ID: 1080 occurs every three seconds
For Experts: Obfuscated Access Contest
select only uppercase words from a table column
Can't get GPO to hide drives
getting the hwnd or dc for access form
Remote desktop freezes host computer and stops at HP splash screen on remote computer
Logout Button for <asp:LoginStatus> not working