Click here to Skip to main content
15,797,330 members
Home / Discussions / C#
   

C#

 
GeneralThanks a lot!! Pin
bania7-Feb-03 4:32
bania7-Feb-03 4:32 
Questionassociate an object with datagrid's row ? Pin
Paresh Gheewala6-Feb-03 15:11
Paresh Gheewala6-Feb-03 15:11 
QuestionDrawString Diagonally on Image object? Pin
wkoch6-Feb-03 11:23
wkoch6-Feb-03 11:23 
AnswerRe: DrawString Diagonally on Image object? Pin
Paresh Gheewala6-Feb-03 11:43
Paresh Gheewala6-Feb-03 11:43 
AnswerRe: DrawString Diagonally on Image object? Pin
James T. Johnson6-Feb-03 16:37
James T. Johnson6-Feb-03 16:37 
GeneralRe: DrawString Diagonally on Image object? Pin
b99koch17-Mar-03 10:58
sussb99koch17-Mar-03 10:58 
GeneralManaged DirectDraw Pin
Tomas Petricek6-Feb-03 10:49
Tomas Petricek6-Feb-03 10:49 
GeneralUsing Bitmap.Save(FileName, ImageFormat.Icon) Pin
draco_iii6-Feb-03 9:28
draco_iii6-Feb-03 9: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 10:32
Paresh Gheewala6-Feb-03 10:32 
GeneralRe: Using Bitmap.Save(FileName, ImageFormat.Icon) Pin
draco_iii6-Feb-03 12:55
draco_iii6-Feb-03 12:55 
GeneralWhich PixelFormat. to use Pin
draco_iii6-Feb-03 15:54
draco_iii6-Feb-03 15:54 
GeneralShow System Menu on a borderless form Pin
Peter Dedene6-Feb-03 8:58
Peter Dedene6-Feb-03 8:58 
Generalproblem with saving XML to xml file Pin
Wizard_016-Feb-03 6:33
Wizard_016-Feb-03 6:33 
GeneralRe: problem with saving XML to xml file Pin
Paresh Gheewala6-Feb-03 8:46
Paresh Gheewala6-Feb-03 8:46 
GeneralRe: problem with saving XML to xml file Pin
Ryan Cromwell7-Feb-03 10:23
Ryan Cromwell7-Feb-03 10:23 
GeneralSerialization Pin
Filip Strugar6-Feb-03 5:56
Filip Strugar6-Feb-03 5:56 
GeneralRe: Serialization Pin
Furty7-Feb-03 15:16
Furty7-Feb-03 15:16 
GeneralRe: Serialization Pin
Victor Vogelpoel8-Feb-03 0:06
Victor Vogelpoel8-Feb-03 0:06 
GeneralDocking Windows Pin
Braulio Dez6-Feb-03 2:20
Braulio Dez6-Feb-03 2:20 
GeneralRe: Docking Windows Pin
TigerNinja_6-Feb-03 4:52
TigerNinja_6-Feb-03 4:52 
GeneralRe: Docking Windows Pin
Braulio Dez6-Feb-03 5:31
Braulio Dez6-Feb-03 5:31 
GeneralRe: Docking Windows Pin
Paul Riley6-Feb-03 5:45
Paul Riley6-Feb-03 5:45 
GeneralRe: Docking Windows Pin
Braulio Dez6-Feb-03 6:12
Braulio Dez6-Feb-03 6:12 
GeneralRe: Docking Windows Pin
Paul Riley6-Feb-03 6:36
Paul Riley6-Feb-03 6:36 
GeneralRe: Docking Windows Pin
Braulio Dez6-Feb-03 6:10
Braulio Dez6-Feb-03 6: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.