Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Picture Box
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00722362
Message ID:
00722691
Vues:
25
What I did was create a new Bitmap object, then assign that to the PictureBox Image property.

>Thank you Cathi,
>
>So what I was missing is that I have to make an instance of the object to use it .. correct ?
>
>
>
>>Hi Ahmad,
>>
>>Try the following instead:
>>
>>
>>Dim MyImage As Bitmap
>>MyImage = New Bitmap("c:\temp\BabayTest2.gif")
>>pbMemberPicture.Image = CType(MyImage, Image)
>>
>>
>>
>>>Hi All,
>>>
>>>I am trying to display an image picture from a file inside a PictureBox using the following code, but it doesn't work, I tried with deferant image format still the same problem, am I missing something:
>>>
>>>pbMemberPicture.Image.FromFile("c:\temp\BabayTest2.gif")
>>>----
>>>then Added this
>>>----
>>>pbMemberPicture.Show()
>>>
>>>Can anyone advice please.
>>>
>>>Ahmad
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform