Check box on a panel on a tabbed dialog 
Author Message
 Check box on a panel on a tabbed dialog

can't say why things are disappearing, but I can provide a "shortcut" to
make coding easier....

You are basically doing a Boolean check and setting the state based on the
value of each checkbox.  Instead of the code you have below, you could use:

Private Sub Check1_Click(Index As Integer)

      SSTab1.TabEnabled(1) =  Check1(0).Value = 1
      SSTab1.TabEnabled(2) =  Check1(1).Value = 1

End Sub

Alternatively, you could also use:

Private Sub Check1_Click(Index As Integer)

  SSTab1.TabEnabled(Index + 1) =  Check1(Index).Value = 1

End Sub

--
Randy Birch, MVP Visual Basic

VBnet, The Visual Basic Developers Resource Centre
http://www.*-*-*.com/



: I have an array of check boxes on a panel which is itself on a
: sheridan tabbed dialogue box.
:
: Depending on the checkbox checked, I want to enable or diable the
: other tabs.
:
: Private Sub Check1_Click(Index As Integer)
:
:     If Check1(0).Value = 1 Then
:         SSTab1.TabEnabled(1) = True
:     Else
:         SSTab1.TabEnabled(1) = False
:     End If
:    
:
:     If Check1(1).Value = 1 Then
:         SSTab1.TabEnabled(2) = True
:     Else
:         SSTab1.TabEnabled(2) = False
:     End If
:
: End Sub
:
: Problem is, everytime I click one of the check boxes they both
: disappear.
:
: Any suggestions,
:
: Thanks
:
: Jonathan
:
:



Sun, 26 Mar 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Check box on a panel on a tabbed dialog

2. Check box on a panel on a tabbed dialog

3. VB5 - List Boxes Shift Back One Tab on Tab Dialog

4. Tab stop ranges not unique in tab panels!

5. Displaying 2nd tab of Insert Object dialog box

6. DBGrid Not showing scrollbar when on PictureBox or SS Tabbed Dialog Box

7. Tab Strip and Dialog Boxes

8. ??Access to New Project 3 tab dialog box???

9. Designing Tabbed Dialog Boxes

10. DBGrid Not showing scrollbar when on PictureBox or SS Tabbed Dialog Box

11. Tabbed Dialog Box

12. Problem with Tabbed Dialog Box SSTab in modal form

 

 
Powered by phpBB® Forum Software