By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
462,318 Members | 554 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 462,318 IT Pros & Developers. It's quick & easy.

Hide Form Control Following DblClick Event

P: 365

I have another problem to which i cannot figure out a resolution,
I have a listbox on a form, on double click event of a row in the listbox i want to run some code, update tables etc
then i want to run another procedure that updates the "Main" listbox to show the change made in the other, and i want to hide the original listbox, make sense?

well, i get the error "cannot hide control that has the focus", i understand the error but would like to "do it anyways", i have tried to run other things inbetween and set the focus to something else but nothing works.

any one got any ideas?

Mar 26 '09 #1
Share this Question
Share on Google+
2 Replies

P: 365
False alarm, i found my answer in the very Next Thread

i was being non-specific in my actions and used

Expand|Select|Wrap|Line Numbers
  1. Me.SetFocus
Expand|Select|Wrap|Line Numbers
  1. Me.AnyControl.SetFocus
the latter works
Mar 26 '09 #2

Expert 2.5K+
P: 3,532
Glad we could (inadvertently) help you!

Linq ;0)>
Mar 27 '09 #3

Post your reply

Sign in to post your reply or Sign up for a free account.