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.
AVG does that to me a lot. Sometimes it will refuse to run an application until it goes out to it's site and checks it which usually takes 15-20 minutes. What a PITA, but it's free and it does the job so I can't complain.
They call me different but the truth is they're all the same!
I've been using AOMEI since OG recommended it. It worked perfectly for me. Lately I've needed one paid feature and tried to buy it.
It's been impossible... They have no other way to get the software than their web page and in order to buy there you must have an international VAT number active (if you want an invoice for your company).
So after speaking with them and ahving not other option I went for Acronis... I have bought it in my usual software provider... at a better price than AOMEI for 3 computers. A Great deal and, moreover, the main brand of PLC I use can be backed up with a tool from the manufacturer that is an embedded acronis in a OEM USB stick. So win win for me... (I still don't know if that ransomware protection thing can be considered a win too).
So I just had to create a custom DataGridViewColumn for a custom control.
No prob, looked up an example and...
It's a date control and the calendar that opens is placed on the form and not on the control itself.
The effect is that the editor in the grid closes and the value from the calendar is never written back to the grid cell.
Again, no problem, I create an event when the calendar closes and write the value to the cell manually.
If it looks stupid and it works then it ain't stupid...
So anyway, all goes well, except...
When I set a second value the first value is reset.
I've spent an entire evening looking for the issue!
I've tried everything from looking at specific grid events, creating additional events, editing the bound object directly...
The issue was that when the calendar closed it was the last control in the tab order so it would return to the first control which reloads the screen on leave
I switched two lines of code, first raise the event and then close the calendar, instead of the other way around.
It would now first select the grid and set the value and then close the calendar, worked like a charm
TWO FRIGGIN' LINES, FOUR ING HOURS!
It's times like these I DON'T miss WinForms, no matter how bad front-end web development may be
They're worse than that!
They're the lowest of low, the scum of the WinForm controls, the most wretched, miserable, servile pathetic trash that was ever sh*t into programming!
When I did some serious development I used DevExpress controls.
Now that stuff was nice.
Great controls that worked like they were supposed to work.
I'm sure other vendors like Infragistics and Telerik have/had(?) similar controls.
But not the standard WinForm controls and especially not the DataGridView
The ComboBox control is also called a combo box, and the icon in the toolbox is . By default, the combo box is displayed in two parts: the top is a text box that allows text to be entered, and the lower list box displays the list items. It can be considered that the ComboBox is a combination of a Brisbane escorts text box and a list box, and has the same function as the text box and the list box. Compared to a list box, a combo box cannot be multi-selected, it has no SelectionMode property. But the combo box has a property called DropDownStyle that is used to set or get the style of the combo box.