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

C#

 
GeneralRe: Multiligual and End-User defined labels...? Pin
Darren Weir20-Dec-04 23:42
Darren Weir20-Dec-04 23:42 
AnswerRe: Multiligual and End-User defined labels...? Pin
Heath Stewart20-Dec-04 21:46
protectorHeath Stewart20-Dec-04 21:46 
GeneralRe: Multiligual and End-User defined labels...? Pin
Darren Weir20-Dec-04 23:57
Darren Weir20-Dec-04 23:57 
GeneralRe: Multiligual and End-User defined labels...? Pin
Sven Cipido21-Dec-04 1:11
Sven Cipido21-Dec-04 1:11 
GeneralRe: Multiligual and End-User defined labels...? Pin
Heath Stewart21-Dec-04 7:46
protectorHeath Stewart21-Dec-04 7:46 
Generalon SQL Server CE Pin
ting66820-Dec-04 17:39
ting66820-Dec-04 17:39 
GeneralRe: on SQL Server CE Pin
Heath Stewart20-Dec-04 21:21
protectorHeath Stewart20-Dec-04 21:21 
GeneralExtend window control as custom control problem Pin
ting66820-Dec-04 17:19
ting66820-Dec-04 17:19 
Hi~

I have encountered a very difficult problem and worked for a long time but still can't solve it. Pls help it.

The problem is :
There are two cases. One is for .net full vesion, one is for .net compact framework.

For the .net full version, "ListViewEx" is a class which extend listView.
class ListViewEx : ListView
{
ListViewEx()
{
}

protected override OnPaint(PaintEventArg e)
{
MessageBox.Show("ABC");
base.OnPaint();
}
The problem is the overriding OnPaint not be executed if a instance of this class newly be created but the base class (I don't know the method (OnPaint()) of the class "Control" or class "ListView" will be called and draw the listview only without showing message box.

However, the overriding OnPaint method seems works if the extended window control is not listview but button or panel. (Other control also not work). What is the problem?

For the CF case,
The case is that the if Class for example "ListViewEx2" extend the class ListView, the overriding Method OnPaint() still not work since the virtual void OnPaint method in the ListView Class is not supported.

However, as the ListView extend Control, and the control also got the virtual method OnPaint(), that mean the ListViewEx2 also got the virtual OnPaint method and which can be overrided by ListViewEx2. Then why the overrided method in ListViewEx2 does not executed?

Thanks

}
GeneralRe: Extend window control as custom control problem Pin
Heath Stewart20-Dec-04 21:30
protectorHeath Stewart20-Dec-04 21:30 
GeneralPlatform independant... Pin
Malcolm Smart20-Dec-04 10:45
Malcolm Smart20-Dec-04 10:45 
GeneralRe: Platform independant... Pin
Nick Parker20-Dec-04 10:55
protectorNick Parker20-Dec-04 10:55 
GeneralSerializing the Forms Pin
Wail A.Salem20-Dec-04 10:28
Wail A.Salem20-Dec-04 10:28 
GeneralRe: Serializing the Forms Pin
Heath Stewart20-Dec-04 21:34
protectorHeath Stewart20-Dec-04 21:34 
GeneralDataGrid DoublClick dos'nt Response Pin
Wail A.Salem20-Dec-04 10:21
Wail A.Salem20-Dec-04 10:21 
GeneralRe: DataGrid DoublClick dos'nt Response Pin
Jay Shankar20-Dec-04 17:20
Jay Shankar20-Dec-04 17:20 
Generalwmi query related Pin
sujithapril20-Dec-04 8:53
sujithapril20-Dec-04 8:53 
GeneralRe: wmi query related Pin
Nick Parker20-Dec-04 10:06
protectorNick Parker20-Dec-04 10:06 
GeneralRe: wmi query related Pin
sujithapril20-Dec-04 10:57
sujithapril20-Dec-04 10:57 
Generali needwmi Pin
sujithapril20-Dec-04 8:46
sujithapril20-Dec-04 8:46 
QuestionHow to start a form from another thread Pin
SebbaP20-Dec-04 8:12
SebbaP20-Dec-04 8:12 
AnswerRe: How to start a form from another thread Pin
Michael Potter20-Dec-04 9:29
Michael Potter20-Dec-04 9:29 
GeneralRe: How to start a form from another thread Pin
SebbaP20-Dec-04 10:33
SebbaP20-Dec-04 10:33 
GeneralRe: How to start a form from another thread Pin
Michael Potter20-Dec-04 11:11
Michael Potter20-Dec-04 11:11 
GeneralRe: How to start a form from another thread Pin
SebbaP20-Dec-04 20:59
SebbaP20-Dec-04 20:59 
GeneralProblem getting array out of arraylist Pin
sciamachy20-Dec-04 6:20
sciamachy20-Dec-04 6:20 

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.