使用c#在windows应用程序中弹出 [英] popup in windows application using c#
本文介绍了使用c#在windows应用程序中弹出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好朋友
我开发了一个在多个地点运行的应用程序。此应用程序从Web下载并在其中进行更新。现在我想要的是
只有当他们运行软件时,用户才会通过弹出窗口上传新版本来了解
NO想法怎么做。
需要帮助。
Hello friends
I developed an application running at multiple locations. This application is downloaded from the web and get updated if it is there. Now what i want is
" the user comes to know as soon as new version is uploaded by a popup on there screen only if they are running the software"
NO Idea how to do it.
Help required.
推荐答案
如果您还没有使用它,使用Click-Once部署,您的软件将自动检查新版本应用程序的下载位置。它只会在运行应用程序时执行此操作,如果有新版本可用,它将通知用户并提示他们下载新版本。您不必在代码中执行任何其他操作。
If you're not already using it, use Click-Once deployment, and your software will automatically check the download location for a new version of the app. It will only do this when the app is run, and if a new version is available, it will notify the user and prompt them to download the new version. You don't have to do ANYTHING else in your code.
我确实使用asp.net创建了一个CHAT APPLICATION并将其合并到c#应用程序中。现在可以随时给INFO并且它对查看者可见。
i did create a CHAT APPLICATION using asp.net and incorporate it in c# application. Now one can give INFO anytime and it is visible to viewer.
string connectionString =Data Source = f6; Initial Catalog = DemoCMS; Persist Security Info = True; User ID = sa; Password = 123456;
使用(SqlConnection连接=新的SqlConnection(connectionString))
{
SqlCommand cmd = new SqlCommand();
cmd.CommandText =INSERT INTO format_det(formet_name,description,type,subject)VALUES('+ txtformat_nm.Text +','+ txtdescriptionFormat.Text +','+ txttype。 Text +','+ txtsubject.Text +');;
cmd.CommandType = CommandType.Text;
cmd.Connection = connection;
connection.Open();
cmd.ExecuteNonQuery();
}
MessageBox.Show(成功插入);
fillGridFormat();
string connectionString = "Data Source=f6;Initial Catalog=DemoCMS;Persist Security Info=True;User ID=sa;Password=123456";
using (SqlConnection connection = new SqlConnection(connectionString))
{
SqlCommand cmd = new SqlCommand();
cmd.CommandText = "INSERT INTO format_det (formet_name,description,type,subject) VALUES ('" + txtformat_nm.Text + "','" + txtdescriptionFormat.Text + "','" + txttype.Text + "','" + txtsubject.Text + "');";
cmd.CommandType = CommandType.Text;
cmd.Connection = connection;
connection.Open();
cmd.ExecuteNonQuery();
}
MessageBox.Show("Success Insert");
fillGridFormat();
这篇关于使用c#在windows应用程序中弹出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文