Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    vbnet


Maximize Form Size When Maximize Window?

I want to maximize my form size when i maximize my window. means when i double click on window to maximize then my form also get maximize with window, i used dock property bt still not getting proper result.

View 16 Replies (Posted: 2011)

Sponsored Links:

Related Forum Messages For vbnet category:
Maximize A Window In VB When The Maximize Button Is Pressed
Is there a easy way to maximize a window in VB when the maximize button is pressed so that everything that is contained in the Window (Forms, Panels) will also automatically resize to the screen size?

Posted: April 27, 2009

View 4 Replies!   View Related
ToolStripComboBox At Maximize Window Don't Change Size?
i have a problem in ToolStripComboBox at maximize window don't change size.

How change ? I write

Private Sub Form1_MaximumSizeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.MaximumSizeChanged
ToolStripComboBox1.Dock = DockStyle.Right


Posted: May 13th, 2011

View 2 Replies!   View Related
Component Size And Position After Maximize Form?
after i run the program, the form pop up showing no problem.however, when i click on the maximize button on the top right of the form, the form enlarge and fill the screen. but the components will not move accordingly.

Posted: May 24th, 2009

View 2 Replies!   View Related
VS 2008 Maximize The Form Designer Window?
In VB6 IDE if you doubleclick on the titlebar of the form designer, it maximizes/restores. But in it opens up code window.How do you quickly maximize/restore the form designer window ?

Posted: May 27th, 2009

View 4 Replies!   View Related
Cannot Maximize A Window ?
I am using VB 2005 express edition and I need to develop a simple application. It should open a certain program (called MyMobiler) when a button is clicked. So far, I haven't managed to start it maximized (using shell (programpath, vbMaximizedFocus)), it always opens restored, although trying with notepad works (notepad opens maximized if i put vbMaximizedFocus). What else could I try? Here's my code

Public Class Form1
Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub[code]....

Posted: March 24, 2010

View 9 Replies!   View Related
Make A Window Not Associated With The Application Minimize Or Maximize Its Window State In Vb?
If you have ever noticed in the Task Manager, when you right-click on the running task, you have many options which include 'Minimize' and 'Maximize'. Is there anyway to do achieve this in vb?

Posted: Dec 12 11 at 21:31

View 1 Replies!   View Related
Expand Everything When Maximize The Window?
When i Maximize The window it will not expand it all. I want it to expand everything when i maximize the window.

Posted: Feb 2nd, 2009

View 2 Replies!   View Related
Programmatically Maximize An External Application's Window?
I have an application right now that starts a process, then opens a file associated with that process (system.diagnostics.process.start("WM.exe")), however, the way they save, there is a window within a window. It's like in photoshop cs3 when you have many windows within the big window of the application. Right now I use an api call to findwindow which is the application itself, but within that I need to find the subwindow, of which I know the apptitle, and then I need to set its windowstate to maximized. Does anyone know how this can be done? I think there's a way to hook a handle, but how does one also maximize?

Posted: Sep 4 09 at 1:18

View 1 Replies!   View Related
Setting MDIChildren Window State To Maximize?
I want to maximize my mdi child automatically by setting WindowState to Maximize. But it looks like this.. why is this happening? but if I restore it and maximize it again its body now occupies the mdiparent space. To aim is not enough. You must hit.

Posted: January 03, 2010

View 2 Replies!   View Related
VS 2008 - Maximize Window And Making Objects To Fit Screen
How can I maximize the windows and make the objects fit the screen also growing?

Posted: Jun 22nd, 2010

View 8 Replies!   View Related
Send A Message Or Signal To A Process To Maximize Its Window After It Is Started?
I tried a variation of the code at the end of this thread.>> [URL] which is the following code using; one Button one Panel

Posted: July 17, 2010

View 5 Replies!   View Related
VS 2008 Sending A Message To A Window To Press The Maximize Button?
Is there is any option to send a message to a window to "press" on the maximize button? I thought using the sendmessage API but I don't really know how, I alreday got the window handle, the problem is how to send the message?

Posted: Jun 26th, 2009

View 2 Replies!   View Related
Form Maximize At Show ?
I having trouble with the WindowsState Maximized Property.  I have a MDI WinForm application with a number of Child forms. I setup up each Child form with the WindowsState Maximized Property in the Property screen of the VS 2008.  The MDI Container form is also Maximized.When I run the application, the MDI Container opens Maximized as it should.  When I try to open a Child form it opens partaly Maximized.  The MenuStrip and ToolStrip are Maximized including the MenuStrip having the Close, Maximized, and Minimize controls in it.  On the form, the BindingNavigator and the Form itself is the size they would be if the WindowState was Normal.If I Minimize the MDI Container form and bring it back the Child form will be fully Maximized as it should be.


Posted: October 12, 2009

View 4 Replies!   View Related
How To Maximize Form And Keep All It's Compenets Fit To It
I have a form with i.e 2 buttons and a webbrowser ok now how to keep these 2 buttons and a webbrowser fitting the my form when I maximize my form or minmize it using codes ?

Posted: August 21, 2011

View 6 Replies!   View Related
VS 2005 Form Maximize Box?
I need to create a form in such a way that when i run it the form will open in maximize i.e,the top three box with be like the following Attachment 71929 Normally when we run a form it is in the following pattern:Attachment 71928

I tried with the maximize box but it is for enabling and disabling the maximize button.

Posted: Jul 12th, 2009

View 11 Replies!   View Related
Windows Form Not Maximize?
I have a tutorial Application (in VB.NET 2005) for MS Office 2007 and have some Exercises for Users. When User clicks on given Exercise (for example: MS Excel), this Application minimize and launch related Excel file through program with Modal Form over Excel Application containing Exercise text in Label and Button to Submit the Exercise. User performs that given task and submit it by click on the given Button. This will check that file, close it and maximize the Application again for next Exercise.

My problem is When User perform the Exercise and click on Submit button, it checks the file, close it and didn't maximize the Tutorial Application all the time. Sometime it Minimize / Maximize properly, but sometime it doesn't Maximizes. (I can see it running in Task Manager)I have used the following code:


Posted: 2011

View 3 Replies!   View Related
Any Event To Minimize Or Maximize Form?
I only found the form event for form closing or form closed, do you know any event for "minimize or maximun form"?

Posted: August 04, 2011

View 2 Replies!   View Related
Form Minimize And Maximize Events
I am drawing graphics on the screen and when the form resizes it needs to clear and redraw all the graphics b/c the form is a different size and the graphics are supposed to scale with the size of the form. Well that works, but not for maximize or restore. So I had to look on the internet for how to capture the maximize and restore event. I got it from here and it does capture it, but it does all the events (such as redrawing the graphics) first and then it maximizes, which totally defeats the purpose. I tried to do Application. DoEvents but it still doesn't do it. Any way to have the graphics redraw AFTER it maximizes?

Private Const SC_RESTORE As Int32 = &HF120 'When a Form is Restored
Private Const SC_MINIMIZE As System.Int32 = &HF020& 'When a Form is Minimized
Private Const SC_MAXIMIZE As System.Int32 = &HF030& 'When a Form is Maximized
Private Const WM_SYSCOMMAND As System.Int32 = &H112 'Minimized/Maximized/Restore comes when we have this msg Const WM_NCLBUTTONDBLCLK As Int32 = &HA3 'When User Clicks on the Title Bar
Protected Overrides Sub WndProc(ByRef m As Message)
[Code] .....

Posted: 5/18/2009

View 3 Replies!   View Related
Generating Form To Maximize Potential In MDI
I need to do this in the MDI: Generate Form1 to maximize the potential in MDI. And mdi form to generate second Form2 order has always been above Form1. When clicking on the form 1 form2 disappear under it. Normally, when you click on the form1 Form2 hides under it. All must appear in the MDI.

Posted: April 30, 2012

View 2 Replies!   View Related
Hide The Maximize Process Of A Form?
I have a form, with a lot of controls on it, and I make the form to be a mdi-form. When the application begins, the main form will show the mdi form, and maxmizes it.

My question is, the maxmize process of the mdi-form is showing to the user, that's very bad looking. We can see the mdi-form show itself on the screen with it's original size, and then change it's size to mazmize itself. During the process, it look like all the controls on the mdi-form are shining.

I want to hide the maxmize process to be not seen, and make the mdi-form visible AFTER it's Maxmize process. But I don't know how to do this.

I tried this:

Mdi-form.visible=0 in the form_load of the mdi-form, but I don't know where to do the Mdi-form.visible=1. I can't find the event of Maxmize process.

Posted: August 02, 2007

View 1 Replies!   View Related
Maximize Form And Center Control?
I have three control in Center Form

i want the control stay in the Center if the Form Maximize or Restore to Normal

like Google  Site  TextBox  and Button

Posted: October 14, 2010

View 2 Replies!   View Related
Maximize Textbox On Form Every Time?
It's been a while since I used VB4 to write a program. Now I have VS 2010 Express and I want to write a simple text editor.

My first question is, I have a text box I put onto a form with a menu strip. When the program is run, I want my text box (my main editing area) to be the biggest size on the form. How do I do this? Is there an automatic way to do this? Or do I have to set the text box's x, y, width, and height properties when the form loads? Which form event would I put this in? I cannot seem to find Form_Load or Form_Activate. [code]...

Posted: 06-08-2012

View 2 Replies!   View Related
Resize Contents On Maximize Form?
I've a form with a couple of buttons and a richtext box, and I want to resize the richtext box to fit window when window is maximized.

Actually i press the maximize button and it expands the window but the controls stay in the same size. I want it to resize/shrink.

Allready used this (from here [URL] 


Change AutoSize to false or set ... AutosizeMode to GrowOnly

Posted: November 20, 2010

View 14 Replies!   View Related
Any Option To Maximize Form Automatically On Run Time?
Is their any option to maximize form automatically on run time?

Posted: 23 April 2009

View 1 Replies!   View Related
How To REMOVE The Maximize Button On Form Titlebar
I cannot begin to explain how often I have tried to remove the Maximize button from the top of my form window.. I know that it can be disabled via properties, also that it can be removed if I disable both the maximize and minimize buttons, BUT I need the minimize button, just not the maximize button

Posted: 26 May 2011

View 10 Replies!   View Related
Maximize Child Form To Center Of Its Parent?
How can I put the childform in the center of it parent while in a maximize state because If I maximize it then they the child will stack on the left side of the parent and will have long empty space on the right side.

Posted: Mar 17th, 2011

View 4 Replies!   View Related
.net - Visual Studio- Hiding The Maximize Button In A Form
How do I remove the maximize button from a form? I've already disabled it but it still shows up, it just doesn't work. I want a form with only the close and minimize buttons. It's a Windows Form Application and I'm using Visual Studio 2010.

Posted: Aug 12 11 at 20:29

View 3 Replies!   View Related
Direct A Form In Program To Open And Maximize In Second Monitor?
Is there a way to direct a form in VB.NET to open and maximize in the second monitor. That is if there are two monitors displayed, to have the form load in the second window maximized by default?

Say a program was made with two forms and a computer has two monitors attached.

I want FormA to show in MonitorA by default and FormB to show in MonitorB maximized by default

Posted: Feb 23 at 12:39

View 1 Replies!   View Related
Maximize/Restore Form With Message.create And WM_NCLBUTTONDBLCLK?
I am trying to create my own title bar, but left-double-click does not maximize/restore the form; however, double-clicking any of the remaining buttons on my mouse (right, middle, 'forward', and 'back') maximizes/restore the form.  This 'feature' is caused by MouseDown event.  If the MouseDown event is removed,the DoubleClick event operates as expected.Can both events be used concurrently (at the same time) with out any loss of functionality?    


Posted: March 19, 2009

View 1 Replies!   View Related
Mdi Child Maximize, Form Tiling And Alignment Of Controls?
my project is on the verge of completion and a large part of the credit goes to m stuck with a very annoying problm. ive googled the whole day but to no avail.m using visual studion 2005 and access 07.ive clubbed these three problms together cause i thought they might be related somehow...

1) i want the mdi child screen to be maximized. but on the first attempt only the control box goes to the top rite corner. however on the 2nd attempt it gets sorted out.ive tried to set the initial state to maximized but with same result. please help

2) whn the form loads it gives this tiling effect.. like the effect a tube light gives whn it is switced on...which is very annoying.
ive search for the result and some recommended to change the resolution of the user screen which is not acceptable to me.cant i change the resolution of my application depending on the user's resolution.

3) whn the form is maximized i want its user control or contents to change their alignment accordingly...anchor property only changes the size however the ideal thing will be to change the controls position w.r.t the container or form...

Posted: 2010

View 1 Replies!   View Related
Whenever Click Form Maximize Button Automatically Form Is Resized
[code] Actually,I m doing notepad application,my problem is when ever click the form maximize button automatically form is resized .. same like that my richtextbox control also maximized. this is the my scenario.

Posted:  18 July 2009

View 1 Replies!   View Related
Get A Panel With A Picturebox To Expand When The Maximize Button On The Form Is Clicked On?
I am currently working on a program in VB  that is 480,600 and am using a panel with a picturebox inside of it so that I can use scroll bars to view a chart in the picturebox since my form will be so small. Since viewing a large chart is pretty irritating using scroll bars to some, what properties can I enable or disable to get the panel and picturbox to expand also when the Form Maximize button is clicked rather than staying the same size up in the top corner?

Posted: May 27, 2010

View 2 Replies!   View Related
Give Minimize And Maximize Effect As Like Windows Vista To Project Form?
I have created a software project for my college using 2008

Posted: March 08, 2009

View 2 Replies!   View Related
Maximize Child Form From Parent Form
I have a child form is form1 and parent form is mainform. You can see form1 below at picture1. I want when i maximize form1 it like picture2. Normally, when i maximize form1 , it doesn't like i expect.

Picture1 :
picture2 :

Posted: Jun 25th, 2009

View 11 Replies!   View Related
Copyright © 2005-08, All rights reserved