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.
 
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?
 
Back
Top