TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ghasem deh
NA
258
40k
how to use result of class in mainForm ?
May 20 2015 12:16 AM
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(@"! ??? ?????? ??????? ?? ????
???? ?? ????? ?????? ?? ???? ????? ????", "?????");
}
}
Reply
Answers (
4
)
What is the use of having "ref" in this case
Replace old database record with new one?