Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open Form at specific window location

Status
Not open for further replies.

nerdcore

MIS
Jan 23, 2003
26
I have a form with a date field on it. Next to the date field I have a button which opens up another form that contains only a calendar control 9.0, and when a day on the calendar is clicked, the form closes and enters that date into the field on the original form. Problem is the calendar form will open up at weird locations, and if I select to auto-center the form it shows up, duh, in the center. I would like it to open up right next to the button like you see on airline web pages when you are selecting flight dates etc. Is there a way to open a form at an exact window position using VB? I have not found anything about window coordinates like in c++. Thanks!
 
I am not positive, but if you open a form, and move it to the position you want it at, and save the database, then close it, the form should open in the same location the next time.

Hope this helps ya.

Jon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top