P
Phillip Taylor
I have a panel which has a textbox and a picture box on it. When the
resize event of the panel fires, I have code:
Protected Overrides Sub OnResize(ByVal eventargs As
System.EventArgs)
MyBase.OnResize(eventargs)
textArea.Top = 0
textArea.Left = 0
textArea.Width = Me.Width - 18
textArea.Height = Me.Height <--- DOESN'T
WORK
icon.Height = 16
icon.Width = 16
icon.Top = 0
icon.Left = textArea.Width
End Sub
When I have the debugger over the line "textArea.Height = Me.Height",
I can see textArea's height is 13 and my height is 20, yet the after
the code is executed the textArea's height is still exactly the same.
It's been ignored.
I haven't set Docking, or Anchoring so I can't see why exactly the
code doesn't work.
Anyone?
resize event of the panel fires, I have code:
Protected Overrides Sub OnResize(ByVal eventargs As
System.EventArgs)
MyBase.OnResize(eventargs)
textArea.Top = 0
textArea.Left = 0
textArea.Width = Me.Width - 18
textArea.Height = Me.Height <--- DOESN'T
WORK
icon.Height = 16
icon.Width = 16
icon.Top = 0
icon.Left = textArea.Width
End Sub
When I have the debugger over the line "textArea.Height = Me.Height",
I can see textArea's height is 13 and my height is 20, yet the after
the code is executed the textArea's height is still exactly the same.
It's been ignored.
I haven't set Docking, or Anchoring so I can't see why exactly the
code doesn't work.
Anyone?