Results 1 to 7 of 7

Thread: [RESOLVED] [3.0/LINQ] Allow inherited control to be selectable and have focus

Threaded View

  1. #1

    Thread Starter
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051

    Resolved [RESOLVED] [3.0/LINQ] Allow inherited control to be selectable and have focus

    I have a control that inherits from UserControl and i want it to be selectable and to receive input focus. (I need to be able to give it focus and make it selectable through code).

    I've tried setting the controlstyle to selectable, hiding the inherited CanSelect/CanFocus properties (using new bool ....) but even that doesn't give the control focus when i do MyControl.Focus() and ParentForm.ActiveControl = this.

    Any ideas?
    Last edited by SLH; Nov 23rd, 2008 at 06:43 AM.
    Quotes:
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width