单击窗口应用程序中的图像 [英] clicking on image in window application
本文介绍了单击窗口应用程序中的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请告诉我是否可以点击图片并转到下一个表格,其中包含c#.net的窗口应用程序中的信息。
解决方案
是,在Click事件处理程序中,创建Form对象并显示它。
NextForm form = new NextForm( );
form.Show();
您好,
是的可能,
在Image_click事件中写下面的代码,
protected void Image_click( object sender,EventArgs e)
{
Form2Redirect frm = new Form2Redirect(); // 为表单创建一个对象以重定向
此跨度> .Close(); // 关闭当前表单
frm.Show(); // 然后显示表格
}
我希望这对你有所帮助。
问候,
RK
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.
解决方案
Yes, inside Click Event Handler, create the Form object and Show it.
NextForm form = new NextForm(); form.Show();
Hi,
Yes its possible,
In Image_click event write the below code,
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
这篇关于单击窗口应用程序中的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文