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.
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.
i know it's not the q&a section but did you try putting the [visible] checkbox on an invisible panel? (weirder things have happened in vs).
next idea: hide the checkbox under some other control
or maybe easiest of all: set it's location off the side/bottom of the form (and ensure TabStop is false.)
As the wise one once said: silly problem require sillier answer.
Particularly the "People who bought this also bought" bit.
I was looking for a vacuum seal storage tub, so I could freeze Samphire without it getting broken, and I found one on Amazon but wasn't sure it was freezer safe. Then I noticed the "People who bought ..." section.
The vacuum tub.
A "herb grinder"
A 30lb bag of Gummy Bears.
Ah. I know what they are storing then ...
Sent from my Amstrad PC 1640 Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
A couple of years back my kids were into soap bubbles, a lot.
So I thought I surprise them and started researching professional soap bubble liquid.
It didn't take very long to realize that long chained PEO, PolyEthylenOxide, is the way to go. When mixed with water it forms very strong selfhealing, oilproof and slippery surfaces.
More research gives that Dow chemicals are selling this stuff for use by veterinarians and surgeons.
I should probably have checked what they use it for.
When searching for the stuff on Amazon I got quite a surprise by the "People who bought this also bought" section.
It was also a bit late to realize that it could have been a bad idea to use my wifes amazon account.
Started new job yesterday - I've been told it'll be "a couple of weeks" before I can actually start working.
Dev box is a Windows Server 2016 with a 2.8GHz 10-core Xeon CPU,32GB RAM and two 1-TB drives.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013