Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
AnswerRe: Arguments! C# Pin
Pete O'Hanlon3-Jun-09 3:59
mvePete O'Hanlon3-Jun-09 3:59 
GeneralRe: Arguments! C# Pin
Baeltazor3-Jun-09 4:04
Baeltazor3-Jun-09 4:04 
GeneralRe: Arguments! C# Pin
Nagy Vilmos3-Jun-09 4:12
professionalNagy Vilmos3-Jun-09 4:12 
GeneralRe: Arguments! C# Pin
Pete O'Hanlon3-Jun-09 4:28
mvePete O'Hanlon3-Jun-09 4:28 
GeneralRe: Arguments! C# Pin
Nagy Vilmos3-Jun-09 4:37
professionalNagy Vilmos3-Jun-09 4:37 
GeneralRe: Arguments! C# Pin
Luc Pattyn3-Jun-09 6:09
sitebuilderLuc Pattyn3-Jun-09 6:09 
GeneralRe: Arguments! C# Pin
0x3c03-Jun-09 4:18
0x3c03-Jun-09 4:18 
AnswerRe: Arguments! C# [modified] Pin
Luc Pattyn3-Jun-09 4:06
sitebuilderLuc Pattyn3-Jun-09 4:06 
Huh?
you managed to get the content of the file you're interested in, but you don't know how to get its name??

args[0] is holding the one or first file of interest if:
- you created a desktop shortcut with target myFantasticExeFile "%1"
- or you told Windows to open a specific file extension with your app

BTW: it is strange to me you have an editor form that you need to feed from the outside; it seems much more logical to me to give it a public void Load(string filename) method so setting the tab's text, and interpreting the file's content (RTF/plain text) is burried inside the editor.

[ADDED] if the problem is extracting the short file name from the entire file path, have a look at the System.IO.Path class
[/ADDED]

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.

modified on Wednesday, June 3, 2009 10:13 AM

GeneralRe: Arguments! C# Pin
Nagy Vilmos3-Jun-09 4:14
professionalNagy Vilmos3-Jun-09 4:14 
GeneralRe: Arguments! C# Pin
Luc Pattyn3-Jun-09 4:16
sitebuilderLuc Pattyn3-Jun-09 4:16 
GeneralRe: Arguments! C# Pin
Nagy Vilmos3-Jun-09 4:22
professionalNagy Vilmos3-Jun-09 4:22 
GeneralRe: Arguments! C# Pin
Baeltazor3-Jun-09 4:20
Baeltazor3-Jun-09 4:20 
GeneralRe: Arguments! C# Pin
Baeltazor3-Jun-09 4:28
Baeltazor3-Jun-09 4:28 
Questionthis.Refresh Pin
gwithey3-Jun-09 3:50
gwithey3-Jun-09 3:50 
AnswerRe: this.Refresh Pin
NickPace3-Jun-09 4:00
NickPace3-Jun-09 4:00 
GeneralRe: this.Refresh Pin
gwithey3-Jun-09 4:15
gwithey3-Jun-09 4:15 
GeneralRe: this.Refresh Pin
S. Senthil Kumar3-Jun-09 5:08
S. Senthil Kumar3-Jun-09 5:08 
QuestionAutomatically sizing a button based off data source Pin
EliottA3-Jun-09 3:46
EliottA3-Jun-09 3:46 
AnswerRe: Automatically sizing a button based off data source Pin
Henry Minute3-Jun-09 5:32
Henry Minute3-Jun-09 5:32 
GeneralRe: Automatically sizing a button based off data source Pin
EliottA3-Jun-09 5:39
EliottA3-Jun-09 5:39 
AnswerRe: Automatically sizing a button based off data source Pin
Moreno Airoldi3-Jun-09 5:40
Moreno Airoldi3-Jun-09 5:40 
GeneralRe: Automatically sizing a button based off data source Pin
EliottA3-Jun-09 5:54
EliottA3-Jun-09 5:54 
QuestionTransform non english words to a unique representation Pin
HZ_793-Jun-09 2:30
HZ_793-Jun-09 2:30 
AnswerRe: Transform non english words to a unique representation Pin
Uwe Keim3-Jun-09 2:36
sitebuilderUwe Keim3-Jun-09 2:36 
GeneralRe: Transform non english words to a unique representation Pin
HZ_793-Jun-09 2:48
HZ_793-Jun-09 2: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.