Results 1 to 3 of 3

Thread: [RESOLVED] VB6 behaviour - form.frx / user control(s)

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2013
    Posts
    18

    Resolved [RESOLVED] VB6 behaviour - form.frx / user control(s)

    i have made a custom usercontrol - which contains other standard vb6 controls.
    Suddenly i have detected that on special forms the "create new" or "delete" control (during designmode [place new control from the toolbox]) cause errors.
    Other controls (of the same type) on the form got grey.
    (kind of invalid .. similar if you change the code of the usercontrol in the background while a form with such a control is visible)

    On a fresh form i could not reproduce this.
    The affected form(s) are fitted with a ".frx" file and a couple of properties are stored in the frx file. (checked with a texteditor)
    Multiline captions, other binary data is okay .. but in this case nearly all "font" properties are redirected as well.

    This problem occures only in the IDE during the create or delete event of other controls.
    (btw: the usercontrol terminate event of the other controls is not fired when this happens)

    i have debugged now a while .. but i have still no clue how to fix this.
    (i could reopen the form after each create/delete action .. but i want to avoid this)

    Therefore the question to the round.
    Did anyone had a similar problem - what was the workaround / solution?

    OS: Win7 x64
    VB6 Version: 6.0.9782

    Thank you
    Last edited by adix; Dec 9th, 2014 at 09:56 AM.

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

    Re: VB6 behaviour - form.frx / user control(s)

    Hard to tell from your description. When are the create/delete events triggered? Do you have any code in the usercontrol's Initialize event?

    Regarding Terminate events. They won't get fired when it becomes grayed/hatched. When uncompiled, the event not fired when 'end' is executed via code or the toolbar
    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}

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Dec 2013
    Posts
    18

    Re: VB6 behaviour - form.frx / user control(s)

    thanks for the Feedback - with create Event .. i mean (during designmode) in the IDE if i place a new control from the Toolbox on the form.

    i didnt post any complexe code - because as mentioned .. i could not reproduce this on a fresh new form with no frx file. (same project / same instance)
    Once the IDE create (due to any reason) a frx file per form .. the controls act as described.

    --
    update:
    the project contains a few user dialogs. The issue ocures in the meanwhile independent of a frx file - but only on one form.
    i matched the (core) form properties with a Texteditor -> identical.

    i have transfered the logic and controls into a new form .. and removed the old buggy one from the project.

    Lets focus on the project itself and skip this as a feature.
    Last edited by adix; Dec 9th, 2014 at 10:42 AM.

Tags for this Thread

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