Click here to Skip to main content
11,494,851 members (38,278 online)
   

C#

 
GeneralRe: Full path name of .cs file Pin
PIEBALDconsult20-Nov-12 19:06
memberPIEBALDconsult20-Nov-12 19:06 
GeneralRe: Full path name of .cs file Pin
TheGermoz20-Nov-12 19:12
memberTheGermoz20-Nov-12 19:12 
GeneralRe: Full path name of .cs file Pin
Richard MacCutchan20-Nov-12 22:34
mvpRichard MacCutchan20-Nov-12 22:34 
GeneralRe: Full path name of .cs file Pin
Pete O'Hanlon20-Nov-12 23:10
protectorPete O'Hanlon20-Nov-12 23:10 
GeneralRe: Full path name of .cs file Pin
PIEBALDconsult21-Nov-12 4:13
memberPIEBALDconsult21-Nov-12 4:13 
QuestionHow to create a connection bar for application in wpf mvvm pattern Pin
vinothezhilan m20-Nov-12 5:47
membervinothezhilan m20-Nov-12 5:47 
Questioniwant to export dataset ot mpp project to mppproject Pin
ksbaboo20-Nov-12 5:25
memberksbaboo20-Nov-12 5:25 
QuestionPossible to print definition of Func<> Pin
ezazazel20-Nov-12 5:00
memberezazazel20-Nov-12 5:00 
AnswerRe: Possible to print definition of Func<> Pin
Simon_Whale20-Nov-12 5:14
memberSimon_Whale20-Nov-12 5:14 
GeneralRe: Possible to print definition of Func<> Pin
ezazazel20-Nov-12 22:43
memberezazazel20-Nov-12 22:43 
Questionhow can i get exception from virtual machine Pin
belea1720-Nov-12 2:38
memberbelea1720-Nov-12 2:38 
AnswerRe: how can i get exception from virtual machine Pin
deflinek20-Nov-12 4:13
memberdeflinek20-Nov-12 4:13 
AnswerRe: how can i get exception from virtual machine Pin
Pete O'Hanlon20-Nov-12 4:17
protectorPete O'Hanlon20-Nov-12 4:17 
QuestionCorrect use of Secure String Pin
MacUseless19-Nov-12 22:09
memberMacUseless19-Nov-12 22:09 
Hi Newbie here,

I've starting using C# a while ago and started a nice project to help my company maintiance PC profiles.
This application i'm writing connects to AD and retrieves a users email and with the push of a button changes a users profile to .old so he can login agian with a fresh windows profile.
I want to protect the communication with AD and the application by puttin the password in a secure string.
And i was looking for some feedback if i have done this correctly.
The follwing code bit shows the secure string and Authenticate a bit of the Authenticate process.

Any suggestions or critisism is welcome.

Thanks in advance.
        private void btnLogIn_Click(object sender, EventArgs e)
        {
                // Beveiligd?
                string PwProtect = txtPassword.Text;
                char[] PasswordChars = PwProtect.ToCharArray();
                SecureString Password = new SecureString();
                foreach (char c in PasswordChars)
                Password.AppendChar(c);
 
            if (Authenticate(txtLogIn.Text, txtPassword.Text))
            { 
                gbxProfiel.Show();
                txtPassword.Clear();
                return;
            }

AnswerRe: Correct use of Secure String Pin
Simon_Whale19-Nov-12 23:08
memberSimon_Whale19-Nov-12 23:08 
GeneralRe: Correct use of Secure String Pin
MacUseless20-Nov-12 21:42
memberMacUseless20-Nov-12 21:42 
QuestionHow to Modifying app.config During Installation Pin
sathish1719-Nov-12 21:35
membersathish1719-Nov-12 21:35 
SuggestionRe: How to Modifying app.config During Installation Pin
n.podbielski20-Nov-12 3:05
membern.podbielski20-Nov-12 3:05 
AnswerRe: How to Modifying app.config During Installation Pin
BobJanova20-Nov-12 6:12
memberBobJanova20-Nov-12 6:12 
AnswerRe: How to Modifying app.config During Installation Pin
jschell20-Nov-12 13:25
memberjschell20-Nov-12 13:25 
AnswerRe: How to Modifying app.config During Installation Pin
Jay Nardev20-Nov-12 22:50
groupJay Nardev20-Nov-12 22:50 
QuestionHOW TO SOLVE CRYSTAL REPORT "Load Report Failed" Pin
MAHAMADLATIF HASAN SANADI19-Nov-12 19:59
memberMAHAMADLATIF HASAN SANADI19-Nov-12 19:59 
AnswerRe: HOW TO SOLVE CRYSTAL REPORT "Load Report Failed" Pin
OriginalGriff19-Nov-12 21:45
mvpOriginalGriff19-Nov-12 21:45 
QuestionHOW TO CREATE RDLC REPORT IN C# USING SQL 2005 Pin
MAHAMADLATIF HASAN SANADI19-Nov-12 19:35
memberMAHAMADLATIF HASAN SANADI19-Nov-12 19:35 
AnswerRe: HOW TO CREATE RDLC REPORT IN C# USING SQL 2005 Pin
OriginalGriff19-Nov-12 21:45
mvpOriginalGriff19-Nov-12 21:45 
AnswerRe: HOW TO CREATE RDLC REPORT IN C# USING SQL 2005 Pin
Jay Nardev20-Nov-12 22:57
groupJay Nardev20-Nov-12 22:57 
Questionc# code to search text/string in word doc and get page number Pin
Nitin Varshneya 219-Nov-12 18:29
memberNitin Varshneya 219-Nov-12 18:29 
AnswerRe: c# code to search text/string in word doc and get page number Pin
Richard MacCutchan20-Nov-12 0:11
mvpRichard MacCutchan20-Nov-12 0:11 
GeneralRe: c# code to search text/string in word doc and get page number Pin
Nitin Varshneya 220-Nov-12 0:21
memberNitin Varshneya 220-Nov-12 0:21 
GeneralRe: c# code to search text/string in word doc and get page number Pin
Richard MacCutchan20-Nov-12 0:59
mvpRichard MacCutchan20-Nov-12 0:59 
GeneralRe: c# code to search text/string in word doc and get page number Pin
Nitin Varshneya 220-Nov-12 18:59
memberNitin Varshneya 220-Nov-12 18:59 
GeneralRe: c# code to search text/string in word doc and get page number Pin
Richard MacCutchan20-Nov-12 22:18
mvpRichard MacCutchan20-Nov-12 22:18 
QuestionC# and BitBLT Pin
C-P-User-319-Nov-12 11:04
memberC-P-User-319-Nov-12 11:04 
AnswerRe: C# and BitBLT Pin
Gerry Schmitz19-Nov-12 22:57
memberGerry Schmitz19-Nov-12 22:57 
GeneralRe: C# and BitBLT Pin
C-P-User-320-Nov-12 9:06
memberC-P-User-320-Nov-12 9:06 
GeneralRe: C# and BitBLT Pin
Pete O'Hanlon20-Nov-12 9:35
protectorPete O'Hanlon20-Nov-12 9:35 
GeneralRe: C# and BitBLT Pin
Gerry Schmitz20-Nov-12 12:50
memberGerry Schmitz20-Nov-12 12:50 
QuestionHow can i get the innertext from div which hasnt id Pin
Gokce Sezgin19-Nov-12 10:17
memberGokce Sezgin19-Nov-12 10:17 
AnswerRe: How can i get the innertext from div which hasnt id Pin
Pete O'Hanlon19-Nov-12 10:18
protectorPete O'Hanlon19-Nov-12 10:18 
JokeRe: How can i get the innertext from div which hasnt id Pin
Peter_in_278019-Nov-12 12:18
memberPeter_in_278019-Nov-12 12:18 
AnswerRe: How can i get the innertext from div which hasnt id Pin
askwjun19-Nov-12 21:42
memberaskwjun19-Nov-12 21:42 
AnswerRe: How can i get the innertext from div which hasnt id Pin
Bernhard Hiller19-Nov-12 22:55
memberBernhard Hiller19-Nov-12 22:55 
QuestionWhat is the best tool to create UML diagrams? Pin
Vijay Kanda19-Nov-12 9:29
memberVijay Kanda19-Nov-12 9:29 
AnswerRe: What is the best tool to create UML diagrams? Pin
Pete O'Hanlon19-Nov-12 9:36
protectorPete O'Hanlon19-Nov-12 9:36 
GeneralRe: What is the best tool to create UML diagrams? Pin
Vijay Kanda19-Nov-12 9:54
memberVijay Kanda19-Nov-12 9:54 
AnswerRe: What is the best tool to create UML diagrams? Pin
Bernhard Hiller19-Nov-12 22:57
memberBernhard Hiller19-Nov-12 22:57 
AnswerRe: What is the best tool to create UML diagrams? Pin
gilvani20-Nov-12 2:02
membergilvani20-Nov-12 2:02 
QuestionC# PAINT for school procet Pin
mibetty19-Nov-12 8:07
membermibetty19-Nov-12 8:07 
AnswerRe: C# PAINT for school procet Pin
Richard MacCutchan19-Nov-12 9:04
mvpRichard MacCutchan19-Nov-12 9:04 
AnswerRe: C# PAINT for school procet Pin
Pete O'Hanlon19-Nov-12 9:14
protectorPete O'Hanlon19-Nov-12 9:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 29 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid