can't seem to figure out the solution to. I have a form within a form that works fine. However when I want to maximize the form the top of it goes behind the menu bar rather than just below it as I would expect. Also, when I minimize the form it simply minimizes and hides behind the status bar at the bottom. I've tried adjust the location coordinates, window state, start location.
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?
Code: 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] .....
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.
[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.
I have got Skype configured to launch minimized on windows starts.Now I need to bring Skype to front from a button from my full screen application button. I have got this code:
For Each p As Process In Process.GetProcessesByName("skype") ShowWindow(p.MainWindowHandle, SHOW_WINDOW.SW_NORMAL) Next p
I have a form with formborderstyle = none. I already know how to move this form and resize it. But I want to maximize the form when you double click it.
I already know:
Private Sub Form1_MouseDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseDoubleClick WindowState = FormWindowState.Maximized End Sub
Now its maximized, but now I want it to go to the previous size, so when you double click again when maximized, the form goes back the the previous state.
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.
when i try to minimize a form and restore to normal the form is being resize.It's resize getting extending a form when time to minimizing a form and restore it.my form is set to formborderstyle is fixedsingle and i'm using namespace. why is hapening like that...i don't know why
how to minimize child form inside of parent mdi form in vb.net? I change the property of "IsMdiContainer" to "True". but when i minimize parent mdi form, it is not minimize the child form.
I'm building a border-less form so I can customize the Minimize-Maximize-Close buttons. I've noticed now that I can't move the form. I docked a panel up at the top of the form to replace the regular window border. I put custom Min Max Close on it. How could I program the panel to move the window like the border does with a regular window?
I have an MDI application that uses the menustrip control. When the MDI Child window is maximized, there is no way to restore its size. There's a restore on the MDI parent but that restores the entire application. However, when I use the Main menu, there are two sets of Maximize/Minimize controls, one for the MDI parent and one for the MDI Child. The Mainmenu control adds a band that is used to display the Maximize/Minimize controls but the band the menustrip creates is not used to do the same.
I want to get status of an extarnal program for example notepad.is it minimize,maximize or active or in background? how can understand from my vb application?i think need to write api function. i found somethink from forums but they just control extarnal application not give a status.
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.
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 ?
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.
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:
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.
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.
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]...
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.