Click here to Skip to main content
15,886,919 members
Home / Discussions / C#
   

C#

 
Questionusing Same Shortcut keys on Different Tabs of a form Pin
Why so Serious13-Aug-12 2:48
Why so Serious13-Aug-12 2:48 
AnswerRe: using Same Shortcut keys on Different Tabs of a form Pin
Shameel13-Aug-12 4:29
professionalShameel13-Aug-12 4:29 
AnswerRe: using Same Shortcut keys on Different Tabs of a form Pin
Liam Cairns Kelly13-Aug-12 9:30
Liam Cairns Kelly13-Aug-12 9:30 
Questionread and org data in c# Pin
Xarzu12-Aug-12 23:42
Xarzu12-Aug-12 23:42 
AnswerRe: read and org data in c# Pin
Eddy Vluggen13-Aug-12 0:33
professionalEddy Vluggen13-Aug-12 0:33 
QuestionOverriding the DefaultValueAttribute of an inherited property Pin
Bernhard Hiller12-Aug-12 20:51
Bernhard Hiller12-Aug-12 20:51 
AnswerRe: Overriding the DefaultValueAttribute of an inherited property Pin
DaveyM6913-Aug-12 0:19
professionalDaveyM6913-Aug-12 0:19 
GeneralRe: Overriding the DefaultValueAttribute of an inherited property Pin
Bernhard Hiller13-Aug-12 1:01
Bernhard Hiller13-Aug-12 1:01 
Sorry, it does not:
Drag the button onto a form, and it looks OK. Then change the DefaultSize, e.g.
C#
private static readonly Size SizeDefault = new Size(200, 100);
, rebuild your solution, and the button has still the old size. Only new buttons get the new default size, "old" buttons do not get updated.
Again, a look into Form1.Designer.cs shows the reason:
C#
this.myButton1.Size = new System.Drawing.Size(100, 50);
The key to the solution is (likely) in preventing the designer from writing that line - as with the BackColor property.
But a
public bool ShouldSerializeSize()
does not help either.
And
C#
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public new Size Size
{
    get { return base.Size; }
    set { base.Size = value; }
}
prevents individually sized buttons.
GeneralRe: Overriding the DefaultValueAttribute of an inherited property Pin
DaveyM6913-Aug-12 1:27
professionalDaveyM6913-Aug-12 1:27 
QuestionA simple proxy server in C# Pin
Prahlad Yeri12-Aug-12 1:41
Prahlad Yeri12-Aug-12 1:41 
AnswerRe: A simple proxy server in C# Pin
Richard Andrew x6412-Aug-12 4:17
professionalRichard Andrew x6412-Aug-12 4:17 
GeneralRRe: A simple proxy server in C# Pin
Prahlad Yeri12-Aug-12 5:07
Prahlad Yeri12-Aug-12 5:07 
GeneralRe: RRe: A simple proxy server in C# Pin
Richard Andrew x6412-Aug-12 5:25
professionalRichard Andrew x6412-Aug-12 5:25 
GeneralRe: RRe: A simple proxy server in C# Pin
Prahlad Yeri12-Aug-12 5:31
Prahlad Yeri12-Aug-12 5:31 
GeneralRe: RRe: A simple proxy server in C# Pin
Richard Andrew x6412-Aug-12 5:36
professionalRichard Andrew x6412-Aug-12 5:36 
GeneralRe: RRe: A simple proxy server in C# Pin
Prahlad Yeri12-Aug-12 6:18
Prahlad Yeri12-Aug-12 6:18 
QuestionTracking system Pin
kipchirchir11-Aug-12 20:52
kipchirchir11-Aug-12 20:52 
AnswerRe: Tracking system Pin
OriginalGriff11-Aug-12 21:17
mveOriginalGriff11-Aug-12 21:17 
AnswerRe: Tracking system Pin
Richard MacCutchan11-Aug-12 21:46
mveRichard MacCutchan11-Aug-12 21:46 
QuestionXDocument.Save() reversing attribute order Pin
Nukeman3311-Aug-12 2:03
Nukeman3311-Aug-12 2:03 
QuestionRe: XDocument.Save() reversing attribute order Pin
Eddy Vluggen11-Aug-12 2:22
professionalEddy Vluggen11-Aug-12 2:22 
AnswerRe: XDocument.Save() reversing attribute order Pin
Dave Kreskowiak11-Aug-12 4:13
mveDave Kreskowiak11-Aug-12 4:13 
AnswerRe: XDocument.Save() reversing attribute order Pin
jschell11-Aug-12 7:35
jschell11-Aug-12 7:35 
AnswerRe: XDocument.Save() reversing attribute order Pin
Abhinav S11-Aug-12 18:59
Abhinav S11-Aug-12 18:59 
Questionhow to create multiple countdown timer in one page in asp.net Pin
Sumit Malviya10-Aug-12 23:05
Sumit Malviya10-Aug-12 23:05 

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.