23,863 questions with .NET-related tags

Sort by: Updated
1 answer

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…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,671 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,235 questions
asked 2022-01-19T08:56:24.377+00:00
Kalpana 286 Reputation points
answered 2022-01-19T19:32:46.897+00:00
Viorel 112.1K Reputation points
1 answer One of the answers was accepted by the question author.

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…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2022-01-18T19:02:38.637+00:00
Eduardo Gomez 3,416 Reputation points
accepted 2022-01-19T17:29:52.123+00:00
Eduardo Gomez 3,416 Reputation points
1 answer

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, …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,827 questions
asked 2022-01-19T17:14:27.253+00:00
Vidya Suryanarayana 1 Reputation point
answered 2022-01-19T17:29:01.827+00:00
David Lowndes 4,711 Reputation points
1 answer One of the answers was accepted by the question author.

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…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2022-01-19T13:00:42.463+00:00
Shandera 66 Reputation points
accepted 2022-01-19T16:23:34.613+00:00
Shandera 66 Reputation points
1 answer

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: …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2022-01-19T15:02:06.537+00:00
Jay M 1 Reputation point
answered 2022-01-19T16:17:10.563+00:00
Bruce (SqlWork.com) 55,601 Reputation points
2 answers One of the answers was accepted by the question author.

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…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2022-01-18T02:51:02.747+00:00
Brian Erickson 346 Reputation points
answered 2022-01-19T14:49:05.25+00:00
Brian Erickson 346 Reputation points
1 answer One of the answers was accepted by the question author.

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…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,827 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,671 questions
asked 2022-01-19T13:33:38.58+00:00
Zaug 306 Reputation points
commented 2022-01-19T14:22:51.087+00:00
Zaug 306 Reputation points
1 answer One of the answers was accepted by the question author.

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…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
Universal Windows Platform (UWP)
asked 2022-01-16T06:08:57.59+00:00
Shandera 66 Reputation points
accepted 2022-01-19T12:57:28.64+00:00
Shandera 66 Reputation points
0 answers

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

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,385 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,235 questions
asked 2022-01-19T09:02:59.54+00:00
marcel. w 1 Reputation point
commented 2022-01-19T11:57:57.473+00:00
AgaveJoe 26,201 Reputation points
3 answers One of the answers was accepted by the question author.

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 =…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2022-01-17T11:06:04.397+00:00
aluzi liu 486 Reputation points
accepted 2022-01-19T10:14:47.983+00:00
aluzi liu 486 Reputation points
1 answer One of the answers was accepted by the question author.

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…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2022-01-18T08:48:28.087+00:00
Zoli 21 Reputation points
accepted 2022-01-19T09:51:14.083+00:00
Zoli 21 Reputation points
0 answers

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"); …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2022-01-10T06:19:48.567+00:00
SUJA VENKAT 6 Reputation points
commented 2022-01-19T09:48:11.883+00:00
JarvanZhang 23,936 Reputation points
2 answers

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…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,671 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,527 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,119 questions
asked 2022-01-14T19:41:53.253+00:00
Stacy O’Malley 1 Reputation point
commented 2022-01-19T08:10:49.413+00:00
Minxin Yu 10,031 Reputation points Microsoft Vendor
4 answers One of the answers was accepted by the question author.

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 ? "

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2022-01-17T23:45:46.1+00:00
Jerry Lipan 916 Reputation points
accepted 2022-01-19T07:48:11.033+00:00
Jerry Lipan 916 Reputation points
1 answer One of the answers was accepted by the question author.

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 /…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
asked 2022-01-18T22:26:25.963+00:00
Yongqing Huang 241 Reputation points
commented 2022-01-19T07:39:59.687+00:00
Yongqing Huang 241 Reputation points
1 answer One of the answers was accepted by the question author.

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"…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,253 questions
asked 2022-01-18T13:31:04.387+00:00
Adeel Mirza 121 Reputation points
commented 2022-01-19T06:56:14.88+00:00
Adeel Mirza 121 Reputation points
1 answer One of the answers was accepted by the question author.

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... …

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,671 questions
asked 2022-01-18T09:09:06.527+00:00
Zaug 306 Reputation points
commented 2022-01-19T06:55:23.883+00:00
Zaug 306 Reputation points
2 answers One of the answers was accepted by the question author.

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 =…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,368 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,696 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,235 questions
asked 2022-01-17T09:58:36.023+00:00
Gani_tpt 1,506 Reputation points
accepted 2022-01-19T06:48:45.403+00:00
Gani_tpt 1,506 Reputation points
1 answer

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2022-01-13T12:04:34.787+00:00
ComptonAlvaro 166 Reputation points
answered 2022-01-19T06:21:47.13+00:00
Brando Zhang-MSFT 2,956 Reputation points Microsoft Vendor
3 answers

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,157 questions
asked 2022-01-17T22:05:10.477+00:00
Jerry Lipan 916 Reputation points
answered 2022-01-19T05:45:40.18+00:00
Jerry Lipan 916 Reputation points