How to invoke a method from Main Window from DispatcherTimer located in a different class?
Hi I have got this DispatcherTimer code in a Timer class. using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text; using System.Threading.Tasks; using…
Navigation error
Hello Microsoft Happy new year to everyone I am trying to navigate to another page and I am getting this error System.NotSupportedException: 'Unable to activate instance of type Xamarin.Forms.Platform.Android.Platform+DefaultRenderer from native…
How to validate modbus RTU data CRC in c#
I've a modbus request hex data that is fetched from a usb sniffer generated file. This is how the data is 2 41 1 4 99 1 b4 0 1 40 0 1 b4 0 0 0 19 fe bc the last values are the CRC LSB and MSB. How can I validate the CRC for this ? Thanks, …
Opening the full version of the site in the WebView element on a smartphone?
Hello. I have a Xamarin.Forms application that displays a page on a website in a WebView element. But the site opens in a mobile version. On PC, there are browser plugins that make the site think that it was accessed from another device. Yes, and the…
What else is required to debug/launch dotnet core web API in IIS/browser instead of 'Project' or 'Executable'?
I cannot get VS2017 to run debug for dotnet core in web browser. It requires 'executable' or 'project'. This app used to work but this is a new dev machine and I'm missing something in configuration. To troubleshoot, I'm following: …
Gestures inside a scrollview are not working
I'd like a scrollview with swipe left, swipe right, and pinch/zoom gestures enabled. In a frame, all the gestures work fine. Adding a scrollview to the mix breaks everything. The swipe events are not fired. Neither is the pinchupdated event. I've…
c# wpf cs0234
i work a project with c# wpf but i can't add "System.Windows.Forms" when i write this code= using System.Windows.Forms; i give an error = cs0234 The name of the "forms" type or namespace does not exist in the…
UWP WebView
Hello. Used a WebView to display the site in a UWP app. But the site says that the web browser is outdated or not supported. Development environment Visual Studio 2022, Windows 10. What can be done to correct the situation? I heard that there is…
request user IP in blazor page
hello, how do i get the user IP into a (secret) input field in a blazor page? is there a code sample around online, thanks for your help. regards, marcel
Why Essentials.Launcher does not have "alway" option
I use Essentials.Launcher to launcher a file with system installed app,code: string u = "..........."; string fileName = "xxx"; string path =…
Master-Detail Menu does not disappear if clicking outside on Android Tablet
Hi, This only happens on Android Tablet, and works fine on Andoid Phone and iOS Phone+Tablet. I already reported this to Xamarin, see here the details: https://github.com/xamarin/Xamarin.Forms/issues/15065 Has anyone any idea where to look for a…
CultureInfo for datepicker in xamarin forms
While setting CultureInfo in application level as like below code snippet, public MainPage() { this.InitializeComponent(); CultureInfo.CurrentUICulture = new CultureInfo("th"); …
Is it possible to host WPF Core (.NET 5.0) content in an MFC application?
Is it possible to host WPF Core (.NET 5.0) content in an MFC application? I see tutorials on how to host WPF content in Win32 (such as…
After click hyperlink ( asp-controller & asp-action ), then others hyperlink is disable to prevent another
Hi, My ASP.NET Core Hyperlink with CSS as following, I want to do this, " After click any hyperlink ( asp-controller & asp-action ), then others hyperlink is disable. How to do that ? "
How to get existing user credential in browsers for Xamarin.Andriod WebView custom browser?
Hi, I'm developing a custom browser using Xamarin.Andriod WebView. There is a problem: In my custom browser, there is nothing for the existing user credential. The user needs to login again with username and password. Is there a way to share /…
GridView get values of row 2 and 3 on linkbutton click
I have a Gridview like this. <asp:GridView ID="gvITD" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" Width="100%" AutoGenerateColumns="false"…
c# wpf drag drop
Hi. I'm working on a project in C# via wpf and I have a problem. I want to drag and drop but it says a lot. I want to pixelate it a bit. so like this video. I will be glad if you help. Thanks in advance... …
How do we combine all data table in one and update in SQL server table using C#
I have the xml file. I am trying to convert from XML file to dataset. below is the code to convert to dataset. string res = ""; StreamReader str; using (str = new StreamReader(request.GetResponse().GetResponseStream())) { res =…
gRPC: The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot
I am trying to follow this example to how to use JWT authentication. But I get the error: The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot. This is my code: The server: using…
Using JavaScript: Open Modal in foreach
Hi, My Controller is successfully return a data My foreach as a following. It contains - Click to Open Modal when User click " TenderName " ![165806-a-111.png][1] This is a script to Open Modal ![165861-a-112.png][2] It…