473,796 Members | 2,522 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MDI Form Position

Hello

Two questions about positioning:

When I run my MDI application developed by VS.NET 2003, the MDI window is
opened in a new place and after some run again and again, it opens in a
position that some borders of MDI form goes out of the desktop.

The WindowState of MDI form is in Normal state.

Q1: How can I open my form in a position that the form is not gone out of
desktop

Q2: How can I position in the same position as previously opened in the last
run.

Thanks in advance.

Hamed
Sep 18 '06 #1
1 1965
The startup location is a property on the form called StartupLocation . This
can be used to startit center screen or something. To make it start where is
was last time you would need to handle the changing of the location and save
the new location to the registry or something. Then load it in the form
constructor and set the property.

HTH
Ciaran O'Donnell

"Hamed" wrote:
Hello

Two questions about positioning:

When I run my MDI application developed by VS.NET 2003, the MDI window is
opened in a new place and after some run again and again, it opens in a
position that some borders of MDI form goes out of the desktop.

The WindowState of MDI form is in Normal state.

Q1: How can I open my form in a position that the form is not gone out of
desktop

Q2: How can I position in the same position as previously opened in the last
run.

Thanks in advance.

Hamed
Sep 18 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2179
by: Steve | last post by:
Hi all Is there a way in which I can get the Form's position on the screen in pixels? I am having to position another form in relation to an MDI Child form, so I cannot use the Location property, because the MDI Child is usually 0,0 (Top left in the parent container) so if I position my other form in that location it goes to the top left of the entire screen. I have tried using the overloaded ShowDialog method to make the MDI Child form...
7
3617
by: x muzuo | last post by:
Hi guys, I have got a prob of javascript form validation which just doesnt work with my ASP code. Can any one help me out please. Here is the code: {////<<head> <title>IIBO Submit Page</title> </head> <style type="text/css">
6
2434
by: dale zhang | last post by:
Hi, I build a web form with a 4-cell table on the top (flawlayout), followed by some labels and textboxes (gridlayout). The web form is displayed well in dell m60 laptop with all resolution options and DPI options. However when I tried to run it in a dell P3 desktop, labels and textboxes overlapped each other and they were in table area too. Any suggestions? Do I have to put all controls in table cells?
3
1991
by: Andy | last post by:
Hi, I have a simple problem concerning the position of forms. My windows form application has a main form and three instances of a second form; BForm. It is not an MDI parent/child application and I've set the StartPosition property for both forms to be Manual. In the New method of the main form I create the 3 BForms and try to position them below the main form (with the left sides aligned) using
1
1381
by: Hamed | last post by:
Hello Two questions about positioning: When I run my MDI application developed by VS.NET 2003, the MDI window is opened in a new place and after some run again and again, it opens in a position that some borders of MDI form goes out of the desktop. The WindowState of MDI form is in Normal state.
2
4504
by: Govert J. Knopper | last post by:
Here's my C# newbie question: How do I set the position of a modal form? This (correctly) positions top left of the form at the position of the main form: .... Form frmAbout = new About(); frmAbout.Show(); frmAbout.Left = this.Left;
3
56003
by: Andrew Hall | last post by:
Hi all Can anyone advise how to get the position of an open form and how to set the position of an opening form within the access window. I have: MA Access97 (because I do not have the funds to obtain a more recent version nor the time to learn the new interface) Form1 and form2. Both forms are an identical size because of the length of the captions of the controls on the forms.
1
2906
by: =?Utf-8?B?UmljaA==?= | last post by:
I placed a button on a form menustrip for the purpose of causing the horizontal scrollbar of my form to appear so that I can access controls outside of the form's current view (the controls are further to the right of the form than the form's default width - which may take up the entire screen for some users). The form contains panels which will contain either textboxes or datagridviews. The button is located on the menustrip towards...
13
3615
by: Andrew Falanga | last post by:
HI, Just a warning, I'm a javascript neophyte. I'm writing a function to validate the contents of a form on a web page I'm developing. Since I'm a neophyte, this function is quite simple at this time (in fact, I don't even know if it totally works, I'm still debugging). However, the first problem is that when an error is encountered, I get my alert box, I press ok and then the form is submitted and the new data is entered into the...
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10459
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10237
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10018
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6795
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5446
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4120
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3735
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2928
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.