Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
how to use result of class in mainForm ?
ghasem deh
May 20 2015 12:16 AM
430
Reply
hi,
i want use result of class in mainForm and display in lable :
public void Amar()
{
try
{
SqlConnection con = new SqlConnection(ConString);
SqlCommand com = new SqlCommand("select COUNT(*) from Software", con); // ????? ??? ????? ??? ???
con.Open();
SqlDataReader dr = com.ExecuteReader();
if (dr.Read())
{
int count = Int32.Parse(dr[0].ToString());
}
}
catch
{
Warning.ShowBox(@"! ??? ?????? ??????? ?? ????
???? ?? ????? ?????? ?? ???? ????? ????", "?????");
}
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
What is the use of having "ref" in this case
Replace old database record with new one?