Click here to Skip to main content
15,867,568 members
Home / Discussions / C#
   

C#

 
Questioniwant to export dataset ot mpp project to mppproject Pin
ksbaboo20-Nov-12 4:25
ksbaboo20-Nov-12 4:25 
QuestionPossible to print definition of Func<> Pin
ezazazel20-Nov-12 4:00
ezazazel20-Nov-12 4:00 
AnswerRe: Possible to print definition of Func<> Pin
Simon_Whale20-Nov-12 4:14
Simon_Whale20-Nov-12 4:14 
GeneralRe: Possible to print definition of Func<> Pin
ezazazel20-Nov-12 21:43
ezazazel20-Nov-12 21:43 
Questionhow can i get exception from virtual machine Pin
belea1720-Nov-12 1:38
belea1720-Nov-12 1:38 
AnswerRe: how can i get exception from virtual machine Pin
Deflinek20-Nov-12 3:13
Deflinek20-Nov-12 3:13 
AnswerRe: how can i get exception from virtual machine Pin
Pete O'Hanlon20-Nov-12 3:17
subeditorPete O'Hanlon20-Nov-12 3:17 
QuestionCorrect use of Secure String Pin
MacUseless19-Nov-12 21:09
MacUseless19-Nov-12 21: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 <username>.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.
C#
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 22:08
Simon_Whale19-Nov-12 22:08 
GeneralRe: Correct use of Secure String Pin
MacUseless20-Nov-12 20:42
MacUseless20-Nov-12 20:42 
QuestionHow to Modifying app.config During Installation Pin
sathish1719-Nov-12 20:35
sathish1719-Nov-12 20:35 
SuggestionRe: How to Modifying app.config During Installation Pin
n.podbielski20-Nov-12 2:05
n.podbielski20-Nov-12 2:05 
AnswerRe: How to Modifying app.config During Installation Pin
BobJanova20-Nov-12 5:12
BobJanova20-Nov-12 5:12 
AnswerRe: How to Modifying app.config During Installation Pin
jschell20-Nov-12 12:25
jschell20-Nov-12 12:25 
AnswerRe: How to Modifying app.config During Installation Pin
Jay Nardev20-Nov-12 21:50
Jay Nardev20-Nov-12 21:50 
QuestionHOW TO SOLVE CRYSTAL REPORT "Load Report Failed" Pin
MAHAMADLATIF HASAN SANADI19-Nov-12 18:59
MAHAMADLATIF HASAN SANADI19-Nov-12 18:59 
AnswerRe: HOW TO SOLVE CRYSTAL REPORT "Load Report Failed" Pin
OriginalGriff19-Nov-12 20:45
mveOriginalGriff19-Nov-12 20:45 
QuestionHOW TO CREATE RDLC REPORT IN C# USING SQL 2005 Pin
MAHAMADLATIF HASAN SANADI19-Nov-12 18:35
MAHAMADLATIF HASAN SANADI19-Nov-12 18:35 
AnswerRe: HOW TO CREATE RDLC REPORT IN C# USING SQL 2005 Pin
OriginalGriff19-Nov-12 20:45
mveOriginalGriff19-Nov-12 20:45 
AnswerRe: HOW TO CREATE RDLC REPORT IN C# USING SQL 2005 Pin
Jay Nardev20-Nov-12 21:57
Jay Nardev20-Nov-12 21:57 
Questionc# code to search text/string in word doc and get page number Pin
Nitin Varshneya 219-Nov-12 17:29
Nitin Varshneya 219-Nov-12 17:29 
AnswerRe: c# code to search text/string in word doc and get page number Pin
Richard MacCutchan19-Nov-12 23:11
mveRichard MacCutchan19-Nov-12 23:11 
GeneralRe: c# code to search text/string in word doc and get page number Pin
Nitin Varshneya 219-Nov-12 23:21
Nitin Varshneya 219-Nov-12 23:21 
GeneralRe: c# code to search text/string in word doc and get page number Pin
Richard MacCutchan19-Nov-12 23:59
mveRichard MacCutchan19-Nov-12 23:59 
GeneralRe: c# code to search text/string in word doc and get page number Pin
Nitin Varshneya 220-Nov-12 17:59
Nitin Varshneya 220-Nov-12 17:59 

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.