Click here to Skip to main content
15,887,676 members
Home / Discussions / C#
   

C#

 
AnswerRe: Sharing a lesson... Pin
Robert.C.Cartaino7-Sep-08 4:28
Robert.C.Cartaino7-Sep-08 4:28 
QuestionApplicationDeployment & HttpUtility Pin
AtulRane6-Sep-08 20:42
AtulRane6-Sep-08 20:42 
AnswerRe: ApplicationDeployment & HttpUtility Pin
Wendelius7-Sep-08 3:50
mentorWendelius7-Sep-08 3:50 
QuestionCreating custom controls Pin
Dewald6-Sep-08 20:24
Dewald6-Sep-08 20:24 
AnswerRe: Creating custom controls Pin
DaveyM696-Sep-08 23:46
professionalDaveyM696-Sep-08 23:46 
Questionerror: Exception has been thrown by the target of an invocation Pin
mehrnoosh6-Sep-08 19:15
mehrnoosh6-Sep-08 19:15 
AnswerRe: error: Exception has been thrown by the target of an invocation Pin
mehrnoosh8-Sep-08 20:22
mehrnoosh8-Sep-08 20:22 
QuestionHow can I get full path for a directory or file which I clicked on desktop or sth else in startup my application?? Pin
ersingenel6-Sep-08 14:56
ersingenel6-Sep-08 14:56 
Hi all!!
I have a problem about my project. I want to add tag to files or directories and I have a problem about program start up.

in these code I can get full path but there is some problem about directories name.

For example:
C:\Documents and Settings\*****\Desktop\ListViewExample for this there is no problem
but
C:\Documents and Settings\*****\Desktop\List View Example but if a directory or file name have a space there is a problem occures like that :
C:\Documents and Settings\*****\Desktop\List\View\Example

I could not find a solution with for each too. How can I solve this problem? Thank you very much.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;

namespace ARC
{
static class Program
{

[STAThread]
static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
if (args != null)
{
string FilePth = "";
for (int i = 0; i < args.Length; i++)
{
FilePth += args[i]+@"\\";

}
MessageBox.Show(FilePth);
if (FilePth != "")
{
parameter.FilePath = FilePth;
Application.Run(new Form1());
}
}
else
{

}

}
}
}
AnswerRe: How can I get full path for a directory or file which I clicked on desktop or sth else in startup my application?? Pin
Ashfield7-Sep-08 8:46
Ashfield7-Sep-08 8:46 
Questiondynamic loaded ascx delegate event not firing in the parent form Pin
cmello6-Sep-08 14:11
cmello6-Sep-08 14:11 
QuestionRandom method Pin
MorganSim6-Sep-08 13:10
MorganSim6-Sep-08 13:10 
AnswerRe: Random method Pin
Blue_Boy6-Sep-08 13:44
Blue_Boy6-Sep-08 13:44 
QuestionRe: Random method Pin
MorganSim6-Sep-08 23:04
MorganSim6-Sep-08 23:04 
RantRe: Random method Pin
Guffa6-Sep-08 23:21
Guffa6-Sep-08 23:21 
AnswerRe: Random method Pin
Guffa6-Sep-08 22:56
Guffa6-Sep-08 22:56 
QuestionRe: Random method Pin
MorganSim6-Sep-08 23:19
MorganSim6-Sep-08 23:19 
AnswerRe: Random method Pin
Guffa6-Sep-08 23:38
Guffa6-Sep-08 23:38 
QuestionRe: Random method Pin
MorganSim7-Sep-08 0:08
MorganSim7-Sep-08 0:08 
AnswerRe: Random method Pin
Guffa7-Sep-08 0:28
Guffa7-Sep-08 0:28 
GeneralAm I welcome! Pin
MorganSim6-Sep-08 12:55
MorganSim6-Sep-08 12:55 
GeneralRe: Am I welcome! Pin
Blue_Boy6-Sep-08 13:02
Blue_Boy6-Sep-08 13:02 
General[Message Deleted] Pin
MorganSim6-Sep-08 13:21
MorganSim6-Sep-08 13:21 
GeneralRe: Am I welcome! Pin
Blue_Boy6-Sep-08 13:41
Blue_Boy6-Sep-08 13:41 
GeneralRe: Am I welcome! Pin
MorganSim6-Sep-08 22:41
MorganSim6-Sep-08 22:41 
GeneralRe: Am I welcome! Pin
Blue_Boy6-Sep-08 22:46
Blue_Boy6-Sep-08 22:46 

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.