Click here to Skip to main content
15,888,454 members
Home / Discussions / C#
   

C#

 
GeneralRe: .NET5 publish selfcontained: issue with App.config Pin
Gerry Schmitz17-Nov-20 20:59
mveGerry Schmitz17-Nov-20 20:59 
GeneralRe: .NET5 publish selfcontained: issue with App.config Pin
Super Lloyd17-Nov-20 21:16
Super Lloyd17-Nov-20 21:16 
GeneralRe: .NET5 publish selfcontained: issue with App.config Pin
Gerry Schmitz18-Nov-20 7:05
mveGerry Schmitz18-Nov-20 7:05 
QuestionHow to reference resource from Resources file Pin
Bootzilla3316-Nov-20 13:56
Bootzilla3316-Nov-20 13:56 
AnswerRe: How to reference resource from Resources file Pin
Richard Deeming16-Nov-20 21:45
mveRichard Deeming16-Nov-20 21:45 
GeneralRe: How to reference resource from Resources file Pin
Bootzilla3317-Nov-20 4:27
Bootzilla3317-Nov-20 4:27 
GeneralRe: How to reference resource from Resources file Pin
Richard Deeming17-Nov-20 4:30
mveRichard Deeming17-Nov-20 4:30 
QuestionVariable for number of days Pin
Member 1447460716-Nov-20 5:56
Member 1447460716-Nov-20 5:56 
SuggestionRe: Variable for number of days Pin
Richard MacCutchan16-Nov-20 6:01
mveRichard MacCutchan16-Nov-20 6:01 
AnswerRe: Variable for number of days Pin
Gerry Schmitz16-Nov-20 6:58
mveGerry Schmitz16-Nov-20 6:58 
GeneralRe: Variable for number of days Pin
Richard Deeming16-Nov-20 21:41
mveRichard Deeming16-Nov-20 21:41 
GeneralRe: Variable for number of days Pin
Gerry Schmitz17-Nov-20 4:57
mveGerry Schmitz17-Nov-20 4:57 
GeneralRe: Variable for number of days Pin
Richard Deeming17-Nov-20 17:35
mveRichard Deeming17-Nov-20 17:35 
GeneralRe: Variable for number of days Pin
Gerry Schmitz17-Nov-20 20:52
mveGerry Schmitz17-Nov-20 20:52 
AnswerRe: Variable for number of days Pin
Richard Deeming16-Nov-20 21:43
mveRichard Deeming16-Nov-20 21:43 
GeneralRe: Variable for number of days Pin
pkfox18-Nov-20 21:11
professionalpkfox18-Nov-20 21:11 
QuestionChanging the properties of multiple labels in some kind of loop? Pin
Ron_UK16-Nov-20 4:55
Ron_UK16-Nov-20 4:55 
AnswerRe: Changing the properties of multiple labels in some kind of loop? Pin
Pete O'Hanlon16-Nov-20 5:00
mvePete O'Hanlon16-Nov-20 5:00 
GeneralRe: Changing the properties of multiple labels in some kind of loop? Pin
Ron_UK16-Nov-20 5:17
Ron_UK16-Nov-20 5:17 
AnswerRe: Changing the properties of multiple labels in some kind of loop? Pin
OriginalGriff16-Nov-20 5:06
mveOriginalGriff16-Nov-20 5:06 
GeneralRe: Changing the properties of multiple labels in some kind of loop? Pin
Ralf Meier16-Nov-20 5:16
mveRalf Meier16-Nov-20 5:16 
GeneralRe: Changing the properties of multiple labels in some kind of loop? Pin
OriginalGriff16-Nov-20 5:27
mveOriginalGriff16-Nov-20 5:27 
GeneralRe: Changing the properties of multiple labels in some kind of loop? Pin
Ron_UK16-Nov-20 5:36
Ron_UK16-Nov-20 5:36 
GeneralRe: Changing the properties of multiple labels in some kind of loop? Pin
OriginalGriff16-Nov-20 5:48
mveOriginalGriff16-Nov-20 5:48 
Do yourself a favour, and stop using Visual Studio default names for everything - you may remember that "TextBox8" is the mobile number today, but when you have to modify it in three weeks time, will you then? Use descriptive names - "tbMobileNo" for example - and your code becomes easier to read, more self documenting, easier to maintain - and surprisingly quicker to code because Intellisense can get to to "tbMobile" in three keystrokes, where "TextBox8" takes thinking about and 8 keystrokes...

plan for maintenance: it will happen, and your memory of what is what will fade. Using descriptive names means that you can pick it back up faster in a few months time!

And 256 labels? Oh dear.
Use a DataTable instead, and set that as the DataSource for a table-based control (DataGridView) instead. It's a lot tidier, and much, much easier to work with (and layout neatly with scroll bars as required, and so forth)
It's also a lot easier on the user as well - you can provide search facilities very easily so they can find which register they are interested in much more quickly!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!

GeneralRe: Changing the properties of multiple labels in some kind of loop? Pin
Ron_UK16-Nov-20 5:58
Ron_UK16-Nov-20 5:58 

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.