22,987 questions with .NET-related tags

Sort by: Updated
2 answers

How do I implement VB code for Data Adapter & Adapter.Fill() using C#?

Dim con As New OleDb.OleDbConnection Dim dA As OleDb.OleDbDataAdapter Dim dS As New DataSet Dim selectCommand As String Dim dT As New DataTable selectCommand = "SELECT * FROM tblA" dA = New OleDb.OleDbDataAdapter(selectCommand, con)…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,143 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.
9,918 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,492 questions
Access Development
Access Development
Access: A family of Microsoft relational database management systems designed for ease of use.Development: The process of researching, productizing, and refining new or existing technologies.
797 questions
asked 2024-02-19T07:47:53.5166667+00:00
Josh S 26 Reputation points
edited the question 2024-02-21T07:17:02.7633333+00:00
Jiachen Li-MSFT 23,891 Reputation points Microsoft Vendor
4 answers One of the answers was accepted by the question author.

Get Mac Address

Hi, How do I get Mac address ? Thanks in adavance,

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,143 questions
asked 2024-02-18T12:37:49.0133333+00:00
דני שטרית 2,206 Reputation points
accepted 2024-02-21T07:16:43.03+00:00
דני שטרית 2,206 Reputation points
2 answers One of the answers was accepted by the question author.

GroupBox.Controls.Remove is not removing all controls

I have a Windows Form App written in C#, using .NET Framework 4.7.2 that allows the users to select a starting position to begin printing to laser labels. The print dialog form I have created has a group box populated with radiobuttons set to appear as…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,797 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.
9,918 questions
asked 2024-02-14T21:49:28.2733333+00:00
Pat Hanks 40 Reputation points
commented 2024-02-21T07:06:32.8166667+00:00
Jiale Xue - MSFT 17,351 Reputation points Microsoft Vendor
1 answer

How to generate Classes and sub Classes list of check box razor page ?

I work on asp.net  core razor pages . i face issue i can't generate classes and subclasses view and action for class and subclass so my scenario is  1- click button will load classes list with checkbox beside every class and status will be unchecked 2-…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,994 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,162 questions
asked 2024-02-21T00:47:50.4466667+00:00
Ahmed Salah Abed Elaziz 350 Reputation points
commented 2024-02-21T07:03:02.2066667+00:00
Ahmed Salah Abed Elaziz 350 Reputation points
1 answer

ASP Project Webpage issue (MS Edge) - Can't Reach Page/Refused to connect

Good Evening, I have built an ASP.NET project in Visual Studio 2022. On the Server Machine, the following localhost link works fine in MS Edge: http://localhost:<#####>/<@@@@@@@@@@>.aspx The following full/public link works fine in Internet…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,143 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,162 questions
asked 2024-02-20T22:52:47.6566667+00:00
Reh23 0 Reputation points
edited the question 2024-02-21T07:01:24.2433333+00:00
XuDong Peng-MSFT 8,096 Reputation points Microsoft Vendor
1 answer

How to fix Violation of PRIMARY KEY constraint 'PK_Mytable'. Cannot insert duplicate key in object 'dbo.Mytable' with Transaction (Process ID 181) was deadlocked on lock resources with another process

I am encountering an issue while attempting to call a stored procedure from a .NET Framework application to a Microsoft SQL Server instance. The error message returned is: "Violation of PRIMARY KEY constraint 'PK_Mytable'. Cannot insert duplicate…

Internet Information Services
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,226 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,099 questions
asked 2024-02-21T06:12:13.96+00:00
BalajiGnanendren-6915 0 Reputation points
edited the question 2024-02-21T06:53:31.9+00:00
Jiale Xue - MSFT 17,351 Reputation points Microsoft Vendor
1 answer

Saving multiple draggable divs in their new positions

I have been able to use that to create drag and drop for multiple divs. What I mean is, whatever position a user drags and drops any div tag, and user clicks the save button, everything on that page will be saved as seen. Then whenever the user returns,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,143 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,162 questions
asked 2024-02-18T23:18:01.1766667+00:00
Donald Symmons 2,706 Reputation points
commented 2024-02-21T06:53:10.12+00:00
Donald Symmons 2,706 Reputation points
0 answers

BUG: MAUI Blazor Android - Click on any form element creates a submit button click handler firing loop

Hi, I have an almost pristine NET 8 MAUI Blazor app example, freshly created in Visual Studio 2022. https://github.com/nine-2-five/MauiBlazorWebViewClick The example is on /login page: If you build it and run on an Android emulator you'll find that…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,556 questions
asked 2024-02-21T06:43:18.4266667+00:00
PieSquared 1 Reputation point
edited the question 2024-02-21T06:45:26.87+00:00
PieSquared 1 Reputation point
1 answer

Can I omit .NET Core references of Blazor WASM?

When publishing standard Blazor WASM which would be provided via Blazor server, how can I omit all references currently already available on my MAUI client? As I hope to reduce size of downloaded WASM when I am using .NET emulating within BlazorWebView,…

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,304 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,556 questions
asked 2024-02-19T17:10:23.62+00:00
Matěj Rada 0 Reputation points
commented 2024-02-21T06:37:30.8066667+00:00
Rada Matěj 20 Reputation points
0 answers

Unhandeled exception not fire when there is fatal exception

Hi, Unhandeled exception not fire when there is fatal exception And make the http query. Thanks, using Autofac; using GssdDesktopClient.API.Imp; using GssdDesktopClient.Maui.Helpers; using GssdDesktopClient.Maui.Startup; namespace…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,556 questions
asked 2024-02-01T10:47:49.6666667+00:00
דני שטרית 2,206 Reputation points
commented 2024-02-21T06:35:34.6233333+00:00
דני שטרית 2,206 Reputation points
1 answer

System.Drawing Color.Transparent example not working

In the Microsoft documentation for the System.Drawing.Color.Transparent property (https://learn.microsoft.com/en-us/dotnet/api/system.drawing.color.transparent?view=net-8.0), the given example does not seem to work. Here is my coded implementation of…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,143 questions
asked 2024-02-20T22:33:25.0566667+00:00
Nicholas Piazza 481 Reputation points
edited the question 2024-02-21T06:35:27.3466667+00:00
Jiale Xue - MSFT 17,351 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Maui - Label - long text

Hi, I sometimes have long text in label text, how i can handle it to be in two rows? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,556 questions
asked 2024-02-20T12:02:37.1233333+00:00
דני שטרית 2,206 Reputation points
accepted 2024-02-21T06:34:12.4+00:00
דני שטרית 2,206 Reputation points
1 answer

Get help to set up a .NET development environment on Windows 7 SP1.

Dear Goodnight. I have a computer with the following configuration: Windows 7 SP1 operating system. The Windows version is home premium x64. AMD Phenom Processor (TM) II X2 550 Processor 3.10 GHz, with 4GB RAM and 500GB HD. I want to create…

Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,464 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,143 questions
asked 2024-02-19T13:36:42.41+00:00
MFSantana68 21 Reputation points
answered 2024-02-21T06:20:09.3466667+00:00
Hania Lian (Shanghai Wicresoft Co,.Ltd.) 5,196 Reputation points Microsoft Vendor
0 answers

Implementing Google Auth with Azure B2C MSAL package

Hi, We are currently trying to implement google SSO using Azure B2C in our xamarin Ap using MSAL package. The configuration and all work fine but after login it is ot redirecting back to the app. We have the following code : var options = new…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,253 questions
asked 2024-02-20T07:59:11.7766667+00:00
Parab Shreyas 1 Reputation point
commented 2024-02-21T06:02:37.4166667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 63,916 Reputation points Microsoft Vendor
1 answer

org.xml.sax.SAXParseException; The prefix "tem" for element "tem:UN" is not bound.

Iam integrating service references from wsdl file in C#. the service is working fine with SOAPUI but while executing the process in C# it is giving exception asorg.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 9; The prefix "tem" for…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,143 questions
Service Manager
Service Manager
A family of System Center products for managing incidents and problems.
205 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,393 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.
9,918 questions
asked 2024-02-12T06:57:50.3+00:00
Rashmitha B 0 Reputation points
commented 2024-02-21T05:34:13.58+00:00
Rashmitha B 0 Reputation points
2 answers

From Consuming SOAP service in SoapUI to consuming it with CSHARP

Hello, I have a project in SOAP UI that consumes a soap service and works well. The service has ws-security and addressing. I'm trying to do the same, programmatically with csharp and WCF. I have tried many configurations at app.config but it keeps…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,143 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.
9,918 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,099 questions
asked 2022-10-15T14:00:40.893+00:00
Claudia Murialdo 1 Reputation point
edited a comment 2024-02-21T05:14:12.9233333+00:00
Adnan 0 Reputation points
0 answers

Images don't persist in ColllectionView .

I have a Class in Model to save the Information about a document. The images are retrieved as streams in view model and are displayed in CollectionView .The problem is when Images are scrolled out of view and scrolled back in the images disappears. here…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,253 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.
9,918 questions
asked 2024-02-12T09:17:00.5633333+00:00
Asgar Ali 86 Reputation points
commented 2024-02-21T04:58:57.0633333+00:00
Asgar Ali 0 Reputation points
1 answer

Using Azure Notification Hubs with WPF

Hello, I have a .NET 8, C# WPF application and would like to use Azure Notification Hub. My application should be able to run on Windows 10 or above. I've searched for resources, but all the tutorials I've found use Windows SDK/UWP/Win UI. Can I use…

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
239 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,624 questions
asked 2024-02-19T03:22:08.82+00:00
Yuli Aria Winata 0 Reputation points
commented 2024-02-21T03:57:27.3766667+00:00
Yuli Aria Winata 0 Reputation points
2 answers

Session Timeout

Overview: Our ASP.NET 3.5 framework based web application is upgraded to .Net 4.8. There is no change to the code and the way sessions are handled. For some of the users the session timeout occurs though the inactivity on the page is less than 2-3…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,162 questions
asked 2022-08-30T13:10:57.187+00:00
Siripurapu Deepthi 6 Reputation points
commented 2024-02-21T03:02:52.5533333+00:00
Brijesh Gandhi 0 Reputation points
1 answer

How to make my MAUI app use the latetest Microsoft.WindowsAppSDK

I have my MAUI app running on the latest version of MAUI, but see in the transitive dependencies that the used Microsoft.WindowsAppSDK is still version 1.3.x. While there is a stable version of 1.4.x which contains fixes for my WinUI app which I would…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
692 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,556 questions
asked 2024-02-20T06:50:35.1366667+00:00
C. Veeningen (c) 0 Reputation points
answered 2024-02-21T02:55:30.3333333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 30,106 Reputation points Microsoft Vendor