CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2008
    Location
    India
    Posts
    780

    Set Focus on Button Control.

    Hi all,

    i have two diffrent buttons.

    when keyboard use instead of mouse.

    if i (press enter)clicked button 1 than focus set to the next button that is button 2.

    i have use SetFocus() on Clicked event of button1,but its not done.

    please tell me how can i do this.

    thanks in advance.
    IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH

  2. #2
    Join Date
    Aug 1999
    Location
    <Classified>
    Posts
    6,882

    Re: Set Focus on Button Control.

    Are you saying you want to set focus another window when clicked on button ?
    Regards,
    Ramkrishna Pawar

  3. #3
    Join Date
    Jul 2003
    Posts
    147

    Re: Set Focus on Button Control.

    Trying posting a message to set the focus instead.
    "Live only for tomorrow, and you will have a lot of empty yesterdays today."

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

Featured