This topic has been archived. It cannot be replied.
-
工作学习 / 学科技术讨论 / I am learning VB 6.0. Trying to program menu but ".Checked" is not accepted in a line like "mnuColorGreen.Checked = True". Anybody know why?
-richxie(齐天大圣);
2008-1-30
(#4226943@0)
-
hard to believe this. it gotta be something like _click _selected, sort of thing. after all, why would you do this?
-win(秋天的菠菜);
2008-1-30
(#4226964@0)
-
I am just doing an exercise following the book. The purpose is to have only one out of three checked at a time. Here is how the code look like:Private Sub mnuColorBlue_Click(Index As Integer)
' Color the lable blue and check the blue
' menu option. Make sure both the Red and
' Green menus are unchecked
lblMenu.BackColor = vbBlue
mnuColorBlue.Checked = True
mnuColorGreen.Checked = False
mnuColorRed.Checked = False
End Sub
-richxie(齐天大圣);
2008-1-30
{309}
(#4226980@0)
-
no time to read your code. but i believe you must have to set up the menu item's type to a "check mark" type? regular menu items do not have a check mark status, i do not know, just guess logically
-win(秋天的菠菜);
2008-1-30
(#4226995@0)
-
Thanks!
-richxie(齐天大圣);
2008-1-30
(#4227008@0)