vb.net exe with no form-VBForums
Results 1 to 8 of 8

Thread: vb.net exe with no form

  1. #1

    Thread Starter
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    vb.net exe with no form

    I was wondering how can i get a vb.net ( i have 2005 ) to run in the background or more prefrably with a icon in the system tray?

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    88,109

    Re: vb.net exe with no form

    Create a Windows Application, add a NotifyIcon to the form, set the WindowState of the form to Minimized and ShowInTaskbar to False. When you call Show on the form all you will see is the tray icon.

    2007-2014

    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts) | WP8 Turnstile Feather Transition with Pivot Control
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Re: vb.net exe with no form

    you should be paid

    thanks

  4. #4
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    88,109

    Re: vb.net exe with no form

    Quote Originally Posted by Crash893
    you should be paid

    thanks
    Someone's got to be the first. Are you volunteering?

    2007-2014

    Why is my data not saved to my database? | MSDN Data Walkthroughs
    MSDN "How Do I?" Videos: VB | C#
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts) | WP8 Turnstile Feather Transition with Pivot Control
    Beginner Tutorials: VB | C# | SQL

  5. #5
    Frenzied Member conipto's Avatar
    Join Date
    Jun 2005
    Location
    Chicago
    Posts
    1,175

    Re: vb.net exe with no form

    Quote Originally Posted by Crash893
    you should be paid

    thanks
    Don't encourage him - Some of us have catching up to do with the green dots.

    Bill
    Hate Adobe Acrobat? My Codebank Sumbissions - Easy CodeDom Expression evaluator: (VB / C# ) -- C# Scrolling Text Display

    I Like to code when drunk. Don't say you weren't warned.

  6. #6
    "The" RedHeadedLefty
    Join Date
    Aug 2005
    Location
    College Station, TX Preferred Nickname: Gig Current Mood: Just Peachy Turnons: String Manipulation
    Posts
    4,495

    Re: vb.net exe with no form

    Put a paypal donate button in your signature, JM

  7. #7
    Hyperactive Member
    Join Date
    Sep 2005
    Location
    Alaska
    Posts
    435

    Re: vb.net exe with no form

    You dont need to Show, because if you ALT+TAB then it will appear. Its best to say Hide instead.

    Ill go ahead and take 10% of what you paid JM,

  8. #8
    Loquacious User Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    24,054

    Re: vb.net exe with no form

    Quote Originally Posted by gigemboy
    Put a paypal donate button in your signature, JM
    That would make him go pro, and then he wouldn't be able to compete at the college level.
    My usual boring signature: Nothing

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.