Forum Discussion

AhmedOsama's avatar
AhmedOsama
Copper Contributor
Mar 04, 2023

How to retrieve a RegisterClassEx() form of standard VB controls suitable for use in C++ Application

How to make a RegisterClassEx() type from standard VB Controls (error control, progress bar, etc)

suitable for use in C++ Applications?

When you drag a VB control into a form, really .NET framework does a CreateWindowExW call to create it because the Win32 API what is really can create a control, .NET framework only adds a hidden API call, which is defined in the control and in System.Windows.Forms.dll (The control defines the class while System.Windows.Forms.dll calls CreateWindowExW on the specified class name)

So, how to create a RegisterClassEx() type from standard VB controls suitable for use in Win32 C++ GUI Applications?

3 Replies

  • LanHuang's avatar
    LanHuang
    Iron Contributor

    Hi AhmedOsama,

    Thanks for posting your issue here.

    However this platform is used for how-to discussions and sharing best practices for building any app with .NET.Since your issue is a technical question, welcome to post it in Microsoft Q&A forum, the support team and communities on Microsoft Q&A will help you for any technical questions.
    Besides, it will be appreciated if you can share it here once you post this technical question Microsoft Q&A.
    Best Regards,
    Lan Huang

    • AhmedOsama's avatar
      AhmedOsama
      Copper Contributor
      Link:
      https://learn.microsoft.com/en-us/answers/questions/1188339/how-to-retrieve-a-registerclassex()-form-of-standa
    • AhmedOsama's avatar
      AhmedOsama
      Copper Contributor
      This is illegal in this forum, where question here must stay here.

Resources