The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
I had created a class, that class(inherits button) contains a property of type form, what i want is, when i add my new button to the stage, i can select from the property window which form (from my 4 forms) that the button will open>
Dim m_Form As Form
PublicProperty FormToOpen As Form
Set(ByVal value As Form)
m_Form = value
EndGetEndPropertyPrivateSub cMyButton_Click(ByVal sender AsObject, ByVal e As System.EventArgs) HandlesMe.Click