Click here to Skip to main content
15,893,381 members
Home / Discussions / C#
   

C#

 
AnswerRe: Cross-thread ToolStripButton update Pin
Not Active25-Jun-07 8:38
mentorNot Active25-Jun-07 8:38 
GeneralRe: Cross-thread ToolStripButton update Pin
mabo4225-Jun-07 22:47
mabo4225-Jun-07 22:47 
GeneralRe: Cross-thread ToolStripButton update Pin
Not Active26-Jun-07 1:55
mentorNot Active26-Jun-07 1:55 
AnswerRe: Cross-thread ToolStripButton update Pin
Hesham Yassin25-Jun-07 22:15
Hesham Yassin25-Jun-07 22:15 
AnswerRe: Cross-thread ToolStripButton update Pin
spainchaud26-Jul-10 4:13
spainchaud26-Jul-10 4:13 
QuestionProblem about pictureBox in Visual Studio C Sharp.NET ? Pin
zeeShan anSari25-Jun-07 8:22
zeeShan anSari25-Jun-07 8:22 
AnswerRe: Problem about pictureBox in Visual Studio C Sharp.NET ? Pin
Ed.Poore25-Jun-07 8:58
Ed.Poore25-Jun-07 8:58 
AnswerRe: Problem about pictureBox in Visual Studio C Sharp.NET ? Pin
Christian Graus25-Jun-07 10:24
protectorChristian Graus25-Jun-07 10:24 
I am constantly amazed at what people do with picture boxes.


zeeShan anSari wrote:
g = pictureBox2.CreateGraphics();


This does one thing and one thing only. It allows you to draw something temporary on top of a picture box. What it plainly does not do, is change the image inside the picture box. You should never do this, unless you're drawing a rubber band ( something you want to lose ). If your form is invalidated, what you drew will be lost.

What you need to do, is create an actual image, draw on it, and put it into the picture box. As someone else said, Image defaults to null, you did not change it, it is still null.



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: Problem about pictureBox in Visual Studio C Sharp.NET ? Pin
zeeShan anSari27-Jun-07 0:04
zeeShan anSari27-Jun-07 0:04 
QuestionXML with C# [modified] Pin
saymajum25-Jun-07 8:13
saymajum25-Jun-07 8:13 
GeneralRe: XML with C# Pin
Rob Graham25-Jun-07 8:38
Rob Graham25-Jun-07 8:38 
GeneralRe: XML with C# Pin
saymajum25-Jun-07 8:44
saymajum25-Jun-07 8:44 
GeneralRe: XML with C# Pin
Christian Graus25-Jun-07 10:26
protectorChristian Graus25-Jun-07 10:26 
GeneralRe: XML with C# Pin
saymajum25-Jun-07 10:34
saymajum25-Jun-07 10:34 
AnswerRe: XML with C# Pin
BoneSoft25-Jun-07 11:21
BoneSoft25-Jun-07 11:21 
QuestionLoading referenced assemblies using System.Reflection Pin
thegloomyclown25-Jun-07 6:44
thegloomyclown25-Jun-07 6:44 
AnswerRe: Loading referenced assemblies using System.Reflection Pin
Ed.Poore25-Jun-07 6:47
Ed.Poore25-Jun-07 6:47 
GeneralRe: Loading referenced assemblies using System.Reflection Pin
thegloomyclown25-Jun-07 6:59
thegloomyclown25-Jun-07 6:59 
GeneralRe: Loading referenced assemblies using System.Reflection Pin
Ed.Poore25-Jun-07 8:32
Ed.Poore25-Jun-07 8:32 
GeneralRe: Loading referenced assemblies using System.Reflection Pin
thegloomyclown25-Jun-07 8:45
thegloomyclown25-Jun-07 8:45 
GeneralRe: Loading referenced assemblies using System.Reflection Pin
Ed.Poore25-Jun-07 8:57
Ed.Poore25-Jun-07 8:57 
GeneralRe: Loading referenced assemblies using System.Reflection Pin
thegloomyclown25-Jun-07 9:04
thegloomyclown25-Jun-07 9:04 
GeneralRe: Loading referenced assemblies using System.Reflection Pin
Ed.Poore25-Jun-07 9:38
Ed.Poore25-Jun-07 9:38 
GeneralRe: Loading referenced assemblies using System.Reflection Pin
Ed.Poore25-Jun-07 9:38
Ed.Poore25-Jun-07 9:38 
GeneralRe: Loading referenced assemblies using System.Reflection Pin
thegloomyclown25-Jun-07 10:47
thegloomyclown25-Jun-07 10:47 

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.