Wrox Programmer Forums
|
Pro VB Databases Advanced-level VB coding questions specific to using VB with databases. Beginning-level questions or issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB Databases section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 16th, 2004, 09:09 PM
Registered User
 
Join Date: Sep 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help me please


I have a GroupBox and inside I have 3 checkbox

What I want to do is customize it, I'm going to add a button at the end so I can Add/Remove additional checkbox from a database, so in that way I can add or remove checkbox all I want and the Groupbox must resize automatically

I Hope someone can Help me with this

JoseLuis
 
Old November 24th, 2004, 06:35 AM
Aal Aal is offline
Authorized User
 
Join Date: Oct 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi jlanxxi . . .
Do you mean, that u got a data type field in your tables with Yes/No data field or kind of ? if true, maybe u can do like this.
-------------- check box with index ( array ) ---------------------------
First check for record count to current table that have a check values
( True/False ), after u got the Rec Count then load a checkbox ( increase the index of checkbox as much as the record count and make it visible to the user ), because checkbox only have condition True/False or 1/0, sinkronise them. For uncheck action in your front end from the user, just use UPDATE statement, and resume again to load the checkbox.

------ LOGICAL VIEW -----------

   SELECT TO CURR TABLES
           |
           |___RESULT SELECTION ( EOF / NOT )
                     |
                 ___ | ___________
                | |
           no records there's records
                | |
           Show default get the rec's count
            checkbox |
                           Loop the checkboxes
                               to array

-------------------------------------------------
For the Groupbox objects, my suggest u make it direct to the form with a scrollbar besides, that can cut a few line of your code . . .
hope this is usefull 4 u, bye. . .











Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.