Click here to Skip to main content
15,889,556 members
Home / Discussions / C#
   

C#

 
QuestionSet Encoding for Stream Writer Pin
t4ure4n27-Jun-07 1:07
t4ure4n27-Jun-07 1:07 
AnswerRe: Set Encoding for Stream Writer Pin
leppie27-Jun-07 1:10
leppie27-Jun-07 1:10 
GeneralRe: Set Encoding for Stream Writer Pin
t4ure4n27-Jun-07 1:16
t4ure4n27-Jun-07 1:16 
AnswerRe: Set Encoding for Stream Writer Pin
Guffa27-Jun-07 1:21
Guffa27-Jun-07 1:21 
QuestionGraphics to File Pin
pmartike27-Jun-07 0:58
pmartike27-Jun-07 0:58 
AnswerRe: Graphics to File Pin
Guffa27-Jun-07 1:27
Guffa27-Jun-07 1:27 
GeneralRe: Graphics to File Pin
pmartike27-Jun-07 23:25
pmartike27-Jun-07 23:25 
AnswerRe: Graphics to File Pin
Christian Graus27-Jun-07 1:32
protectorChristian Graus27-Jun-07 1:32 
pmartike wrote:
pictureBox1.CreateGraphics();


To further clarify, you should never do this

1 - it's a waste of a picture box, the picture box does nothing
2 - if your form is obscured, what you drew will be erased

Draw in your paint event, or create a Bitmap and assign it to the picture box. Draw on it first if you want to, and save it, if you want to do that.


pmartike wrote:
Bitmap bb = new Bitmap(pictureBox1.Image);


The issue here is that there is no image inside the picture box, you need to put one in there, and even if you do, CreateGraphics won't do anything to it. It's more like you are drawing on a layer above the control, a layer that is not permanent.


Christian Graus - Microsoft MVP - C++

"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

AnswerRe: Graphics to File Pin
zeeShan anSari27-Jun-07 3:56
zeeShan anSari27-Jun-07 3:56 
GeneralRe: Graphics to File Pin
pmartike27-Jun-07 23:40
pmartike27-Jun-07 23:40 
AnswerRe: Graphics to File Pin
Hesham Yassin27-Jun-07 8:10
Hesham Yassin27-Jun-07 8:10 
QuestionWhen shd we make function static in C# Pin
vikasviswan27-Jun-07 0:46
vikasviswan27-Jun-07 0:46 
AnswerRe: When shd we make function static in C# Pin
Vikram A Punathambekar27-Jun-07 0:50
Vikram A Punathambekar27-Jun-07 0:50 
QuestionRe: When shd we make function static in C# Pin
vikasviswan27-Jun-07 0:54
vikasviswan27-Jun-07 0:54 
AnswerRe: When shd we make function static in C# Pin
Martin#27-Jun-07 1:20
Martin#27-Jun-07 1:20 
AnswerRe: When shd we make function static in C# Pin
Vikram A Punathambekar27-Jun-07 2:30
Vikram A Punathambekar27-Jun-07 2:30 
GeneralRe: When shd we make function static in C# Pin
Martin#27-Jun-07 3:30
Martin#27-Jun-07 3:30 
GeneralRe: When shd we make function static in C# Pin
Vikram A Punathambekar27-Jun-07 4:23
Vikram A Punathambekar27-Jun-07 4:23 
GeneralRe: When shd we make function static in C# Pin
Colin Angus Mackay27-Jun-07 5:36
Colin Angus Mackay27-Jun-07 5:36 
GeneralRe: When shd we make function static in C# Pin
Vikram A Punathambekar27-Jun-07 18:12
Vikram A Punathambekar27-Jun-07 18:12 
AnswerRe: When shd we make function static in C# Pin
Christian Graus27-Jun-07 1:33
protectorChristian Graus27-Jun-07 1:33 
JokeRe: When shd we make function static in C# Pin
Dave Sexton27-Jun-07 2:40
Dave Sexton27-Jun-07 2:40 
GeneralRe: When shd we make function static in C# Pin
Christian Graus27-Jun-07 3:21
protectorChristian Graus27-Jun-07 3:21 
AnswerRe: When shd we make function static in C# Pin
gumi_r@msn.com27-Jun-07 4:40
gumi_r@msn.com27-Jun-07 4:40 
JokeRe: When shd we make function static in C# Pin
Luc Pattyn27-Jun-07 7:48
sitebuilderLuc Pattyn27-Jun-07 7:48 

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.