Click here to Skip to main content
16,005,734 members
Home / Discussions / C#
   

C#

 
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 
I agree that this is windows shell programming. In that path is generated by args[0]. I have an application, which contains a tab control. inside the tabcontrol i am having a textbox. I am getting the string args[0] value from the program.cs file. I want to assign the string args[0] value to the textbox. How to assign that value to the textbox?
This is the program.cs file

static class Program
{
public static string pathkey;

public static string path
{
get
{
return pathkey;
}
set
{
pathkey = value;
}
}
[STAThread]
static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
Form1 objform = new Form1();
try
{
Program.pathkey= args[0].ToString ();

}
catch (Exception ex)
{
}

Form1.cs
*********
In my form1 load, i am assigning the value to the textbox

txtLocation.Text = Program.pathkey.ToString();

But i am not able to get the value?

In registry i have the entry as C:\Documents and Settings\venkadeshp\My Documents\Visual Studio 2005\Projects\HCI_DMS ConsoleApplication\bin\Debug\HCI_DMS ConsoleApplication.exe %1 . But i couldnt find the file path in the string args[0] in the program.cs main function?


Thanks & Regards,
Venkat
GeneralRe: getting File path?? Pin
Nader Elshehabi3-Jan-07 22:35
Nader Elshehabi3-Jan-07 22:35 
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 

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.