Microsoft Q&A

.NET

20,709 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,709 questions with .NET-related tags

Sort by: Updated
1 answer

Customtextbox in customdatagridview

Hi , i have a Created a textbox which when gets the focus , changes its backcolor and forecolor . It also clear out its text when the user presses escape key . Moreover, it also have a custom caret in it which looks like Dos . Is it possible to create a…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,636 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,010 questions
asked 2023-09-29T12:07:32.6766667+00:00
ankit goel 566 Reputation points
edited a comment 2023-09-30T03:55:13.4733333+00:00
KOZ6.0 725 Reputation points
2 answers

How to register Microsoft.ACE.OLEDB.12.0 provider on my machine?

I have a 64-bit version of Microsoft Windows 11. Whenever I try to run my apps, the error registers Microsoft.ACE.OLEDB.12.0 provider is not registered on my machine. I need that provider to run my apps that include a Data Grid View control. Are there…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,064 questions
asked 2023-09-29T01:25:21.3766667+00:00
John 366 Reputation points
commented 2023-09-30T00:04:03.89+00:00
John 366 Reputation points
1 answer

how can pass input type text value one cshtml view to another cshtml view usi

In my project I want to use a datatable in two ways. The data will be inserted with the data from index.cshtml. The page will then redirect to the purchaseDetails.cshtml page. Then the data that will be displayed is based on the invoice number of the…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,578 questions
asked 2023-09-29T15:56:34.7+00:00
jewel 481 Reputation points
edited an answer 2023-09-29T21:46:51.66+00:00
AgaveJoe 600 Reputation points
1 answer

Store a Value in application

Hi , Can the experts here suggest me a way how to store a value of a label from a particular form in such a way that can be made safe until next restart of a application and can be retrieved next time for use .

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,636 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,010 questions
asked 2023-09-29T10:34:56.03+00:00
Shaifali jain 280 Reputation points
answered 2023-09-29T20:18:41.67+00:00
Karen Payne MVP 32,991 Reputation points
1 answer

MAUI: Listview isvisible property is not working from the code behind?

I am trying to show the selected image or file on my UI on a listview. So initially the listview's IsVisible I set to false and after picking item I set the IsVisible property to true. My problem is after picking item the listview is not visible on the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,871 questions
asked 2023-09-19T14:24:15.5166667+00:00
Sreejith Sreenivasan 406 Reputation points
commented 2023-09-29T19:08:15.4933333+00:00
Rob Caplan - MSFT 5,222 Reputation points Microsoft Employee
2 answers One of the answers was accepted by the question author.

Finding the parent'control

Hello , i am trying to find out the label control on the parent form and set its text property from the child form . to do this , i had tried many approaches and even set the modifier of that label to public but still can't access it . pls correct my…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,636 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,010 questions
asked 2023-09-29T09:29:12.81+00:00
Shaifali jain 280 Reputation points
answered 2023-09-29T19:01:06.85+00:00
Karen Payne MVP 32,991 Reputation points
0 answers

Visual studio blazor wrap properly values issue

Hi all in visual studio in a blazor project the wrap properly have only the values soft and hard but not also the value off. This caused me problem because I didn't know about the off value . and that waste many time of me. why visual studio don't…

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,110 questions
asked 2023-09-28T08:21:26.92+00:00
Haviv Elbsz 1,231 Reputation points
commented 2023-09-29T16:27:00.21+00:00
Bruce (SqlWork.com) 44,621 Reputation points
2 answers One of the answers was accepted by the question author.

How read excel file and save into database

Hello guys, Is there any tutorial reading excel files and inserting them into a database with a .net core console application? Thanks in advance.

.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
299 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,044 questions
asked 2021-11-07T16:43:33.453+00:00
Cenk 901 Reputation points
commented 2023-09-29T16:18:59.44+00:00
Mashallah Chatrsimab 0 Reputation points
0 answers

How rendering handling concurrency in razor page from API response?

Hi, I'm following up on all the discussions I've had about handling concurrency errors. 1 - I would like to know if it is possible to handle concurrency errors in a context where I have a DataGrid in edition mode on a line? 2 - I have defined a put…

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,110 questions
asked 2023-09-29T16:15:02.6566667+00:00
sblb 1,141 Reputation points
0 answers

Establishing SSL trust to SQL Server with an AWS Lambda (Linux Client)

Hey all. I'm trying to connect to a SQL Server 2019 instance from an AWS lambda. I'm using a self-signed certificate for the SQL instance. Our lambda is using Entity Framework Core 7.0.5 in .NET 6 (also tested Microsoft.Data.SqlClient 5.1 with the same…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
587 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,064 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.
11,001 questions
asked 2023-09-27T15:08:52.2+00:00
Farrell, Erik 0 Reputation points
commented 2023-09-29T16:10:47.1866667+00:00
Bruce (SqlWork.com) 44,621 Reputation points
0 answers

Display Map in MVC CORE

I am displaying location from web browser I want to embed map here and pass latitude and longitude…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,578 questions
asked 2023-09-29T10:39:04.0466667+00:00
Dotnet Engineer 320 Reputation points
edited the question 2023-09-29T15:01:27.4+00:00
Dotnet Engineer 320 Reputation points
2 answers

ArgumentNullException on add-migration com.

Hello, I'm still on my app dev which is a Blazor Wasm with it's API (developped with .Net core 7.0) and I try to create an EF Core migration, but I've got an issue. N.B.: I use environment variables to set my connection string (to change it…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
587 questions
asked 2023-09-28T13:07:03.4866667+00:00
Laurent Guigon 221 Reputation points
answered 2023-09-29T14:49:24.0166667+00:00
Laurent Guigon 221 Reputation points
0 answers

How to find common parent class

I often have to find a class or interface common to controls or objects that make up controls. Is there an automatic tool to determine the first parent common to two or more classes or a shared interface?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,064 questions
asked 2023-09-29T14:43:12.0933333+00:00
Guglielmo Cancelli 0 Reputation points
1 answer

TreeListView in .NET6

As per title, I am looking for a TreeView control with column support that is compatible with .NET4+, but also .NET 6 and 7. All the supposedly such controls I have found are too old and not compatible with the new versions. I also take this opportunity…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,064 questions
asked 2023-09-29T14:38:36.68+00:00
Guglielmo Cancelli 0 Reputation points
answered 2023-09-29T14:39:30.1466667+00:00
Guglielmo Cancelli 0 Reputation points
1 answer

iOS Error: clang++ exited with code 1:

Hi, Why i am suddenly getting this error: Xamarin.Shared.Sdk.targets(3,3): Error: clang++ exited with code 1: Undefined symbols for architecture arm64: "_OBJC_CLASS_$_OSInAppMessage", referenced from: objc-class-ref in registrar.o …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,871 questions
asked 2023-08-31T20:32:01.88+00:00
Jassim Al Rahma 26 Reputation points
commented 2023-09-29T14:34:01.54+00:00
Marco Erlwein 0 Reputation points
1 answer

Maui for android customizing keyboard issue

Hi all I have some entry fields and each one has different characters input I want when entry focus to display adequate keyboard that contains only the adequate characters for that entry field If this possible please give me a help how to do it. Thank…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,871 questions
asked 2023-09-28T20:39:55.8866667+00:00
Haviv Elbsz 1,231 Reputation points
commented 2023-09-29T14:21:47.0133333+00:00
Haviv Elbsz 1,231 Reputation points
3 answers One of the answers was accepted by the question author.

Windows Presentation Foundation (WPF) end of life

Hi All, I would like to know if anyone has any information on future roadmap for WPF. Is there any date for microsoft retiring WPF and removing future support? Thanks in advance Narayanan

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,480 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
691 questions
asked 2022-12-19T17:50:51.293+00:00
Narayanan Subramanian (Nara) 26 Reputation points
commented 2023-09-29T14:14:08.68+00:00
Carter Canedy 0 Reputation points
1 answer One of the answers was accepted by the question author.

Image inside a DataGrid in a FixedDocument Error

I have created this small demonstration project to highlight a problem I have encountered when working with an Image within a DataGrid created in C# and then utilised within a FixedDocument. Everything appears to work as expected until the mouse goes…

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,480 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,010 questions
asked 2023-09-28T12:40:04.9533333+00:00
BigH61 521 Reputation points
accepted 2023-09-29T12:59:17.3533333+00:00
BigH61 521 Reputation points
1 answer One of the answers was accepted by the question author.

Date in different format

Hi , i am creating a textbox which can display the date , in which the month is in short format . like sept , oct . Any suggestions for that

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,636 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,010 questions
asked 2023-09-29T11:52:18.3633333+00:00
ankit goel 566 Reputation points
accepted 2023-09-29T12:48:33.48+00:00
ankit goel 566 Reputation points
1 answer

MVC CORE Scaffold view to create api postgressql view

How do I scaffold view in MVC CORE , as it is failing due to lack of primary key I am trying to create api using https://learn.microsoft.com/en-us/aspnet/core/tutorials/first-web-api?view=aspnetcore-7.0&tabs=visual-studio CREATE TABLE public.visit…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,578 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
988 questions
asked 2023-09-21T11:45:38.6933333+00:00
Dotnet Engineer 320 Reputation points
answered 2023-09-29T12:37:47.7666667+00:00
Dotnet Engineer 320 Reputation points