0 Replies - 1574 Views - Last Post: 05 October 2008 - 10:27 PM Rate Topic: -----

#1 franz081227   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 16
  • Joined: 19-September 08

context menu and the textbox please help

Post icon  Posted 05 October 2008 - 10:27 PM

guys..please help me with this...
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]

Is This A Good Question/Topic? 0
  • +

Page 1 of 1