Click here to Skip to main content
15,913,773 members
Home / Discussions / C#
   

C#

 
GeneralRe: Supressing a MessageBox Pin
cnich2327-Mar-06 4:19
cnich2327-Mar-06 4:19 
QuestionErasing lines Pin
CoolASL25-Mar-06 6:31
CoolASL25-Mar-06 6:31 
AnswerRe: Erasing lines Pin
Robert Rohde25-Mar-06 7:31
Robert Rohde25-Mar-06 7:31 
GeneralRe: Erasing lines Pin
CoolASL26-Mar-06 23:04
CoolASL26-Mar-06 23:04 
QuestionHow can i bind two controls together in witch that when one control scrolls the other scrolls too? Pin
Bobby88725-Mar-06 6:06
Bobby88725-Mar-06 6:06 
AnswerRe: How can i bind two controls together in witch that when one control scrolls the other scrolls too? Pin
Ravi Bhavnani25-Mar-06 8:09
professionalRavi Bhavnani25-Mar-06 8:09 
QuestionWindows Service Pin
hung_ngole25-Mar-06 6:04
hung_ngole25-Mar-06 6:04 
QuestionDrawing a line in ASP.NET Pin
naglbitur25-Mar-06 5:00
naglbitur25-Mar-06 5:00 
Hi there.
I am trying to learn how to use GDI+ in ASP. I made a simple webform with a button on it. When the button is pressed a line is supposed to be drawn but nothing happens. Can someone please help me out? Here is the code:
private void Button1_Click(object sender, System.EventArgs e)
{
Pen p = new Pen(Color.Black,3);
Bitmap bit = new Bitmap(400, 400);
Graphics g = Graphics.FromImage(bit);
g.DrawLine(p, 30, 30, 97, 97);
bit.Save(Response.OutputStream, ImageFormat.Jpeg);
bit.Dispose();
g.Dispose();

}
I can´t figure out why this doesn´t work. Any help is very much appreciated.
Thanks,

FJ
AnswerRe: Drawing a line in ASP.NET Pin
leppie25-Mar-06 6:51
leppie25-Mar-06 6:51 
AnswerRe: Drawing a line in ASP.NET Pin
Guffa25-Mar-06 7:18
Guffa25-Mar-06 7:18 
QuestionCorrection: How to define an array in a class Pin
IceWater4225-Mar-06 4:54
IceWater4225-Mar-06 4:54 
AnswerRe: Correction: How to define an array in a class Pin
Nicholas Butler25-Mar-06 5:26
sitebuilderNicholas Butler25-Mar-06 5:26 
GeneralRe: Correction: How to define an array in a class Pin
IceWater4225-Mar-06 6:49
IceWater4225-Mar-06 6:49 
GeneralRe: Correction: How to define an array in a class Pin
Guffa25-Mar-06 7:21
Guffa25-Mar-06 7:21 
QuestionMicrosoft Office Spreadsheet 10.0 Pin
i_martin_r25-Mar-06 4:45
i_martin_r25-Mar-06 4:45 
AnswerRe: Microsoft Office Spreadsheet 10.0 Pin
mcljava25-Mar-06 12:36
mcljava25-Mar-06 12:36 
QuestionDrag and drop Pin
valiovalio25-Mar-06 4:32
valiovalio25-Mar-06 4:32 
AnswerRe: Drag and drop Pin
Robert Rohde25-Mar-06 7:40
Robert Rohde25-Mar-06 7:40 
GeneralRe: Drag and drop Pin
valiovalio25-Mar-06 9:36
valiovalio25-Mar-06 9:36 
QuestionShortcut Pin
nogola25-Mar-06 4:07
nogola25-Mar-06 4:07 
QuestionRemoting or Sockets??? Pin
RizwanSharp25-Mar-06 4:05
RizwanSharp25-Mar-06 4:05 
QuestionSend Message to IM Window Pin
RizwanSharp25-Mar-06 3:57
RizwanSharp25-Mar-06 3:57 
QuestionDetect Opened Forms Pin
RizwanSharp25-Mar-06 3:49
RizwanSharp25-Mar-06 3:49 
AnswerRe: Detect Opened Forms Pin
Stefan Troschuetz25-Mar-06 4:02
Stefan Troschuetz25-Mar-06 4:02 
GeneralRe: Detect Opened Forms Pin
RizwanSharp25-Mar-06 4:09
RizwanSharp25-Mar-06 4:09 

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.