Windows Develop Bookmark and Share   
 index > Windows Forms Designer > Form_resize does not fire?
 

Form_resize does not fire?

I'm using VB.NET 2005 with .NET 2.0. I'm VB6 programmer and am relatively new to forms programmingin VB.NET

Ihave aformwith a toolstripmenu and a inkPicture control. I need to resize the inkPicture control when the form size changes.

I put code in the Form_Resize event, but the event is not firing.

ResizeBegin and ResizeEnd are firing. But I 'm not sure what to do with them. Normally I'd resize/reposition the child controls and then call the invalidate method for the inkPicture control to redraw its contents.

Can someone give me clue as to the problem with the main Resize event not firing?

Thanks

myoungbl  Wednesday, March 07, 2007 6:27 PM
In .NET 2.0 it easy to resize and relocate controls, just set the Dock property or Anchor
Zhi-Xin Ye  Thursday, March 08, 2007 2:23 AM
I wantknow when a resize event occurs. But my resize event is not firing. Why?
myoungbl  Tuesday, March 20, 2007 10:33 PM
I assume you already checked this, but just in case: In the form's properties window, under the events button, make sure the Resize event still has the correct event handler name specified and that it didn't accidentally get erased or renamed since it was first created.
sriesch  Thursday, July 05, 2007 1:30 AM
I may have checked it, or Imaybe removed it and let it get recreated. Either way, it now has a handler clause and it is working. Not sure when I resolved it.
myoungbl  Tuesday, July 10, 2007 7:16 PM

You can use google to search for other answers

Custom Search

More Threads

• Property For combobox
• Windows Forms Designer
• Form Inheritance and the designer
• Does it really exist? (System.ComponentModel.Design.ComponentDesigner)
• Collection returning no reference
• Borders around ScrollableControl
• how can i use logical expression
• DesignSurface with multiple toolboxes
• EventsTab and PropertyGrid
• Visual Studio 2005 - How to hide controls in Forms Designer