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 do I convert horizontal columns in Excel to Vertical Columns
Change pivot table page fields in Excel 2007 with VBA
Windows cardspace has stoppped working
Certificate for WPF application
Compiler error CS0122 ...inaccessible due to its protection level
GetPivotdata Formula
How do I setup a network with cross over cable between server 2008 and server 2003? 500pnts
Have the report showing correctly, now what?
How do I force a '0' value into a report
Outlook closes as soon as it starts