473,395 Members | 1,442 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,395 software developers and data experts.

Form.SetBounds

Hello,
I have tried a couple of ways to set the location of a form before it
becomes visible and the results have been erratic at best. My latest attempt
is to use the SetBounds method passing in the Left, Top, Width, Height of
the form but it doesn't come up in the same location as it should. Am I
missing something here? What is the best way to ensure the location of a
form before it becomes visible? Letting is become visible and then setting
the location is just ugly.

Steve
Nov 21 '05 #1
2 3447
"Steve Long" <St**********@NoSpam.com> schrieb:
I have tried a couple of ways to set the location of a form before it
becomes visible and the results have been erratic at best.


Make sure the form's 'StartPosition' property is set to 'Manual'.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>
Nov 21 '05 #2
Sweet. Thanks for making my blunder clearer Herfried.

Steve

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:e6**************@TK2MSFTNGP14.phx.gbl...
"Steve Long" <St**********@NoSpam.com> schrieb:
I have tried a couple of ways to set the location of a form before it
becomes visible and the results have been erratic at best.


Make sure the form's 'StartPosition' property is set to 'Manual'.

--
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

3
by: John | last post by:
Dear all, It been more than 3 days I am trying to debug this program, I interpret it using activePerl and it is giving (perl -wc code_process.pl) no error syntax but when I put it online, change...
5
by: Richard Cornford | last post by:
I am interested in hearing opinions on the semantic meaning of FORM (elements) in HTML. I have to start of apologising because this question arose in a context that is not applicable to the...
4
by: Targa | last post by:
Trying to total some price fields in a form but doesnt work when all the referenced form fields dont exisit. This is for an invoice - pulled prom a database and the form doesnt always contain the...
2
by: Joey Callisay | last post by:
I don't know if this has already been noted but I just found out that the intellisense for the y parameter of the SetBounds method is mistakenly declared to be the new Control.Right property of the...
0
by: Just Me | last post by:
Given a control1 on a UserControl: After much experimentation I find that the x and y values given to control1.SetBounds(x,y,... needs to have the positions of the scrollbars thumbs subtracted...
4
by: rs | last post by:
Hi guys, from my research i think i need to utilize the SetBounds method, but could not understand the value for the paraments. Thanks in advance Ahmed
11
by: herman404 | last post by:
Hi everyone, I have a DataGrid that displays data on a dialog application. When the dialog is resized, the datagrid keeps the same shape, We would need the datagrid to keep a relative shape...
4
by: ThunderMusic | last post by:
Hi, I have a borderless form and I try to drag it. When I do it, the form start to jump from position to position even when I don't move the mouse... My formula seems right, but the result is...
5
by: Kid Programmer | last post by:
Hello guys. I just tried out using the setBounds method after looking at it in the Java API under JButton (though any other component should have it) and so anyways I tried it out in a simple little...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...

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.