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 / July 2006

Tip: Looking for answers? Try searching our database.

focus on otherform.textbox from datagrid

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tim De Vogel - 19 Jul 2006 13:18 GMT
Hi,

When a user uses an asteriks as input in one of my datagrid fields, I open
another form in which users can select a product from a list.  Everything
works perfectly, except that I can't get the focus to the textbox on the new
form.
I tried _popupForm.txtSearch.Focus() but it doesnt work unless I disable the
datagrid from where I call the form (and I can't do that because of various
reasons).  I can click on the textbox and it gets focus without a problem.
I suspect the reason why it doesn't work is because the datagrid is in
"edit" mode.

Any suggestions?  It's kind of hard to search on this because of the terms
involved (datagrid, focus etc)

Signature

Tim De Vogel
S-Data NV
http://www.s-data.be

Pritcham - 21 Jul 2006 09:04 GMT
Hi Tim

If you're opening up another (presumably new) form can't you set the
focus from within that form (as opposed to the calling form)? i.e. in
the onLoad method etc?

Martin

> Hi,
>
[quoted text clipped - 10 lines]
> Any suggestions?  It's kind of hard to search on this because of the terms
> involved (datagrid, focus etc)

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.