"reidarT" <re****@eivon.no> wrote in message
news:Oo**************@TK2MSFTNGP10.phx.gbl...
How do I set the height of a control from another control like
Me.Panel1.Height=300
This code will work assuming that "Me" is a form on which a control
called Panel1 exists.
If you wanted to manipulate the Panel from, say, another Button on
the same form, you'd need to get an object reference to the Panel
that the button can use. That's a little more involved, looking something
like (untested) :
Private Sub Button1_Click( _
ByVal sender as Object _
, ByVal e as Stystem.EventArgs _
) Handles Button1.Click
DirectCast( Me.FindForm, Form1 ).Panel1.Enabled = False
End Sub
HTH,
Phill W.