Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to assign events to FORM buttons at runtime

Status
Not open for further replies.

JeffDeville

Programmer
Dec 10, 2002
1
US
I need buttons created at runtime to respond to click
events also created at runtime.

I read this article about how to do this in the word
document itself, but I want the buttons to work in a form.
us;q246299

I can create the buttons, but when I use a modified
version of the technique above, Word XP crashes.

Has anyone been able to do this?

Thanks!
-Jeff Deville
 
In "regular" VB, I define a variable WithEvents

Dim myCmdbtm WithEvents as VB.CommandButton

Then MyCmdBtn appears as an object in the Left combo box of the Code Window with the events listed in the right combo box. The varaiable name can be any name that does not already exist. Forms/Controls Resizing/Tabbing Control
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
i want to printout the excatly form i made it in outlook?
how to do it,
 
hey elham33120,

Your posting has nothing to do with this string.

Create a new question (and make it clear what you are asking) Skip,
SkipAndMary1017@mindspring.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top