我想显示“成功插入记录之类的确认消息".在Windows应用程序中 [英] i want to display 'Acknowledgment Message like successfully inserted record.' in windows application

查看:70
本文介绍了我想显示“成功插入记录之类的确认消息".在Windows应用程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想通过使用任何控件(例如针对Web应用程序的Memba控件)在Windows应用程序中显示确认消息,如已成功插入记录".

Hi

I want to display ''Acknowledgment Message like successfully inserted record.'' in windows application by using any control(like Memba control it''s for web application).

推荐答案

天哪!您觉得这有多难?

标签.
For goodness sake! How difficult do you think it is to do?

A label.
myLabel.Text = "Done";


文字框


A TextBox

myTextBox.ReadOnly = true;
myTextBox.Text = "Done";


一个消息框


A MessageBox

MessageBox.Show("Done");



如果您真的很绝望:



If you are really desperate:

myButton.AutoSize=true;
myButton.Text = "The record was inserted correctly";


执行以下操作:扫描您使用的库中的所有可用控件.选择那些具有名为文本",值",标题"或标题"的公共属性的属性,但仅选择类型为System.String的属性.了解他们每个人基本上可以做什么.选择任意一个以符合您的喜好并适合您的设计思想.

—SA
Do the following: scan all available controls in the library you use. Select those having a public property named "Text", "Value", "Title" or "Header", but only those of a type System.String. Learn what each of them can basically do. Choose any of them to your liking and fitness to your design ideas.

—SA


您可以使用messagebox类显示确认消息
或者,如果您希望确认消息显示在表单上并自动消失,则可以在标签中显示它们,并在预定的时间后通过计时器控件将其隐藏
有关更详细的工作,请查看此帖子

http://bytes.com/topic/c-sharp/answers/890234-win-forms-display-self-disappearing-notifications-popups-quick-succession [
you can use messagebox class to display Acknowledgment Message
or if you want Acknowledgment Message to appear on form and disapear automaticaly than either you can display them in a label and hide that label after predefine time by timer control
for more detailed work have a look at this post

http://bytes.com/topic/c-sharp/answers/890234-win-forms-display-self-disappearing-notifications-popups-quick-succession[^]


这篇关于我想显示“成功插入记录之类的确认消息".在Windows应用程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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