Click here to Skip to main content
16,016,623 members
Home / Discussions / C#
   

C#

 
GeneralThanks a lot!! Pin
bania7-Feb-03 3:32
bania7-Feb-03 3:32 
Questionassociate an object with datagrid's row ? Pin
Paresh Gheewala6-Feb-03 14:11
Paresh Gheewala6-Feb-03 14:11 
QuestionDrawString Diagonally on Image object? Pin
wkoch6-Feb-03 10:23
wkoch6-Feb-03 10:23 
AnswerRe: DrawString Diagonally on Image object? Pin
Paresh Gheewala6-Feb-03 10:43
Paresh Gheewala6-Feb-03 10:43 
AnswerRe: DrawString Diagonally on Image object? Pin
James T. Johnson6-Feb-03 15:37
James T. Johnson6-Feb-03 15:37 
GeneralRe: DrawString Diagonally on Image object? Pin
b99koch17-Mar-03 9:58
sussb99koch17-Mar-03 9:58 
GeneralManaged DirectDraw Pin
Tomas Petricek6-Feb-03 9:49
Tomas Petricek6-Feb-03 9:49 
GeneralUsing Bitmap.Save(FileName, ImageFormat.Icon) Pin
draco_iii6-Feb-03 8:28
draco_iii6-Feb-03 8:28 
While building an icon editor to get the feel for graphics handling I came upon a problem.

I have a panel that is has been grided out with lines, 32x32, which as you draw updates a Bitmap which is 64x64. When I go to save the icon I I convert it down to a 32x32 Bitmap and the attempt to save it.

If I take the saved file and load it into an image editor the image comes out fine. However, when I try and reload the Icon via new Icon(FileName) I get this Exception.

An unhandled exception of type 'System.ArgumentException' occurred in system.drawing.dll<br />
<br />
Additional information: The argument 'picture' must be a picture that can be used as a Icon.<br />


When looking at the file in the folder view it shows the Windows "Unassociatated Icon".

If I save the Image in Bitmap format it shows the Image next to the file, but
it still throws the Exception when reloading. Also if I build a release it throughs an error on the icon that says

Error generating Win32 resource: Error reading icon 'E:\Programming\Icons Plus\Icons Plus\bin\Debug\myIcon2.ico' -- The data is invalid. <br />


Any ideas on how to get the image saved properly so that it can be used as an Icon.
GeneralRe: Using Bitmap.Save(FileName, ImageFormat.Icon) Pin
Paresh Gheewala6-Feb-03 9:32
Paresh Gheewala6-Feb-03 9:32 
GeneralRe: Using Bitmap.Save(FileName, ImageFormat.Icon) Pin
draco_iii6-Feb-03 11:55
draco_iii6-Feb-03 11:55 
GeneralWhich PixelFormat. to use Pin
draco_iii6-Feb-03 14:54
draco_iii6-Feb-03 14:54 
GeneralShow System Menu on a borderless form Pin
Peter Dedene6-Feb-03 7:58
Peter Dedene6-Feb-03 7:58 
Generalproblem with saving XML to xml file Pin
Wizard_016-Feb-03 5:33
Wizard_016-Feb-03 5:33 
GeneralRe: problem with saving XML to xml file Pin
Paresh Gheewala6-Feb-03 7:46
Paresh Gheewala6-Feb-03 7:46 
GeneralRe: problem with saving XML to xml file Pin
Ryan Cromwell7-Feb-03 9:23
Ryan Cromwell7-Feb-03 9:23 
GeneralSerialization Pin
Filip Strugar6-Feb-03 4:56
Filip Strugar6-Feb-03 4:56 
GeneralRe: Serialization Pin
Furty7-Feb-03 14:16
Furty7-Feb-03 14:16 
GeneralRe: Serialization Pin
Victor Vogelpoel7-Feb-03 23:06
Victor Vogelpoel7-Feb-03 23:06 
GeneralDocking Windows Pin
Braulio Dez6-Feb-03 1:20
Braulio Dez6-Feb-03 1:20 
GeneralRe: Docking Windows Pin
TigerNinja_6-Feb-03 3:52
TigerNinja_6-Feb-03 3:52 
GeneralRe: Docking Windows Pin
Braulio Dez6-Feb-03 4:31
Braulio Dez6-Feb-03 4:31 
GeneralRe: Docking Windows Pin
Paul Riley6-Feb-03 4:45
Paul Riley6-Feb-03 4:45 
GeneralRe: Docking Windows Pin
Braulio Dez6-Feb-03 5:12
Braulio Dez6-Feb-03 5:12 
GeneralRe: Docking Windows Pin
Paul Riley6-Feb-03 5:36
Paul Riley6-Feb-03 5:36 
GeneralRe: Docking Windows Pin
Braulio Dez6-Feb-03 5:10
Braulio Dez6-Feb-03 5:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.