C#中的会话过程 [英] session process in C#

查看:61
本文介绍了C#中的会话过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用Windows窗体应用程序.在此我创建了用户详细信息表单,其中有阻止按钮.我的查询是当我从用户详细信息中单击一行并单击阻止按钮时,应查看所选的用户详细信息下一种形式,即阻止形式.为此,我需要指导.感谢您阅读我的信息.

问候
Balamurugan

Hi,
I''m working on windows form application.In this i have created User Details form in that i have Block button.My query is when i''m clicking one row from the user details and clicking Block button the selected user details should viewed in next form i.e Blocked form.For this i need guidance.Thanks in advance for reading my message.

Regards
Balamurugan

推荐答案

请参阅以下内容:-在表单之间传递数据 [ ^ ]

Refer These :- Passing Data Between Forms[^]

You do:

//form1:
 public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        private void button1_Click(object sender, EventArgs e)
        {
            Form2 f2 = new Form2(textBox1.Text);
            f2.Show();
        }
    }
//form2:
    public partial class Form2 : Form
    {
        public Form2(string value)
        {
            InitializeComponent();
            textBox1.Text = value;
        }
    }


这篇关于C#中的会话过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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