Current location - Recipe Complete Network - Dietary recipes - How to cancel the default selection of buttons in VB? In this way, he chose Lanzhou Lamian Noodles by default. I don't want him to choose anyone. What should I do?
How to cancel the default selection of buttons in VB? In this way, he chose Lanzhou Lamian Noodles by default. I don't want him to choose anyone. What should I do?
Set two buttons. The first one is Lanzhou Ramen Restaurant-cmd1;

The second is "Xiangxiang wooden bucket meal"-cmd 2;

A picture frame: with a picture of "rice noodles"-pic1;

The following program can make these two buttons unchecked under any circumstances:

Private Sub-Form _Load ()

Pic 1。 TabIndex = 0

Cmd 1。 TabIndex = 1

Cmd 1。 TabIndex = 2

End joint

Private child Cmd 1_Click ()

Pic 1。 SetFocus

End joint

Private subcommand d2_Click ()

Pic 1。 SetFocus

End joint