473,382 Members | 1,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

"NotSupportedException was unhandled + System.Drawing.Bitmap"

Hi buddys,

I have the followinf Bug.........
when i run my application "NotSupportedException was un handled" in "System.Drawing.Icon"
for the following designer code....

Me.picImgMain.Image = CType(resources.GetObject("picImgMain.Image"), System.Drawing.Image)

can u give any idea
Jan 9 '08 #1
3 5512
markmcgookin
648 Expert 512MB
Hi buddys,

I have the followinf Bug.........
when i run my application "NotSupportedException was un handled" in "System.Drawing.Icon"
for the following designer code....

Me.picImgMain.Image = CType(resources.GetObject("picImgMain.Image"), System.Drawing.Image)

can u give any idea
I take it you have dropped a picture onto a form or added a picturebox to a form and added a picture to it?

What is the type of file that you are trying to add to the form?

i.e. .png, .gif, .jpg etc?

Mark
Jan 9 '08 #2
Hi mark,

Thanks for ur reply
I just drag one picture box and load image at design time, It is
".PNG" type image.

and one more thing, it ran successfully before one hour, The bug was raised when i add new form to my project .........
Jan 9 '08 #3
markmcgookin
648 Expert 512MB
Hi mark,

Thanks for ur reply
I just drag one picture box and load image at design time, It is
".PNG" type image.

and one more thing, it ran successfully before one hour, The bug was raised when i add new form to my project .........
So it worked fine, then you added a new, different form and then the original form has stopped working. Have you tried deleting the image and compiling to see if that works? then adding it again and compiling?

Mark
Jan 11 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Colin | last post by:
Hi there, I have wrote a simple console app in C# to get the dimensions for a jpeg file /*** Image img = Image.FromFile(@"C:\TEMP\PvFile\1036437.jpg", true); LogEvent("Height = " +...
6
by: Paul Steele | last post by:
I often use the following code to check if a program is already running: if (Process.GetProcessesByName(Process.GetCurrentProcess().ProcessName).Length > 1) ... This works find on all of my...
5
by: Peter Steele | last post by:
We have an application that when it runs in the IDE in debug mode an unhandled exception is occurring in a system header file associated with STL stirngs. The actual statement that crashes is ...
0
by: mammucion | last post by:
Trying to automate processing 80,000 data sets through 15 web pages. Application URL creates a new IE instance in which runs first a login form and then runs the rest of the pages in the new...
5
by: hzgt9b | last post by:
I'm building a dataset that writes out a Point type value. Here's the code that I've got: 1 Dim dsContent As DataSet = New DataSet("content") 2 Dim dtAsset As DataTable = New...
2
by: whiskers | last post by:
I'm debugging some code and I have to admit that I don't know yet how it works. But I ran into a problem I can't explain The program is a DLL that retrieves raw data from a camera, builds...
0
by: RSH | last post by:
Hi, I am building a Win Forms application that I would like to feed a function a collection of strings (button text) that the program will go through and generate and save the generated buttons....
0
by: rmcpherson | last post by:
Can someone please help with this problem? I'm trying to go to the last record, make a new record, and save it the database. It just gives me "OleDbException was unhandled" error at da.Update(ds,...
8
joedeene
by: joedeene | last post by:
Hello there, I am having a problem and it is frustrating me because I've been trying to figure it out, and I've even modified the code a few times but the same exception occurs: "...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.