Click here to Skip to main content
15,900,725 members
Home / Discussions / C#
   

C#

 
AnswerRe: Error Message Pin
User 66583-Jan-07 0:16
User 66583-Jan-07 0:16 
GeneralRe: Error Message Pin
morteza573-Jan-07 1:21
morteza573-Jan-07 1:21 
Questiongetting File path?? Pin
Venkatesh.P2-Jan-07 22:28
Venkatesh.P2-Jan-07 22:28 
AnswerRe: getting File path?? Pin
Bhupi Bhai2-Jan-07 22:39
Bhupi Bhai2-Jan-07 22:39 
GeneralRe: getting File path?? [modified] Pin
Venkatesh.P2-Jan-07 23:06
Venkatesh.P2-Jan-07 23:06 
AnswerRe: getting File path?? Pin
Nader Elshehabi3-Jan-07 1:13
Nader Elshehabi3-Jan-07 1:13 
GeneralRe: getting File path?? Pin
Venkatesh.P3-Jan-07 21:50
Venkatesh.P3-Jan-07 21:50 
GeneralRe: getting File path?? Pin
Nader Elshehabi3-Jan-07 22:35
Nader Elshehabi3-Jan-07 22:35 
Venkatesh.P wrote:
How to assign that value to the textbox?

Simple. In your Main method
 [STAThread]
static void Main(string[] args)
{
    Application.EnableVisualStyles();
    Application.SetCompatibleTextRenderingDefault(false);
    Application.Run(new Form1(args[0]));
}

and in Modify your form constructor to this
Form1(string thePath)
{
    MyFileName = thePath;
    //more code
}


PS.
The first argument would be the path to your exe file BTW, and the second argument is the "%1" command which is used to instruct the program to open the file -not print it for example-. The Thrid argument -i.e. args[2]- I bilieve is what you are looking for. Try to show them one by one in MessageBoxs ro see the value of each before deciding which to pass to the Form's constructor.

RegardsRose | [Rose]

QuestionProblem with reading INI Files, and a listview question. Pin
HydroIT2-Jan-07 22:14
HydroIT2-Jan-07 22:14 
AnswerRe: Problem with reading INI Files, and a listview question. Pin
CPallini2-Jan-07 23:13
mveCPallini2-Jan-07 23:13 
GeneralRe: Problem with reading INI Files, and a listview question. Pin
HydroIT3-Jan-07 0:20
HydroIT3-Jan-07 0:20 
GeneralRe: Problem with reading INI Files, and a listview question. Pin
CPallini3-Jan-07 0:38
mveCPallini3-Jan-07 0:38 
GeneralRe: Problem with reading INI Files, and a listview question. Pin
HydroIT3-Jan-07 0:41
HydroIT3-Jan-07 0:41 
GeneralRe: Problem with reading INI Files, and a listview question. Pin
Stefan Troschuetz3-Jan-07 2:16
Stefan Troschuetz3-Jan-07 2:16 
GeneralRe: Problem with reading INI Files, and a listview question. Pin
CPallini3-Jan-07 2:38
mveCPallini3-Jan-07 2:38 
AnswerRe: Problem with reading INI Files, and a listview question. Pin
PIEBALDconsult3-Jan-07 3:53
mvePIEBALDconsult3-Jan-07 3:53 
GeneralRe: Problem with reading INI Files, and a listview question. Pin
HydroIT3-Jan-07 7:16
HydroIT3-Jan-07 7:16 
QuestionAccess My Outlook Express From my application??? Pin
ravichandratbv2-Jan-07 21:55
ravichandratbv2-Jan-07 21:55 
AnswerRe: Access My Outlook Express From my application??? Pin
Mircea Puiu2-Jan-07 22:08
Mircea Puiu2-Jan-07 22:08 
GeneralRe: Access My Outlook Express From my application??? Pin
ravichandratbv2-Jan-07 22:47
ravichandratbv2-Jan-07 22:47 
GeneralRe: Access My Outlook Express From my application??? Pin
Mircea Puiu2-Jan-07 23:35
Mircea Puiu2-Jan-07 23:35 
AnswerRe: Access My Outlook Express From my application??? Pin
Smon the Vidd3-Jan-07 1:28
Smon the Vidd3-Jan-07 1:28 
QuestionCode Tidy-up tools? Pin
Jon Hulatt2-Jan-07 21:51
Jon Hulatt2-Jan-07 21:51 
AnswerRe: Code Tidy-up tools? Pin
Bhupi Bhai3-Jan-07 1:13
Bhupi Bhai3-Jan-07 1:13 
AnswerRe: Code Tidy-up tools? Pin
PIEBALDconsult3-Jan-07 6:48
mvePIEBALDconsult3-Jan-07 6: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.