Results 1 to 3 of 3

Thread: ActiveX User Control problem

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Reynosa, Mexico
    Posts
    274
    I have an ActiveX UserControl which contains a Picture Box. I draw some lines on this Picture Box and every thing sees fine. But, at Design-time of the form, if I click on my control, the lines drawed on the picturebox disapear!!!

    When I run the app, the lines appears again.

    Any idea about this?
    Ulises Vázquez
    [size=1.7]Oracle DBA Certified Professioanl
    Visual Basic 6 Developer
    Crystal Reports Designer
    [/size]

  2. #2
    Lively Member
    Join Date
    Jan 1999
    Location
    Lincolnshire, UK
    Posts
    111
    I think that it's the refresh event of the picture box. You'll have to save the line specs somewhere and in the picturebox_refresh event, redraw the lines (maybe)

    Cheers

    Chris

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Reynosa, Mexico
    Posts
    274
    I'm afraid that PictureBox does't has a Refresh event. It has a Paint event and I already put mu lines into this event and got the same result.

    This only happends in the design-time of the form.
    Ulises Vázquez
    [size=1.7]Oracle DBA Certified Professioanl
    Visual Basic 6 Developer
    Crystal Reports Designer
    [/size]

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