Click here to Skip to main content
15,922,427 members
Home / Discussions / C#
   

C#

 
GeneralRe: DragDrop inTree View Pin
Bill Dean4-Sep-02 11:30
Bill Dean4-Sep-02 11:30 
QuestionAn unhandled exception? Pin
hunglin9-Jul-02 20:38
hunglin9-Jul-02 20:38 
AnswerRe: An unhandled exception? Pin
Andres Manggini10-Jul-02 10:14
Andres Manggini10-Jul-02 10:14 
GeneralAccessing position of desktop icons... Pin
gekoscan9-Jul-02 8:19
gekoscan9-Jul-02 8:19 
GeneralAmazon UK and Inside C# Pin
Michael P Butler9-Jul-02 8:17
Michael P Butler9-Jul-02 8:17 
GeneralRe: Amazon UK and Inside C# Pin
merlin987610-Jul-02 16:57
merlin987610-Jul-02 16:57 
GeneralRe: Amazon UK and Inside C# Pin
Christian Graus10-Jul-02 18:28
protectorChristian Graus10-Jul-02 18:28 
GeneralThe "good books" question... Pin
merlin98769-Jul-02 7:54
merlin98769-Jul-02 7:54 
GeneralRe: The "good books" question... Pin
Michael P Butler9-Jul-02 8:13
Michael P Butler9-Jul-02 8:13 
GeneralRe: The "good books" question... Pin
Eric Gunnerson (msft)10-Jul-02 7:42
Eric Gunnerson (msft)10-Jul-02 7:42 
GeneralRe: The "good books" question... Pin
merlin987610-Jul-02 16:54
merlin987610-Jul-02 16:54 
GeneralRe: The "good books" question... Pin
James T. Johnson10-Jul-02 21:03
James T. Johnson10-Jul-02 21:03 
GeneralRe: The "good books" question... Pin
Eric Gunnerson (msft)11-Jul-02 7:09
Eric Gunnerson (msft)11-Jul-02 7:09 
QuestionBUG? Pin
leppie9-Jul-02 4:14
leppie9-Jul-02 4:14 
AnswerRe: BUG? Pin
Eric Gunnerson (msft)10-Jul-02 7:39
Eric Gunnerson (msft)10-Jul-02 7:39 
GeneralRe: BUG? Pin
leppie10-Jul-02 20:33
leppie10-Jul-02 20:33 
GeneralLinks to C# sites Pin
leppie8-Jul-02 23:38
leppie8-Jul-02 23:38 
GeneralRe: Links to C# sites Pin
Michael P Butler9-Jul-02 8:20
Michael P Butler9-Jul-02 8:20 
GeneralCreating similar Shell_TrayWnd Pin
8-Jul-02 21:02
suss8-Jul-02 21:02 
GeneralRe: Creating similar Shell_TrayWnd Pin
James T. Johnson15-Jul-02 22:25
James T. Johnson15-Jul-02 22:25 
GeneralInheriting textbox and setting property values Pin
kyledunn8-Jul-02 10:16
kyledunn8-Jul-02 10:16 
GeneralRe: Inheriting textbox and setting property values Pin
Andy Smith8-Jul-02 10:46
Andy Smith8-Jul-02 10:46 
GeneralRe: Inheriting textbox and setting property values Pin
kyledunn9-Jul-02 2:49
kyledunn9-Jul-02 2:49 
GeneralRe: Inheriting textbox and setting property values Pin
Andy Smith9-Jul-02 5:37
Andy Smith9-Jul-02 5:37 
kyledunn wrote:
Setting the value of properties in the constructor means they are now fixed at that value regardless of changes made in the property browser.


This is false. Setting values in the constructor will not do that. you need to set the value.


kyledunn wrote:
and it did not set the Name value to the default "tbx".


it didn't change it, because you never set it. the DefaultValue attribute is only for the IDE to know when it's been changed. It doesn't actually set the value. You have to set it yourself in the constructor.


kyledunn wrote:
but got this warning:


that warning is because you need to explicitly say whether it is an "override" or a "new". In this case, since the "Name" property is not virtual, you can only use "new".


All that said, it is a REALLY BAD IDEA to try to override the Name property. Controls do magic things with the name property to make sure they are unique. Making them all "tbx" would be a BAD THING.
GeneralRe: Inheriting textbox and setting property values Pin
kyledunn9-Jul-02 7:55
kyledunn9-Jul-02 7:55 

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.