473,734 Members | 2,576 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Control form movement

I have a form that opens maximized and requires scrolling down to see
all the textboxes. When you enter a textbox in the lower portion of the
form the Enter event opens a large textbox with a large font. This
allows the inputter to see from a distance what was just scanned in
from the barcoded label on a parcel. When the large textbox closes it
transfers its contents to the smaller textbox.
My problem is what happens when the large textbox closes.
The form scrolls up to the upper portion of the form away from the
small textbox.
Since the large textbox opens just below the small textbox I would like
it close with the small textbox still visible.

How can I stop the detail section of the form from moving???

Thanks RICK

Nov 13 '05 #1
1 1893
"Text Box closes?" Do you mean you set its Visible property to False? Forms
larger than one screen often exhibit what seem to us to be "quirks". The
first, and easiest, thing to try is, in the code that "closes" the large
Text Box, use the .SetFocus method to set the focus to the smaller Text
Box --

Me!txtWhateverI tsName.SetFocus

Otherwise, to assure it does what you want, revise the Form so that
everything fits on one screen... put your large Text Box in a Form that you
embed in a Subform Control... put the smaller Text Box in another Form, and
when you want to "close" the large one, change the Source Object of the
(same) Subform Control to the Form containing the smaller Text Box.

Half the battle in "quick and easy" application development is having a feel
for those things that seem "quirky" and handling them a different way so as
to avoid the "quirks".

Larry Linson
Microsoft Access MVP
"2D Rick" <rb*******@comp userve.com> wrote in message
news:11******** **************@ g14g2000cwa.goo glegroups.com.. .
I have a form that opens maximized and requires scrolling down to see
all the textboxes. When you enter a textbox in the lower portion of the
form the Enter event opens a large textbox with a large font. This
allows the inputter to see from a distance what was just scanned in
from the barcoded label on a parcel. When the large textbox closes it
transfers its contents to the smaller textbox.
My problem is what happens when the large textbox closes.
The form scrolls up to the upper portion of the form away from the
small textbox.
Since the large textbox opens just below the small textbox I would like
it close with the small textbox still visible.

How can I stop the detail section of the form from moving???

Thanks RICK

Nov 13 '05 #2

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

Similar topics

12
12738
by: Arlie Rahn | last post by:
I would like to ad a custom scroll bar control to my app that has a customizable and "flat" look to it (not the normal VB look). Does anyone have any ideas on where to find a good one?
3
10646
by: red | last post by:
mouse events when the mouse is on a "child control" hi everyone; my problem: I have a userControl in this usercontrol, I have a child control (a button) when the mouse moves over the userControl, I can detect the movement using MouseMove event. the problem is when the mouse is on the child control : I can t detect
1
1806
by: Rocky A | last post by:
I don't remember ever reading about this in any of the "how to" books I've got or I wouldn't bother you guys (honest, I'm not being lazy here.....OK maybe just a little, but you guys are SOOOO good) I have a form along with it's multiple sub forms that I don't need or want to display the record movement bar that automatically appears at the bottom. Is this something I can set at design time, and if so how?
1
5137
by: Sumit | last post by:
Hi all, I have a windows form in which i have a tabcontrol having 4 tabs. I have made 4 user controls for each of the tabpage. I add the user controls on the tabpage programatically. Now in the leave event of the user controls i have written a code which checks whether all the mandatory information have been filled in the textboxes, comboboxes etc. present on the user control.
0
1153
by: sdbranum | last post by:
I have been using Visual C#.NET to code a large project having many data adapters, data sets, datagrids, multiple forms with tab pages, each containing various controls (mostly label, text boxes, check boxes, date pickers, combo boxes and datagrids). I have been coding alone on this project for about a year, and I have experienced many problems which have not been addressed by various SP's, including the recent SP1 to Framework.NET 1.1,...
0
1569
by: Chubby Arse | last post by:
Hi all, I have a control, that basically is my own version of the datagrid, except that is renderers purely readonly tabular information. When the control is rendered to the designer, I can click on the control as rendered and move it, however I cannot resize it. I can change the height and Width properties in the PropertyGrid and they change, but the control doesn't resize.
3
499
by: Charles Law | last post by:
Sorry for reposting this question, but I did not get a single answer last time, and I'm sure you guys must have some thoughts on the matter. I have a user control which can be dragged and dropped onto a form in my application when it is running. I allow it to be clicked and dragged to a new location on the form. However, the user control has a check box on it, and if the user clicks over the checkbox to drag the user control, the check...
2
2285
by: (PeteCresswell) | last post by:
I've got a form that has a TreeView in the upper part of the form and a TabControl in the lower. When processing a Resize event, the TabControl does not need tb resized - just moved so that the TreeView can be expanded/contracted to fill the available space. But there seems tb some sort of chicken-and-egg problem with objects within the TabControl. Their coordinates are expressed relative to the form instead of the TabControl and...
5
1751
by: Sedecrem | last post by:
I am creating a 'frogger' like game. Essentially there are ten lanes each with an image array associated with it. The arrays are named from imglane0() to imglane9(). I was creating a piece of code that moved the img boxes in the array by random amounts whilst checking for collisions etc. and it worked, for one lane. I designed a module that would theoretically allow the movement of every lane without having to constantly repeat lines of code....
0
9452
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9310
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8187
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6737
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6033
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4551
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4813
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2729
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2180
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.