Click here to Skip to main content
15,912,327 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: vb.net to Access Pin
Guffa3-Oct-06 5:59
Guffa3-Oct-06 5:59 
GeneralRe: vb.net to Access Pin
anne lewis3-Oct-06 7:21
anne lewis3-Oct-06 7:21 
GeneralRe: vb.net to Access Pin
nlindley73-Oct-06 8:16
nlindley73-Oct-06 8:16 
GeneralRe: vb.net to Access Pin
anne lewis3-Oct-06 8:48
anne lewis3-Oct-06 8:48 
GeneralRe: vb.net to Access Pin
nlindley73-Oct-06 9:39
nlindley73-Oct-06 9:39 
GeneralRe: vb.net to Access Pin
xujexy4-Oct-06 1:50
xujexy4-Oct-06 1:50 
Questionvb.net to Access Pin
anne lewis3-Oct-06 4:13
anne lewis3-Oct-06 4:13 
QuestionMulti level context menu Pin
dAb73-Oct-06 2:55
dAb73-Oct-06 2:55 
I'm trying to add sub menus to a context menu control in code (vb2005 express)(and read selection). Following code creates a vertical menu but I can't see how to add sub menues - then read selections?
I'm after somthing like:
Edit
......Cut
......Copy
......Paste
where the cut, copy and paste are extentions of the edit menu


to create:
ContextMenuStrip1.Items.Clear()
ContextMenuStrip1.Items.Add("Cut")
ContextMenuStrip1.Items.Add("Copy")
If Clipboard.ContainsText Or Clipboard.ContainsImage Then
ContextMenuStrip1.Items.Add("Paste")
End If


to read:
Private Sub ContextMenuStrip1_ItemClicked(ByVal sender As Object, ByVal e As System.Windows.Forms.ToolStripItemClickedEventArgs) Handles ContextMenuStrip1.ItemClicked
Dim c As Control = ContextMenuStrip1.SourceControl
Dim s As String
' Check the source control first.
s = sender.GetType.ToString()
If Not (c Is Nothing) Then
Select Case c.GetType().ToString()
Case "System.Windows.Forms.TreeView"
Select Case c.Name 'ie TreeViewInformationList
Case "TreeViewInformationList"
RightClickActionTreeViewInformationList(e)
Case "TreeViewItem"
RightClickActionTreeViewItem(e)

etc
AnswerRe: Multi level context menu Pin
UltraCoder9-Oct-06 17:21
UltraCoder9-Oct-06 17:21 
Questiontextbox in class Pin
nbulut3-Oct-06 1:54
nbulut3-Oct-06 1:54 
AnswerRe: textbox in class Pin
Dave Kreskowiak3-Oct-06 2:13
mveDave Kreskowiak3-Oct-06 2:13 
QuestionVb6 to Vb 2005 Pin
prashweenet3-Oct-06 1:37
prashweenet3-Oct-06 1:37 
AnswerRe: Vb6 to Vb 2005 [modified] Pin
Dave Kreskowiak3-Oct-06 2:09
mveDave Kreskowiak3-Oct-06 2:09 
QuestionBizarre Winsock behaviour in VB 6.0 Pin
Nic Rowan3-Oct-06 0:46
Nic Rowan3-Oct-06 0:46 
Questionsending parameters through asp.net page Pin
ADY0072-Oct-06 23:13
ADY0072-Oct-06 23:13 
AnswerRe: sending parameters through asp.net page Pin
Christian Graus2-Oct-06 23:42
protectorChristian Graus2-Oct-06 23:42 
GeneralRe: sending parameters through asp.net page Pin
ADY0073-Oct-06 0:11
ADY0073-Oct-06 0:11 
GeneralRe: sending parameters through asp.net page Pin
Christian Graus3-Oct-06 0:21
protectorChristian Graus3-Oct-06 0:21 
GeneralRe: sending parameters through asp.net page Pin
Dave Sexton3-Oct-06 0:20
Dave Sexton3-Oct-06 0:20 
QuestionAny good free documentation or podcasts? Pin
Wolf922-Oct-06 21:39
Wolf922-Oct-06 21:39 
QuestionVisual BASIC express and Visual BASIC Pin
Wolf922-Oct-06 21:35
Wolf922-Oct-06 21:35 
AnswerRe: Visual BASIC express and Visual BASIC Pin
CWIZO2-Oct-06 21:37
CWIZO2-Oct-06 21:37 
GeneralRe: Visual BASIC express and Visual BASIC Pin
Wolf922-Oct-06 21:42
Wolf922-Oct-06 21:42 
AnswerRe: Visual BASIC express and Visual BASIC Pin
Christian Graus2-Oct-06 22:15
protectorChristian Graus2-Oct-06 22:15 
GeneralRe: Visual BASIC express and Visual BASIC Pin
Wolf922-Oct-06 23:17
Wolf922-Oct-06 23:17 

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.