Forgot your password?
Sign in with
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Python questions
View PHP questions
All Message Boards...
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Design and Architecture
Internet of Things
C / C++ / MFC
ATL / WTL / STL
Objective-C and Swift
Hardware & Devices
Hosting and Servers
.NET (Core and Framework)
Site Bugs / Suggestions
Spam and Abuse Watch
The Insider Newsletter
The Daily Build Newsletter
Most Valuable Professionals
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
What is 'CodeProject'?
Ask a Question
Bugs and Suggestions
Article Help Forum
Comments by MVSoftVM (Top 12 by date)
Exactly... ok... I will try this BackgroundWorker version...
Where is called `CountTotalMissingElements` ?
Probably in constructor, after `_missingElementsWorker.RunWorkerCompleted += MissingElementsCounted;` ?
Ok. That "interlock" made my day :D I made some research (I'm not so experimented programmer in C#) and I learned how to use Interlock.Add()!
Thank you Gerry!
Ok. I made this test. The console text I've copied to a csv and imported, sorted and compared in OpenOffice SCalc. Seems data is ok, but the result was different. Practically, `TotalMissingElements += result;` is not doing what it should! Why?
What I have to do in this case?
BTW: What means "interlock shared variables"? :)
Maybe I have to make those custom properties of my dgv as public get-set properties with a default value and to be read from a settings file when form loads. I think this is the approach I have to follow.
Hi @OriginalGriff. I don't think it's about reading my mind or whatever, it's written in my question: [quote][i]I made all my general design changes in that class, using VS designer, and I put that DGV on every form[/i][/quote]. Which means that after I made my class and made a design to my grid (selectionbackcolor, selectionforecolor, and so on) I put it on my forms. The problem is Designer will copy that information to my form Designer.cs file, which I don't think it is normal, as long I did not take any local modification in that form to my dgv.
So, my tough was, if I make some styling in a cs file those styling properties will be read from my custom file till I came an modify locally. But this is not happening, which in my opinion is something like a little/big bug. I don't know, it is a tough...
Found solution, also with some 2 edits :)
This is not the solution, as long as there are problems. First click is ok, but second one does not fire anymore, so the DropDown does not appear after first click... Still working on that...
Thanks @Maciej , I found the problem and the solution, thanks to you. Debugger was salvation, and you with the idea :)
No, is not happening like this.
When I use debugger, Enter is the first event fired after I click on that combobox. The next one is WndProc, which must redraw border. Here comes problem: on line
after this line, the dropdown list it will close...
I don't see the relevance, but, no, it will select only one record.
Edited: And also, I don't see any property in WinForms Combobox "Checked"!
BTW, That little checked icon in front of text of ComboBox shows user if that record is actively or not.
Because of space on the form...
Picture with controls in form
Last Updated 1 Jan 1900
All Rights Reserved.