473,403 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Centre one form in another

If I have two forms where Form1 shows Form2 and want to centre Form2 into
Form1, is there an easy way to do this?

--
|
+-- Thief_
|
Nov 21 '05 #1
2 816
Thief,

This solution did I give a while ago, I don't know if there already better
ones.

http://groups.google.com/group/micro...06b4d1e?hl=en&

I hope this helps,

Cor
Nov 21 '05 #2
"Thief_" <th****@hotmail.com> schrieb:
If I have two forms where Form1 shows Form2 and want to centre Form2 into
Form1, is there an easy way to do this?


Set the second form's 'StartPosition' property to 'CenterParent' prior to
showing the second form.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 21 '05 #3

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

Similar topics

0
by: kayodeok | last post by:
Another Link from my web travels for you to take apart ;) Dead Centre http://www.wpdfd.com/editorial/thebox/deadcentre4.html From the site: "This text is DEAD CENTRE and stays there!" --...
3
by: CJM | last post by:
I want to create a footer with 3 items, one of which will always stay to the left, one will be in the centre, and the 3rd will be at the right. As you might imagine, I want the Right & Centre items...
7
by: Alex | last post by:
Hi all, I am trying to install a java stored procedure via the windows development centre. The linux box is running 8.1 FP4 as is the windoze platform. If I am on the linux box i can install...
1
by: jan.gezels | last post by:
Hi We're use DB2 with Data propagator. When I open Replication Centre no config is shown (no capture or apply servers) but everything is still working like it should. If I try to reconfigure, I...
5
by: Guy007 | last post by:
I have a small bitmap, and I want to place it in the centre (horizontally and vertically) of another Bitmap object. (i.e. replace the pixels) how can this be done?
3
by: JC2710 | last post by:
Hi I know this is probably simple but can anyone help me as to how to alwasy open a form in centre of screen? Thanks
0
by: shamshujjuhah | last post by:
I am using the following code to open file. Now I want to position the fileopen dialog to the centre of screen. Can someone tell me how can I acheive this? code: -------------- OpenFileDialog...
2
by: ziycon | last post by:
I have the below code, now the text outside of the table will centre fine in IE and FF but the table will not centre at all in FF but is fine in IE?? <div id="search_body_wrapper"> <div...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.