Results 1 to 7 of 7

Thread: shows new form without causing other form to lose focus [Resolved]

  1. #1

    Thread Starter
    Member
    Join Date
    May 2003
    Posts
    58

    shows new form without causing other form to lose focus [Resolved]

    hi,

    just wondering if its possible to display a new form (by any means, using nativewindow or create manually, ...) without causing 'lose focus' event of any other forms

    thx
    Last edited by Volvere; Mar 9th, 2004 at 12:02 AM.

  2. #2
    Addicted Member
    Join Date
    Oct 2002
    Posts
    210
    would setting the form's WindowState to minimized work?

  3. #3
    Addicted Member Hole-In-One's Avatar
    Join Date
    Mar 2003
    Location
    Minnesota
    Posts
    195
    That works but then the form isn't visible.

    to display a new form
    Why is it important not to call the lostfocus event?

    Maybe theres another way around this?

  4. #4

    Thread Starter
    Member
    Join Date
    May 2003
    Posts
    58
    well,

    actually i am writing a customizable tooltip control and it has to be a control or be 'contained' within a control which can exists outside of any form. i tried using nativewindow and create a new low-level window however it is focused when its visible.

    or is there a way to provide a 'canvas' to draw instead of creating a new form.

    thx

  5. #5

    Thread Starter
    Member
    Join Date
    May 2003
    Posts
    58

  6. #6
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    What about this ?
    PHP Code:
    Form f=new Form();            
    f.Show();
    this.Focus(); 

  7. #7

    Thread Starter
    Member
    Join Date
    May 2003
    Posts
    58
    Thats gonna cause lost focus event of the current form just right before the new form is shown. Anyway, the article I posted has solved the issue. Thanks a lot for your helps, I do appreciate those.

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