Click here to Skip to main content
15,867,906 members
Home / Discussions / C#
   

C#

 
Answershameless repost Pin
Luc Pattyn16-Jul-09 7:30
sitebuilderLuc Pattyn16-Jul-09 7:30 
AnswerRe: Image Brightness Pin
lexx_zone16-Jul-09 7:59
lexx_zone16-Jul-09 7:59 
QuestionFile Size Monitoring [modified] Pin
See_Sharp16-Jul-09 5:48
See_Sharp16-Jul-09 5:48 
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 
You can draw directly on the form. This example just draws a diaganol line from top left to bottom right. Abviously you'll need to persist your points in a collection somewhere and alter the OnPaint accordingly, but it should get you started.
using System.Drawing;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        
        public Form1()
        {
            InitializeComponent();
        }
        protected override void OnPaint(PaintEventArgs e)
        {
            using (Pen pen = new Pen(Color.Black))
            {
                e.Graphics.DrawLine(pen, Point.Empty, new Point(ClientSize.Width, ClientSize.Height));
            }
            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)

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 
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 Pin
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 

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.