Click here to Skip to main content
15,892,746 members
Home / Discussions / C#
   

C#

 
GeneralRe: factory method Pin
jpk42011-Aug-09 21:35
jpk42011-Aug-09 21:35 
GeneralRe: factory method Pin
PIEBALDconsult12-Aug-09 4:14
mvePIEBALDconsult12-Aug-09 4:14 
Question[SOLVED]convert to base 64 issue with AES encryption [modified] Pin
Member 360949111-Aug-09 16:34
Member 360949111-Aug-09 16:34 
AnswerRe: convert to base 64 issue with AES encryption Pin
Luc Pattyn11-Aug-09 16:39
sitebuilderLuc Pattyn11-Aug-09 16:39 
GeneralRe: convert to base 64 issue with AES encryption Pin
Member 360949111-Aug-09 17:06
Member 360949111-Aug-09 17:06 
AnswerRe: convert to base 64 issue with AES encryption Pin
Member 360949111-Aug-09 17:22
Member 360949111-Aug-09 17:22 
Question[Message Deleted] Pin
neha_rai11-Aug-09 10:56
neha_rai11-Aug-09 10:56 
AnswerRe: how to clear Pin
Henry Minute11-Aug-09 11:34
Henry Minute11-Aug-09 11:34 
try something like this:
using System.Drawing.Drawing2D;

private bool clearImage = false;
protected override void OnPaint(PaintEventArgs e)
{
    if (this.clearImage)
    {
        using (Pen clearPen = new Pen(this.BackColor))
        {
            e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
            e.Graphics.DrawEllipse(clearPen, 100, 100, 2, 2);
            this.clearImage = false;
        }
    }
    else
    {
        e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
        e.Graphics.DrawEllipse(Pens.Red, 100, 100, 2, 2);
    }
}


then your button click event
this.clearImage = true;
this.Refresh();


Hope this helps. Smile | :)

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

AnswerRe: [Message Deleted] Pin
padmanabhan N11-Aug-09 18:30
padmanabhan N11-Aug-09 18:30 
Questionwhat is the best way for open connection to database ? - discussion Pin
E_Gold11-Aug-09 9:45
E_Gold11-Aug-09 9:45 
AnswerRe: what is the best way for open connection to database ? - discussion Pin
0x3c011-Aug-09 9:49
0x3c011-Aug-09 9:49 
AnswerRe: what is the best way for open connection to database ? - discussion Pin
Henry Minute11-Aug-09 10:39
Henry Minute11-Aug-09 10:39 
AnswerRe: what is the best way for open connection to database ? - discussion Pin
Mycroft Holmes11-Aug-09 13:59
professionalMycroft Holmes11-Aug-09 13:59 
AnswerRe: what is the best way for open connection to database ? - discussion Pin
PIEBALDconsult11-Aug-09 16:57
mvePIEBALDconsult11-Aug-09 16:57 
QuestionUnhandled Null Exception error looping through DataGridView Pin
Wheels01211-Aug-09 9:03
Wheels01211-Aug-09 9:03 
AnswerRe: Unhandled Null Exception error looping through DataGridView Pin
0x3c011-Aug-09 9:27
0x3c011-Aug-09 9:27 
GeneralRe: Unhandled Null Exception error looping through DataGridView Pin
Wheels01211-Aug-09 9:33
Wheels01211-Aug-09 9:33 
QuestionProblem with running C# application using ZedGraph Pin
TamasK911-Aug-09 9:02
TamasK911-Aug-09 9:02 
AnswerRe: Problem with running C# application using ZedGraph Pin
Member 360949112-Aug-09 14:35
Member 360949112-Aug-09 14:35 
QuestionPosition of a bitmap into a PictureBox Pin
Mirshinni11-Aug-09 8:36
Mirshinni11-Aug-09 8:36 
AnswerRe: Position of a bitmap into a PictureBox Pin
Henry Minute11-Aug-09 8:46
Henry Minute11-Aug-09 8:46 
GeneralRe: Position of a bitmap into a PictureBox Pin
Mirshinni11-Aug-09 9:36
Mirshinni11-Aug-09 9:36 
GeneralRe: Position of a bitmap into a PictureBox Pin
Henry Minute11-Aug-09 10:21
Henry Minute11-Aug-09 10:21 
AnswerRe: Position of a bitmap into a PictureBox Pin
Luc Pattyn11-Aug-09 22:58
sitebuilderLuc Pattyn11-Aug-09 22:58 
Questionc# vs2008 Reportviewer is not closing the database [modified] Pin
dyohanan11-Aug-09 8:17
dyohanan11-Aug-09 8:17 

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.