dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Minimize form to system tray

  1. #1
    Join Date
    Jan 2010
    Posts
    14

    Minimize form to system tray

    How would I make a form minimize to system tray, then be able to double click the icon to reopen the form, when the normal minimize button on the form is pressed?
    Also, is it possible to take the scrollbars off of a webbrowser if you don't want/need them there?

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,268

    Re: Minimize form to system tray

    Two seperate questions. Each belonging in its own thread.

    For your first question, use the NotifyIcon :

    http://www.google.co.uk/search?hl=en...meta=&aq=f&oq=
    [SIGPIC][/SIGPIC]
    All my Articles
    Hannes

  3. #3
    Join Date
    Jun 2001
    Location
    Melbourne/Aus (C# .Net 4.0)
    Posts
    686

    Re: Minimize form to system tray

    If you are talking about the WebBrowser Control, there is a property ScrollBarsEnabled which can be set to 'false'.

    Also, from memory I think I did this once... If you are only using the WebBrowser control to display HTML and do not want the User to interact with it, I 'think' you can put an 'almost transparent' Panel over the top of it and capture the Panel_Mouse(...) messages.

    Just tried that but it did not work, but I'm sure I did something like that way back...
    Last edited by rliq; February 14th, 2010 at 11:30 PM.
    Rob
    -
    Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)