Hello Experts,
Currently I am working on a windows application using vs.net 2002.
Assume I have two forms, form A and B, where form A is the main form. In
form A, I have a button which will load form B when click. The question
is how can I open form B in the center of the screen?
Thanks,
Benny
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it! 3 29102
Hi Benny,
You can use the StartPosition to do that.
Like:
frmB.StartPosition = FormStartPosition.CenterScreen;
frmB.Show();
HTH,
APG
Benny wrote: Hello Experts,
Currently I am working on a windows application using vs.net 2002.
Assume I have two forms, form A and B, where form A is the main form. In form A, I have a button which will load form B when click. The question is how can I open form B in the center of the screen?
Thanks,
Benny
*** Sent via Devdex http://www.devdex.com *** Don't just participate in USENET...get rewarded for it!
in form B look in property window look down to StartPosition and selct
to CentreScreen.
regards
Benny wrote: Hello Experts,
Currently I am working on a windows application using vs.net 2002.
Assume I have two forms, form A and B, where form A is the main form. In form A, I have a button which will load form B when click. The question is how can I open form B in the center of the screen?
Thanks,
Benny
*** Sent via Devdex http://www.devdex.com *** Don't just participate in USENET...get rewarded for it!
Hello APG,
I tried that before, but form B always pop up on the top left corner,
any ideas why?
Thanks,
Benny
*** Sent via Devdex http://www.devdex.com ***
Don't just participate in USENET...get rewarded for it! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Ahmed Jewahar |
last post by:
Hi All,
I'm new to this forum as well as new to ASP.NET. My backgorund is ASP.
But, I'm just doing my .NET course with MS Certified training center
currently.
I have couple of questions (it...
|
by: monika |
last post by:
Hi all...
I am able to select a student's story and open it in a word doc. the
teacher then corrects the story, highlight in colors the comments,
strikethrough. In fact all the privileges I...
|
by: Clare Hsiao |
last post by:
Hi,everybody:
How can I use window.open to Open a page in the center of screen?
I know showModalDialog() can,but I have to run both in IE and NN, so I
have to use window.open to open a new...
|
by: alanstew |
last post by:
With the body tag calling out 'window onload', a function with a
'window.open' fails at the 'window.open' line. If I cut out the body
tag, the function executes as normal.
At first I thought it...
|
by: Sean Berry |
last post by:
I have a news video that I am sending out for a client. There are embedded
links to flash movies in the email.
I want the popup to be a set size (400 x 400). I am currently using the...
|
by: Markus |
last post by:
Hi,
i have this problem:
Sometimes, i can't reproduce, if i click on an small image on the
website, the popup _AND_ an other Tab in firefox open.
Here are the linkcode:
<div...
|
by: Keith |
last post by:
I have a web form that contains a repeater control that is designed to ask
like a check book register. Clicking on a certain transaction takes the user
to a different .aspx page where it can be...
|
by: Keith |
last post by:
I have a web form that contains a repeater control that is designed to ask
like a check book register. Clicking on a certain transaction takes the user
to a different .aspx page where it can be...
|
by: plumba |
last post by:
Hi all
I have a form (see below), which for some reason has decided to stop functioning all together. It just does not call up the function. It is called up in the opening <form> tag but...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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...
|
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...
|
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: 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...
| |