944,183 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 2639
  • VB.NET RSS
Oct 16th, 2007
0

Setting focus.............

Expand Post »
Hi!

can u plz tell me what is the code for setting the focus to a checkbox in vb.net 2003 project.
How is this possible?
I have tried checkbox1.setfocus=true but itdoes not work.


Secondly, I wish to fire the click event for a button when I press the enter key. How is this possible? What properties do I need to set?


Thanks,
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
nice_true is offline Offline
28 posts
since Sep 2007
Oct 16th, 2007
0

Re: Setting focus.............

Me.CheckBox1.Focus()
In your forms property find AcceptButton and set it to the button you want the enter key to press. You can also set the CancelButton to press if you hit the Esc key.
Reputation Points: 84
Solved Threads: 58
Posting Pro in Training
waynespangler is offline Offline
461 posts
since Dec 2002
Oct 18th, 2007
0

Re: Setting focus.............

try to use the javascript for setfocus& keypress...
Unless& untill u use js.its ain't possible to work on vs-2003 or 5,,,
if u want js-reply m back i will forward it to u,.....
Reputation Points: 5
Solved Threads: 1
Junior Poster in Training
preetham.saroja is offline Offline
82 posts
since Jun 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: Generic List Grouping
Next Thread in VB.NET Forum Timeline: Information on MS Access and Related Tables





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC