I created a Windows Form application and Class Library application with one UserForm and One module.
Both type of applications should be the same.
I found this example about userforms in VB.net and VB.
It talks about userforms in Vb.net not having a global scope
But again (being redundant) the WindowsFormApplication.NET does have global scope of Userforms, but the ClassLibraryApplication.Net does not have global scope of Userforms.
''''''''''''''''' a module in the sample programs attached '''''''''''''''''''
Option Explicit On
Option Strict On
' I can type/use this in the WindowsFormApplication but not the
' I can NOT type/use this in the ClassLibraryApplication
formTest.TextBox1.Text = "hello"
Solved! Go to Solution.
Never new that but the typing the name of a Form class in WindowForms apps creates a shortcut to MyProject.Forms.formName
and the difference is a class library does not have Forms property exposed in MY object explained in link
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register