check boxes


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

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
    >




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


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center