最小化Windows .net表单 [英] Minimizing Windows .net Form

查看:73
本文介绍了最小化Windows .net表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请请帮助我.........

我已经制作了一个C#.Net应用程序...

在客户搜索表单上,我已使用gridview显示客户名称(按行)

要打开该客户(行)的记录,我使用了CellDoubleClick函数..
代码的gridview的说明

Please Please please Help me .........

I have made a C# .Net application ...

On the customer search form i have used gridview to display the customer names (In Rows)

To open the records of that customer(Row) i have used CellDoubleClick function ..
of gridview with codes

    strBillID = dgvBillList.Rows[e.RowIndex].Cells[0].Value.ToString();
    strBuyBillID = dgvBillList.Rows[e.RowIndex].Cells[1].Value.ToString();
    strCustID = dgvBillList.Rows[e.RowIndex].Cells[7].Value.ToString();
}

this.Close();




现在,由于我在最后使用了 this.Close(); ,它关闭了搜索表单

因此,要编辑下一个客户详细信息,我需要再次搜索...

我只想在双击&时保持该表格处于活动状态.我也想
打开下一个其名称被单击的客户的记录....



任何帮助将不胜感激...


请帮助我


在此先感谢.........

Rajkumar Saroj




Now since i have used this.Close(); at the end it closes the search form

So to edit the next customer details i need to search that again ...

I just want to keep that form active at the time of double click & i also want to
open the records for the next custmoer whose name is clicked ....



Any help will be appreciated ...


Please help me


Thanks in advance .........

Rajkumar Saroj

推荐答案

Close方法只是关闭表单-它不会丢弃数据或更改任何属性.只要您没有丢弃首次显示它时创建的参考,就不会阻止您再次使用Form.Show或Form.ShowDialog.

The Close method just closes the form - it doesn''t throw away the data, or change any properties. Provided you haven''t thrown away the reference you created when you first showed it, there is nothing stopping you from just using the Form.Show or Form.ShowDialog again.

private MyForm myform = new MyForm();
...
private void DoSomething()
   {
   myform.ShowDialog();
   ....
   myForm.ShowDialog();
   }


这篇关于最小化Windows .net表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆