如何显示请稍候...使用VB .NET作为Windows窗体中的消息框
我有一个使用vb .net开发的Windows应用程序表格
当我点击该表单中的按钮然后将用户配置文件保存到数据库和消息中将显示为已创建配置文件,并将向用户发送一封电子邮件。
i已编写发送邮件的代码。发送邮件后,我在消息框中显示已成功发送电子邮件的消息
但是发送邮件需要一些时间。所以我想要显示一条消息
请等待发送邮件......
发送邮件后我需要显示消息电子邮件已成功发送
我尝试过:
我在网上搜索过,发现它是通过进度条实现的。但很多例子都是按钮点击事件然后propgressbar开始。
所以我想显示这个过程的消息。 br />
任何人都可以帮我提供示例代码。
在此先感谢....
I have a Windows application form developed using vb .net
when i click on a button in that form then the user profile is saved into database and a message will appear as "Profile created" and an email will be sent to the user.
i have written the code for sending mail. After sending the mail i was displaying a message in message box that "Email sent Successfully"
But it is taking some time to send the mail. So i want to show a message that
"Please wait sending mail...."
and after sending the mail then i need to display the message "Email sent Successfully"
What I have tried:
I have searched through the web and found that it is implemented through progressbar. But lot of examples are with button click event then the propgressbar starts.
So i want to display a message for this process.
Can anybody help me with the sample code.
Thanks in Advance....