Click to See Complete Forum and Search --> : Hide/Show an application launched by a Process
ico
May 19th, 2002, 06:44 AM
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.
MrPolite
May 19th, 2002, 10:34 AM
Hey there! I'm not going anywhere today :D
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:
Private Sub GotoTray()
Dim mIcon As New System.Drawing.Icon("c:\a.ico")
NotifyIcon.Icon = mIcon
NotifyIcon.Visible = True
Me.Visible = False
End Sub
that worked for me
Sorry to mess up with your first post:p
MrPolite
May 19th, 2002, 03:03 PM
hmmm!!!:D
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:confused:
also have you seen the C# section in the forum? (just incase you havent seen it:) )
ico
May 19th, 2002, 04:18 PM
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 :D, go ahead !!!
++
ico
vkraman
May 22nd, 2002, 05:40 AM
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.aspx?ArticleID=23&&TopicID=8
With due credit to the author : Saurab Nandhu.
Regards,
Kalyan :)
Tygur
May 22nd, 2002, 12:44 PM
I can make something like that in VB.NET, but it will have to use API functions. Is that okay?
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.