Dynamic Images loading to Windows Form's Panel Control

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Dear all,

I am wondering on how to achieve this.

I have a database (or maybe an xml file) that contains a table Icons. It
contains the details as below:

Icon Table: (the database does not store any icons but it is stored on the
user local directory)

--------------

ID Name Description

e.g

a1 IconsA1 This is a cute icon

When i load the queries from my windows client, it will check the
necessary id, example

when they see a1 identification, it will auto load the file from
C:\Icons\IconA1.gif

Then it will dynamic draw on my windows forms client within a panel /
label control, or any UI control.

If there are 10 icons, it will draw 10 icons in the panel. If there are
100 icons, it will do a mini paging (like the one in datagrid)... say 1 page
only can show 20 icons.

Is there any online resources on achieving this? Or any guides you all.

I hope to achieve this in windows forms and C#. Not related to asp.net!

Thank you.
 
Hi,

Why don't you load the files when you receive them using the Bitmap object
(Bitmap.LoadFile) or you can use any stream on System.IO.

Then when you create the form also create Image objects and load them with
the stream that you previously loaded.

That should work.
Salva
 
Back
Top