load pictures in a image which is inside a usercontrol

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Mauro
    New Member
    • Dec 2006
    • 5

    load pictures in a image which is inside a usercontrol

    Hi!

    I created a usercontrol, inside it, there is a image control, I created a picture property, but when I try to change or load a picture in the image control in run time, I can't, it appears an error: Not valid property use or something like that

    How can I do that?
  • padhuwork
    New Member
    • Dec 2006
    • 30

    #2
    Originally posted by Mauro
    Hi!

    I created a usercontrol, inside it, there is a image control, I created a picture property, but when I try to change or load a picture in the image control in run time, I can't, it appears an error: Not valid property use or something like that

    How can I do that?
    Hi,
    Post your code. And correctly mention Error message thats been displayed.
    Padhu

    Comment

    • Killer42
      Recognized Expert Expert
      • Oct 2006
      • 8429

      #3
      Originally posted by Mauro
      Hi!

      I created a usercontrol, inside it, there is a image control, I created a picture property, but when I try to change or load a picture in the image control in run time, I can't, it appears an error: Not valid property use or something like that

      How can I do that?
      A first guess would be that in the Property Set procedure, you need to use the LoadPicture function. (As well as placing the file name into a local variable, probably.)

      Comment

      • Mauro
        New Member
        • Dec 2006
        • 5

        #4
        It was just a word "SET"
        I can do it! Thanks!!!

        Comment

        Working...