control info at desing time

aparilli

New member
Joined
Jul 21, 2004
Messages
2
Programming Experience
3-5
I'm trying without success to develop a control that could be double clicked at design time and then open a form that contais some information about the control itself. Very simple

Any Ideas?

regards
 
Well to load a new form you would use this code.
VB.NET:
[size=2][/size][size=2][color=#0000ff]Dim[/color][/size][size=2] form2 [/size][size=2][color=#0000ff]As[/color][/size][size=2] [/size][size=2][color=#0000ff]New[/color][/size][size=2] Form2

[/size][size=2][color=#0000ff]Private[/color][/size][size=2] [/size][size=2][color=#0000ff]Sub[/color][/size][size=2] Button1_Click([/size][size=2][color=#0000ff]ByVal[/color][/size][size=2] sender [/size][size=2][color=#0000ff]As[/color][/size][size=2] System.Object, [/size][size=2][color=#0000ff]ByVal[/color][/size][size=2] e [/size][size=2][color=#0000ff]As[/color][/size][size=2] System.EventArgs) [/size][size=2][color=#0000ff]Handles[/color][/size][size=2] Button1.Click

form2.ShowDialog([/size][size=2][color=#0000ff]Me[/color][/size][size=2])

[/size][size=2][color=#0000ff]End[/color][/size][size=2] [/size][size=2][color=#0000ff]Sub

[/color][/size]
 
Back
Top