Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / June 2007

Tip: Looking for answers? Try searching our database.

What event fires when tabbing to a hidden TextBox in VB.Net

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bill Fallon - 14 Jun 2007 14:21 GMT
I have a Windows.Forms.Panel object that contains a column of TextBox
objects.  When I tab to a text box that is below the visible area of the
Panel, the panel automatically scrolls vertically to make the TextBox
visible.  What I need to know is what event gets fired when this scrolling
occurs?  The Panel.Scroll event does not fire.  I need to know this because
I have an adjacent Panel object on the left that contains a column of Label
objects and I need to keep these two panels synchronized so the labels are
always aligned with their corresponding text boxes.

Bill
geoffrey.munday@gmail.com - 14 Jun 2007 20:14 GMT
> I have a Windows.Forms.Panel object that contains a column of TextBox
> objects.  When I tab to a text box that is below the visible area of the
[quoted text clipped - 6 lines]
>
> Bill

Bill,

In the context you describe no public event is raised/exposed for
handling.  You may be able to handle the windows messaging event
directly by overriding WndProc() and handling the appropriate message
but I think you should examine and rethink your current approach
before attempting to go this route.  My suggestion requires a lot of
work for something that might be solved more effectively in a
different layout or using different controls (tablelayout,
flowlayoutpanels, splitters, etc).

Without knowing anything about your requirements or why you have
implemented your layout in this manner, one suggestion I will make is
that you might want consider nesting the panel the labels are in into
the panel containing the text boxes.  This is assuming of course that
there is at least one valid reason why they absolutely must be in a
seperate panel in the first place.

Good luck,
-- Geoff
Bill Fallon - 15 Jun 2007 18:04 GMT
Thank you for the suggestions.  I found a solution to my problem which is to
use the Timer control Tick event to synchornize the panels.

Bill

>> I have a Windows.Forms.Panel object that contains a column of TextBox
>> objects.  When I tab to a text box that is below the visible area of the
[quoted text clipped - 31 lines]
> Good luck,
> -- Geoff

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.