Unrecognized Escape Sequence in C#.Net
while debugging the code i am getting an error saying
Unrecognized error sequence . what should i have to do to solve this ? Am
i using the proper code here? i got a picture box(for loading profile
picture) and two radio buttons to select the gender. while selecting radio
button i need an image (male.png) to display in my picture box. what
should i do for this. Am i using proper code here ? PLease help ?
private void rbtnmale_CheckedChanged(object sender, EventArgs e)
{
if (rbtnmale.Checked)
{
pictureBox2.Image = Image.FromFile(Application.StartupPath &
"\Resources\male.png");
}
else if(!rbtnmale.Checked)
{
pictureBox2.Image = Image.FromFile(Application.StartupPath &
"\Resources\female.png");
}
}
No comments:
Post a Comment