Menu Bar and Menu Strips, what are differences?

Joined
Feb 22, 2018
Messages
1
Reaction score
0
i am reading a book in which it introduces "MenuBar" instead of "MenuStrips" and some codes like this in c# language:

protected void menuImage_ChildClick (object sender, System.EventArgs e)
{
if (sender is MenuItem)
{
MenuItem mi = (MenuItem)sender;
_selectedImageMode = mi.Index;
pbxPhoto.SizeMode = modeMenuArray[mi.Index];
pbxPhoto.Invalidate();
}
}
but above code does not work in visual studio 2013. what is the problem? what are difference between them?
thanks.
 

Abraham Andres Luna

Child of God
Joined
Mar 14, 2018
Messages
699
Reaction score
227
Hello, I don't see the code where you define "pbxPhoto", so did you define that control somewhere else?
Also, what is the exact error message you are receiving when you try to compile?
 

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

Top