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