hello, thanks for the responses.
I will try to clarify again what I want.
I have 2 project (windows & class library)
the class library:
VB.NET Code:
Public Class Class1
Public Sub ShowLogin ()
Dim As New frmLogin fLogin
fLogin.ShowDialog ()
End Sub
End Class
then project into two (windows):
VB.NET Code:
Imports ClassLibrary1
Public Class Form1
Dim c As ClassLibrary1.Class1
Dim c2 As ClassLibrary1.frmLogin
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim cLogin As New Class1
cLogin.ShowLogin()
End Sub
End Class
of the code above I want to call Class1 from the Class Library project into the windows. that where I just want to Class1 are recognizable by the project 2. but if we look at the code above:
VB.NET Code:
Dim c2 As ClassLibrary1.frmLogin
frmLogin can be called, while I want frmLogin can only be called in Class1 in the Class Library Project.
how to do this?
thank you