-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: Jigs
Message 2 in Discussion
Sorry Friends for the trouble. I have managed to find myself. here is what i did. I
just used Polymorphism. of course still i would like someone to tell me if i was
right and is the only way or there are alternative also.
Public Interface mycommon1
Property Test1() As String
End Interface
All your derived Forms will implement mycommon1
Friend Class Form1
Inherits System.Windows.Forms.Form
Implements mycommon1
Public Property Test1() As String Implements Module1.mycommon1.Test1
Get
Return Me.Text1.Text
End Get
Set(ByVal Value As String)
Me.Text1.Text = Value
End Set
End Property
And your Module code will change to
Module Module1
Sub xyz(ByVal x As mycommon1, ByVal x1 As String)
x.Test1 = "ABC"
End Sub
End Module1 Regards,
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]