Click here to Skip to main content
15,921,452 members
Home / Discussions / Windows Forms
   

Windows Forms

 
QuestionAdd new property to Standard controls Pin
Ralph_ai2x5-May-08 15:55
Ralph_ai2x5-May-08 15:55 
AnswerRe: Add new property to Standard controls Pin
Christian Graus5-May-08 17:52
protectorChristian Graus5-May-08 17:52 
AnswerRe: Add new property to Standard controls Pin
Thomas Stockwell6-May-08 8:18
professionalThomas Stockwell6-May-08 8:18 
AnswerRe: Add new property to Standard controls Pin
buchstaben8-May-08 5:23
buchstaben8-May-08 5:23 
QuestionUsing a custom string to cacls Pin
Johan134-May-08 22:55
Johan134-May-08 22:55 
AnswerRe: Using a custom string to cacls Pin
Dave Kreskowiak6-May-08 8:54
mveDave Kreskowiak6-May-08 8:54 
AnswerRe: Using a custom string to cacls Pin
Johan137-May-08 21:11
Johan137-May-08 21:11 
QuestionRe: Using a custom string to cacls Pin
Johan138-May-08 21:53
Johan138-May-08 21:53 
How can I create a directory oon the current logged on user's desktop?
I have tried this with non luck!:
String^ FolderPath = "C:\\Documents and Settings\\%USERNAME%\\Desktop\\" + txtFolderName->Text; <br />
Directory::CreateDirectory(FolderPath);

And this:
String^ FolderPath = "C:\\Documents and Settings\ + Environment::UserName + \\Desktop\\" + txtFolderName->;Text;<br />
Directory::CreateDirectory(FolderPath);


Then I want to set deny permissions with .NET on that current logged on user directory I created above.
What namespaces is required for the .NET way? If possible!

Well this does'nt work:
String^ customString = "/c echo y| cacls \"%HOMEDRIVE%\\Documents and Settings\\%USERNAME%\\Desktop\\" + lblFolderName->Text + "\" /D Everyone";<br />
Process::Start("cmd.exe",customString);

And this also:
String^ customString = "/c echo y| cacls \"%HOMEDRIVE%\\Documents and Settings\\" + Environment::UserName + "\\Desktop\\" + lblFolderName->Text + "\" /D Everyone";<br />
Process::Start("cmd.exe",customString);

Confused | :confused:
Much Thanx. Smile | :)
AnswerRe: Using a custom string to cacls Pin
Dave Kreskowiak9-May-08 1:37
mveDave Kreskowiak9-May-08 1:37 
GeneralRe: Using a custom string to cacls Pin
Johan1312-May-08 0:05
Johan1312-May-08 0:05 
GeneralRe: Using a custom string to cacls Pin
Johan1312-May-08 0:10
Johan1312-May-08 0:10 
QuestionRe: Using a custom string to cacls Pin
Johan137-May-08 21:10
Johan137-May-08 21:10 
QuestionDrawing Sunpath in my WinForms Pin
Member 38458153-May-08 0:05
Member 38458153-May-08 0:05 
AnswerRe: Drawing Sunpath in my WinForms Pin
Christian Graus3-May-08 1:39
protectorChristian Graus3-May-08 1:39 
QuestionDrawing Sunpath in my WinForms Pin
Member 38458153-May-08 19:30
Member 38458153-May-08 19:30 
AnswerRe: Drawing Sunpath in my WinForms Pin
Christian Graus4-May-08 11:34
protectorChristian Graus4-May-08 11:34 
QuestionTwo TextBoxs and only one can contain any text at a given time [modified] Pin
Steve Messer1-May-08 9:11
Steve Messer1-May-08 9:11 
AnswerRe: Two TextBoxs and only one can contain any text at a given time Pin
SomeGuyThatIsMe2-May-08 8:46
SomeGuyThatIsMe2-May-08 8:46 
GeneralRe: Two TextBoxs and only one can contain any text at a given time Pin
Steve Messer2-May-08 11:57
Steve Messer2-May-08 11:57 
Questioncalling event from inside another event Pin
raydona1-May-08 7:34
raydona1-May-08 7:34 
AnswerRe: calling event from inside another event Pin
Luc Pattyn1-May-08 9:45
sitebuilderLuc Pattyn1-May-08 9:45 
QuestionConvert txt to sysmbols!! Pin
s3rk430-Apr-08 23:46
s3rk430-Apr-08 23:46 
AnswerRe: Convert txt to sysmbols!! Pin
Kschuler1-May-08 3:43
Kschuler1-May-08 3:43 
GeneralRe: Convert txt to sysmbols!! [modified] Pin
s3rk41-May-08 6:52
s3rk41-May-08 6:52 
GeneralRe: Convert txt to sysmbols!! Pin
Kschuler1-May-08 7:27
Kschuler1-May-08 7:27 

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.