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
Exchange 2007 and iPhone IMAP problem
Can I run the free MS Office Word viewer from command line to print a document?
MS Access Report expression for data control source as first day of current month
How do I allow remote desktop connections through an ISA 2004 Server?
How can I enable a template item accoding to query result ?
Most pages won't finish loading in multiple browsers on both xp and vista
Leading zero from number to Concatenated filed
Using If..Else in SQL Stored Procedure
Mount new FAT partition in DOS without reboot?
Database Advise