Results 1 to 2 of 2

Thread: [VB6] - creating activex controls

  1. #1

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,964

    [VB6] - creating activex controls

    very people knows create activex controls, but theres somethings, importants, that we need understand
    1 - how we know that we can use it in another OOPL(Oriented Object Programming Language?
    i try use my own controls in Visual C++ 6(ok.. i'm new in these program.. but i think that it's easy use controls on it), but i receive some errors....
    why these errors?
    ok.. i understand that, for draw\paint something, the object must be showed\created(not initializate or terminate(why i said Terminate??? because these event, sadly, is activated after the control is created)) events.
    can anyone explain to me these behavior?
    (sorry my bad english.. but i don't know all words... if some words aren't ok, please correct me)
    VB6 2D Sprite control

    To live is difficult, but we do it.

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: [VB6] - creating activex controls

    Some things to consider
    1. Not all designers accept windowless controls. Those that do not will force the windowless control to become windowed.
    2. Do not reference the Extender object in your code. Not all designers provide an extender. Those that do, the Extender properties you are expecting may not exist or may be named differently.
    3. The Ambient.UserMode property does not have to be implemented by any designers. This means you may not have a definitive way to know if your uc is in design view or runtime view.
    4. As you pointed out, events may not be called in the order you expect.
    When a uc is moving from design mode to runtime, it is first destroyed in design mode and re-created in runtime mode.

    Any recommendation I could offer would be to find documentation for the designer you are trying to make your control compatible with. Good luck.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width