Results 1 to 3 of 3

Thread: Images Built in into my Control ?????

  1. #1

    Thread Starter
    Frenzied Member maged's Avatar
    Join Date
    Nov 2002
    Location
    Egypt
    Posts
    1,040

    Images Built in into my Control ?????

    Hi all,

    i am building a control that is used to enhance some user interface. my project of course outputs DLL file that i use in other .net projects.

    Anyway, this control have a property to select the image i want to enhance. i need to set this property to a default image. so if user didn't select anything there will be inside it a ready small icon.

    well, i have managed to load this image from application.startuppath in the initialization sub of the control ( sub New)

    it works fine, But....... i need to copy both the DLL file and the image file used as default so my control will work.

    i need i way to compile this icon inside my DLL in a way that i can call it internally from inside my code.

    ( ALL packed inside one file i mean)

    can any1 help in this ????

    thx & BS TRGDS

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    You can store the default image as embedded resource then you can load it like this :
    http://www.codeproject.com/vb/net/embeddedicon.asp

  3. #3

    Thread Starter
    Frenzied Member maged's Avatar
    Join Date
    Nov 2002
    Location
    Egypt
    Posts
    1,040

    Re: Images Built in into my Control ?????

    yahooooooooo


    thx again Pirate

    i am starting to notice that you helpmed me out pretty much in the last week, i hope my ignorance won't bother u

    thx again

    BST RGDS

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