Click here to Skip to main content
15,906,467 members
Home / Discussions / C#
   

C#

 
GeneralRe: ComboBox Pin
J. Dunlap22-Oct-03 9:33
J. Dunlap22-Oct-03 9:33 
GeneralRe: ComboBox Pin
Heath Stewart22-Oct-03 9:36
protectorHeath Stewart22-Oct-03 9:36 
QuestionHow to get title bar's graphics or its retangle? Pin
wangier21-Oct-03 16:42
wangier21-Oct-03 16:42 
GeneralCapture HTML as Image Pin
Member 31415321-Oct-03 15:28
Member 31415321-Oct-03 15:28 
GeneralWeb Site Scrape Problem Pin
Member 50249221-Oct-03 12:36
Member 50249221-Oct-03 12:36 
GeneralRe: Web Site Scrape Problem Pin
Kentamanos21-Oct-03 12:59
Kentamanos21-Oct-03 12:59 
GeneralRe: Web Site Scrape Problem Pin
Member 50249221-Oct-03 16:32
Member 50249221-Oct-03 16:32 
GeneralRapping rappers? Wrapping wrappers! Pin
allancto21-Oct-03 9:36
allancto21-Oct-03 9:36 
Heath Stewart kindly provided me with the code snippet below which works generally for exposing functionality that somebody's wrapper of a windows system control left out.

My question now is, how do i best integrate it with VS Designer? The textbook way is to create a new component TreeViewNoHScroll. I am then free to register the class in the designer toolbox etc. But that seems a bit heavy, adding my own Windows Forms control dll to the toolbox for every simple wrapper patch. At the other extreme, I could directly edit the designer code where it creates the new TreeView() and make it a new TreeViewNoHScroll, but I dont like to muck with designer generated code because i have a hard enough time replacing controls or properties that somehow get lost and dealing with other designer quirks and gremlins.

So, is there a way to dynamically create a TreeViewNoHScroll that inherits from the existing instance of a designed TreeView, before the window is created? Or to somehow use reflection to just replace the protected function in TreeView without even creating a new wrapper class?

What's the best way to fix the wrapper with minimal impact on the designer? Thanks in advance for any suggestions.


// Exposing functionality from under a Wrapper, courtesy Heath Stewart
private const int TVS_NOSCROLL = 0x8000;
protected override CreateParams CreateParams
{
get
{
CreateParams ret = base.CreateParams;
ret.Style |= TVS_NOSCROLL;
return ret;
}
}





GeneralRe: Rapping rappers? Wrapping wrappers! Pin
James Simpson24-Oct-03 2:08
James Simpson24-Oct-03 2:08 
GeneralRe: Rapping rappers? Wrapping wrappers! Pin
allancto26-Oct-03 21:37
allancto26-Oct-03 21:37 
GeneralType.GetType("System.Drawing.Color") returns null?! Pin
Arun Bhalla21-Oct-03 8:27
Arun Bhalla21-Oct-03 8:27 
GeneralRe: Type.GetType("System.Drawing.Color") returns null?! Pin
leppie21-Oct-03 8:36
leppie21-Oct-03 8:36 
GeneralRe: Type.GetType("System.Drawing.Color") returns null?! Pin
Arun Bhalla21-Oct-03 8:54
Arun Bhalla21-Oct-03 8:54 
GeneralRe: Type.GetType("System.Drawing.Color") returns null?! Pin
John Arlen21-Oct-03 9:04
John Arlen21-Oct-03 9:04 
GeneralRe: Type.GetType("System.Drawing.Color") returns null?! Pin
Arun Bhalla21-Oct-03 9:22
Arun Bhalla21-Oct-03 9:22 
GeneralRe: Type.GetType("System.Drawing.Color") returns null?! Pin
leppie21-Oct-03 11:53
leppie21-Oct-03 11:53 
GeneralRe: Type.GetType("System.Drawing.Color") returns null?! Pin
Arun Bhalla21-Oct-03 12:16
Arun Bhalla21-Oct-03 12:16 
Generalmanaged + unamanaged directx Pin
gonenb21-Oct-03 8:20
gonenb21-Oct-03 8:20 
GeneralRe: managed + unamanaged directx Pin
Jeremy Kimball24-Oct-03 5:32
Jeremy Kimball24-Oct-03 5:32 
GeneralRe: managed + unamanaged directx Pin
gonenb24-Oct-03 6:46
gonenb24-Oct-03 6:46 
GeneralRe: managed + unamanaged directx Pin
gonenb30-Oct-03 4:29
gonenb30-Oct-03 4:29 
GeneralThreads appear twice Pin
AJB...21-Oct-03 6:39
AJB...21-Oct-03 6:39 
GeneralRe: Threads appear twice Pin
James Simpson24-Oct-03 2:03
James Simpson24-Oct-03 2:03 
QuestionEditcontrol GUI widget.. Any Tips? Pin
kfowlks21-Oct-03 4:32
kfowlks21-Oct-03 4:32 
AnswerRe: Editcontrol GUI widget.. Any Tips? Pin
J. Dunlap21-Oct-03 12:14
J. Dunlap21-Oct-03 12:14 

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.