Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
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 30-Jan-13 2:29am
Comments
ryanb31 at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

use below code multiple times using loop to dynamically generate image controls
 
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 Smile | :)
plz vote and accept ans if it helps u
 
Enjoy coding
  Permalink  
Comments
Hidayat Meman at 30-Jan-13 23:37pm
   
Hey Dear am working it gives error regarding picturebox. picturebox is available in asp.net controls?
CodeMaster_Noob at 31-Jan-13 0:23am
   
no in asp.net u will be having image control... you can replace picturebox with image control.
Hidayat Meman at 31-Jan-13 4:16am
   
ok dear Thanx..i used image button b'coz image control dosnt provide ImageUrl Property..
Hidayat Meman at 30-Jan-13 23:54pm
   
and thanx for that...
CodeMaster_Noob at 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)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 566
1 OriginalGriff 345
2 CPallini 200
3 PIEBALDconsult 150
4 Magic Wonder 131
0 OriginalGriff 5,795
1 Sergey Alexandrovich Kryukov 5,028
2 CPallini 4,700
3 George Jonsson 3,142
4 Gihan Liyanage 2,450


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 30 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100