Help: adding a maskedbox control to a form in an addin program 
Author Message
 Help: adding a maskedbox control to a form in an addin program

I am trying to add a maskedbox control to a form in an addin program
using the follwoing code

Sub BuildForm()

  Dim frmNewForm As VBComponent
  Dim ctlNewControl As VBControl
  Dim vbf As VBForm

  'create the new form

'  Add maskedbox

   Set vbf = frmNewForm.Designer
**  Set ctlNewControl = vbf.VBControls.Add("MaskEdBox")

End Sub

I get an error saying type mismatch when the program gets to the line  **

I appreciate any comments or solutions that can help me solve this problem.

Thank you in advance

Jos Gon?alves




Wed, 25 Oct 2000 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Help: Adding a maskedbox to a form in an addin

2. Subject: HELP with MS Forms 2.0 controls - MaskEdBox and ComboBox

3. HELP with MS Forms 2.0 controls - MaskEdBox and ComboBox

4. add maskedbox to form on runtime

5. VB5CCE - program freezes when adding control to test form

6. Help: Need advise on turning VB Addin into Excel Addin

7. Help: displaying form from VSS addin

8. Adding a control to a windows form from an add-in

9. How to add code to form and controls from my Add-In

10. help with adding dynamic controls fo a form

11. add maskedbox to MSHFlexGrid class

12. Create custom control in form using code (code wizard adding ocx to form)

 

 
Powered by phpBB® Forum Software