23,365 questions with .NET-related tags

Sort by: Updated
1 answer

Localize a DatePicker on Android using .Net Maui

Hi , i'm working with .net Maui 8 , and i want to use datepicker. it display name of days, months in English or i want it in french. i refer to learn page https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/datepicker?view=net-maui-8.0 …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 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,054 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.
750 questions
asked 2024-03-18T12:19:47.7466667+00:00
Kaouthar GR AOUICHAOUI 20 Reputation points
answered 2024-03-19T07:24:34.49+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 66,096 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to Navigate on goButton_Click in winView2 ?

Tia ; How to Navigate on goButton_Click in winView2 ? Doesnt Navigate private void goButton_Click(object sender, EventArgs e) { infoBox.Text = "goButton_Click BEFORE if"; if (webView !=…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,808 questions
asked 2020-10-16T14:35:44.93+00:00
vmars316 621 Reputation points
edited the question 2024-03-19T07:01:54.64+00:00
Jiale Xue - MSFT 21,441 Reputation points Microsoft Vendor
1 answer

ClickOnce is disable. How to activate it?

I just migrated form VSTO 2017 to 2022 and I can't publish any application anymore. It seams like it is because ClickOnce is desabled. How can I get it back? I checked with Visual Studio 2022 Installer and ClickOnce is checked on.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 questions
asked 2024-03-14T16:12:36.0433333+00:00
Mario C Charest 0 Reputation points
commented 2024-03-19T06:30:33.4966667+00:00
Minxin Yu 9,621 Reputation points Microsoft Vendor
1 answer

Push notifications NuGet Package Support in MAUI iOS App

I am working on upgrading a Xamarin mobile app to MAUI. So far, things are mostly going smoothly, but I've run into trouble on the iOS side of things. The old version of the app needed to receive push notifications from the remote server. I accomplished…

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.
248 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 questions
asked 2023-12-04T06:43:03.96+00:00
Venkata Bhaskar 0 Reputation points
edited a comment 2024-03-19T06:30:13.25+00:00
Venkata Bhaskar 0 Reputation points
0 answers

Are there known compatibility issues with WS_EX_TOPMOST and Windows 11’s Start menu?

Title: Issue with WS_EX_TOPMOST in .NET App on Windows 11 Overlapping Start Menu Body: Hello, I’ve developed an application using the .NET Framework that applies the WS_EX_TOPMOST window style to create a watermark overlay. This overlay remains on top of…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
7,824 questions
asked 2024-03-18T09:16:32.8+00:00
Ayush Mehta 0 Reputation points
edited the question 2024-03-19T06:28:58.9033333+00:00
Ayush Mehta 0 Reputation points
1 answer

How to add a row to a DataGridView that has a ComboBox

I've been running this application for years. I just went from w10 to w11 and get the error message "DataGridViewComboBoxCell value is not valid" when loading data. The DataGridView has a ComboBox column, but I add structures that have only…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,808 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,358 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
7,824 questions
asked 2024-03-16T19:15:22.5966667+00:00
Marc Graham 6 Reputation points
commented 2024-03-19T06:11:13.2033333+00:00
Viorel 110.3K Reputation points
0 answers

What is the meaning of "System.IndexOutOfRangeException: Index was outside the bounds of the array"?

I would like to know more about the "System.IndexOutOfRangeException: Index was outside the bounds of the array at System.Collections.Generic.HashSet`1." What could cause this exception during my login and recycling the application pool in IIS…

Internet Information Services
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 questions
asked 2024-03-18T21:52:53.8766667+00:00
Homer Macalintal 20 Reputation points
commented 2024-03-19T05:59:17.09+00:00
Homer Macalintal 20 Reputation points
1 answer

call an api in C#

I have the following code: namespace TwilioSendMessages.Controllers { [Route("api/[controller]")] [ApiController] public class SMSController : ControllerBase { private readonly IWebHostEnvironment _webHostEnvironment; …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
284 questions
asked 2024-03-18T04:07:46.5366667+00:00
Anjali Agarwal 1,326 Reputation points
commented 2024-03-19T05:58:23+00:00
JasonPan - MSFT 4,021 Reputation points Microsoft Vendor
0 answers

The namespace ’pcl_Solution’ already contains a definition for 'Resource' (CS0101) (PCl_Solution)

Hi Team,   I am trying to deploy my .net-android app into the app center using azure pipelines. I have one common Base class library solution which contains business logic, I have added ."net7.0;net7.0-android" as my target Frameworks in my…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 questions
asked 2024-03-19T05:52:52.8766667+00:00
SHEETAL RODRIGUES 20 Reputation points
1 answer

Maui - create only one instance

Hi, I have maui app on WINDOWS 8 desktop. I have shortcut to exe. When i click on exe it create and instance of this app. It possible to limit to only one instance of app will be alive ? Thanks in advance,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 questions
asked 2024-03-18T08:35:55.1366667+00:00
דני שטרית 2,406 Reputation points
commented 2024-03-19T05:37:29.6233333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 32,926 Reputation points Microsoft Vendor
1 answer

net maui windows platform trying to create control inside collectionview or bindableproperty ?

I am trying to small menu which is clickable gruop of buttons inside collectionview or bindableproperty I could not manage it .. my problem is not show contents and zindex problem when open the menu change the positions of the other content.. how to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 questions
asked 2024-03-17T19:11:51.4533333+00:00
Sami 821 Reputation points
edited an answer 2024-03-19T05:31:26.21+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 32,926 Reputation points Microsoft Vendor
0 answers

Securetorage Null

So, for my app, I need the functionality of letting the user change role (Student, Coordinator or teacher) So, the way that it was setup was when I log in, I immediately get the email from firebase. this was working fine. but for some reason when I quit…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 questions
asked 2024-03-18T02:25:22.75+00:00
Eduardo Gomez 3,416 Reputation points
commented 2024-03-19T04:40:06.71+00:00
Eduardo Gomez 3,416 Reputation points
0 answers

Update iOS SDK to 17 or later

Hi, After publishing my app to AppStore, I received this email I'm using Visual Studio 2022 Mac version 17.6.9 (build 415) , and Xcode 15.2 After receiving that email, I went to my iOS Xamarin project -> Properties -> iOS->Build and changed my…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,267 questions
asked 2024-03-15T20:29:41.0266667+00:00
Huynh Than 50 Reputation points
commented 2024-03-19T03:50:11.1533333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 25,071 Reputation points Microsoft Vendor
1 answer

Pasing data to viewModel contractor

Since I need m data immediately, I decide to pass my class to the WelomePage Contractor public partial class WelcomePageViewModel : BaseViewModel { DemyUser? loggedUser; public WelcomePageViewModel(DemyUser demyUser) { loggedUser =…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 questions
asked 2024-03-10T00:24:52.37+00:00
Eduardo Gomez 3,416 Reputation points
commented 2024-03-19T03:31:12.6466667+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 25,071 Reputation points Microsoft Vendor
0 answers

how to solve a dot net core MAUI Dependency Injection failure that just hangs

I am developing a MAUI application with dot net core 8. i need to setup getting data from a rest api and binding the data to xaml pages with MVVM. i have used online examples to be the basis for my code and the samples run. in my app a content page will…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,244 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 questions
asked 2024-03-18T14:59:18.7433333+00:00
denny figuerres 0 Reputation points
commented 2024-03-19T03:25:51.2466667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 66,096 Reputation points Microsoft Vendor
0 answers

How to add accessible name ( aria-label ) in @DropDownListFor in razor?

I have filter dropdown and trying to add comply with 508 compliance. I used aria_label, aria-label and aria_labelledby but unable to see accessible name for the DropDownListFor. I see No ARIA attributes under ARIA Attributes on Chrome Browse tool. How…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,202 questions
asked 2024-03-18T17:56:37.2133333+00:00
OneWorld 0 Reputation points
commented 2024-03-19T03:25:14.29+00:00
JasonPan - MSFT 4,021 Reputation points Microsoft Vendor
0 answers

Explicit concurrent copying GC freed 10645(416KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 5663KB/11MB, paused 331us total 12.731ms

Explicit concurrent copying GC freed 10645(416KB) AllocSpace objects, 0(0B) LOS objects, 49% free, 5663KB/11MB, paused 331us total 12.731ms how to fix it? add heap size? how to increase it?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 questions
asked 2024-03-15T08:48:32.7366667+00:00
mc 3,501 Reputation points
commented 2024-03-19T03:11:14.1733333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 66,096 Reputation points Microsoft Vendor
0 answers

Maui Need information to add stack smashing protection in ios build

Need information about to add -fstack-protector-all flag on ios Build

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,704 questions
asked 2024-03-18T06:25:22.6333333+00:00
Vinothkumar Thulasiraman 0 Reputation points
commented 2024-03-19T03:02:02.1066667+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 32,926 Reputation points Microsoft Vendor
4 answers

Error: 'Package restore failed rolling back package change for' while running Scaffold-Dbcontext in Entity Framework Core 7.0.14

Hello, I'm working on a project using .NET Core 7 and encountering an issue when running Scaffold-DbContext with Entity Framework 7.0.14. The error message I'm getting is "there was an error running the selected code generator package restore failed…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
685 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,059 questions
asked 2023-12-19T20:12:20.84+00:00
UMUT CAN 5 Reputation points
answered 2024-03-19T02:31:34.14+00:00
Hoang Anh Vu 0 Reputation points
1 answer

Why is OnInitializedAsync() called twice on a page reload

Hi all; Normally when a page is being created & rendered in Blazor version 8, RenderMode.InteractiveServer, OnInitializedAsync() is called once. But when I do a Reload on Chrome, it is called twice. And all child components in the page are called…

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,343 questions
asked 2024-03-17T23:34:40.2933333+00:00
David Thielen 1,926 Reputation points
commented 2024-03-19T02:28:04.98+00:00
David Thielen 1,926 Reputation points