×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

How to write a very simple ActiveX component with a GUI

How to write a very simple ActiveX component with a GUI

How to write a very simple ActiveX component with a GUI

(OP)
I would like to write a very simple custom ActiveX component with one button and one checkbox on it. I will put this ActiveX component into a user form in an Excel macro and I want this ActiveX component to communicate (invoke methods and generate events) with the VBA code that embeds it, based on for example button presses and checkbox changes. I plan to program in C++/MFC and use Microsoft Visual Studio .NET 2003.

I have found some examples on the Internet, but they didn't quite work the way I was expecting and I face the same problem if I let the Visual Studio wizard create the project for me. If I double-click the icon under Dialog in the Resource View, I would expect to see a form which is very similar to what the ActiveX component will look like on the Excel user form. But instead, the form I see in Visual Studio appears to be some sort of property control GUI for the ActiveX component I create. If I, for example in Frontpage or ActiveX Control Test Container, insert the ActiveX component and view the properties of the ActiveX component, I see the form I was hoping would be the ActiveX component itself. I guess it's ok that there is a form for changing properties, but how do I get the real form that will be similar to what shows up in Excel? I am a beginner C++ programmer, please keep that in mind.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close