Icon to Image conversion problem

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,524
Location
Lansing, MI; USA
Programming Experience
10+
I wasnt sure if this should be in the Window Forms section or here, so here it is. I've got an "About" form that's just a general one that i add to every project. Here's how it's called:

VB.NET:
 Dim frmAboutWindow As New frmAbout
 With frmAboutWindow
 .Icon = Me.Icon
 .Title = gstrThisAppTitle
 .ShowDialog()
 End With
pretty straight forward but on this window i've got a picturebox that simply displays that Icon but with option strict on, it tells me that an "Icon" isnt an "Image"
i did try:
picIcon.Image = CType(Me.Icon, System.Drawing.Image)

but it still tells me that an "Icon" isnt an "Image" what am i doing wrong?
 

JuggaloBrotha

VB.NET Forum Moderator
Staff member
Joined
Jun 3, 2004
Messages
4,524
Location
Lansing, MI; USA
Programming Experience
10+
thanx paszt, i was wondering what the "ToBitmap" did, i guess i should have just tried it myself
 
Top Bottom