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

Form opens in the center and we have to scroll up to go on the top of the form

jinalpatel
Hello!!!

I have an extra long form. When I open it, it opens in the middle of the form.I have to scroll up to access the fields written on the top of the form.
Why is that? Which property should I have to set so that the form does not open in the middle of the form?
Form's Autocentre property is set to No
Mar 30 '09 #1
6 18587
missinglinq
3,532 Expert 2GB
Best guess is the first control in the Tab Order is in the middle of the form. Use something like this to always set focus on a control at the top of the form:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Form_Current()
  2.  ControlAtTopOfForm.SetFocus
  3. End Sub
BTW, forms long enough to need to be scrolled are considered to be very user-unfriendly! You should consider using Tabbed Controls in these situations..

Linq ;0)>
Mar 30 '09 #2
Thanks!! It worked..
Mar 31 '09 #3
missinglinq
3,532 Expert 2GB
Glad we could help!

Linq ;0)>
Mar 31 '09 #4
NeoPa
32,556 Expert Mod 16PB
If you want to manage this in the form's design, then select a tabbable control (TextBox, ComboBox, ListBox, CommandButton, etc) and, using right-click, select Tab Order...

This will enable you to arrange the order graphically as you see fit. This is only available on Form controls.
Apr 8 '09 #5
Thanks you Neo Pa. I will keep in mind because the project is already given to the customer.
Thanks much for giving an idea.
Apr 8 '09 #6
NeoPa
32,556 Expert Mod 16PB
No worries Jinal.

I find that is something often overlooked, so I try to keep it properly maintained in all my databases.
Apr 9 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
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...
1
by: Jamie Jackson | last post by:
I'm using showModalDialog() to popup a window with some long text, followed by a couple of form elements. The content of the popup scrolls, since the content is longer to than the window. However,...
10
by: john T | last post by:
Is there anyway to vertically center a html table using css in such a way it does not alter the html table. When I tryied it just screws up.
2
by: VB Programmer | last post by:
I only have 1 set of <FORM> tags in my HTML file, but I keep getting this error. Any ideas? *********** A page can have only one server-side Form tag. Description: An unhandled exception...
1
by: | last post by:
How do I control the layering of 4 forms of identical size and position to cause the desired form to be second from the top.. Form1 has my welcome screen etc.and the code for file manipulations...
4
by: Matt | last post by:
I have the following in a page and I am trying to update a record on the next page but for some reason the form data is not carrying over. Any ideas why? <form name=nxtlupdate method=post...
0
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...
0
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...
2
by: Abneo | last post by:
Hi all, I am very new to Javascript and I am in some need of some help. I am creating a site that has a madlib. I got the madlib code but now I want the results of the madlib to display in...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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?
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
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
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
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...

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.