Click here to Skip to main content
15,925,895 members
Home / Discussions / C#
   

C#

 
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 
Andy,

Thank you very much for your help. Yes I do want to play nice with the property browser. Setting the value of properties in the constructor means they are now fixed at that value regardless of changes made in the property browser. I am looking to maintain normal design time behaviour. I just want to override the default name that appears when a control is dropped on a form. I tried to override the property declaration with this code:

private string name = "";
[DefaultValue("tbx")]
public string Name
{
get
{
return name;
}
set
{
name = value;
}
}

but got this warning:

c:\documents and settings\kyle\my documents\visual studio projects\numericonlytextbox\numericonlytextbox.cs(49,17): warning CS0108: The keyword new is required on 'CustomControl.NumericOnlyTextBox.Name' because it hides inherited member 'System.Windows.Forms.Control.Name'

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

I am also very intrigued by the ShouldSerialize method. Do you have any short segments of code you would share that could help me to better understand overriding the inherited property and SouldSerialize method?

Thanks again,

Kyle
GeneralRe: Inheriting textbox and setting property values Pin
Andy Smith9-Jul-02 5:37
Andy Smith9-Jul-02 5:37 
GeneralRe: Inheriting textbox and setting property values Pin
kyledunn9-Jul-02 7:55
kyledunn9-Jul-02 7:55 
QuestionSetWizardMode? How do we create C# Wizards? Pin
Zombies with Coffee, LLC8-Jul-02 9:53
professionalZombies with Coffee, LLC8-Jul-02 9:53 
AnswerRe: SetWizardMode? How do we create C# Wizards? Pin
Rama Krishna Vavilala8-Jul-02 10:57
Rama Krishna Vavilala8-Jul-02 10:57 
GeneralRe: SetWizardMode? How do we create C# Wizards? Pin
Zombies with Coffee, LLC8-Jul-02 11:03
professionalZombies with Coffee, LLC8-Jul-02 11:03 
GeneralRe: SetWizardMode? How do we create C# Wizards? Pin
Rama Krishna Vavilala8-Jul-02 11:20
Rama Krishna Vavilala8-Jul-02 11:20 
GeneralRe: SetWizardMode? How do we create C# Wizards? Pin
Zombies with Coffee, LLC8-Jul-02 11:39
professionalZombies with Coffee, LLC8-Jul-02 11:39 
GeneralPlease Help...Tree Refreshing Problem Pin
cAptHiDDeN8-Jul-02 9:32
cAptHiDDeN8-Jul-02 9:32 
GeneralRe: Please Help...Tree Refreshing Problem Pin
Zombies with Coffee, LLC8-Jul-02 9:57
professionalZombies with Coffee, LLC8-Jul-02 9:57 
GeneralRe: Please Help...Tree Refreshing Problem Pin
cAptHiDDeN9-Jul-02 5:34
cAptHiDDeN9-Jul-02 5:34 
GeneralRe: Please Help...Tree Refreshing Problem Pin
gekoscan9-Jul-02 18:13
gekoscan9-Jul-02 18:13 
GeneralRe: Please Help...Tree Refreshing Problem Pin
cAptHiDDeN10-Jul-02 5:08
cAptHiDDeN10-Jul-02 5:08 
QuestionAny word on next version? Pin
Zombies with Coffee, LLC8-Jul-02 9:07
professionalZombies with Coffee, LLC8-Jul-02 9:07 
GeneralC# construct similar to JTable Pin
w.l.8-Jul-02 9:02
w.l.8-Jul-02 9:02 
GeneralRe: C# construct similar to JTable Pin
Andy Smith8-Jul-02 10:50
Andy Smith8-Jul-02 10:50 
GeneralExtending a control used by VS Designer Pin
scrozier8-Jul-02 8:25
scrozier8-Jul-02 8:25 
GeneralRe: Extending a control used by VS Designer Pin
James T. Johnson8-Jul-02 13:03
James T. Johnson8-Jul-02 13:03 

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.