|
-
May 19th, 2002, 06:44 AM
#1
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.
-
May 19th, 2002, 10:34 AM
#2
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:
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
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!!
-
May 19th, 2002, 03:03 PM
#3
-
May 19th, 2002, 04:18 PM
#4
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
-
May 22nd, 2002, 05:40 AM
#5
New Member
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
-
May 22nd, 2002, 12:44 PM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|