Click here to Skip to main content
16,018,347 members
Home / Discussions / C#
   

C#

 
GeneralRe: Color of Title bar Pin
MasterSharp5-Nov-07 12:34
MasterSharp5-Nov-07 12:34 
AnswerRe: Color of Title bar Pin
Francofu5-Nov-07 18:00
Francofu5-Nov-07 18:00 
QuestionMultiple Series on a ReportViewer chart Pin
ChrisFarrugia5-Nov-07 3:05
ChrisFarrugia5-Nov-07 3:05 
AnswerRe: Multiple Series on a ReportViewer chart Pin
led mike5-Nov-07 5:24
led mike5-Nov-07 5:24 
GeneralRe: Multiple Series on a ReportViewer chart Pin
ChrisFarrugia5-Nov-07 5:39
ChrisFarrugia5-Nov-07 5:39 
GeneralRe: Multiple Series on a ReportViewer chart Pin
led mike5-Nov-07 6:24
led mike5-Nov-07 6:24 
QuestionChange the global cursor Pin
QzRz5-Nov-07 2:27
QzRz5-Nov-07 2:27 
AnswerRe: Change the global cursor Pin
Pete O'Hanlon5-Nov-07 3:09
mvePete O'Hanlon5-Nov-07 3:09 
Well, this works for me:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;

namespace WindowsCursorTest
{

    public partial class Form1 : Form
    {
        private const int OCR_NORMAL = 32512;
        [DllImport("user32.dll")]
        static extern bool SetSystemCursor(IntPtr hcur, uint id);
        [DllImport("user32.dll")]
        static extern bool DestroyCursor(IntPtr hcur);

        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            IntPtr cursor = Cursors.Cross.CopyHandle();
            SetSystemCursor(cursor, OCR_NORMAL);
            DestroyCursor(cursor);
        }
    }
}


Deja View - the feeling that you've seen this post before.

GeneralRe: Change the global cursor Pin
QzRz5-Nov-07 3:17
QzRz5-Nov-07 3:17 
GeneralRe: Change the global cursor Pin
Pete O'Hanlon5-Nov-07 3:35
mvePete O'Hanlon5-Nov-07 3:35 
GeneralRe: Change the global cursor Pin
QzRz5-Nov-07 4:10
QzRz5-Nov-07 4:10 
GeneralRe: Change the global cursor Pin
Pete O'Hanlon5-Nov-07 4:15
mvePete O'Hanlon5-Nov-07 4:15 
QuestionCheckboxes in datagridview Pin
akkram5-Nov-07 2:26
akkram5-Nov-07 2:26 
AnswerRe: Checkboxes in datagridview Pin
half-life5-Nov-07 4:45
half-life5-Nov-07 4:45 
GeneralRe: Checkboxes in datagridview Pin
akkram5-Nov-07 5:21
akkram5-Nov-07 5:21 
GeneralRe: Checkboxes in datagridview Pin
half-life5-Nov-07 5:32
half-life5-Nov-07 5:32 
GeneralRe: Checkboxes in datagridview Pin
akkram5-Nov-07 5:30
akkram5-Nov-07 5:30 
Questionimport vrml Pin
GeoVx12345-Nov-07 1:23
GeoVx12345-Nov-07 1:23 
AnswerRe: import vrml Pin
led mike5-Nov-07 5:05
led mike5-Nov-07 5:05 
GeneralRe: import vrml Pin
GeoVx12345-Nov-07 20:34
GeoVx12345-Nov-07 20:34 
QuestionGet frame from video file Pin
DeepOceans5-Nov-07 1:11
DeepOceans5-Nov-07 1:11 
AnswerRe: Get frame from video file Pin
TJoe5-Nov-07 1:47
TJoe5-Nov-07 1:47 
QuestionShadow for text GDI+ Pin
N a v a n e e t h5-Nov-07 0:56
N a v a n e e t h5-Nov-07 0:56 
AnswerRe: Shadow for text GDI+ Pin
TJoe5-Nov-07 1:45
TJoe5-Nov-07 1:45 
GeneralRe: Shadow for text GDI+ Pin
N a v a n e e t h5-Nov-07 2:29
N a v a n e e t h5-Nov-07 2:29 

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.