Re: checkbox_Click called when value changed?



I have not used VB6 for a long time so I am a little rusty but your
suggestion works! Thanks a bunch Mike.

Mike Williams wrote:
> "Ken-Jin" <kevinkhaw@xxxxxxxxx> wrote in message
> news:1137703006.275381.118500@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> > Long story short, when i change the checkbox.value outside of
> > the checkbox_click function, it automatically calls the checkbox
> > _click function. Is there a checkbox_MouseUp? seems to be
> > giving me an error.
>
> Yes. There most certainly is a Checkbox MouseUp event. Perhaps you are just
> typing the entire event code into your project (and not quite getting it
> right) instead of just allowing VB to create the Sub and End Sub lines for
> you? What version of VB are you using? In VB6 just place a checkbox on your
> Form and double click it in the VB IDE and select the MouseUp event from the
> drop down list. Otherwise, try typing the following in to your Form code
> (assuming your checkbox is called Check1):
>
> Private Sub Check1_MouseUp(Button As Integer, _
> Shift As Integer, X As Single, Y As Single)
> ' your code here
> MsgBox "The checkbox mouse up event has been triggered."
> End Sub
>
> Mike

.



Relevant Pages

  • Re: Question about universal looping through control types
    ... example below forces at most one checkbox to be checked. ... then attach this sub to the checkbox.CheckedChanged method in the event ... Thank you Mike! ...
    (microsoft.public.dotnet.languages.vb)
  • Re: I want a field to be updated on the sub form
    ... Private Sub CheckboxName_AfterUpdate ... <MS ACCESS MVP> ... "Ken Snell " wrote: ... next to the On After Update property for the checkbox. ...
    (microsoft.public.access.forms)
  • RE: Auto Select Date via check box
    ... Private Used_for_AfterUpdate'After update event for the checkbox ... 'Me.= 'umm not sure what you mean by reset Question ... 'Field or what you question control name is.' ... Private Sub Form_Load ...
    (microsoft.public.access.formscoding)
  • Re: Automatically resest variable values = 0 after runtime
    ... type in the CheckBox name each time. ... > Private Sub CalculateVariables() ... >> Dim var1 As Single ...
    (microsoft.public.excel.programming)
  • Re: Another Check-box problem
    ... ' anchored position of the checkbox within the linked cell. ... ' This sub will insert check boxes into column "A". ... Dim rcntr As Integer 'Total count of rows with valid data ...
    (microsoft.public.excel.programming)