Jeffrey Christiansen <jeff.c@earthlink.net>'s wild thoughts
were released on Mon, 02 Jul 2007 01:26:22 GMT bearing the
following fruit:
[quoted text, click to view] >I have been experimenting with adding Microsoft Forms ActiveX Controls
>to a VB2005 Form to be used as a Windows Application (i.e. compiled to
>a "*.exe") and can't get them to work properly.
>
>For example I added the ActiveX Microsoft Forms Object toggle button,
>however I can't get this simple button to work properly. The
>documentation I found in the FM20.CHM files says the button state can
>be determined from its "Value" property, but the property list shown
>in VB2005 Studio does not have a "Value" property. How is the button
>state determined and why is there no "Value" property?
MS Forms 2.0 is not for use with VB, and are not
redistributable.
J
[quoted text, click to view] >This aside, if I put a MsgBox in the MouseClick event it gets
>displayed when I start the form (even without a click), but then does
>nothing when I actually click on the button. I've also found I get
>different parameters with different attempts to add a toggle button,
>such as:
>
> Private Sub AxToggleButton1_MouseClick
> (ByVal sender As Object,
> ByVal e As System.Windows.Forms.MouseEventArgs)
> Handles AxToggleButton1.MouseClick
>
> Private Sub AxToggleButton1_MouseClick
> (ByVal sender As System.Object,
> ByVal e As System.EventArgs)
> Handles AxToggleButton1.Enter
>
> Private Sub AxToggleButton2_MouseUpEvent
> (ByVal sender As Object,
> ByVal e As
>AxMicrosoft.Vbe.Interop.Forms.MdcToggleButtonEvents_MouseUpEvent)
> Handles AxToggleButton2.MouseUpEvent
>
>The last one seems to work best, unless I add a MsgBox, but I can't
>find any documentation or examples to explain what the correct way to
>use Forms controls in VB2005. What I did find implies that it is
>simple drag-and-drop just like other contros. Can anyone explain the
>correct way to add Microsoft Forms controls (and other ActiveX
>controls) to a VB2005 application, and why a MsgBox in the Click Event
>code causes the control to behave incorrectly.
>
>Thanks.
>Jeff C.
--
Jan Hyde