Click here to Skip to main content
15,908,437 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: No Evangelism Evaluation Pin
R. Giskard Reventlov2-Oct-18 8:44
R. Giskard Reventlov2-Oct-18 8:44 
GeneralRe: No Evangelism Evaluation Pin
raddevus2-Oct-18 8:52
mvaraddevus2-Oct-18 8:52 
GeneralRe: No Evangelism Evaluation Pin
kmoorevs2-Oct-18 13:21
kmoorevs2-Oct-18 13:21 
GeneralRe: No Evangelism Evaluation Pin
#realJSOP2-Oct-18 23:15
professional#realJSOP2-Oct-18 23:15 
GeneralRe: No Evangelism Evaluation Pin
Leng Vang3-Oct-18 9:40
Leng Vang3-Oct-18 9:40 
GeneralHarsh in Q&A Today Pin
#realJSOP2-Oct-18 3:59
professional#realJSOP2-Oct-18 3:59 
GeneralRe: Harsh in Q&A Today Pin
RickZeeland2-Oct-18 6:36
mveRickZeeland2-Oct-18 6:36 
GeneralMickeysoft! Pin
CodeWraith2-Oct-18 3:52
CodeWraith2-Oct-18 3:52 
In a fairly large WinForm I have a checkbox for an option that is no longer supposed to be used. That's why I am supposed to set the checkbox and several controls that are related to this option invisible.

That's not hard, but there are also older rows in the database which still used this option. In this case the controls must become visible again, the data is filled in as before, but the controls are disabled to prevent changes.

Fine. The checkbox is set by data binding, but visibility can't be bound to the same flag. That's why I wanted to set the visibility of all controls in the Checked Changed() eventhandler of the checkbox.

That works, but only as long as I don't initially set the checkbox invisible. Data binding obviously only is performed on visible controls! The other controls are properly filled, even when they are invisible. Only the checkbox is not checked, the other controls remain invisible and, as the cherry on top, the validation of the form fails because at least one option must be checked.

Thanks, Mickeysoft! How long did we have that bug? Was it since .Net 1.0 or really from .Net 2.0 on?
I have lived with several Zen masters - all of them were cats.

His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.

GeneralRe: Mickeysoft! Pin
lopatir2-Oct-18 6:06
lopatir2-Oct-18 6:06 
GeneralCCC 2/10 Pin
PeejayAdams2-Oct-18 0:09
PeejayAdams2-Oct-18 0:09 
GeneralRe: CCC 2/10 Pin
OriginalGriff2-Oct-18 0:14
mveOriginalGriff2-Oct-18 0:14 
GeneralRe: CCC 2/10 Pin
PeejayAdams2-Oct-18 0:40
PeejayAdams2-Oct-18 0:40 
GeneralSometimes, Amazon tells you a bit too much. Pin
OriginalGriff2-Oct-18 0:02
mveOriginalGriff2-Oct-18 0:02 
GeneralRe: Sometimes, Amazon tells you a bit too much. Pin
Rage2-Oct-18 0:41
professionalRage2-Oct-18 0:41 
GeneralRe: Sometimes, Amazon tells you a bit too much. Pin
OriginalGriff2-Oct-18 0:44
mveOriginalGriff2-Oct-18 0:44 
GeneralRe: Sometimes, Amazon tells you a bit too much. Pin
Slacker0072-Oct-18 1:07
professionalSlacker0072-Oct-18 1:07 
GeneralRe: Sometimes, Amazon tells you a bit too much. Pin
Eric Lynch2-Oct-18 1:41
Eric Lynch2-Oct-18 1:41 
GeneralRe: Sometimes, Amazon tells you a bit too much. Pin
Jörgen Andersson2-Oct-18 9:40
professionalJörgen Andersson2-Oct-18 9:40 
GeneralRe: Sometimes, Amazon tells you a bit too much. Pin
OriginalGriff2-Oct-18 9:56
mveOriginalGriff2-Oct-18 9:56 
GeneralRe: Sometimes, Amazon tells you a bit too much. Pin
Jörgen Andersson2-Oct-18 10:00
professionalJörgen Andersson2-Oct-18 10:00 
GeneralRe: Sometimes, Amazon tells you a bit too much. Pin
Dr.Walt Fair, PE2-Oct-18 13:37
professionalDr.Walt Fair, PE2-Oct-18 13:37 
GeneralNew Job Pin
#realJSOP2-Oct-18 0:00
professional#realJSOP2-Oct-18 0:00 
GeneralRe: New Job Pin
OriginalGriff2-Oct-18 0:04
mveOriginalGriff2-Oct-18 0:04 
GeneralRe: New Job Pin
Nish Nishant2-Oct-18 0:55
sitebuilderNish Nishant2-Oct-18 0:55 
GeneralRe: New Job Pin
Nathan Minier2-Oct-18 1:35
professionalNathan Minier2-Oct-18 1:35 

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.