Dumb Popup Menu Question

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.
 
G

Guest

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

ContextMenu 7

Top