Microsoft Q&A

.NET

20,706 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,706 questions with .NET-related tags

Sort by: Updated
1 answer

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,007 questions
asked 2023-09-29T11:52:18.3633333+00:00
ankit goel 566 Reputation points
commented 2023-09-29T12:15:42.76+00:00
ankit goel 566 Reputation points
0 answers

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,007 questions
asked 2023-09-29T12:07:32.6766667+00:00
ankit goel 566 Reputation points
1 answer

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,007 questions
asked 2023-09-29T09:29:12.81+00:00
Shaifali jain 220 Reputation points
commented 2023-09-29T11:49:27.7033333+00:00
Shaifali jain 220 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-29T11:22:43.13+00:00
Sreejith Sreenivasan 406 Reputation points
0 answers

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,007 questions
asked 2023-09-29T10:34:56.03+00:00
Shaifali jain 220 Reputation points
commented 2023-09-29T11:17:24.0066667+00:00
David Lowndes 1,045 Reputation points MVP
0 answers

Maui mobile app using Signalr is encoding hub name in ConnectionData parameter on iOS 17

We have a mobile app in production built using Maui. The server running the api is it connecting to uses .net framework. There are issues connecting to signalR from iOS17 devices. From debug we can see the following: iOS 17 device sets the connectionData…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,639 questions
.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-27T11:39:11.9033333+00:00
T_TDSi 0 Reputation points
commented 2023-09-29T10:46:34.29+00:00
T_TDSi 0 Reputation points
0 answers

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,577 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
commented 2023-09-29T10:40:59.5066667+00:00
Dotnet Engineer 320 Reputation points
0 answers

Display Map in MVC CORE

I am displaying location from web browser I want to emebed map here and pass laltitude and longitude https://github.com/KalyanAllam/LatLongAddress/blob/master/LatLongAddress/Views/Home/Index.cshtml <!DOCTYPE html> <html> <head> …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,577 questions
asked 2023-09-29T10:39:04.0466667+00:00
Dotnet Engineer 320 Reputation points
3 answers One of the answers was accepted by the question author.

removing focus from buttons

Hello , this is the what the main exit form looks when it loads . i found that when it loads the yes button has focus on it by default . Although i had hard coded that when the user presses enter here , the application should gets closed but what i am…

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,007 questions
asked 2023-09-29T08:21:45.1033333+00:00
Shaifali jain 220 Reputation points
commented 2023-09-29T10:23:03.2+00:00
Shaifali jain 220 Reputation points
7 answers

Not remembering source control plug-in (Git)

Since the last release, Visual Studio 2022 is not remembering the source control selection. Every time a project is opened, I must open the options dialog, go to Source Control, and select Git from the "current source control plug-in." Once I…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,062 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,806 questions
asked 2023-09-06T18:51:27.7633333+00:00
Brad Knode 35 Reputation points
commented 2023-09-29T10:11:20.62+00:00
Mario Figueiredo 0 Reputation points
0 answers

Push notification on MAUI application using FCM

I am trying to implement push notification on my MAUI application using FCM. I follow this blog and I did everything as per the blog. They suggest to install only 2 NuGet packages, Plugin.Firebase and Plugin.Firebase.Crashlytics. (I installed it by…

.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-29T10:06:12.68+00:00
Sreejith Sreenivasan 406 Reputation points
0 answers

MAUI: How to add splash screen in android platform

I am trying to add splash screen on my new MAUI application. I tried the implementation on this blog but the image is in circle (Android 12 device) and only showing black and white color on the icon. Is there anyway to show the real color of the icon on…

.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-25T15:20:10.3266667+00:00
Sakshi Poojary 55 Reputation points
edited a comment 2023-09-29T09:46:34.5633333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 21,431 Reputation points Microsoft Vendor
2 answers

Logging in C# - To a text file

I am creating a console application and I understand that I need to use ILoggerFactory for logging purpose, but how can I get it to be written to a text file instead to the debug section or the console window.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,062 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,007 questions
asked 2023-09-29T07:13:11+00:00
Kalpana 246 Reputation points
edited an answer 2023-09-29T09:44:51.76+00:00
Karen Payne MVP 32,916 Reputation points
1 answer

Unable to get Tab bar and Flyout together in the shell.

Is there any way to get both Tab bar and Flyout in the Shell in. NET MAUI. Documentation says it is not possible, is there any way to create a custom Flyout or Tab bar in the same Shell.

.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-26T08:36:41.57+00:00
Jibin Jacob 0 Reputation points
commented 2023-09-29T09:26:22+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,416 Reputation points Microsoft Vendor
1 answer

Continue to running the application in the background?

Hello, I need my app to run in the background as my app keeps track of a workout's total time once it starts, when the user completes a set in the exercise, it has a timer that countdowns their rest time, say 30 seconds or so, when that is completed it…

.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-24T17:48:06.5066667+00:00
Justin Sinnard 0 Reputation points
commented 2023-09-29T09:20:57.54+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,416 Reputation points Microsoft Vendor
1 answer

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,007 questions
asked 2023-09-28T12:40:04.9533333+00:00
BigH61 501 Reputation points
answered 2023-09-29T09:14:48.48+00:00
gekka 1,031 Reputation points MVP
1 answer

Printing panel on webform in a4 format

hello, how can I print the panel on the webform in A4 format?

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,639 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,806 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,007 questions
asked 2023-09-22T17:49:45.2966667+00:00
sahin kaya 0 Reputation points
commented 2023-09-29T09:13:04.19+00:00
Lan Huang-MSFT 17,956 Reputation points Microsoft Vendor
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-29T09:11:08.42+00:00
Haviv Elbsz 1,231 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-29T09:03:39.4366667+00:00
Haviv Elbsz 1,231 Reputation points
2 answers

Maui - Burn data to CdRome in Mac

Hi, I want to burn data list of files to cdrome in MAC. Any program to show ? How is can be done in Maui ? Thanks

.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-14T09:45:06.64+00:00
דני שטרית 1,201 Reputation points
answered 2023-09-29T09:02:55.46+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,416 Reputation points Microsoft Vendor