Click here to Skip to main content
15,886,091 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
HELLO WHEN I PUT IMAGE IN PICTURE BOX GIVE ME ERROR GDI I USE VB.NET 2015

What I have tried:

HELLO WHEN I PUT IMAGE IN PICTURE BOX GIVE ME ERROR GDI I USE VB.NET 2015
Posted
Updated 5-May-21 21:23pm
Comments
Richard MacCutchan 5-May-21 17:08pm    
At a guess, you are doing something wrong.
Dave Kreskowiak 5-May-21 20:35pm    
There's only about a few thousand things that could cause a GDI error. With the complete lack of detail and code sample in your question, it's impossible for anyone to tell you what you did wrong.

1 solution

First off, DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalization if you want to be taken seriously.

At a guess, you are retrieving the image data from a DB, and that's where the problem lies - or at least with the data itself.
Have a look here: Why do I get a "Parameter is not valid." exception when I read an image from my database?[^] - the code is in C#, but it's exactly the same process for VB.
 
Share this answer
 

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