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
INSERT INTO TableA INNER JOIN TableB - possible or not?
Can a Formula Field be bookmarked in MS Word 2002?
EXCHANGE 2000 to 2007 Last server removed issue with name resolution
Block email to user in Distribution list
SQL server 7.0 DTS package
C# -- dataGridViewTextBoxColumn -- STRING Value ?
SQL statement to find and replace character in field...
"The parameter is incorrect" when opening Access database
SSRS 2008 chart legend formating
Access 2000: Changing the Pagesize of a Report at runtime