How to make a you-change-it in C#

Post here about scripting and programming for HaloPC (audio, network, ai, etc.)
Post Reply
User avatar
plushiefire





Posts: 618
Joined: Thu Nov 23, 2006 12:10 pm
Location: Canada

How to make a you-change-it in C#

Post by plushiefire »

Ok, I wan't to make an app, and one of its features will be a selection in a menu strip that will let you put a link to an app on your computer, and save that link, so when you click on the option, your saved link will open...

Simplify 8)
-Click option
-Navigate to the "YOUR APP HERE" button
-Click it to put you app here
-Open file dialog pops up
-Find your app
-It gets saved to the button

Language is C#

Thanks guys
Come check out Team 3volved.
Image
User avatar
grimdoomer




System Engineer

Posts: 1440
Joined: Mon Oct 09, 2006 4:36 pm

Post by grimdoomer »

use this,

Code: Select all

Process.Start("location in string here");
Image
AI Zones in MP | Ambiance | Gravemind Beta v1.1
Aumaan Anubis wrote:Grimdoomer. The first person ever to mod Halo 2 Vista.
Jdogg





Posts: 184
Joined: Thu Aug 31, 2006 3:18 pm

Post by Jdogg »

lol
OwnZ joO




Articulatist 500

Posts: 980
Joined: Thu Nov 10, 2005 4:24 pm

Post by OwnZ joO »

Grim did you even read what he asked??
User avatar
grimdoomer




System Engineer

Posts: 1440
Joined: Mon Oct 09, 2006 4:36 pm

Post by grimdoomer »

Ohh wow, I saw the Open your app here, I feel stupid now. So im guessing you want to save the path of the application you open? Use a stream reader and save it to a text file.
Image
AI Zones in MP | Ambiance | Gravemind Beta v1.1
Aumaan Anubis wrote:Grimdoomer. The first person ever to mod Halo 2 Vista.
-DeToX-




Illusionist Recreator Connoisseur Acolyte
Sigma Decryptor Droplet Pyre
Blacksmith Socialist New Age System Engineer
ONI

Posts: 4589
Joined: Sun Jun 18, 2006 3:58 pm
Location: ...

Post by -DeToX- »

No, use a Stream Writer. ;)
Image
User avatar
grimdoomer




System Engineer

Posts: 1440
Joined: Mon Oct 09, 2006 4:36 pm

Post by grimdoomer »

-DeToX- wrote:No, use a Stream Writer. ;)
It was 6AM but I got sleep now :D
Image
AI Zones in MP | Ambiance | Gravemind Beta v1.1
Aumaan Anubis wrote:Grimdoomer. The first person ever to mod Halo 2 Vista.
Patrickssj6




Pi Collaborator

Posts: 5426
Joined: Sat Jul 24, 2004 12:12 pm
Location: I'm a Paranoid
Contact:

Post by Patrickssj6 »

Just use embedded settings for this...look up a tut for that. The string will be saved inside the exe itself...no need for a crappy external txt file.
...left for good
Post Reply