DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2

Thread: check boxes

  1. #1
    Tyreal Guest

    check boxes


    Option Explicit

    Private Sub Check2_Click()
    frmFactor.Show
    End Sub

    Private Sub Check3_Click()
    frmDocument.Show
    End Sub
    (ETC...)

    I have a bunch of these on a page and when I check them it displays a form
    in my application.
    I want to be able to click the check box again and not only close the
    form i opened but also, get the check "mark" out of the check box.

    Need any clarifications just ask.

    Thanks ahead of time, Tyreal


  2. #2
    dnagel Guest

    Re: check boxes

    this should handle the form loading and unloading...

    private sub check2_click()

    if check2.value = vbchecked then
    frmFactor.Show
    else
    frmFactor.hide
    unload frmFactor
    endif

    end sub


    as for removing the mark, if the user clicks the checkbox, it will disappear
    by itself. you can un-mark it in code by
    check2.value = vbunchecked

    from another form it would be
    form1.check2.value ...


    D.



    "Tyreal" <rweninger@kscable.com> wrote in message
    news:3b5f449d$1@news.devx.com...
    >
    > Option Explicit
    >
    > Private Sub Check2_Click()
    > frmFactor.Show
    > End Sub
    >
    > Private Sub Check3_Click()
    > frmDocument.Show
    > End Sub
    > (ETC...)
    >
    > I have a bunch of these on a page and when I check them it displays a form
    > in my application.
    > I want to be able to click the check box again and not only close the
    > form i opened but also, get the check "mark" out of the check box.
    >
    > Need any clarifications just ask.
    >
    > Thanks ahead of time, Tyreal
    >




Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links