-
Notifications
You must be signed in to change notification settings - Fork 0
/
RefreshClass.cs
49 lines (43 loc) · 1.26 KB
/
RefreshClass.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
using System.Windows.Forms;
namespace NEWPROJECT
{
// interface emailload
//{
// void load();
//}
public class RefreshClass
{
public static ConnectionClass conn = new ConnectionClass();
public void zeeshansami(TextBox tb1)
{
SqlCommand cmd = new SqlCommand("select * from Admin", conn.connect);
conn.connect.Open();
SqlDataReader dr = cmd.ExecuteReader();
while (dr.Read())
{
tb1.AutoCompleteCustomSource.Add( dr["E_mail"].ToString());
}
conn.connect.Close();
}
private void InitializeComponent()
{
//this.SuspendLayout();
////
//// RefreshClass
////
//this.ClientSize = new System.Drawing.Size(284, 261);
//this.Name = "RefreshClass";
//this.Load += new System.EventHandler(this.RefreshClass_Load);
//this.ResumeLayout(false);
}
private void RefreshClass_Load(object sender, EventArgs e)
{
}
}
}