Click here to Skip to main content
15,922,584 members
Home / Discussions / C#
   

C#

 
Questionthe way to save a image from picturebox Pin
thucbv9-Dec-08 2:14
thucbv9-Dec-08 2:14 
AnswerRe: the way to save a image from picturebox Pin
SeMartens9-Dec-08 2:40
SeMartens9-Dec-08 2:40 
AnswerRe: the way to save a image from picturebox Pin
Brij9-Dec-08 2:43
mentorBrij9-Dec-08 2:43 
GeneralRe: the way to save a image from picturebox Pin
Luc Pattyn9-Dec-08 2:49
sitebuilderLuc Pattyn9-Dec-08 2:49 
GeneralRe: the way to save a image from picturebox Pin
sunilpattanaik9-Dec-08 6:51
sunilpattanaik9-Dec-08 6:51 
GeneralRe: the way to save a image from picturebox Pin
Luc Pattyn9-Dec-08 2:48
sitebuilderLuc Pattyn9-Dec-08 2:48 
GeneralRe: the way to save a image from picturebox [modified] Pin
thucbv10-Dec-08 15:11
thucbv10-Dec-08 15:11 
GeneralRe: the way to save a image from picturebox Pin
Luc Pattyn10-Dec-08 16:20
sitebuilderLuc Pattyn10-Dec-08 16:20 
Hi,

you clearly did not get it.

A PictureBox HOLDS an image when you assign something an image to its Image property, which you did not do, so your g.DrawImage and new Bitmap lines are bound to fail.

Most Controls (including PictureBox unfortunately) allow you to paint ON TOP of them, which is what you are doing; a simple Panel would serve the same purpose equally well.

A CreateGraphics is not necessary and even a bad idea here. A Graphics.FromImage is recommended.

I suggest you read my previous message again, and start from scratch; I am not going to provide all 10 lines this might take, I am not in the spoon feeding business. It is up to you to read suggestions and documentation, try, debug and learn.

Good luck.

Luc Pattyn [Forum Guidelines] [My Articles]

Fixturized forever. Confused | :confused:


QuestionPassing value from textbox to crystalreportviewer (parameterized query) Pin
nt_virus9-Dec-08 1:52
nt_virus9-Dec-08 1:52 
AnswerRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
Member 44132839-Dec-08 2:04
Member 44132839-Dec-08 2:04 
GeneralRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
nt_virus9-Dec-08 2:07
nt_virus9-Dec-08 2:07 
GeneralRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
nt_virus9-Dec-08 2:15
nt_virus9-Dec-08 2:15 
GeneralRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
Tom Deketelaere9-Dec-08 3:05
professionalTom Deketelaere9-Dec-08 3:05 
GeneralRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
nt_virus9-Dec-08 5:18
nt_virus9-Dec-08 5:18 
GeneralRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
nt_virus9-Dec-08 5:25
nt_virus9-Dec-08 5:25 
GeneralRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
Tom Deketelaere9-Dec-08 5:28
professionalTom Deketelaere9-Dec-08 5:28 
GeneralRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
Tom Deketelaere9-Dec-08 5:26
professionalTom Deketelaere9-Dec-08 5:26 
GeneralRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
nt_virus9-Dec-08 5:44
nt_virus9-Dec-08 5:44 
GeneralRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
Tom Deketelaere9-Dec-08 6:52
professionalTom Deketelaere9-Dec-08 6:52 
GeneralRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
nt_virus10-Dec-08 5:22
nt_virus10-Dec-08 5:22 
GeneralRe: Passing value from textbox to crystalreportviewer (parameterized query) Pin
Tom Deketelaere10-Dec-08 7:14
professionalTom Deketelaere10-Dec-08 7:14 
QuestionHow can we get all workgroups on LAN using C# Pin
Venki569-Dec-08 1:45
Venki569-Dec-08 1:45 
AnswerRe: How can we get all workgroups on LAN using C# Pin
Ben Fair9-Dec-08 3:35
Ben Fair9-Dec-08 3:35 
GeneralRe: How can we get all workgroups on LAN using C# Pin
Venki5610-Dec-08 0:14
Venki5610-Dec-08 0:14 
QuestionProblem in Reading from serial port Pin
TJS4u9-Dec-08 1:06
TJS4u9-Dec-08 1:06 

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.