Click here to Skip to main content
15,910,877 members
Home / Discussions / C#
   

C#

 
Questionis there any way to have a program to delete itself after running? Pin
Anthony Mushrow15-Dec-05 13:04
professionalAnthony Mushrow15-Dec-05 13:04 
AnswerRe: is there any way to have a program to delete itself after running? Pin
enjoycrack15-Dec-05 13:31
enjoycrack15-Dec-05 13:31 
GeneralRe: is there any way to have a program to delete itself after running? Pin
Dave Kreskowiak15-Dec-05 16:11
mveDave Kreskowiak15-Dec-05 16:11 
AnswerRe: is there any way to have a program to delete itself after running? Pin
Dave Kreskowiak15-Dec-05 16:18
mveDave Kreskowiak15-Dec-05 16:18 
QuestionWant to display screen coordinates of the mouse in real time Pin
...---...15-Dec-05 11:02
...---...15-Dec-05 11:02 
AnswerRe: Want to display screen coordinates of the mouse in real time Pin
Kharlog-15-Dec-05 11:45
Kharlog-15-Dec-05 11:45 
GeneralRe: Want to display screen coordinates of the mouse in real time Pin
...---...15-Dec-05 12:36
...---...15-Dec-05 12:36 
GeneralRe: Want to display screen coordinates of the mouse in real time Pin
TheGreatAndPowerfulOz15-Dec-05 13:40
TheGreatAndPowerfulOz15-Dec-05 13:40 
Add the following code to your form:
Point myMouse;

protected override void OnPaint(PaintEventArgs e)
{
    Point screen = PointToScreen(myMouse);
    string location = screen.ToString();
    e.Graphics.DrawString(location,
        SystemFonts.DefaultFont,
        SystemBrushes.ControlText,
        (PointF)myMouse);
}

protected override void OnMouseMove(MouseEventArgs e)
{
    myMouse = e.Location;
    Invalidate();
    base.OnMouseMove(e);
}


-- modified at 19:42 Thursday 15th December, 2005

For some damn reason codeproject is lowercasing onmousemove. It should read On Mouse Move (remove spaces)
GeneralRe: Want to display screen coordinates of the mouse in real time Pin
...---...15-Dec-05 14:49
...---...15-Dec-05 14:49 
Questionfaxing using FAXCOMLib Pin
cobra200515-Dec-05 10:40
cobra200515-Dec-05 10:40 
QuestionConverting Word documents to Text Pin
Guinness4Strength15-Dec-05 9:39
Guinness4Strength15-Dec-05 9:39 
Questionprint in web Pin
mehrdadc4815-Dec-05 9:26
mehrdadc4815-Dec-05 9:26 
QuestionTime out BeginReceive() operation Pin
c#guy381115-Dec-05 8:30
c#guy381115-Dec-05 8:30 
AnswerRe: Time out BeginReceive() operation Pin
leppie15-Dec-05 11:11
leppie15-Dec-05 11:11 
GeneralRe: Time out BeginReceive() operation Pin
c#guy381115-Dec-05 11:27
c#guy381115-Dec-05 11:27 
Questionimprotant Pin
marmosha15-Dec-05 7:55
marmosha15-Dec-05 7:55 
AnswerRe: improtant Pin
enjoycrack15-Dec-05 8:00
enjoycrack15-Dec-05 8:00 
AnswerRe: improtant Pin
marmosha15-Dec-05 8:27
marmosha15-Dec-05 8:27 
GeneralRe: improtant Pin
enjoycrack15-Dec-05 8:33
enjoycrack15-Dec-05 8:33 
AnswerRe: improtant Pin
Brian Van Beek15-Dec-05 9:56
Brian Van Beek15-Dec-05 9:56 
AnswerRe: improtant Pin
marmosha16-Dec-05 22:54
marmosha16-Dec-05 22:54 
QuestionCreate File Format Pin
kenexcelon15-Dec-05 7:52
kenexcelon15-Dec-05 7:52 
AnswerRe: Create File Format Pin
enjoycrack15-Dec-05 8:14
enjoycrack15-Dec-05 8:14 
GeneralRe: Create File Format Pin
kenexcelon15-Dec-05 8:17
kenexcelon15-Dec-05 8:17 
GeneralRe: Create File Format Pin
enjoycrack15-Dec-05 8:35
enjoycrack15-Dec-05 8:35 

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.