Click here to Skip to main content
15,914,165 members
Home / Discussions / C#
   

C#

 
AnswerRe: Displaying + (Plus) sign to node without adding child node Pin
User 66583-Jan-07 0:45
User 66583-Jan-07 0:45 
AnswerRe: Displaying + (Plus) sign to node without adding child node [modified] Pin
Nader Elshehabi3-Jan-07 0:50
Nader Elshehabi3-Jan-07 0:50 
GeneralRe: Displaying + (Plus) sign to node without adding child node Pin
s v joshi3-Jan-07 1:41
s v joshi3-Jan-07 1:41 
GeneralRe: Displaying + (Plus) sign to node without adding child node Pin
Nader Elshehabi3-Jan-07 2:01
Nader Elshehabi3-Jan-07 2:01 
GeneralRe: Displaying + (Plus) sign to node without adding child node Pin
PIEBALDconsult3-Jan-07 3:42
mvePIEBALDconsult3-Jan-07 3:42 
QuestionHow to make a chart in C# Pin
phantanagu3-Jan-07 0:26
phantanagu3-Jan-07 0:26 
AnswerRe: How to make a chart in C# Pin
User 66583-Jan-07 0:29
User 66583-Jan-07 0:29 
AnswerRe: How to make a chart in C# Pin
Luc Pattyn3-Jan-07 5:03
sitebuilderLuc Pattyn3-Jan-07 5:03 
QuestionError Message Pin
morteza573-Jan-07 0:03
morteza573-Jan-07 0:03 
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 

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.