Dumb Popup Menu Question

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
Hi Fabien,

I double-checked the Compact Framework help in Vis Studio and it lists the
SourceControl property. The help page has

Syntax based on .NET Framework version 1.1.
Documentation version 1.1.0.

written on the bottom of it.

Does this mean the documentation is wrong?
 
Back
Top