Click here to Skip to main content
15,891,777 members
Home / Discussions / C#
   

C#

 
GeneralRe: USB driver communication in C# 2.0 Pin
Dan Neely9-Dec-05 3:02
Dan Neely9-Dec-05 3:02 
Questionflicker on TableLayoutPanel Pin
savage_8-Dec-05 11:09
savage_8-Dec-05 11:09 
QuestionTernary Condition, compiler error. Pin
eggsovereasy8-Dec-05 10:52
eggsovereasy8-Dec-05 10:52 
AnswerRe: Ternary Condition, compiler error. Pin
Jon Sagara8-Dec-05 11:29
Jon Sagara8-Dec-05 11:29 
AnswerRe: Ternary Condition, compiler error. Pin
Dave Kreskowiak8-Dec-05 11:38
mveDave Kreskowiak8-Dec-05 11:38 
AnswerRe: Ternary Condition, compiler error. Pin
leppie8-Dec-05 13:17
leppie8-Dec-05 13:17 
AnswerRe: Ternary Condition, compiler error. Pin
eggsovereasy12-Dec-05 10:48
eggsovereasy12-Dec-05 10:48 
Questionproblem with saving a picture as an icon Pin
g0ju8-Dec-05 10:18
g0ju8-Dec-05 10:18 
hi,
i want to save a picture in the ico-format and tried it like this:
		private void button1_Click(object sender, System.EventArgs e)<br />
		{<br />
			Bitmap bmp = new Bitmap(16, 16);<br />
			Graphics g = Graphics.FromImage(bmp);<br />
			<br />
			Font f = new Font("Arial", 5);<br />
			LinearGradientBrush b = new LinearGradientBrush(ClientRectangle, Color.Red, Color.Red, LinearGradientMode.Horizontal);<br />
			g.DrawString("ABC", f, b, 1, 1);<br />
			pictureBox1.Image = bmp;<br />
<br />
			bmp.Save("d:\\test.ico", ImageFormat.Icon);<br />
			Icon = new Icon("d:\\test.ico");<br />
		}


somehow it doesn't work, i just don't have a clue what the reason is.
i hope someone can help me. Smile | :)
AnswerRe: problem with saving a picture as an icon Pin
NassosReyzidis9-Dec-05 0:31
NassosReyzidis9-Dec-05 0:31 
QuestionLightweight Collections Pin
OldDog.Net8-Dec-05 8:09
OldDog.Net8-Dec-05 8:09 
AnswerRe: Lightweight Collections Pin
Dave Kreskowiak8-Dec-05 11:18
mveDave Kreskowiak8-Dec-05 11:18 
QuestionAsyncronous WebRequest (race condition) Pin
usernameexists8-Dec-05 7:15
usernameexists8-Dec-05 7:15 
QuestionWriting to webpage from C# Pin
monrobot138-Dec-05 7:12
monrobot138-Dec-05 7:12 
AnswerRe: Writing to webpage from C# Pin
Rob Philpott8-Dec-05 7:58
Rob Philpott8-Dec-05 7:58 
GeneralRe: Writing to webpage from C# Pin
monrobot138-Dec-05 8:50
monrobot138-Dec-05 8:50 
GeneralRe: Writing to webpage from C# Pin
Rob Philpott8-Dec-05 9:13
Rob Philpott8-Dec-05 9:13 
GeneralRe: Writing to webpage from C# Pin
monrobot139-Dec-05 19:47
monrobot139-Dec-05 19:47 
GeneralRe: Writing to webpage from C# Pin
monrobot1310-Dec-05 20:17
monrobot1310-Dec-05 20:17 
GeneralRe: Writing to webpage from C# Pin
monrobot1310-Dec-05 20:46
monrobot1310-Dec-05 20:46 
AnswerRe: Writing to webpage from C# Pin
agileagent8-Dec-05 9:24
agileagent8-Dec-05 9:24 
QuestionBreak statement in C#. Pin
sacoskun8-Dec-05 6:47
sacoskun8-Dec-05 6:47 
AnswerRe: Break statement in C#. Pin
User 66588-Dec-05 7:00
User 66588-Dec-05 7:00 
GeneralRe: Break statement in C#. Pin
sacoskun8-Dec-05 7:05
sacoskun8-Dec-05 7:05 
GeneralRe: Break statement in C#. Pin
mav.northwind8-Dec-05 7:31
mav.northwind8-Dec-05 7:31 
JokeRe: Break statement in C#. Pin
akyriako788-Dec-05 7:42
akyriako788-Dec-05 7:42 

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.