Preventing Resizing of Controls

  • Thread starter Thread starter Simon Jefferies
  • Start date Start date
S

Simon Jefferies

Hello,

How can you prevent the resizing of a custom UserControl on a form?

At the moment, I am resetting the width and height in the SizeChanged event.
There must be a better way, there used to be with VB6.

Thanks,
Simon
 
* "Simon Jefferies said:
How can you prevent the resizing of a custom UserControl on a form?

\\\
Protected Overrides Sub OnResize(ByVal e As System.EventArgs)
MyBase.Size = New Size(50, 50)
End Sub
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top