Click here to Skip to main content
15,905,679 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey Freinds Please Give me code for following.
I want to create Dynamically(Run time) multiple image Control into the panel and Images are placed in sequence. In a Single Row only 4 images are display after then in a new row it will display another images
Posted
Comments
ZurdoDev 30-Jan-13 8:35am    
What have you tried? Not often will you find someone who will just give you all of the coding you need.

1 solution

use below code multiple times using loop to dynamically generate image controls

VB
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim image1 As PictureBox = Nothing
        image1.Height = 50
        image1.Width = 50
        image1.Load(imagepath)
        Panel1.Controls.Add(image1)


    End Sub



Hope it helps u :)
plz vote and accept ans if it helps u

Enjoy coding
 
Share this answer
 
Comments
Hidayat Meman 30-Jan-13 23:37pm    
Hey Dear am working it gives error regarding picturebox. picturebox is available in asp.net controls?
[no name] 31-Jan-13 0:23am    
no in asp.net u will be having image control... you can replace picturebox with image control.
Hidayat Meman 31-Jan-13 4:16am    
ok dear Thanx..i used image button b'coz image control dosnt provide ImageUrl Property..
Hidayat Meman 30-Jan-13 23:54pm    
and thanx for that...
[no name] 31-Jan-13 4:22am    
ur wc :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900