Click here to Skip to main content
15,907,913 members
Home / Discussions / C#
   

C#

 
AnswerRe: shell extension problem on 64 bit pc Pin
Daniel Grunwald8-Feb-10 1:13
Daniel Grunwald8-Feb-10 1:13 
QuestionRe: shell extension problem on 64 bit pc [modified] Pin
Nematjon Rahmanov8-Feb-10 1:35
Nematjon Rahmanov8-Feb-10 1:35 
QuestionAddRectangle Exception Pin
gwithey7-Feb-10 22:55
gwithey7-Feb-10 22:55 
AnswerRe: AddRectangle Exception Pin
OriginalGriff7-Feb-10 23:00
mveOriginalGriff7-Feb-10 23:00 
GeneralRe: AddRectangle Exception Pin
gwithey7-Feb-10 23:09
gwithey7-Feb-10 23:09 
GeneralRe: AddRectangle Exception Pin
OriginalGriff7-Feb-10 23:17
mveOriginalGriff7-Feb-10 23:17 
GeneralRe: AddRectangle Exception Pin
gwithey7-Feb-10 23:32
gwithey7-Feb-10 23:32 
GeneralRe: AddRectangle Exception Pin
gwithey7-Feb-10 23:41
gwithey7-Feb-10 23:41 
 public int Draw(Graphics g)
      {
         DrawNode();
        
         // Create font for text
         Font nodeFont = new Font(FontFamily.GenericSansSerif, 10f, FontStyle.Regular);

         // Fill node if selected
         if (m_selected)
         {
            g.FillPath(Brushes.Red, m_gpTextBacking);
            g.DrawString(m_name, nodeFont, Brushes.White, m_fontLocation);
         }
         else
         {
            g.DrawString(m_name, nodeFont, Brushes.Black, m_fontLocation);
         }
         
         // Draw node backing if hover is true
         if (m_hover)
         {
            g.DrawPath(Pens.Black, m_gpTextBacking);
         }

         // Draw expand box
         g.FillPath(Brushes.Gray, m_gpExpandBox);
         g.DrawPath(Pens.Black, m_gpExpandBox);

         // Dispose of graphics paths
------>  //m_gpExpandBox.Dispose();
------>  //m_gpTextBacking.Dispose();


Thank you for the help found the soulution.

It now works when comment out the indicated lines
Questionl Pin
sima37-Feb-10 22:52
sima37-Feb-10 22:52 
AnswerRe: l Pin
OriginalGriff7-Feb-10 23:01
mveOriginalGriff7-Feb-10 23:01 
Questionx Pin
sima37-Feb-10 22:40
sima37-Feb-10 22:40 
AnswerRe: x Pin
Mohammad Dayyan7-Feb-10 23:23
Mohammad Dayyan7-Feb-10 23:23 
GeneralRe: x Pin
Nagy Vilmos8-Feb-10 0:27
professionalNagy Vilmos8-Feb-10 0:27 
Questionم Pin
sima37-Feb-10 22:26
sima37-Feb-10 22:26 
AnswerRe: م Pin
SeMartens7-Feb-10 22:31
SeMartens7-Feb-10 22:31 
AnswerRe: م PinPopular
J4amieC7-Feb-10 22:35
J4amieC7-Feb-10 22:35 
AnswerRe: م Pin
Pete O'Hanlon7-Feb-10 22:48
mvePete O'Hanlon7-Feb-10 22:48 
GeneralRe: م Pin
Mohammad Dayyan7-Feb-10 22:57
Mohammad Dayyan7-Feb-10 22:57 
Questionچ Pin
sima37-Feb-10 22:22
sima37-Feb-10 22:22 
AnswerRe: چ Pin
SeMartens7-Feb-10 22:27
SeMartens7-Feb-10 22:27 
Questionه Pin
sima37-Feb-10 22:20
sima37-Feb-10 22:20 
AnswerThis is an English Language website. Pin
Pete O'Hanlon7-Feb-10 22:23
mvePete O'Hanlon7-Feb-10 22:23 
AnswerRe: ه Pin
Mohammad Dayyan7-Feb-10 23:01
Mohammad Dayyan7-Feb-10 23:01 
GeneralRe: ه Pin
Pete O'Hanlon7-Feb-10 23:10
mvePete O'Hanlon7-Feb-10 23:10 
GeneralRe: ه Pin
Mohammad Dayyan7-Feb-10 23:13
Mohammad Dayyan7-Feb-10 23:13 

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.