Public Sub setEdit_UserName(ByVal UserName As String)
Edit_UserName = UserName
End Sub
Code (VB.NET)
Dim groupuser As New DataSet()
groupuser = cnn.GetDataSet("select [GROUP_USER] from [GROUP_USERS] where [USER_NAME] like '%" & Edit_UserName & "%' group by [GROUP_USER]")
ListBox1.Text = "Select Group"
ListBox1.DataSource = groupuser.Tables(0)
ListBox1.DisplayMember = "GROUP_USER"
ListBox1.ValueMember = "GROUP_USER"
ListBox1.Text = "Select".ToString()