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
Mixed 2003/2008 Environment Needs A Domain Rename
How do I import a text file into MS Access which appears to have verticle and hortintals breaks
Why does Format([Del Date],"ww") give 53 weeks?
Need a simple script
Insert formula to range
How to install SQLServer Standard 2005
Quicken by Intuit, How do I import
VB.NET - Value was either too large or too small for a Decimal Exception - Smooth Progress Meter DLL from Microsoft
Search active directory by Date Created
Looking for a utility that will automatically back up a file when the file has been modified and then saved with the same file name.