Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
2.60/5 (2 votes)
See more:
hi, please tell me is it possible to click an image and go to next form which contains its information in window application of c# .net.
Posted
v2

Yes, inside Click Event Handler, create the Form object and Show it.
C#
NextForm form = new NextForm();
form.Show();
 
Share this answer
 
Hi,

Yes its possible,

In Image_click event write the below code,

C#
protected void Image_click(object sender, EventArgs e)
{
 Form2Redirect frm = new Form2Redirect(); //Create an object for the form to redirect
 this.Close(); //Close the current form
 frm.Show(); //then show the form
}


I hope this helps you a bit.

Regards,
RK
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900