Public Sub ST_LOAD_CONTEXTMENU() Dim strsql As String Dim rs As New ADODB.Recordset Dim a As Integer = 0 strsql = "Select posdesc from position_tab" With rs .Open(strsql, conn) Do While Not .EOF ContextMenu1.MenuItems.Add(.Fields(0).Value) a = a + 1 .MoveNext() Loop End With End Sub
this block of code retrieves several record in vb.net 2003. it was working, but i can't figure want i want to do. if i try to click in the context menu it must be appeared in the certain textbox.. please help me with this..
any help will be appreciated! thanks in advans....[b][font=Comic Sans Ms]

New Topic/Question
Reply



MultiQuote

|