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
Windows 2008 R2
Simple query not working. What am i missing?
How to unmute windows sound master volume and then increase the volume to max, using VBA
ROW_NUMBER without ORDER BY
Compiler error CS0122 ...inaccessible due to its protection level
LSASS.EXE Shuts down PC
Microsoft, Sharepoint Redirect user to subsite at logon
Can't change invoice form in Microsoft Accounting Express 2007?
Excel dollar amount to text, zero fill to left, no decimal, respect 2 positions for cents
Good practice on writing file, creating directory, etc.