View Single Post
  #2 (permalink)  
Old 05-05-2008, 06:35 AM
Erel's Avatar
Erel Erel is offline
Administrator
 
Join Date: Apr 2007
Posts: 13,104
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

I'm not sure if it is a bug in the .Net Framework or an intended behavior, but when a RadioBtn is focused it also gets selected (or clicked).
When you disable prevBtn the focus moves to the RadioBtn.
You should move the focus to nextBtn and it will be fixed:
Code:
Sub ShowData
    
If AnsRec=0 Then
        <b>NextBtn.Focus</b>
        PrevBtn.Enabled=
False
        NextBtn.Enabled=
True
    
Else If AnsRec=5 Then
Reply With Quote