VB .NET form focus
Results 1 to 5 of 5

Thread: VB .NET form focus

Hybrid View

  1. #1
    Member
    Join Date
    Sep 2007
    Posts
    51

    Lightbulb VB .NET form focus

    hey guys,

    I'm creating an app in Visual Basic, and at one point I want to display one form on top of another form. But, I don't want the second form, that I display on top, to be able to lose focus.

    I've tried to edit the second form's 'LostFocus' event, but with no success. Therefore, I was hoping that someone would be able to tell me how to accomplish this.


    Thanks in advance,

    - user0182

  2. #2
    Senior Member
    Join Date
    Dec 2001
    Posts
    319
    Look into 'modal' dialogs.

  3. #3
    Member
    Join Date
    Sep 2007
    Posts
    51
    I considered modal dialogs, but they don't provide the functionality that I required.

  4. #4
    Custom User
    Join Date
    Oct 2001
    Posts
    503
    What functionality do you require, because AFAIK in .NET modal dialogs are just Forms that you make visible by calling Form.ShowDialog(parent) where parent is the form below the modal dialog?

    ac

  5. #5
    Senior Member
    Join Date
    Dec 2001
    Posts
    319
    What functionality is missing? Dialogs inherit the properties of System.Windows.Forms.Form, so they should have all the functionality of a regular form.

Similar Threads

  1. VB .net question
    By TTAYO in forum General Programming Questions
    Replies: 2
    Last Post: December 5th, 2005, 11:01 AM
  2. Programming in C#
    By Mankan in forum Other Tutorials Forum
    Replies: 8
    Last Post: July 23rd, 2002, 03:43 PM
  3. Microsoft .NET
    By Negative in forum Other Tutorials Forum
    Replies: 13
    Last Post: July 11th, 2002, 11:03 PM
  4. VB Multiple Form Passing ?
    By July in forum Programming Security
    Replies: 9
    Last Post: June 29th, 2002, 07:05 AM
  5. VB is good for.......
    By V3RIZON in forum Programming Security
    Replies: 12
    Last Post: March 16th, 2002, 08:01 PM

Posting Permissions

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