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
Drive Letter on Boot Partition .... Made a Mistake
kerberos client received a KRB_AP_ERR_MODIFIED error
SQL Pivot
way to get min (or max) of field in query for report
Windows Home Vista fails to startup - Black screen with mouse pointer
IE7 : 403 error
Connect to a Crosstab query in Access from Excel
SharePoint 2007 alerts, permissions?
Deny Ability to open additional mailboxes in Outlook
Crystal reports report based on dataSet in VS 2005. How to.