Click here to Skip to main content
16,005,316 members
Home / Discussions / C#
   

C#

 
GeneralRe: plz help Pin
Guffa11-Nov-06 12:28
Guffa11-Nov-06 12:28 
GeneralRe: plz help Pin
suma1238211-Nov-06 23:13
suma1238211-Nov-06 23:13 
GeneralRe: plz help Pin
Guffa11-Nov-06 23:25
Guffa11-Nov-06 23:25 
GeneralRe: plz help Pin
suma1238212-Nov-06 1:28
suma1238212-Nov-06 1:28 
QuestionXML (again) - namespaces and adding/modifying elements Pin
peterchen11-Nov-06 9:10
peterchen11-Nov-06 9:10 
QuestionSimple paint app - problem saving Pin
SoftcodeSoftware11-Nov-06 8:34
SoftcodeSoftware11-Nov-06 8:34 
AnswerRe: Simple paint app - problem saving Pin
aamironline11-Nov-06 18:13
aamironline11-Nov-06 18:13 
AnswerRe: Simple paint app - problem saving Pin
mav.northwind11-Nov-06 20:36
mav.northwind11-Nov-06 20:36 
Where is m_objGraphics created? I guess that you're creating the Graphics object somewhere during initialization of your code and then use it later, which is a big no-no!

To do it correctly you have to call methods on a Graphics object you get from the Image displayed in the PictureBox:
private void pb_white_board_MouseMove(object sender, MouseEventArgs e)
{
  if (e.Button != MouseButtons.Left) return;
 
  Rectangle rectEllipse = new Rectangle(e.X - 1, e.Y - 1, 3, 3);

  using (Graphics g = Graphics.FromImage(pb_white_board.Image))
  {
    g.DrawEllipse(System.Drawing.Pens.Black, rectEllipse);
    g.FillEllipse(System.Drawing.Brushes.Black, rectEllipse);
  }
  // Invalidate the picturebox so that you see the modified image
  pb_white_board.Invalidate();
}


Regards,
mav

--
Black holes are the places where God divided by 0...

AnswerRe: Simple paint app - problem saving Pin
SoftcodeSoftware11-Nov-06 22:02
SoftcodeSoftware11-Nov-06 22:02 
QuestionProblem with Connect to SqlServer 2000 From Client Pin
hdv21211-Nov-06 8:13
hdv21211-Nov-06 8:13 
AnswerRe: Problem with Connect to SqlServer 2000 From Client Pin
coolestCoder11-Nov-06 21:41
coolestCoder11-Nov-06 21:41 
AnswerRe: Problem with Connect to SqlServer 2000 From Client Pin
beatles169211-Nov-06 22:49
beatles169211-Nov-06 22:49 
QuestionPlz compile Pin
Friend4u11-Nov-06 6:24
Friend4u11-Nov-06 6:24 
AnswerRe: Plz compile Pin
User 665811-Nov-06 6:36
User 665811-Nov-06 6:36 
GeneralRe: Plz compile [modified] Pin
Friend4u11-Nov-06 6:45
Friend4u11-Nov-06 6:45 
GeneralRe: Plz compile Pin
WillemM11-Nov-06 6:53
WillemM11-Nov-06 6:53 
AnswerRe: Plz compile Pin
Guffa11-Nov-06 7:29
Guffa11-Nov-06 7:29 
Questiongenerics: "where T supports ==" Pin
peterchen11-Nov-06 5:42
peterchen11-Nov-06 5:42 
GeneralRe: generics: "where T supports ==" Pin
George L. Jackson11-Nov-06 6:09
George L. Jackson11-Nov-06 6:09 
GeneralRe: generics: "where T supports ==" Pin
peterchen11-Nov-06 6:37
peterchen11-Nov-06 6:37 
AnswerRe: generics: "where T supports ==" Pin
Guffa11-Nov-06 6:13
Guffa11-Nov-06 6:13 
AnswerRe: generics: "where T supports ==" Pin
Judah Gabriel Himango11-Nov-06 19:21
sponsorJudah Gabriel Himango11-Nov-06 19:21 
GeneralRe: generics: "where T supports ==" Pin
peterchen11-Nov-06 19:35
peterchen11-Nov-06 19:35 
AnswerRe: generics: "where T supports ==" Pin
Daniel Grunwald12-Nov-06 9:46
Daniel Grunwald12-Nov-06 9:46 
QuestionRemoting & COM Programming Pin
Raihan Masud11-Nov-06 2:51
Raihan Masud11-Nov-06 2:51 

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.