Can I use one Imageslist for all form in my apps?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • apatiuthai
    New Member
    • Jan 2010
    • 5

    Can I use one Imageslist for all form in my apps?

    Can I use one Imageslist for all form in my apps?

    like data module in delphi

    thanks very much
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    Your question is pretty much non-understandable. It makes little sense.

    Comment

    • apatiuthai
      New Member
      • Jan 2010
      • 5

      #3
      yes sir.

      i'm have imagelist on frmMain and i add many icon to it

      and i create new form and How can I use picture in frmMain.ImageLi st1 from another form

      Comment

      • tlhintoq
        Recognized Expert Specialist
        • Mar 2008
        • 3532

        #4
        put the imagelist in program.cs instead of frmMain.
        Then you can reach it from any form
        Program.imageli st

        Comment

        • apatiuthai
          New Member
          • Jan 2010
          • 5

          #5
          sorry i'm new for vb.net

          you said program.cs

          what file in vb

          Comment

          • tlhintoq
            Recognized Expert Specialist
            • Mar 2008
            • 3532

            #6
            I don't do VB. What file is the primary file for your program that calls the first form to open?

            Comment

            • apatiuthai
              New Member
              • Jan 2010
              • 5

              #7
              frmmain.vb is my first form and I have Image list on this form.

              Comment

              • tlhintoq
                Recognized Expert Specialist
                • Mar 2008
                • 3532

                #8
                Sorry. In C# the first code that runs is the Program.cs file. That in turn opens the forms. I have just now seen that a VB project is a bit different.

                I think I'll bow out since this isn't my primary coding language.

                Comment

                • apatiuthai
                  New Member
                  • Jan 2010
                  • 5

                  #9
                  Thank you tlhintoq. :)

                  Comment

                  Working...