Click here to Skip to main content
15,891,513 members
Home / Discussions / C#
   

C#

 
QuestionCalling a Method from a Form event Pin
ormonds18-Jan-18 14:08
ormonds18-Jan-18 14:08 
AnswerRe: Calling a Method from a Form event Pin
User 740747018-Jan-18 14:35
User 740747018-Jan-18 14:35 
AnswerRe: Calling a Method from a Form event Pin
OriginalGriff18-Jan-18 20:07
mveOriginalGriff18-Jan-18 20:07 
AnswerRe: Calling a Method from a Form event Pin
ormonds19-Jan-18 17:00
ormonds19-Jan-18 17:00 
GeneralRe: Calling a Method from a Form event Pin
OriginalGriff19-Jan-18 20:34
mveOriginalGriff19-Jan-18 20:34 
QuestionWhy ControlAccessibleObject' does not contain a definition for: BUY,SELL Pin
Member 1228884018-Jan-18 8:18
Member 1228884018-Jan-18 8:18 
AnswerRe: Why ControlAccessibleObject' does not contain a definition for: BUY,SELL Pin
Richard MacCutchan18-Jan-18 21:10
mveRichard MacCutchan18-Jan-18 21:10 
GeneralRe: Why ControlAccessibleObject' does not contain a definition for: BUY,SELL Pin
Member 1228884019-Jan-18 7:44
Member 1228884019-Jan-18 7:44 
GeneralRe: Why ControlAccessibleObject' does not contain a definition for: BUY,SELL Pin
Richard MacCutchan19-Jan-18 8:01
mveRichard MacCutchan19-Jan-18 8:01 
GeneralRe: Why ControlAccessibleObject' does not contain a definition for: BUY,SELL Pin
Member 1228884019-Jan-18 11:30
Member 1228884019-Jan-18 11:30 
GeneralRe: Why ControlAccessibleObject' does not contain a definition for: BUY,SELL Pin
Pete O'Hanlon19-Jan-18 22:22
mvePete O'Hanlon19-Jan-18 22:22 
GeneralRe: Why ControlAccessibleObject' does not contain a definition for: BUY,SELL Pin
Member 1228884020-Jan-18 6:59
Member 1228884020-Jan-18 6:59 
GeneralRe: Why ControlAccessibleObject' does not contain a definition for: BUY,SELL Pin
Pete O'Hanlon20-Jan-18 22:27
mvePete O'Hanlon20-Jan-18 22:27 
QuestionProject Reference Installed Applications Pin
TheCoolTech18-Jan-18 5:32
TheCoolTech18-Jan-18 5:32 
AnswerRe: Project Reference Installed Applications Pin
OriginalGriff18-Jan-18 5:48
mveOriginalGriff18-Jan-18 5:48 
AnswerRe: Project Reference Installed Applications Pin
Richard MacCutchan18-Jan-18 6:40
mveRichard MacCutchan18-Jan-18 6:40 
QuestionCannot convert from ref decimal? to ref decimal Pin
Kevin Marois18-Jan-18 5:30
professionalKevin Marois18-Jan-18 5:30 
AnswerRe: Cannot convert from ref decimal? to ref decimal Pin
F-ES Sitecore18-Jan-18 6:12
professionalF-ES Sitecore18-Jan-18 6:12 
GeneralRe: Cannot convert from ref decimal? to ref decimal Pin
Kevin Marois18-Jan-18 6:23
professionalKevin Marois18-Jan-18 6:23 
AnswerRe: Cannot convert from ref decimal? to ref decimal Pin
Gerry Schmitz19-Jan-18 7:38
mveGerry Schmitz19-Jan-18 7:38 
QuestionBest Performance Datagrid for WinForms Pin
Burhu18-Jan-18 3:54
professionalBurhu18-Jan-18 3:54 
AnswerRe: Best Performance Datagrid for WinForms Pin
Dave Kreskowiak18-Jan-18 4:42
mveDave Kreskowiak18-Jan-18 4:42 
QuestionC# Remote Desktop Using C# .Net Pin
Babiiii18-Jan-18 2:27
Babiiii18-Jan-18 2:27 
AnswerRe: C# Remote Desktop Using C# .Net Pin
OriginalGriff18-Jan-18 2:30
mveOriginalGriff18-Jan-18 2:30 
QuestionHow can I put an triangle and square shape in the center using c# in image processing Pin
Member 1363007218-Jan-18 0:41
Member 1363007218-Jan-18 0:41 
Please help me on how can I put a triangle and square shape in the center of my image. I will use plain white image so that the triangle and square shape will be visible. The first step is when I click the browse image then I will sample browse the plain white image then it will display to the picturebox1. Then there is an two button which is triange and square. If I click the triange button the plain white image will display to the picturebox2 with triangle shape in the center. Likewise when I click the square button. Please help me for my project.

this is my browse button code

private void button1_Click(object sender, EventArgs e)
        {
            OpenFileDialog opf = new OpenFileDialog();
            opf.Filter = "Choose Image(*.jpg;*.png;*.gif)|*.jpg;*.png;*.gif";
            if (opf.ShowDialog() == DialogResult.OK)
            {
                pictureBox1.Image = Image.FromFile(opf.FileName);
            }
            Bitmap bmp = new Bitmap(opf.FileName);
            pictureBox1.Image = Image.FromFile(opf.FileName);     
        }


I have no code for triangle button and square button kindly help me on how to do it. Please

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.