3rd Part software!
- Hi, i have a third party software and i would like it to lunch when someone runs my program (and no its not a virus). But the thing is when you run it; it shows up in the system tray, how can i set the program to invisible and close it when it my app closes? Thanks!
Answers
- just checking..
i knew i should not expect something like that from you, especially from viewing/helping out w/your past threads, but it was worth asking.
-----
here is something to get you started, see if it helps.
Dim myexe As Process = Process.Start("notepad") Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click myexe.Kill() End Sub
•.˙trujade˙.•- Marked As Answer byMartin Xie - MSFTMSFT, ModeratorFriday, November 06, 2009 8:16 AM
- This will start it and hide it, but what then?
Dim P As Process = Process.GetProcessById(Shell("Notepad.exe", AppWinStyle.Hide))- Marked As Answer byMartin Xie - MSFTMSFT, ModeratorFriday, November 06, 2009 8:15 AM
All Replies
- keylogger, malware ,etc.?
why would you run something on a users p.c. without their notice and approval?
if they approve, they would not mind it showing in the system tray.
•.˙trujade˙.• - Trujade isn't stuff like that. Its an extension to my program; a spell checker.
- just checking..
i knew i should not expect something like that from you, especially from viewing/helping out w/your past threads, but it was worth asking.
-----
here is something to get you started, see if it helps.
Dim myexe As Process = Process.Start("notepad") Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click myexe.Kill() End Sub
•.˙trujade˙.•- Marked As Answer byMartin Xie - MSFTMSFT, ModeratorFriday, November 06, 2009 8:16 AM
- Hey trujade that worked! But how do i set the program to invisible, if you want to try it its called TinySpell, and no, i would NEVER make/do something like that. Thanks for all your help!
- Unproposed As Answer byMartin Xie - MSFTMSFT, ModeratorFriday, November 06, 2009 8:16 AM
- Proposed As Answer byShariqDON Tuesday, November 03, 2009 8:42 PM
- You can do like this as well assuming that your spell checker is a console app .
Dim Spelling As New Process Private Sub Form1_Load( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles MyBase.Load Dim SpellInfo As New ProcessStartInfo With SpellInfo .FileName = "MySpell.exe" .RedirectStandardInput = True .RedirectStandardOutput = True .RedirectStandardError = True .UseShellExecute = False .CreateNoWindow = True End With Spelling.StartInfo = SpellInfo Spelling.Start() End Sub
To write to the spellchecker you use
Spelling.StandardInput.Write("Some Text") Spelling.StandardInput.WriteLine("A line")
and read the output in a simular way
coding for fun Be a good forum member mark posts that contain the answers to your questions or those that are helpful
Please format the code in your posts with the
button . Makes it easier to read . Hey trujade that worked! But how do i set the program to invisible, if you want to try it its called TinySpell, and no, i would NEVER make/do something like that. Thanks for all your help!
Sorry For Proposed As Answer :
Try this:
Dim RunningProcess As System.Diagnostics.Process = Process.GetProcessesByName("notepad.exe")(0) RunningProcess.Kill()
www.shariqdon.media.officelive.com- ccro5 , i tried out tinyspell. nice little app, too many beeps..
by using it, i noticed that all my windows apps were affected.. this could get annoying, did for me, really quick, so, i uninstalled the app even quicker.
another thing, tinyspell is freeware, somewhat, although if you plan to distribute your app, freeware or not, contact the designer(s) of tinyspell and ask for permission to do so, etc. i did for icons on my freeware apps, and i got the permission to add a link to my website..
always support the little guys, as having your splash screen display a little note somewhere, stating ( powered by tinyspell ).
otherwise, unless you get permission from the tinyspell designer(s), to hide the icon in the system tray, i am done w/this thread.
•.' trujade '.• - trujade i did plan on getting their permission but i was trying to hide the icon to get it out of the way, not to claim the app as mine. Do you have any idea if i could fix it for my app, and my app only or would i have to ask the developers for it?
- ccro5 , personally, i would not be the one to edit anyone else's published app, so my help w/doing so, none there. ;o/
would not know where to begin..
good luck.
about asking the developer(s), what a great idea..
just evaluate your presentation a little.
if they look like this guy -->
you should be in good hands..
•.' trujade '.• - Hmm... if i cannot make it invisible im sure my users will not mind having it open while my app is running. Since they will more than likely be focused on my app anyways, and if not they can simply ignore it or even close Tiny-Spell.
- Edited byccr05 Thursday, November 05, 2009 2:57 AMEmail needed to be removed.
- This will start it and hide it, but what then?
Dim P As Process = Process.GetProcessById(Shell("Notepad.exe", AppWinStyle.Hide))- Marked As Answer byMartin Xie - MSFTMSFT, ModeratorFriday, November 06, 2009 8:15 AM
- That is it, thank you! I shall try that.


