469,273 Members | 1,608 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,273 developers. It's quick & easy.

Where is VALUE property on Microsoft Forms Toggle Button on VB2005 Form

I wanted to add a toggle button to a VB2005 form to be used for a
simple Windows Application (i.e. compiled to a "*.exe"), so I added
the ActiveX Microsoft Forms Object toggle button, however I can't get
this button does 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 does not have
a "Value" property. How is the button state determined and why is
there no "Value" property?

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 got
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.MdcToggleButtonEvent s_MouseUpEvent)
Handles AxToggleButton2.MouseUpEvent

The last one seems to work best, but I can't find any documentation or
examples to explain what the correct way to use Forms controls in
VB2005. Can anyone explain the correct way to add Microsoft Forms
controls (and other ActiveX controls) to a VB2005 application.

Thanks.
Jun 25 '07 #1
1 4090
Jeffrey Christiansen wrote:
I wanted to add a toggle button to a VB2005 form to be used for a
simple Windows Application (i.e. compiled to a "*.exe"), so I added
the ActiveX Microsoft Forms Object toggle button, however I can't get
this button does 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 does not have
a "Value" property. How is the button state determined and why is
there no "Value" property?
This doesn't directly answer your questions, but you can not distribute
the MS Forms controls.
This means your users HAVE to have MS Office (or a few other select MS
apps) to be able to run your app.

Additionally, there must be a similar .net based control rather than
shoehorning an ActiveX control into a .NET app.

(I can't follow up to comp.lang.basic.visual as my ISP don't hold the group)

--
Dean Earley (de*********@icode.co.uk)
i-Catcher Development Team

iCode Systems
Jun 25 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Brian D | last post: by
1 post views Thread by Flipmode | last post: by
2 posts views Thread by Benedict Teoh | last post: by
7 posts views Thread by pooba53 | last post: by
4 posts views Thread by Rob | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.