Quantcast
Channel: User Sinatr - Stack Overflow
Browsing all 601 articles
Browse latest View live
↧

Comment by Sinatr on How to run two functions periodically with a delay...

while(true) in UI thread is a problem, rather than Thread.Sleep. And the best solution depends: use timer to run small jobs periodically, create background task/thread to do a job and invoke, do all...

View Article


Comment by Sinatr on Error 1053: Worker Service .NET Core: The service did...

What is this long last paragraph? I have feeling it's very important, because you decide to include it as it is, but I don't quite understand the importance. Can you elaborate?

View Article


Comment by Sinatr on How to reduce a position (Vector2) using an direction...

Do you miss unity tag? Also see if you are not falling into XY problem, X problem might have a known unity-specific solution. As of now I have no clues of what "reduction factor" would do and why....

View Article

Comment by Sinatr on In unity, how do you ease a cameras rotation to the...

Quaternions? You just need some mathematic function. Lerp is commonly used to change value over time creating animation, see e.g. this unity question or here is some implementation.

View Article

Comment by Sinatr on Throw exception usage for checking = null...

Other option to seriously think of is foo is null. It's actually the one used in implementation.

View Article


Comment by Sinatr on WindowsForms C#

It sounds like you need to start from very beginning. Buy a book or find courses and start.

View Article

Comment by Sinatr on What is the simplest way to make JS generate the same,...

What leading zero? See msdn or just try it. How fileName is generated? Refer to minimal reproducible example.

View Article

Comment by Sinatr on Handle event fired in User Control in main form

We can't check incomplete code if it's correct or not. Please refer to minimal reproducible example. Something is wrong in the chain. Set breakpoints and see if something is not called, I suspect...

View Article


Comment by Sinatr on Is there a way to port a C# app made with WinForms to...

Virtual machine should be possible.

View Article


Comment by Sinatr on WPF TextBlock for Phone Number

You may want to search for existing impelemntation of MaskedTextBox in WPF, e.g. here is one.

View Article

Comment by Sinatr on How to get a feedback/callback/event from MediaElement's...

read = play? You want to know playback progress? Or maybe download progress?

View Article

Comment by Sinatr on Open Microsoft Edge within a .Net Application

Try using StartInfo.Arguments . See related.

View Article

Comment by Sinatr on WPF TextBlock for Phone Number

A more reusable approach would be to make a custom TextBox with Mask and some more properties (e.g. AllowInsert, AllowSpacesInBetween, etc.). Or attached behavior to enable certain rules dynamically...

View Article


Comment by Sinatr on RestSharp and undefined delay for...

Is it really minimal reproducible example? Without logger.Debug you have no errors? Please provide "minimal" one. Maybe better idea would be to report bug directly (it looks like the bug).

View Article

Comment by Sinatr on await Task.Run immediately in .NET gRPC service

Do you see a warning like here (no warning)? Without Task.Run you are running everything synchronously. No idea how bad it is in asp.net, but blocking UI would be bad idea.

View Article


Comment by Sinatr on How to style Avalonia TabStrip - specifically...

In visual tree you have weird layout TabStrip/.../TabStripItem/.../TabItem, in other words inside each TabStripItem you have TabItem. The first issue is because you are changing background of wrong...

View Article

Comment by Sinatr on How to color the increasing and decreasing slopes on a...

This post is being discussed on meta and seems to be affected by meta-effect.

View Article


Comment by Sinatr on How to style Avalonia TabStrip - specifically...

Good job. I've played with TabStrip too. I see you are giving Panel a fixed height and hosting shape (Rectangle) inside it to solve layout issues with Border#PART_SelectedPipe. Not sure how it works...

View Article

Comment by Sinatr on I want to go back to a certain code line in C#, what am...

"go back" in C# is done by making a loop using iteration statement and finishing/exiting it (exiting using jump statement) when you "don't need to go back".

View Article

Comment by Sinatr on Persistent Error: Cannot implicitly convert type 'T' to...

Related.

View Article
Browsing all 601 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>