Results 1 to 8 of 8

Thread: [2008] On top help..

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    242

    Exclamation [2008] On top help..

    Can some one help me how can i make automatically my Application be on top of other software...?
    < advertising link removed by moderator >

  2. #2
    Lively Member
    Join Date
    Jan 2007
    Posts
    96

    Re: [2008] On top help..

    set your main forms topmost property to true.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    242

    Re: [2008] On top help..

    thanks mate...
    < advertising link removed by moderator >

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Mar 2006
    Posts
    242

    Re: [2008] On top help..

    can some one assist me how to make when user checks the check box the windows be on top when user unchecks it the windows not be on top ...?!

    can some one help me on this..?!
    < advertising link removed by moderator >

  5. #5
    Lively Member
    Join Date
    Jan 2007
    Posts
    96

    Re: [2008] On top help..

    in the checkbox just put

    me.topmost = not me.topmost

  6. #6
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: [2008] On top help..

    Quote Originally Posted by youthbytes
    in the checkbox just put

    me.topmost = not me.topmost
    That's not really the most appropriate way to do it. That would work as long as you had the TopMost property set to the correct value in the first place but if you didn't then it would actually do the opposite of what you wanted. The most appropriate way is like this:
    vb.net Code:
    1. Me.TopMost = Me.CheckBox1.Checked
    They both start out as False by default so that will always work.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  7. #7
    Lively Member
    Join Date
    Jan 2007
    Posts
    96

    Re: [2008] On top help..

    why wouldn't they set it before hand in the loading of the settings or if there are no settings, in the properties of the project before they build it?

    i get your point, i just wouldn't ever have that problem.

  8. #8
    Addicted Member Dark Anima's Avatar
    Join Date
    Sep 2008
    Posts
    183

    Re: [2008] On top help..

    Code:
    Private sub checkdchanged handles CheckBox1.Checkedchanged
          Me.Topmost = Me.CheckBox1.Checked
    End sub
    Last edited by Dark Anima; Oct 10th, 2008 at 12:50 AM.

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