|
-
Dec 29th, 2011, 03:26 AM
#4
Thread Starter
Addicted Member
Re: Locking usercontrol focus
I don't know why you're picking on the fact that i'm making a grid usercontrol but i'll tell you how i've done it. I draw 100% of it on the usercontrol's background. When you edit a cell a textbox (there is only one textbox in the entire control no matter how many cols or rows) appears and then when you're done editing it disappears.
In the past, when i didn't know much, i had a textbox for each cell but that (as jmcilhinney pointed out) made it terribly slow. Right now i've got my grid working very fast and well, i'm just asking a question completely unrelated to a grid control works. So please, forget that this is even connected with a grid or that i'm even trying to make a grid. My question is this :
How can i lock focus on the usercontrol so that these keys won't change it and so that i can use these keys for other things?
This could be needed for many controls, i just mentioned my grid control as an example.
Last edited by cheesebrother; Dec 29th, 2011 at 03:30 AM.
Hooked for good.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|