VS 2008 Stopping An MDI Child Form Loading In A Maximized State?

Jan 16, 2009

I have an MDI Form that contains an MDI Child form. On this child form is a flexgrid. When the user double clicks on a row in the flexgrid this loads another MDI Child form. I have set the following properties on the second child form:

FormBorderStyle = FixedDialog
MaximizeBox = False
MinimizeBox = False

[code].....

View 2 Replies


ADVERTISEMENT

VS 2008 Stopping A MDI Child Form Loading In A Maximized State

Sep 28, 2010

I have an MDI Form that contains an MDI Child form. On this child form is a flexgrid. When the user double clicks on a row in the flexgrid this loads another MDI Child form. I have set the following properties on the second child form:

FormBorderStyle = FixedDialog
MaximizeBox = False
MinimizeBox = False
StartPosition = CenterScreen
WindowState = Normal

The problem is that if the first MDI child form is in a maximized state and the user double clicks on the flex grid, the second child form loads in a maximized state too! How can I stop this?

View 4 Replies

MDI Form Size - Child Form Doesn't Appears In Maximized State

Mar 15, 2012

I am developing a application where I have 1 parent from (windowstate of Parent from is set to Maximized) and 2 child forms. In my Parent form I have a menustrip with following code to activate child -

[Code]...

View 1 Replies

MDI Child Maximized - The Child Form Shows Maximized In The MDI Parent But Behind The UserControl

Nov 12, 2010

Note: I am working with Visual Studio 2010 Professional. Note: There are a lot of MDI Child posts, but none (that I have found) that apply to my scenario... Scenario I have an MDI form with a UserControl docked at the top. The UserControl is for navigation and is ~50 pixels in height. When I show a child form with its WindowState property already set to 'Maximized', the child form shows maximized in the MDI parent, but behind the UserControl.

[Code]...

View 3 Replies

Splash Screen Not Seen When StartUp Form Window State Set To Maximized?

Apr 29, 2011

I have my start up form in maximized window state, but this cause the splash screen appear behind the startup form, which cause it cannot be seen.Even i have set the time longer to display the splash screen.It still do now work. I have tried below code in the start up form but it is not working...

Private Sub Main_Shown(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Shown
Me.WindowState = FormWindowState.Maximized
End Sub

View 2 Replies

Make The Form 'full Screen' (border Style Done And Maximized Window State)?

Dec 17, 2011

I am using VB Express Edition 2010, and I want a button, when clicked, to make the form 'full screen' (border style done and maximised window state) and once clicked again, to return the form to maximised but with a fixed single border style. Here is my

[Code]...

View 4 Replies

Prevent An MDI Child Form From Being Auto-maximized?

Jul 7, 2004

Is there away to prevent an MDI child form from being auto maximized?

The problem I have is this. I have an mdi application that contains 2 mdi child forms. When I show the first form and maximize it so that it fills the mdi window I can't load the second form non maximized.

Vb.net automatically maximizes the second form despite the fact that I didn't tell it too! If I then restore the second form to its normal size it then does the same with the first form. This is all very strange to me. When you maximize one form inside an MDI window it maximizes them all.[code]...

View 9 Replies

MDI Main Form Having Menu Strip And One Maximized Mdi Child Form?

Dec 14, 2009

The problem is that icon on the Child Form appear in front of Menu strip control on MDI form when child form is maximised.

View 2 Replies

IDE :: Window State Resizes When Loading Form?

Jun 15, 2010

When loading the form then my windows state is maximized (properties--windows state--maximized). After loading the form then if I press taskbar menu top(maximise button is disabled and minimize button is disabled on form) then size of form is changing. I have used screen.width,and height to restore when form resizes but still for the first time of form loading it moves and set to the boundaries. Atleast once also it should not move. How to stop changing the windows state from moving when we click task bar. Again in form properties -- application -- I have checked -- make single instance application. When if again any other path same form is opened. Then also it resizes to other state.

View 2 Replies

Check If Window State Is Maximized?

Mar 18, 2012

How to check weather the window is currently maximized or restored. I want to do something like if window state maximized then border none and if window state regular, then form border style sizable. This is what I wrote

[code]...

View 1 Replies

Window State - Form1 Always Stay Maximized

Apr 20, 2009

I'm having a lot of trouble with the windows in my application to size correctly. As a sample, I have a container form (mdi parent), with in which is Form1 (with a datagrid) and a form that is only called when a cell in the datagrid is double clicked. I want Form1 to always be maximized so I set the properties as follows:

Windowstate = Maximized
FormBorderStyle = None
AutoSize = False
MaximizeBox = False
MinimizeBox = False

So when I maximize the parent window, Form1 maximizes and shrinks correctly... but when I double click on the gridview and the popup form comes up, several things happen:
1. Form1 (in the background) goes back to normal size (not maximized)
2. If I click on Form1 (when the Popup form is on the screen) the form disappears into the background...
What I need to happen is for Form1 to always stay maximized, no matter what happens on the screen, and when the pop up form is on the screen, I should not be able to click on any form in the background, and it should never disappear into the background itself.

View 3 Replies

When Open Crystal Report It Opens In Maximized State?

Dec 29, 2010

i am facing a problem i.e when i open crystal report its open in maximized state which is set on load while i open another form its also open in maximized state where the form state set normal from property box any solution where crystal report form open in maximized state and at the same time another form open in normal state i.e its default state

View 4 Replies

Loading Of Child Form

Jan 7, 2009

could you please tell me how to load a child form in a parent form. since i am a beginner i have some confusion ..

View 1 Replies

IDE :: Data Loading In A Child MDI Form?

Oct 17, 2011

Problem:Combo Box in CHILD MDI Form is not reflecting the "data" added from the table1. I have an MDI Parent form, and MDI Child Form.2. The Child form contains a Combo Box, and i want to load the data to this combo box dynamically "selecting from" a table. I am able to select from the table, and using the following code to add rows to the combo box

frmForeignKey.cmbSource.Items.Add(targetSSID) frmForeignKey.cmbTarget.Items.Add(targetSSID)
3. The Child form is called with the following code from MDI Parent form
Dim fkChild As New frmForeignKey fkChild.MdiParent = Me fkChild.Show()

[code].....

View 2 Replies

When MDI Child Loads Its Maximized

Jun 12, 2006

When my MDI child loads, its maximized. This makes it display an icon on its top left conner in the parent's toolbar. Is there any way i can do away with this default, MS icon!!

View 13 Replies

VS 2008 - How To Keep Form Maximized In MDI App

Oct 12, 2010

I have a form which I want to keep maximized and all other forms to stay their original size. The problem that I am getting is when I open an additional form, it also maximizes even though I have set the form size to Normal. When I click on the Maximize button to put it back to the size it should be, the form that I want to keep maximized also reduces in size.

View 2 Replies

VS 2010 Borderless Child Maximized Still Has Controlbox

Aug 11, 2011

I have an MDI parent form and multiple child forms. Child forms are borderless and set to start in the maximized position because I want the forms to completely fill/resize within the parent form and only display the selected form, one form at a time.

Problem I have is whenever I load a form it puts another bar at the top of the screen and another control box. Is there any way to get the child forms to load in maximized state without this bar? I tried .controlbox = false and it gets rid of the control box but the bar is still there.

View 2 Replies

VS 2008 Custom Icon Does Not Appear When Form Starts Maximized?

Dec 24, 2009

When I choose WindowState.Maximized from the properties toolbox, the form will open as maximized, but the icon that I chose does not appear... the VS default icon is shown. That is, until I minimize and re-maximize the form. Then, my custom icon is shown.

I want the form to open maximized. Is it possible to have the custom icon shown by opening the form this way?

View 7 Replies

Maximized State "covered Screen" But It Doesnt

Feb 11, 2010

Supposed to be my form should be in maximized state when the time passed. However its not fully covered my screen its just covered slightly half on top left of my screen. What i meant is that i set my timer into 500 and decrease it by 5, while the timer running i open my WarCraft3 and its in full screen, when the time expires my form should be in maximized state "covered my screen" but it doesnt, i know it is because when Warcraft3 open it changes the resolution. SO am i able to fully covered my screen ?

View 2 Replies

VS 2008 Stopping A Loop By Keypress When Form Isn't In Focus?

Aug 21, 2009

I have a loop that says this...

Do
If e.KeyCode = Keys.F4 Then
Exit Sub
Else

[code]....

My problem here is that what the loop does is click on another program, thus taking the focus off of mine, how would i be able to make my app see if I press the key even if the form isn't in focus?

View 3 Replies

Linq To Xml - Persisting MDI Child Position And State?

Sep 22, 2010

In a MDI WinForm I want to save each child window position and state, per application user, that is different by the logged in Windows user. My application has its own users; so I won't use the user settings like my.Settings... etc.One option is to read/write directly to the database, but I don't like the idea to access the database for something so trivial as the windows positions. The plus is that I could store that information independently by the machine where the user works, wherever she logs in, her preferences will be remembered.Another option, that I'd like to follow, is to use Xml to store that information in a file locally on the user's computer. The structure could be something like:

<form name="form name">
<Top>120</Top>
<Left>100</Left>[code]....

how this could be done; maybe using Linq to Xml? I've found I can write something as simple as

Dim formPos As XElement = _
<User><%= My.Application.connectedUser.id %>
<form1>[code].....

2) How to write the XElement when finished building it. Should I use an XmlWriter.Create? Hot to pass it the XElement?

3) What happens when in the Xml file there's already a node with the same name, I want to overwrite the previous user settings if they are already there, but not append to the file, nor rewrite the entire file, of course.

View 1 Replies

VS 2008 Restore Form From Minimized State?

May 29, 2010

Imports System.Runtime.InteropServices
Imports System.Diagnostics
Private Const SW_HIDE As Integer = 0

[Code]....

The program is in foreground on click, but fails to maximize/restore.

View 1 Replies

Parser Error (could Not Read State "objDebugResolveAssemblyReference.cache) While Loading An Asp.net Page

Jun 4, 2009

i got an error while loading a page in asp.net.I have renamed the page before loading it.The error is as follows:-

**could not read state "objDebugResolveAssemblyReference.cache"**

View 1 Replies

Unable To Place A Label Box In The MDI Parent Form And Then Open A Child Form The Label Box Highlighted In Child Form?

Dec 15, 2011

I have an issue when I place a label box in the MDI Parent form and then open a child form the label box highlighted in child form?

View 6 Replies

VB 2008 - Change Child Form Combo Box From MdiParent Form

Feb 23, 2010

In VB 2008, I have a Parent form with a combo box on it. There is a child form also with a combo box on it. I want to be able to change the values on the child form based on what the user selected from the main form. The user launches the child form from a toolbar on the Parent form. The following code is run:

[Code]...

What I want to do is if the Parent's combo box has "Red", "Blue", "Green" values and the user selects "Green", the child form's combo box(With the same values) will also change to "Green". (I do not need to change the Parent form if the child form changes.) I've tried changing the Child's combobox from the combobox's change event on the Parent form, and the code runs, but nothing changes on the child form.

View 5 Replies

VS 2008 Populating Cbobox On Form Load For A Child Form?

May 14, 2009

i am having an issue populating two combo boxes on form load. The program will connect to an access database and pull data as instructed. Then as it pulls each record it puts it into the combo box.

This was working.. atleast i think it was. i dont recall it ever not working, however i wasn't looking for it.

My problem is that if when i load the MDI parent form and have it skip the selection form and the login form and load the next form in the sequence, it loads everything perfectly. However if the select form is loaded first, then the login form and then the form i need loaded, it will not populate. The only difference between the two different loads is that the login form calls a function that loads the form as a new project.form

I did this so that I can have multiple forms open at a time. I am assuming my problem is that I need to get the child forms handle then populating controls using that handle? but i think if I had to do that then I would beable to populate the comboboxes on the first form load using the login method of opening the form.

Here's my code.

vb.net
Private Sub frmLine1t5_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Text = "Line " & LineNumber & " Test Form"

[Code].....

View 20 Replies

.net - Maximized MDI Form Behavior?

May 18, 2010

My program shows some browser. From a browser user can open maximized MDI form with some report. When user is closing the report, first MDI form with browser is became maximized.

2 forms have same MDI parent. Can I change this behavior to leave my first browser form without maximizing after second report closed?

View 1 Replies

VS 2008 Revert A Form Including The Controls Back To A Original State Without Closing The App

Jul 16, 2009

How do I revert a form including the controls back to a original state without closing the app? For example I got a picture box and 2 buttons in a form..

[Code]...

View 7 Replies

Centralize A Form In Maximized Window?

Jun 21, 2010

I have tried the following codes. The maximised window worked but the centralizing failed. How centralize a form in maximised window?[code]...

View 2 Replies

Disable Dragging Of A Maximized Form?

Oct 30, 2011

After maximizing a form, if I drag the title bar, the form moves out of position. This seems to be normal in windows, since IE does it also, but can I disable this? so the form stays fixed and unmovable?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved