Click here to Skip to main content
14,847,144 members
Home / Discussions / C#
   

C#

 
QuestionC# NET. Framework program Pin
Member 150126775-Dec-20 0:59
MemberMember 150126775-Dec-20 0:59 
AnswerRe: C# NET. Framework program Pin
OriginalGriff5-Dec-20 1:17
mveOriginalGriff5-Dec-20 1:17 
GeneralRe: C# NET. Framework program Pin
Member 150126775-Dec-20 1:26
MemberMember 150126775-Dec-20 1:26 
GeneralRe: C# NET. Framework program Pin
Ralf Meier5-Dec-20 1:31
professionalRalf Meier5-Dec-20 1:31 
GeneralRe: C# NET. Framework program Pin
Member 150126775-Dec-20 1:33
MemberMember 150126775-Dec-20 1:33 
GeneralRe: C# NET. Framework program Pin
OriginalGriff5-Dec-20 1:41
mveOriginalGriff5-Dec-20 1:41 
GeneralRe: C# NET. Framework program Pin
OriginalGriff5-Dec-20 1:37
mveOriginalGriff5-Dec-20 1:37 
QuestionHow to capture and print panel content into .pdf Pin
RedPandinus3-Dec-20 11:25
MemberRedPandinus3-Dec-20 11:25 
Hi Everyone,

I added a panel which I will use it as signature drawing pad. I also use itextsharp for creating .pdf function. My question is how can I capture that drawing at panel and print it on .pdf document?

Below is panel code side. I created a button to make .pdf but I don't know how to code that button event.

private void panel1_MouseDown(object sender, MouseEventArgs e)
        {
            LastX = e.X;
            LastY = e.Y;
        }

        private void panel1_Paint(object sender, PaintEventArgs e)
        {
            Graphics G = panel1.CreateGraphics();
            G.DrawLine(Pens.Black, PointX, PointY, LastX, LastY);
            LastX = PointX;
            LastY = PointY;
        }

        private void panel1_MouseMove(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                PointX = e.X;
                PointY = e.Y;
                panel1_Paint(this, null);

AnswerRe: How to capture and print panel content into .pdf Pin
Sandeep Mewara3-Dec-20 17:33
mvaSandeep Mewara3-Dec-20 17:33 
GeneralRe: How to capture and print panel content into .pdf Pin
RedPandinus4-Dec-20 2:01
MemberRedPandinus4-Dec-20 2:01 
QuestionHow to call function after timer Pin
Member 141922163-Dec-20 8:07
MemberMember 141922163-Dec-20 8:07 
AnswerRe: How to call function after timer Pin
OriginalGriff3-Dec-20 8:20
mveOriginalGriff3-Dec-20 8:20 
GeneralRe: How to call function after timer Pin
Member 141922163-Dec-20 8:25
MemberMember 141922163-Dec-20 8:25 
GeneralRe: How to call function after timer Pin
OriginalGriff3-Dec-20 9:01
mveOriginalGriff3-Dec-20 9:01 
GeneralRe: How to call function after timer Pin
Member 141922163-Dec-20 9:04
MemberMember 141922163-Dec-20 9:04 
GeneralRe: How to call function after timer Pin
OriginalGriff3-Dec-20 9:08
mveOriginalGriff3-Dec-20 9:08 
GeneralRe: How to call function after timer Pin
Member 141922163-Dec-20 9:10
MemberMember 141922163-Dec-20 9:10 
GeneralRe: How to call function after timer Pin
OriginalGriff3-Dec-20 9:25
mveOriginalGriff3-Dec-20 9:25 
GeneralRe: How to call function after timer Pin
Member 141922163-Dec-20 9:45
MemberMember 141922163-Dec-20 9:45 
GeneralRe: How to call function after timer Pin
OriginalGriff3-Dec-20 10:02
mveOriginalGriff3-Dec-20 10:02 
GeneralRe: How to call function after timer Pin
Member 141922163-Dec-20 22:06
MemberMember 141922163-Dec-20 22:06 
GeneralRe: How to call function after timer Pin
OriginalGriff3-Dec-20 22:20
mveOriginalGriff3-Dec-20 22:20 
QuestionTake ownership from trustedinstaller to administrator c# or vb Pin
Member 123929042-Dec-20 10:49
MemberMember 123929042-Dec-20 10:49 
AnswerRe: Take ownership from trustedinstaller to administrator c# or vb Pin
Dave Kreskowiak2-Dec-20 18:21
mveDave Kreskowiak2-Dec-20 18:21 
QuestionCombine Array Values in C# Pin
Member 130810652-Dec-20 3:51
MemberMember 130810652-Dec-20 3: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.