Results 1 to 6 of 6

Thread: Hide/Show an application launched by a Process

  1. #1
    ico
    Guest

    Hide/Show an application launched by a Process

    Hi there !

    Where I want to go today ;-) :
    I want to create a ".exe" in order to launch an external application (my mail client). When I fire my ".exe", I want to hide the mail client and put a NotifyIcon in the tray icon bar. I execute the mail application by calling a Process object in my ".exe"

    My problems :

    - how can I hide the application launched by the Process ?
    - how can I show (e.g after a click on the NotifyIcon object) the application again ?

    Hope it is clear ...
    Thank you in advance !!!


    ++
    ico.

  2. #2
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Hey there! I'm not going anywhere today
    UMM!!!!!! well, I'm not sure if this is what you are looking for, because it sounds like a little simple, so you might be asking for something else. But I think you can just do what you asked by changing the .Visible property. Something like this:

    VB Code:
    1. Private Sub GotoTray()
    2.         Dim mIcon As New System.Drawing.Icon("c:\a.ico")
    3.         NotifyIcon.Icon = mIcon
    4.         NotifyIcon.Visible = True
    5.         Me.Visible = False
    6.     End Sub

    that worked for me

    Sorry to mess up with your first post
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  3. #3
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    hmmm!!!
    I'm honestly not an expert, so...
    What is that ? is it a console application or it's just running an exe file? I can't really tell
    also have you seen the C# section in the forum? (just incase you havent seen it )
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  4. #4
    ico
    Guest
    Euuuuh (as we say it in French) ... in fact it looks like a mix of the two :P

    That's the only solution I saw till now; but if you have a better idea to reach my aim, event if it is in VB , go ahead !!!


    ++
    ico

  5. #5
    New Member
    Join Date
    May 2002
    Location
    Chennai
    Posts
    5
    Hi
    I found an interesting code sample to place a notepad application on the system tray.
    Pl have a look at it:

    http://www.mastercsharp.com/article....=23&&TopicID=8

    With due credit to the author : Saurab Nandhu.

    Regards,

    Kalyan

  6. #6
    Tygur
    Guest
    I can make something like that in VB.NET, but it will have to use API functions. Is that okay?

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