Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Help PLs with converting controls

Thread Tools

Help PLs with converting controls

Michael Persaud
Posts: n/a
Im trying to have an image presented from a sql db and im trying to bring it to my web page into a panel

Private Sub AddImage(ByVal id As Integer, ByVal name As String, ByVal image As System.Drawing.Image)

'create a new, blank ImageListItem
Dim item As New ImageListItem

'use the ImageListItem's properties to store name, id, and image
item.Tag = id
item.Text = name
item.Thumbnail = image

'place the ImageListItem within the panel
item.Location = New Point(0, nextImageY)

'push our "next one goes here" integer down by the height of the item
nextImageY += item.Height

'size the item to the internal panel width and then anchor it
item.Width = leftpanel.Width.Value
item.Anchor = AnchorStyles.Left Or AnchorStyles.Top Or AnchorStyles.Right

'make the ImageListItem appear within the left panel


End Sub

I cant seem to get this to work without an error of "ImageListItem cannot be converted to system.ui.controls"

Can some one pls tell me how to make the control work


Is there any way to convert a to system.ui.controls

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
URGENT - Pls help...pls recommend - laptop purchase Computer Information 2 08-15-2008 11:34 PM
Controls.Count, Controls.IsSynchronized, and Controls.SyncRoot Nathan Sokalski ASP .Net 4 09-05-2007 03:27 AM
Help newbie with Netbeans help system/javadocs pls. James Bond Java 0 08-03-2004 06:01 AM
PLACEHOLDER NOT RENDERING CONTROLS... PLS HELP :-( Mike Speak ASP .Net 2 11-22-2003 12:47 PM
pls, help.. i need a number..pls olabanji timothy MCSE 7 09-10-2003 04:02 PM