473,657 Members | 2,434 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 1887
"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
12727
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
10600
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
1804
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
5132
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
1150
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
1565
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
2280
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
1748
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
8395
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8732
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
8605
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7330
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
6166
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
4155
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
4306
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1615
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.