Click here to Skip to main content
15,897,891 members
Home / Discussions / C#
   

C#

 
GeneralFolderBrowser crashes with long paths Pin
Lasome4-Aug-04 5:47
Lasome4-Aug-04 5:47 
GeneralRe: FolderBrowser crashes with long paths Pin
Heath Stewart4-Aug-04 5:54
protectorHeath Stewart4-Aug-04 5:54 
GeneralRe: FolderBrowser crashes with long paths Pin
Lasome4-Aug-04 5:59
Lasome4-Aug-04 5:59 
GeneralRe: FolderBrowser crashes with long paths Pin
Nick Parker4-Aug-04 6:10
protectorNick Parker4-Aug-04 6:10 
GeneralRe: FolderBrowser crashes with long paths Pin
Heath Stewart4-Aug-04 7:01
protectorHeath Stewart4-Aug-04 7:01 
Generalrun time properties in icon Pin
aberger564-Aug-04 5:33
aberger564-Aug-04 5:33 
GeneralRe: run time properties in icon Pin
Heath Stewart4-Aug-04 5:49
protectorHeath Stewart4-Aug-04 5:49 
GeneralRe: run time properties in icon Pin
Nick Parker4-Aug-04 5:55
protectorNick Parker4-Aug-04 5:55 
aberger56 wrote:
So the question is, is there a way to have the properties under the desktop icon be something like "myprogram.exe test.ini" or "myprogram.exe live.ini"

In short, yes, your application can take arguments which is why you can write Main as such. I would suggest you look at other options such as extracting the path from a config file.

public static void Main(string[] args)
{
   string path = args[0];
   if(path != null)
   {
   //... continue on.
   }
}


- Nick Parker
My Blog | My Articles

GeneralRe: run time properties in icon Pin
aberger564-Aug-04 6:13
aberger564-Aug-04 6:13 
QuestionC# Socket Problem??? Pin
Korjiro4-Aug-04 5:31
Korjiro4-Aug-04 5:31 
AnswerRe: C# Socket Problem??? Pin
Heath Stewart4-Aug-04 5:52
protectorHeath Stewart4-Aug-04 5:52 
GeneralThumbnail Speed Increase Pin
Gambit_Sunob4-Aug-04 4:27
Gambit_Sunob4-Aug-04 4:27 
GeneralRe: Thumbnail Speed Increase Pin
Nigel Savidge4-Aug-04 5:00
Nigel Savidge4-Aug-04 5:00 
GeneralRe: Thumbnail Speed Increase Pin
Gambit_Sunob4-Aug-04 5:18
Gambit_Sunob4-Aug-04 5:18 
GeneralRe: Thumbnail Speed Increase Pin
Nigel Savidge4-Aug-04 6:16
Nigel Savidge4-Aug-04 6:16 
GeneralRe: Thumbnail Speed Increase Pin
Nick Parker4-Aug-04 5:36
protectorNick Parker4-Aug-04 5:36 
GeneralWeb app not calling Application_End Pin
IrishSonic4-Aug-04 3:46
IrishSonic4-Aug-04 3:46 
GeneralRe: Web app not calling Application_End Pin
leppie4-Aug-04 4:05
leppie4-Aug-04 4:05 
GeneralRe: Web app not calling Application_End Pin
Heath Stewart4-Aug-04 5:20
protectorHeath Stewart4-Aug-04 5:20 
GeneralToday screen component Pin
memsharp4-Aug-04 2:10
memsharp4-Aug-04 2:10 
GeneralRe: Today screen component Pin
Nick Parker4-Aug-04 4:19
protectorNick Parker4-Aug-04 4:19 
GeneralRe: Today screen component Pin
Heath Stewart4-Aug-04 5:12
protectorHeath Stewart4-Aug-04 5:12 
GeneralRe: Today screen component Pin
Nick Parker4-Aug-04 5:42
protectorNick Parker4-Aug-04 5:42 
GeneralRe: Today screen component Pin
Heath Stewart4-Aug-04 5:14
protectorHeath Stewart4-Aug-04 5:14 
GeneralRe: Today screen component Pin
memsharp7-Aug-04 21:48
memsharp7-Aug-04 21:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.