Click here to Skip to main content
16,007,111 members
Home / Discussions / C#
   

C#

 
GeneralRe: weird MSCORLIB Exception Pin
matthias s.10-Jan-03 6:33
matthias s.10-Jan-03 6:33 
GeneralRe: weird MSCORLIB Exception Pin
leppie10-Jan-03 6:55
leppie10-Jan-03 6:55 
GeneralRe: weird MSCORLIB Exception Pin
matthias s.10-Jan-03 7:32
matthias s.10-Jan-03 7:32 
GeneralRe: weird MSCORLIB Exception - Solution Pin
matthias s.10-Jan-03 7:47
matthias s.10-Jan-03 7:47 
GeneralRe: weird MSCORLIB Exception Pin
James T. Johnson10-Jan-03 18:31
James T. Johnson10-Jan-03 18:31 
GeneralRe: weird MSCORLIB Exception Pin
leppie11-Jan-03 0:23
leppie11-Jan-03 0:23 
Question'Subclassing' child controls. Is it possible? Pin
FruitBatInShades9-Jan-03 10:45
FruitBatInShades9-Jan-03 10:45 
AnswerRe: 'Subclassing' child controls. Is it possible? Pin
leppie9-Jan-03 11:00
leppie9-Jan-03 11:00 
OOOooh that horrid VB word again Unsure | :~

Anyways the answer is yes. Just override the PreProcessMessage() in a derived (subclassed in VB) control. EG:

public class MyTextBox : TextBox {

  public override bool PreProcessMessage(ref Message msg)
  {
    //do your stuff here
  }
}

From MSDN:
All messages are sent to the WndProc method after getting filtered through the PreProcessMessage method.

The WndProc method corresponds to exactly to the Windows WindowProc function. For more information about processing Windows messages, see the WindowProc function documentation in the Windows Platform SDK reference located in the MSDN Library.

Notes to Inheritors: Inheriting controls should call the base class's WndProc method to process any messages that they don't handle.

Cheers Smile | :)

WebBoxes - Yet another collapsable control, but it relies on a "graphics server" for dynamic pretty rounded corners, cool arrows and unlimited font support.

GeneralRe: 'Subclassing' child controls. Is it possible? Pin
FruitBatInShades9-Jan-03 11:10
FruitBatInShades9-Jan-03 11:10 
GeneralRe: 'Subclassing' child controls. Is it possible? Pin
David Stone11-Jan-03 5:16
sitebuilderDavid Stone11-Jan-03 5:16 
GeneralQuestion on xml encoding in C# Pin
Bugoy9-Jan-03 10:29
Bugoy9-Jan-03 10:29 
GeneralRe: Question on xml encoding in C# Pin
leppie9-Jan-03 10:46
leppie9-Jan-03 10:46 
GeneralRe: Question on xml encoding in C# Pin
Bugoy9-Jan-03 11:49
Bugoy9-Jan-03 11:49 
GeneralRe: Question on xml encoding in C# Pin
leppie9-Jan-03 12:05
leppie9-Jan-03 12:05 
GeneralRe: Question on xml encoding in C# Pin
leppie9-Jan-03 20:49
leppie9-Jan-03 20:49 
GeneralRe: Question on xml encoding in C# Pin
Bugoy10-Jan-03 8:27
Bugoy10-Jan-03 8:27 
GeneralRe: Question on xml encoding in C# Pin
Stephane Rodriguez.10-Jan-03 22:51
Stephane Rodriguez.10-Jan-03 22:51 
GeneralRe: Question on xml encoding in C# Pin
leppie10-Jan-03 23:12
leppie10-Jan-03 23:12 
GeneralRe: Question on xml encoding in C# Pin
Stephane Rodriguez.10-Jan-03 23:42
Stephane Rodriguez.10-Jan-03 23:42 
GeneralRe: Question on xml encoding in C# Pin
leppie11-Jan-03 0:08
leppie11-Jan-03 0:08 
GeneralRe: Question on xml encoding in C# Pin
Stephane Rodriguez.11-Jan-03 2:02
Stephane Rodriguez.11-Jan-03 2:02 
GeneralSerialization Question Pin
matthias s.9-Jan-03 9:04
matthias s.9-Jan-03 9:04 
GeneralRe: Serialization Question Pin
leppie9-Jan-03 9:23
leppie9-Jan-03 9:23 
GeneralRe: Serialization Question Pin
matthias s.9-Jan-03 11:32
matthias s.9-Jan-03 11:32 
QuestionSerious Coding? Pin
FruitBatInShades9-Jan-03 6:48
FruitBatInShades9-Jan-03 6:48 

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.