G
Guest
Hi, I am looking at PDA development for the first time. I want to display
popup menus. Examples I have found use code like:-
Dim menuItem1 As New MenuItem("&Copy")
Dim menuItem3 As New MenuItem("C&hange Picture")
contextMenu1.MenuItems.Clear()
If contextMenu1.SourceControl Is textBox1 Then
contextMenu1.MenuItems.Add(menuItem1)
ElseIf contextMenu1.SourceControl Is pictureBox1 Then
contextMenu1.MenuItems.Add(menuItem3)
End If
Snag is when I reference contextMenu1.SourceControl it not is not recognised
as a property by Visual Studio. Other props of the contextmenu can be
referenced Ok. Is this a version issue or seomthing else?
I am using Visual Studio 2003 (.Net 1.1.4322 SP1) to write a PocketPC
SmartDevice Windows Application project.
popup menus. Examples I have found use code like:-
Dim menuItem1 As New MenuItem("&Copy")
Dim menuItem3 As New MenuItem("C&hange Picture")
contextMenu1.MenuItems.Clear()
If contextMenu1.SourceControl Is textBox1 Then
contextMenu1.MenuItems.Add(menuItem1)
ElseIf contextMenu1.SourceControl Is pictureBox1 Then
contextMenu1.MenuItems.Add(menuItem3)
End If
Snag is when I reference contextMenu1.SourceControl it not is not recognised
as a property by Visual Studio. Other props of the contextmenu can be
referenced Ok. Is this a version issue or seomthing else?
I am using Visual Studio 2003 (.Net 1.1.4322 SP1) to write a PocketPC
SmartDevice Windows Application project.