Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
QuestionC# Nested Structure Marshalling Pin
RobVai5-Sep-05 18:59
RobVai5-Sep-05 18:59 
AnswerRe: C# Nested Structure Marshalling Pin
leppie6-Sep-05 3:51
leppie6-Sep-05 3:51 
GeneralRe: C# Nested Structure Marshalling Pin
RobVai7-Sep-05 13:46
RobVai7-Sep-05 13:46 
GeneralRe: C# Nested Structure Marshalling Pin
leppie7-Sep-05 14:16
leppie7-Sep-05 14:16 
QuestionSave a pictureBox object as JPEG or BMP? Pin
boraxx5-Sep-05 18:25
boraxx5-Sep-05 18:25 
AnswerRe: Save a pictureBox object as JPEG or BMP? Pin
Andrew Kirillov5-Sep-05 19:09
Andrew Kirillov5-Sep-05 19:09 
GeneralRe: Save a pictureBox object as JPEG or BMP? Pin
boraxx6-Sep-05 14:31
boraxx6-Sep-05 14:31 
GeneralRe: Save a pictureBox object as JPEG or BMP? Pin
Andrew Kirillov6-Sep-05 18:57
Andrew Kirillov6-Sep-05 18:57 
Hello

Yes, it will fail. Because you did not initialize Image property of your picter box. If you need to save your drawing, you can use the next code:

Bitmap	image = new Bitmap(100, 100);
Pen	myPen = new Pen(System.Drawing.Color.Red, 1);
Graphics	g = Graphics.FromImage(image);

g.DrawLine(myPen,1,1,30,30); //Draw a line

myPen.Dispose();
g.Dispose();

// save image
image.Save(@"C:\image.bmp", System.Drawing.Imaging.ImageFormat.Bmp);

// display the image in picter box
pictureBox1.Image = image;


Andrew
GeneralRe: Save a pictureBox object as JPEG or BMP? Pin
boraxx6-Sep-05 20:35
boraxx6-Sep-05 20:35 
QuestionHow to make ScrollBar attached to Panel automatically? Pin
radic.feng5-Sep-05 17:16
radic.feng5-Sep-05 17:16 
Question?Word object Pin
mitsemaj5-Sep-05 16:20
mitsemaj5-Sep-05 16:20 
QuestionNUnit tests Pin
savage_5-Sep-05 11:25
savage_5-Sep-05 11:25 
AnswerRe: NUnit tests Pin
Andy Brummer5-Sep-05 17:00
sitebuilderAndy Brummer5-Sep-05 17:00 
GeneralRe: NUnit tests Pin
savage_5-Sep-05 17:30
savage_5-Sep-05 17:30 
GeneralRe: NUnit tests Pin
savage_5-Sep-05 18:07
savage_5-Sep-05 18:07 
QuestionProblems using C++ SDK Pin
Christian Graus5-Sep-05 11:20
protectorChristian Graus5-Sep-05 11:20 
AnswerRe: Problems using C++ SDK Pin
leppie5-Sep-05 13:12
leppie5-Sep-05 13:12 
GeneralRe: Problems using C++ SDK Pin
Christian Graus5-Sep-05 13:16
protectorChristian Graus5-Sep-05 13:16 
QuestionMember values in reflection Pin
Yoyosch5-Sep-05 11:09
Yoyosch5-Sep-05 11:09 
AnswerRe: Member values in reflection Pin
Christian Graus5-Sep-05 11:17
protectorChristian Graus5-Sep-05 11:17 
GeneralRe: Member values in reflection Pin
Yoyosch5-Sep-05 13:15
Yoyosch5-Sep-05 13:15 
GeneralRe: Member values in reflection Pin
Christian Graus5-Sep-05 13:17
protectorChristian Graus5-Sep-05 13:17 
GeneralRe: Member values in reflection Pin
Yoyosch5-Sep-05 13:19
Yoyosch5-Sep-05 13:19 
GeneralRe: Member values in reflection Pin
Christian Graus5-Sep-05 13:43
protectorChristian Graus5-Sep-05 13:43 
GeneralRe: Member values in reflection Pin
Yoyosch5-Sep-05 13:54
Yoyosch5-Sep-05 13:54 

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.