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
Dynamic datagrid view with check box
Why am I receving write conflicts
What was in the cell?
SQL Server 2005 db Hangs in Restore mode
.dmp File
How to change start menu user default folder list in Windows 7
SQL Server backup and shrink
Recurring event id 2424 and 2436 - Windows Sharepoint Services 3 search.
hstbar.xla can not be found After Excel 2007 was installed
Run macro in background without blocking Excel input / output