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

C#

 
AnswerRe: Resize all controls on a user control or form automatically with changing of user control or form Pin
Gerry Schmitz18-May-19 7:11
mveGerry Schmitz18-May-19 7:11 
GeneralRe: Resize all controls on a user control or form automatically with changing of user control or form Pin
Member 1332584618-May-19 10:49
Member 1332584618-May-19 10:49 
NewsRe: Resize all controls on a user control or form automatically with changing of user control or form Pin
Mycroft Holmes18-May-19 12:04
professionalMycroft Holmes18-May-19 12:04 
AnswerRe: Resize all controls on a user control or form automatically with changing of user control or form Pin
Luc Pattyn18-May-19 13:10
sitebuilderLuc Pattyn18-May-19 13:10 
AnswerRe: Resize all controls on a user control or form automatically with changing of user control or form Pin
BillWoodruff19-May-19 5:15
professionalBillWoodruff19-May-19 5:15 
GeneralRe: Resize all controls on a user control or form automatically with changing of user control or form Pin
Member 1332584619-May-19 16:59
Member 1332584619-May-19 16:59 
GeneralRe: Resize all controls on a user control or form automatically with changing of user control or form Pin
BillWoodruff19-May-19 18:43
professionalBillWoodruff19-May-19 18:43 
AnswerRe: Resize all controls on a user control or form automatically with changing of user control or form Pin
Ralf Meier19-May-19 21:28
mveRalf Meier19-May-19 21:28 
QuestionDoes Anybody Else Miss the WITH construct of Visual Basic? Pin
David A. Gray17-May-19 7:07
David A. Gray17-May-19 7:07 
AnswerRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
#realJSOP17-May-19 7:53
professional#realJSOP17-May-19 7:53 
GeneralRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
David A. Gray17-May-19 7:56
David A. Gray17-May-19 7:56 
GeneralRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
#realJSOP18-May-19 1:07
professional#realJSOP18-May-19 1:07 
AnswerRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
OriginalGriff17-May-19 7:56
mveOriginalGriff17-May-19 7:56 
GeneralRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
David A. Gray17-May-19 8:00
David A. Gray17-May-19 8:00 
GeneralRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
OriginalGriff17-May-19 8:16
mveOriginalGriff17-May-19 8:16 
GeneralRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
David A. Gray17-May-19 8:19
David A. Gray17-May-19 8:19 
GeneralRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
Dave Kreskowiak17-May-19 9:08
mveDave Kreskowiak17-May-19 9:08 
JokeRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
Richard Deeming17-May-19 9:24
mveRichard Deeming17-May-19 9:24 
GeneralRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
OriginalGriff17-May-19 9:29
mveOriginalGriff17-May-19 9:29 
GeneralRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
Dave Kreskowiak17-May-19 9:35
mveDave Kreskowiak17-May-19 9:35 
GeneralRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
BillWoodruff17-May-19 15:11
professionalBillWoodruff17-May-19 15:11 
GeneralRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
Dave Kreskowiak17-May-19 15:55
mveDave Kreskowiak17-May-19 15:55 
GeneralRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
phil.o18-May-19 5:43
professionalphil.o18-May-19 5:43 
GeneralRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
David A. Gray18-May-19 11:05
David A. Gray18-May-19 11:05 
GeneralRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
phil.o18-May-19 21:52
professionalphil.o18-May-19 21:52 
Considering a new line is two-characters long on Windows (CrLf):
* -5 (with ) on the first line
* -4 ( }CrLf) on the first line
* -3 (}CrLf) on the last line
So 12 characters less, plus three times Foo -> -12 + 9 = -3
In the end, mine seems 3 characters shorter than yours.
But the number of characters is not really important; I do not feel the with construct makes the code clearer, just more bloated.
noop()

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.