473,480 Members | 2,134 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Forms Position

I have a form1. From it I can select form2.
Like so:

DataIO MyIO = new DataIO;
MyIO.Show();

I want MyIO to appear in a certain position on form1.
Say in position (0,0)

Which line of code would do the job?

MyIO.Location = new Point(0,0);

does not do the job.

Pleas help.

....
Gato
Nov 15 '05 #1
4 18274
When you have the form in designer view - set the top in left in the
properties box - and see what code it changes..

"Patrick De Ridder" <00*@000.com> wrote in message
news:7b********************************@4ax.com...
I have a form1. From it I can select form2.
Like so:

DataIO MyIO = new DataIO;
MyIO.Show();

I want MyIO to appear in a certain position on form1.
Say in position (0,0)

Which line of code would do the job?

MyIO.Location = new Point(0,0);

does not do the job.

Pleas help.

...
Gato

Nov 15 '05 #2
Frank Drebin <no*****@imsickofspam.com> wrote in message
news:m2**********************@newssvr28.news.prodi gy.com...
When you have the form in designer view - set the top in left in the
properties box - and see what code it changes..

I have been trying to interpret your instruction, but I am afraid it doesn't
make sense to me. Sorry, could you be a little bit more specific, or
rephrase your instruction? Many thanks.
--
Patrick.
Nov 15 '05 #3
Hi, there is a property on the Form, StartPosition.

Example:

Form f = new Form();
f.StartPosition = FormStartPosition.Manual;
f.Location = new Point(100,100);
f.Show()

HTH
"Patrick De Ridder" <00*@000.com> wrote in message
news:7b********************************@4ax.com...
I have a form1. From it I can select form2.
Like so:

DataIO MyIO = new DataIO;
MyIO.Show();

I want MyIO to appear in a certain position on form1.
Say in position (0,0)

Which line of code would do the job?

MyIO.Location = new Point(0,0);

does not do the job.

Pleas help.

...
Gato

Nov 15 '05 #4

mia lanui <mi**@email.com> wrote in message
news:fh*****************@nwrdny02.gnilink.net...
Hi, there is a property on the Form, StartPosition.

Example:

Form f = new Form();
f.StartPosition = FormStartPosition.Manual;
f.Location = new Point(100,100);
f.Show()


That's great, thank you. Couldn't find it MSDN.
--
Patrick.

Nov 15 '05 #5

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

Similar topics

3
2537
by: rob | last post by:
Hiya, I am having a problem of getting the position of the cursor in a microsoft forms 2.0 box. I need the position + linenumber. I am making a simple text editor which supports unicode. Does...
10
7825
by: John | last post by:
I have a table with two rows. On the first row is a text box and in the second row is an image. I have set the table cellpadding to 0 and cellspacing to 0. The table is leaving extra spaces in the...
39
5621
by: Zak McGregor | last post by:
Hi all Are there any good solutions to aligning form field names and input boxes without resorting to tables? I am struggling to do this nicely at the moment. Thanks Ciao Zak
3
2121
by: max | last post by:
I can generate this error by NOT assigning a tableName to the view: at System.Windows.Forms.DataGrid.AddNewRow() at System.Windows.Forms.DataGridAddNewRow.OnEdit() Is there any possibility of...
2
1723
by: Richard Walters | last post by:
hi guys (and girls), Does anyone know how, and indeed if possible to save a forms positions when closed. I have a small Access application and find it annoying having to move the forms into the...
2
3609
by: Richard Walters | last post by:
hi guys (and girls), Does anyone know if there is a way to save the position of a form at runtime. I am developing a small access application and the forms keep reappearing in the preset...
6
1764
by: salmobytes | last post by:
After a javascript-generated post event (this is a post, not ajax messaging) the current screen has to be redrawn. But on *long forms* (longer than a single screen) then the current screen...
3
2276
by: tomb | last post by:
I wasn't sure which of these 2 groups is the right one to post to, so please excuse the duplicate post. Does anyone know how to resolve this? I can't figure this out. In my web site I have 3...
5
1212
vdraceil
by: vdraceil | last post by:
My form layout window(vb6.0) doesnt show any forms in it,but i want to position my forms..is there any settings i should change?or is there any alternative to position my forms(by coding)?
5
3990
by: ankit1999 | last post by:
I have a problem, everytime i'm run this page http://click2travel.in/index.php i get the this error,,,
0
7055
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
6920
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
7060
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,...
0
7106
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...
1
4799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3013
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...
0
3004
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1311
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 ...
0
206
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...

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.