Results 1 to 11 of 11

Thread: System tray

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    66

    System tray

    I am sure this is possible, it just may not be easy, is there a way to minimize any program to the system tray?

  2. #2
    Fanatic Member
    Join Date
    May 2005
    Posts
    898

    Re: System tray

    There's a notify icon control in your toolbox, you still have to code the actual hiding of the window yourself though.

    "so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    66

    Re: System tray

    Ok, i no that but how would i hide...say outlook into the system tray.

  4. #4
    Fanatic Member
    Join Date
    May 2005
    Posts
    898

    Re: System tray

    I'm sorry I misread, I assumed you were talking about your own app.

    Can't help in this case, sorry.
    "so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    66

    Re: System tray

    It ok, lol, any body know of a way to do this?

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    66

    Re: System tray

    Maybe like processstartinfo, and hide it, then on the click of a notiyicon show it? is that possible, or is there a better way?

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

    Re: System tray

    There is a utility available called PowerMenu that adds an option to the system menu of each window to minimise it to the system tray. If it's for your own conveneinec then just use that. If you want to distribute your own app that does it then you obviously can do it, but I've no doubt that it will require the use of API functions, as anything to do with windows outside you application usually does.
    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

  8. #8

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    66

    Re: System tray

    Yea, but i was looking to do it in C#.

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

    Re: System tray

    Quote Originally Posted by {FPP}
    Yea, but i was looking to do it in C#.
    You will have to write a C# application that calls Windows API functions. There's no way you can do what you want using just the .NET Framework. Like I said, manipulating windows that do not belong to your application almost always involves the Windows API.
    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

  10. #10
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: System tray

    You could probably get a handle to the app you want to minimize and thn simply hide it completely and just put a notifyicon on the taskbar, this would then respond by re-showing the app again. Not sure how hard thi is to do but I thnk it can probably be done wihout any API.
    I don't live here any more.

  11. #11

    Thread Starter
    Lively Member
    Join Date
    Jan 2006
    Posts
    66

    Re: System tray

    Thanks guys, im sure this could be modified. To what i want. Ill look into it.

    http://www.c-sharpcorner.com/Code/2002/Nov/winghost.asp

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