Results 1 to 2 of 2

Thread: Imagelist - Simple problem

  1. #1

    Thread Starter
    Hyperactive Member MarkusJ_NZ's Avatar
    Join Date
    Jun 2001
    Posts
    375

    Imagelist - Simple problem

    Hi All, This will likely be something extremely simple.

    To simplify things, I have a new VB .NET 2008 Windows Form Application with absolutely no code yet. The only control I have on the form is a stock standard imagelist common control.

    Using the inbuilt editor for adding images, i've added one single 16x16 jpg image (just to simplify things).

    If I build and run the application at this point I get the following error.An error occurred creating the form. See Exception.InnerException for details.

    The error is: Index was outside the bounds of the array.
    I don't expect to see any images at this point when I 'Run' the application. I just need to work out why i'm getting the error. Later on i'll be referencing the imagelist in another control.I obviously need a bit of code. Just not sure what?

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Imagelist - Simple problem

    Moved to VB.Net.

    The CodeBank is for submitting example applications and tutorials, not for asking questions.

    Gary

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