Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General 2 / June 2007



Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeffrey Christiansen - 25 Jun 2007 02:12 GMT
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.MdcToggleButtonEvents_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.
Jan Hyde (VB MVP) - 26 Jun 2007 09:01 GMT
Jeffrey Christiansen <jeff.c@earthlink.net>'s wild thoughts
were released on Mon, 25 Jun 2007 01:12:54 GMT bearing the
following fruit:

>I wanted to add a toggle button to a VB2005 form to be used for a

For dotbet related questions you need a group with 'dotnet'
in the name, this group deals with VB6 and below.

J

>simple Windows Application (i.e. compiled to a "*.exe"), so I added
>the ActiveX Microsoft Forms Object toggle button, however I can't get
[quoted text clipped - 32 lines]
>
>Thanks.

--
Jan Hyde

https://mvp.support.microsoft.com/profile/Jan.Hyde
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.