Click here to Skip to main content
15,890,506 members
Home / Discussions / C#
   

C#

 
Questionhow to stop a method when recieving an error? Pin
kharr10271-Aug-03 8:58
kharr10271-Aug-03 8:58 
AnswerRe: how to stop a method when recieving an error? Pin
Ista1-Aug-03 9:04
Ista1-Aug-03 9:04 
GeneralRe: how to stop a method when recieving an error? Pin
kharr10271-Aug-03 9:15
kharr10271-Aug-03 9:15 
GeneralRe: how to stop a method when recieving an error? Pin
Ista1-Aug-03 9:17
Ista1-Aug-03 9:17 
AnswerRe: how to stop a method when recieving an error? Pin
Ista1-Aug-03 9:19
Ista1-Aug-03 9:19 
AnswerRe: how to stop a method when recieving an error? Pin
monrobot132-Aug-03 6:53
monrobot132-Aug-03 6:53 
GeneralRe: how to stop a method when recieving an error? Pin
kharr10272-Aug-03 7:58
kharr10272-Aug-03 7:58 
GeneralSubclassing The Desktop Pin
Nicholas Cardi1-Aug-03 8:54
Nicholas Cardi1-Aug-03 8:54 
Has anyone been sucessful in subclassing the desktop on Windows 2k. I have been trying this

private void Form1_Load(object sender, System.EventArgs e)
{

DskPaint = new Subclass(GetDesktopWindow());

}


public class Subclass : System.Windows.Forms.NativeWindow
{

private const int WM_PAINT = 0x000F;


public Subclass(IntPtr handle)
{
//base.AssignHandle(handle);
AssignHandle(handle);
}

protected override void WndProc(ref Message m)
{

MessageBox.Show("Meesage");

switch(m.Msg)
{
case WM_PAINT:
MessageBox.Show("Paint Called");
break;
default:
base.WndProc(ref m);
break;
}
}

}

The WndProc never gets hit?
Any ideas?

Thanks


Forever Developing
GeneralRe: Subclassing The Desktop Pin
J. Dunlap1-Aug-03 8:56
J. Dunlap1-Aug-03 8:56 
GeneralRe: Subclassing The Desktop Pin
Nicholas Cardi1-Aug-03 8:58
Nicholas Cardi1-Aug-03 8:58 
GeneralRe: Subclassing The Desktop Pin
J. Dunlap1-Aug-03 9:02
J. Dunlap1-Aug-03 9:02 
GeneralRe: Subclassing The Desktop Pin
Nicholas Cardi1-Aug-03 9:05
Nicholas Cardi1-Aug-03 9:05 
GeneralRe: Subclassing The Desktop Pin
J. Dunlap1-Aug-03 9:09
J. Dunlap1-Aug-03 9:09 
GeneralRe: Subclassing The Desktop Pin
Nicholas Cardi1-Aug-03 9:12
Nicholas Cardi1-Aug-03 9:12 
GeneralRe: Subclassing The Desktop Pin
Arun Bhalla1-Aug-03 11:14
Arun Bhalla1-Aug-03 11:14 
GeneralRe: Subclassing The Desktop Pin
Rocky Moore1-Aug-03 21:21
Rocky Moore1-Aug-03 21:21 
GeneralRe: Subclassing The Desktop Pin
J. Dunlap1-Aug-03 21:26
J. Dunlap1-Aug-03 21:26 
GeneralRe: Subclassing The Desktop Pin
Rocky Moore1-Aug-03 21:55
Rocky Moore1-Aug-03 21:55 
GeneralRe: Subclassing The Desktop Pin
Nick Parker2-Aug-03 1:57
protectorNick Parker2-Aug-03 1:57 
GeneralRe: Subclassing The Desktop Pin
leppie2-Aug-03 4:42
leppie2-Aug-03 4:42 
GeneralRe: Subclassing The Desktop Pin
Nick Parker2-Aug-03 5:58
protectorNick Parker2-Aug-03 5:58 
QuestionHow to extract a table cell's textbox data? Pin
jmelgar1-Aug-03 7:20
jmelgar1-Aug-03 7:20 
AnswerRe: How to extract a table cell's textbox data? Pin
Ista1-Aug-03 9:10
Ista1-Aug-03 9:10 
QuestionApplication updater? Pin
Arun Bhalla1-Aug-03 7:01
Arun Bhalla1-Aug-03 7:01 
QuestionDrag and Drop Rows on DataGrid, Anyone? Pin
Khang Nguyen1-Aug-03 6:25
Khang Nguyen1-Aug-03 6:25 

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.