Click here to Skip to main content
16,010,553 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How do you create a subform? Pin
meconomou8-May-06 22:57
meconomou8-May-06 22:57 
QuestionVS2005, Updating the ReportViewer/Report datasource at runtime Pin
Mark Gorcz8-May-06 10:47
Mark Gorcz8-May-06 10:47 
QuestionOverride the Paint Function Pin
dassouki8-May-06 10:42
dassouki8-May-06 10:42 
Questiondynamic context menu Pin
meconomou8-May-06 9:13
meconomou8-May-06 9:13 
AnswerRe: dynamic context menu Pin
Rizwan Bashir9-May-06 1:44
Rizwan Bashir9-May-06 1:44 
GeneralRe: dynamic context menu Pin
meconomou9-May-06 2:55
meconomou9-May-06 2:55 
GeneralRe: dynamic context menu Pin
Rizwan Bashir9-May-06 4:23
Rizwan Bashir9-May-06 4:23 
GeneralRe: dynamic context menu Pin
meconomou9-May-06 4:40
meconomou9-May-06 4:40 
sorry you are right.
i noticed that after i posted the message
you where very helpful but now do i get the text of the menuitem which is declaerd within the do while statement in the handle procedure model_click?
this is my code
Private Sub devsubmenu()
Dim cmddev As New OleDbCommand("Select modelname from devicetbl", OleDbConnection1)
OleDbConnection1.Open()
Dim dtread As OleDbDataReader = cmddev.ExecuteReader()
devmnu.MenuItems.Clear()

Do While dtread.Read
Dim ChildMenu As New MenuItem
ChildMenu.Text = dtread.Item("modelname").ToString()
AddHandler ChildMenu.Click, AddressOf model_click
devmnu.MenuItems.Add(ChildMenu)
Loop
OleDbConnection1.Close()
End Sub

End Sub
Private Sub model_click(ByVal sender As System.Object, ByVal e As System.EventArgs)
' Get childmenu.text here
End Sub
GeneralRe: dynamic context menu Pin
Rizwan Bashir9-May-06 21:37
Rizwan Bashir9-May-06 21:37 
GeneralRe: dynamic context menu Pin
meconomou10-May-06 13:26
meconomou10-May-06 13:26 
QuestionAppend .tif* Files Pin
james_holokai028-May-06 8:02
james_holokai028-May-06 8:02 
AnswerRe: Append .tif* Files Pin
Rizwan Bashir9-May-06 1:49
Rizwan Bashir9-May-06 1:49 
QuestionHow can I convert vb6 to vb.net Pin
Adekolurejo8-May-06 4:13
Adekolurejo8-May-06 4:13 
AnswerRe: How can I convert vb6 to vb.net Pin
User 17164928-May-06 5:13
professionalUser 17164928-May-06 5:13 
GeneralRe: How can I convert vb6 to vb.net Pin
Adekolurejo8-May-06 6:44
Adekolurejo8-May-06 6:44 
GeneralRe: How can I convert vb6 to vb.net Pin
User 17164928-May-06 8:33
professionalUser 17164928-May-06 8:33 
QuestionWant to crate a Collection Of Control Pin
hisuman1008-May-06 3:53
hisuman1008-May-06 3:53 
AnswerRe: Want to crate a Collection Of Control Pin
Robert Rohde8-May-06 4:08
Robert Rohde8-May-06 4:08 
GeneralRe: Want to crate a Collection Of Control Pin
hisuman1008-May-06 5:25
hisuman1008-May-06 5:25 
GeneralRe: Want to crate a Collection Of Control Pin
Robert Rohde8-May-06 6:07
Robert Rohde8-May-06 6:07 
Questionaudio recording for incoimg/outgoing voice Pin
mamindlapurnachender8-May-06 3:06
mamindlapurnachender8-May-06 3:06 
AnswerRe: audio recording for incoimg/outgoing voice Pin
jonathan158-May-06 4:06
jonathan158-May-06 4:06 
QuestionDatagrid.click (Function Pin
Macky1008-May-06 1:32
Macky1008-May-06 1:32 
QuestionVariant Pin
vikas99738-May-06 0:44
vikas99738-May-06 0:44 
QuestionRe: Variant Pin
Eric Dahlvang8-May-06 4:18
Eric Dahlvang8-May-06 4:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.