包含字段值的弹出窗体/消息

编程入门 行业动态 更新时间:2024-10-09 13:24:02
本文介绍了包含字段值的弹出窗体/消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我有组合框选择索引代码更改 每个索引更改我在数据库上调用字段来分配另一个标签文本 代码如下:

i have code for combo box selected index changed every index change i called field on database to assign another label text code like this:

conn = Connection.GetInstance(); pixelRanges = pixeRangeDao.GetDataById(cbAreaCluster.SelectedIndex); lbDescription.Text = pixeRanges.description.ToString;

问题是 和popud包含与cbAreaCluster.SelectedIndex有关系的字段 什么样的弹出窗口是最好的? 如何创建它? 我该如何使用这种关系?

the issue is i need popup form or message while i clicked label lbDescription and popud contain field which has relationship with cbAreaCluster.SelectedIndex what kind of popup is the best? how can i create it? and how can i use the relation?

推荐答案

我必须尝试从另一种形式和成功引用属性 这是代码的一部分 i have to try refer attribute from another form and success this is part of code public MainForm mainFormRef; public int id; private Connection conn; public FormInformation(ref MainForm mainForm) { mainFormRef = mainForm; InitializeComponent(); loadData(); } private void loadData() { id = mainFormRef.id; //call information conn = Connection.GetInstance(); var pixelRangeDao = new PixelRangeDao(conn.GetConnection()); var pixelRanges = pixelRangeDao.GetDataById(id); lbHeader.Text = pixelRanges.description.ToString(); lbInformation.Text = pixelRanges.information.ToString(); }

更多推荐

包含字段值的弹出窗体/消息

本文发布于:2023-11-27 13:12:37,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1638218.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:弹出   窗体   字段   消息

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!