Click here to Skip to main content
15,888,335 members
Home / Discussions / C#
   

C#

 
AnswerRe: File Size Monitoring Pin
DaveyM6916-Jul-09 6:31
professionalDaveyM6916-Jul-09 6:31 
GeneralRe: File Size Monitoring Pin
See_Sharp16-Jul-09 7:31
See_Sharp16-Jul-09 7:31 
QuestionGenerics and Properties.Settings.Default ... Pin
Jammer16-Jul-09 5:25
Jammer16-Jul-09 5:25 
Question[Message Deleted] Pin
Member 311244716-Jul-09 5:15
Member 311244716-Jul-09 5:15 
AnswerRe: How to mark points on a windows from by mouse click.(c#.net) Pin
DaveyM6916-Jul-09 5:23
professionalDaveyM6916-Jul-09 5:23 
GeneralRe: How to mark points on a windows from by mouse click.(c#.net) Pin
Member 311244716-Jul-09 6:11
Member 311244716-Jul-09 6:11 
GeneralRe: How to mark points on a windows from by mouse click.(c#.net) Pin
dan!sh 16-Jul-09 6:19
professional dan!sh 16-Jul-09 6:19 
GeneralRe: How to mark points on a windows from by mouse click.(c#.net) Pin
DaveyM6916-Jul-09 6:24
professionalDaveyM6916-Jul-09 6:24 
Something like:
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        List<Point> points = new List<Point>();
        public Form1()
        {
            InitializeComponent();
            MouseClick += new MouseEventHandler(Form1_MouseClick);
        }

        void Form1_MouseClick(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
            {
                points.Add(e.Location);
                Invalidate();
            }
        }

        protected override void OnPaint(PaintEventArgs e)
        {
            foreach (Point point in points)
            {
                e.Graphics.SmoothingMode = SmoothingMode.AntiAlias;
                e.Graphics.DrawEllipse(Pens.Red, point.X, point.Y, 2, 2);
            }
            base.OnPaint(e);
        }
    }
}


Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
Why are you using VB6? Do you hate yourself? (Christian Graus)

QuestionGeting user defined attributes from external DLL with dependencies. Pin
Member 360506816-Jul-09 5:15
Member 360506816-Jul-09 5:15 
QuestionNationalInstrument Pin
peishen8816-Jul-09 5:01
peishen8816-Jul-09 5:01 
AnswerRe: NationalInstrument Pin
Rajesh R Subramanian16-Jul-09 5:08
professionalRajesh R Subramanian16-Jul-09 5:08 
GeneralRe: NationalInstrument Pin
peishen8816-Jul-09 6:05
peishen8816-Jul-09 6:05 
QuestionUsing 64 bit DLL Pin
musefan16-Jul-09 4:39
musefan16-Jul-09 4:39 
AnswerRe: Using 64 bit DLL Pin
Nagy Vilmos16-Jul-09 5:18
professionalNagy Vilmos16-Jul-09 5:18 
GeneralRe: Using 64 bit DLL Pin
musefan16-Jul-09 7:16
musefan16-Jul-09 7:16 
AnswerRe: Using 64 bit DLL [modified] Pin
dan!sh 16-Jul-09 5:30
professional dan!sh 16-Jul-09 5:30 
GeneralRe: Using 64 bit DLL Pin
Nagy Vilmos16-Jul-09 5:51
professionalNagy Vilmos16-Jul-09 5:51 
GeneralRe: Using 64 bit DLL Pin
dan!sh 16-Jul-09 5:54
professional dan!sh 16-Jul-09 5:54 
GeneralRe: Using 64 bit DLL Pin
Nagy Vilmos16-Jul-09 5:58
professionalNagy Vilmos16-Jul-09 5:58 
Questiontype.GetProperties(BindingFlags.DeclaredOnly) does not work Pin
gehbitte16-Jul-09 4:17
gehbitte16-Jul-09 4:17 
AnswerRe: type.GetProperties(BindingFlags.DeclaredOnly) does not work PinPopular
Gideon Engelberth16-Jul-09 4:28
Gideon Engelberth16-Jul-09 4:28 
GeneralRe: type.GetProperties(BindingFlags.DeclaredOnly) does not work Pin
gehbitte16-Jul-09 4:42
gehbitte16-Jul-09 4:42 
QuestionGenerics and type constraints Pin
dojohansen16-Jul-09 4:04
dojohansen16-Jul-09 4:04 
AnswerRe: Generics and type constraints Pin
OriginalGriff16-Jul-09 4:13
mveOriginalGriff16-Jul-09 4:13 
GeneralRe: Generics and type constraints Pin
dojohansen16-Jul-09 5:05
dojohansen16-Jul-09 5:05 

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.