Comment by Sinatr on Change ComboBox ItemSource dynamically: how to prevent...
You are setting ItemsSource directly, remove it by setting it to null.
View ArticleComment by Sinatr on Open and close 2 windows from another window in a right...
"using Focus() or Activate() on Window2 doesn't help" - in WPF certain actions needs to be queued via Dispatcher, calling those directly at inappropriate time simply won't work. Try to play with...
View ArticleComment by Sinatr on cross-threading problem with WinForm in C#
You didn't show ChartForm code and I read "doesn't refresh anymore" as certain event handler is not called to fill content of the form. I guess you are not using correct instance when second form is...
View ArticleComment by Sinatr on How to read the latest line from the csv file using...
Storing last read position, quickly rewinding and then reading just what's new is way better approach than re-reading whole data. What if more than one line was added since your last parsing?
View ArticleComment by Sinatr on Is there any way to Check that a GLB file is a valid or...
What exception? Using library function to load file looks like a valid approach to me, it may not be the best, but should do the job.
View ArticleComment by Sinatr on How can I add security to API calls in C#?
Sounds like the ChatGPT answer to me, you know it's prohibited ?
View ArticleComment by Sinatr on When I use FindIndex() it returns -1 in c#?
Sorting is a big topic and unless using readymade methods like Array.Sort, List<T>.Sort, linq OrderBy, etc. you are better to decide first on an algorithm you are trying to implement and sticking...
View ArticleComment by Sinatr on I can't reach 1ms precision in C#
This is typical example of XY problem: you need something, then you attempt something, it didn't worked and you ask question about attempt. Tell us what USB device it is, what you need, etc. What you...
View ArticleComment by Sinatr on How do you order C# methods by their access modifiers...
Sounds like you need to create custom rule yourself.
View ArticleComment by Sinatr on I create a VSIX Project with usage of an external...
What is OutputWindowControl? Do you want F1 to be registered as hotkey?
View ArticleComment by Sinatr on How do I use Odata contains method in all/any methods if...
Any specific reason for c#?
View ArticleComment by Sinatr on Embedd the .dll.config of my published WinForms App
Try to add <IncludeAllContentForSelfExtract>true</IncludeAllContentForSelfExtract> into pubxml-file?
View ArticleComment by Sinatr on WPF Test Validation Rule with Data in BindingExpression
What kind of testing? For unit tests just create an instance and call public methods.
View ArticleComment by Sinatr on How to disable images on specific nodes?
Winforms? Please [edit] missing tags into question and ideally minimal reproducible example.
View ArticleComment by Sinatr on Grid not filling up entire screen WPF
I see non-client area on screenshot 3. If you want to remove window title, then perhaps start here.
View ArticleComment by Sinatr on How to serialize properties into separate Json using...
You can write 2 converters to serialize and deserialize property value as separate file. If you want it async, then you need notification when your object is ready, an event or some methods to await...
View ArticleComment by Sinatr on C# - Form shows differently at runtime compared with...
The form layout is different during run-time. Do you use localization of forms? There will be more than one form resouce file, with localization culture in name, storying different layout there. As...
View ArticleComment by Sinatr on How can I define precompiler constants across projects?
I'd expect web project related compiler stuff to be only there. Otherwise you need to compile core for each project individually, which you can also do.
View ArticleComment by Sinatr on Why can the self-defined component “xxx.dll” be added...
I guess "not effective" is a poor translation. If you can get exception text in english, then searching for this message may reveal similar problems and possibly a solution. Otherwise for someone to...
View Article