Advertisement

06.21.2007 at 09:31PM PDT, ID: 22650503
[x]
Attachment Details

Form Resize events in VB.NET

Asked by p_gauri7 in Microsoft Visual Basic.Net

Tags: , ,

Hi,

I would like to know which event to capture to resize a form to a specific height and width.
My form has the follwoing set : FormBorserStyle -> Fixed3D. WindowState = normal.

In the constructor I set:
Me.Height = (SystemInformation.PrimaryMonitorSize.Height) * (0.9)
        Me.Width = (SystemInformation.PrimaryMonitorSize.Width) * (0.9)
        Me.MaximumSize = New System.Drawing.Size(Me.Width, Me.Height)
        Me.MinimumSize = New System.Drawing.Size(800, 600)

I tried using Resize, Layout and sizeChanged.
If me.windowstate = windowstate.maximized then
'set the size

But none of the events fire when I click on the maximize box. The desired result is to toggle between the 0.9 of monitor size AND the specific size of  width 800 and height   600.

Thanks,
GauriStart Free Trial
[+][-]06.21.2007 at 10:20PM PDT, ID: 19339149

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.21.2007 at 10:59PM PDT, ID: 19339229

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.22.2007 at 06:23AM PDT, ID: 19341032

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.22.2007 at 06:29AM PDT, ID: 19341071

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.22.2007 at 06:32AM PDT, ID: 19341097

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.22.2007 at 06:34AM PDT, ID: 19341115

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.22.2007 at 07:07AM PDT, ID: 19341421

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Tags: form, resize, event
Sign Up Now!
Solution Provided By: r1937
Participating Experts: 3
Solution Grade: A
 
 
[+][-]06.22.2007 at 07:23AM PDT, ID: 19341594

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.22.2007 at 01:10PM PDT, ID: 19344457

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.22.2007 at 01:31PM PDT, ID: 19344624

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.22.2007 at 11:28PM PDT, ID: 19346737

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32