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
ASP.NET, C# Create table with a variable name for Table Name
NO SOUND FROM INSPIRON 7000 ON WIN 98
uggestions for database structure for a program which allows user to add custom fields
How to get rid of redirect notice.
ASP.NET,Javascript,Ajax: How to get a string from window.showModalDialog
Import data from text file to ms access table?
Excel marco (digital to character )
SelectedValue which is invalid because it does not exist in the list of items
How to get the calendar date based on a weekday
Filtering data in a subform.