10,420 questions with C#-related tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

How to make fit ASP.NET page in horizontal bar when resizing the width of the page manually

I am developing ASP.NET application. sometimes user, resizing the width of the page. most of the global page (like microsoft all the pages), the page automatically fit the width based on the size of the horizontal width. How to make this. by default, the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,330 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,420 questions
asked 2024-05-25T07:53:00.6633333+00:00
Gani_tpt 1,806 Reputation points
commented 2024-05-29T07:32:21.86+00:00
Gani_tpt 1,806 Reputation points
0 answers

How to reproduce the UI control from mock-up using wpf?

Hi Team I have a mock-up and want to reproduce it using wpf controls given by Microsoft forms in windows. Below is my current code and need some adjustment, as well screen shot of the mock-up want to produce using wpf ui controls. <UserControl…

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,691 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,420 questions
asked 2024-05-28T16:45:17.65+00:00
Gcobani Mkontwana 40 Reputation points
commented 2024-05-29T07:17:17.3466667+00:00
Hongrui Yu-MSFT 420 Reputation points Microsoft Vendor
1 answer

How to obtain an access token for On-premises SharePoint

I have a SharePoint clientId and clientSecret. Is it possible to obtain an access token for On-premises SharePoint through a Windows service? what should be the API end point to get the access token?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,913 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,420 questions
asked 2024-05-28T12:03:30.0066667+00:00
Shankar, Bhukya 0 Reputation points
answered 2024-05-29T07:15:58.5566667+00:00
RaytheonXie_MSFT 32,401 Reputation points Microsoft Vendor
1 answer

How to customise global window closing prompt in a .NET MAUI application

I am working on a .NET MAUI project for desktop, I found a global solution for prompting a user before closing the application here. I would like to know if this can be customised and triggered conditionally when closing. For example: I have an…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,014 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,420 questions
asked 2024-05-28T08:55:28.29+00:00
Arturs Pramalts 0 Reputation points
answered 2024-05-29T06:26:55.6+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 69,921 Reputation points Microsoft Vendor
0 answers

How to upload a analyzed document done with documentAnalysisClient.AnalyzeDocumentAsync call in code, into the training dataset in code, which mimics the 'Mark as to uploaded into the training dataset' button in Azure DI

After analyzing a doc with the documentAnalysisClient.AnalyzeDocumentAsync, I need a way to upload the tested doc directly into the training dataset of its corresponding blob with the already labeled fields. Basically I need to mimic the yellow…

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,420 questions
asked 2024-05-23T09:34:07.56+00:00
edited the question 2024-05-29T05:44:38.68+00:00
romungi-MSFT 42,986 Reputation points Microsoft Employee
1 answer

Moving xamarin.ios to new SKD style issues

I am trying to move my xamarin.ios project to the new SDK style as MS is no longer supporting the previous methods. I am following the steps at https://learn.microsoft.com/en-us/dotnet/maui/migration/?view=net-maui-8.0 But I get multiple…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,014 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,420 questions
asked 2024-04-15T17:54:17.71+00:00
Phunction 206 Reputation points
commented 2024-05-29T05:29:43.16+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 27,276 Reputation points Microsoft Vendor
4 answers

How to connect my c# application to my phpmyadmin database from my NAS?

Good day, I want to try to connect to my database in my NAS. Please take a look the image below. As you can see at the image, I want to access my database outside in my home network. I already installed phpmyadmin in my NAS, but the problem is I don't…

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,420 questions
asked 2024-05-26T11:07:34.2566667+00:00
BgnerNprg207 226 Reputation points
edited the question 2024-05-29T05:25:00.1366667+00:00
Jiale Xue - MSFT 38,021 Reputation points Microsoft Vendor
0 answers

Using User Control in WPF, How to create good UI grid?

Hi Team I have a mock-up and want to reproduce it exactly the same way using User controls offered by Microsoft forms in WPF. <UserControl x:Class="Feedmill_Weighbridge.Presentation.UCPremixPacks" …

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,691 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,420 questions
asked 2024-05-28T17:20:47.55+00:00
Gcobani Mkontwana 40 Reputation points
commented 2024-05-29T03:52:26.58+00:00
Hongrui Yu-MSFT 420 Reputation points Microsoft Vendor
0 answers

Object cannot be cast from DBNull to other types.

Good day, I want to check my DB connection and here's my code. private void Button2_Click(object sender, EventArgs e) { string mysqlcon =…

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,420 questions
asked 2024-05-28T11:44:27.7833333+00:00
BgnerNprg207 226 Reputation points
edited the question 2024-05-29T01:22:33.28+00:00
Anna Xiu-MSFT 26,731 Reputation points Microsoft Vendor
1 answer

My listview is listing only the id instead of 3 items on the table

PLEASE HELP ME I am working on sqlite database , i have the following code in c# maui return (await conn.Table<ServiceData>().ToListAsync()) ```.Where(s…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,014 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,420 questions
SQL Server Training
SQL Server Training
SQL Server: A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.Training: Instruction to develop new skills.
5 questions
asked 2024-05-28T15:40:05.35+00:00
Gbenga Banuso Odumosu 40 Reputation points
answered 2024-05-28T20:33:37.04+00:00
hossein jalilian 4,385 Reputation points
5 answers

Why are Backspace, Enter, Navigation keys not working while editing any file in Visual Studio?

I am using Visual Studio Extensions, while creating a new solution through extension for the first time, we are only able to type alphabets. Backspace, Enter, Navigation keys are not working while editing any file. But when we force close the solution,…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,727 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,420 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
182 questions
asked 2023-02-23T04:57:49.38+00:00
Apurva Kamshetty 25 Reputation points
answered 2024-05-28T15:13:11.97+00:00
Sean Houghton 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to make search text in ASP.NET dropdown controls

I have been developing ASP.NET application. some of the place i want searchable dropdown controls. the dropdown should search both numbers and name. How to do this...? example data as below. Cust.Name | Cust.Number Alfred K AXN29109 …

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,330 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,420 questions
asked 2024-05-25T08:11:36.1666667+00:00
Gani_tpt 1,806 Reputation points
commented 2024-05-28T12:59:40.43+00:00
Gani_tpt 1,806 Reputation points
2 answers One of the answers was accepted by the question author.

Help with setting the background color when the MenuStrip dropdown menu is opened.

hello. I have organized my menu using MenuStrip. I have overridden the MenuStrip background and color with ToolStripProfessionalRenderer. I am using the MenuStrip with white text on a transparent background. When the dropdown menu is opened, the text of…

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,420 questions
asked 2024-05-22T09:00:16.8533333+00:00
Youngs 40 Reputation points
edited a comment 2024-05-28T12:42:34.3666667+00:00
KOZ6.0 5,380 Reputation points
1 answer One of the answers was accepted by the question author.

Need help with DataGridViewComboBox and selecting the next control

I need some help to achieve some functionality in a DataGridView. This Windows app is written in C# using the Windows Form App (.NET Framework). The DataGridView uses a mix of DataGridViewTextBoxColumn & DataGridViewComboBoxColumn. The need is to…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,858 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,420 questions
asked 2024-05-24T17:30:04.13+00:00
Pat Hanks 60 Reputation points
commented 2024-05-27T17:43:07.8366667+00:00
Pat Hanks 60 Reputation points
1 answer

Microsoft.Office.Interop.PowerPoint Load a file

Using Microsoft.Office.Interop.PowerPoint How to open file without using a path? I only have a byte array. I don't want to save the file locally because I already have the byte array and I cant save it locally since Im using outsystems. I have tried…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,481 questions
PowerPoint
PowerPoint
A family of Microsoft presentation graphics products that offer tools for creating presentations and adding graphic effects like multimedia objects and special effects with text.
234 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,420 questions
asked 2024-05-27T05:12:24.5866667+00:00
Nathaniel Y Narciso 0 Reputation points
commented 2024-05-27T16:11:04.6833333+00:00
Viorel 113.4K Reputation points
1 answer One of the answers was accepted by the question author.

How to use localized RESX in Blazor WASM?

Hi, all I want is standard "old way" usage of generated static properties of my RESX to localize texts based on CultureInfo and .culture.resx files. I've just figured out, that only difference from .NET Framework is that now in .NET 8 culture…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,481 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,254 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,420 questions
asked 2024-05-22T07:01:50.83+00:00
Rada Matěj 200 Reputation points
commented 2024-05-27T10:25:15.6933333+00:00
Rada Matěj 200 Reputation points
1 answer

How to access/Update Group Policy Objects using C sharp

Hi, We are referring below link to access group policies programmatically   using c sharp. https://learn.microsoft.com/en-us/previous-versions/windows/desktop/wmi_v2/class-library/gpo-class-microsoft-grouppolicy This is sample code which we have written…

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,420 questions
asked 2024-05-08T07:35:50.82+00:00
commented 2024-05-27T09:43:14.8966667+00:00
Jiale Xue - MSFT 38,021 Reputation points Microsoft Vendor
2 answers

exeがwindows defenderに検疫される

exeを作成して 複数のユーザーからダウンロードをするのですが、 その時に、exeがwindows defenferに引っ掛かり検疫されたり、されなかったりするのですが その違いは何でしょうか。 ちなみに、構成としては インストーラexe(←デジタル署名あり  ├本体.exe(←デジタル署名なし  └dll等 また、「本体.exe」にデジタル署名を付与すれば 上記の問題は解決するのでしょうか。 ご教授いただければ幸いです。

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,420 questions
Microsoft Defender for Endpoint Training
Microsoft Defender for Endpoint Training
Microsoft Defender for Endpoint: A Microsoft unified security platform for preventative protection, postbreach detection, and automated investigation and response. Previously known as Microsoft Defender Advanced Threat Protection.Training: Instruction to develop new skills.
22 questions
asked 2024-05-24T10:16:40.0766667+00:00
佐藤 誠紘 0 Reputation points
commented 2024-05-27T09:41:17.7966667+00:00
gekka 7,406 Reputation points MVP
0 answers

how to solve:An unhandled exception occurred while processing the request. SqlException: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Doctors_Users_UserId".

An unhandled exception occurred while processing the request. SqlException: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Doctors_Users_UserId". The conflict occurred in database "Diabetes2AppDb", table…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
708 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,420 questions
asked 2024-05-26T19:23:31.6466667+00:00
karen matungwa 0 Reputation points
commented 2024-05-27T09:12:14.18+00:00
Hongrui Yu-MSFT 420 Reputation points Microsoft Vendor
1 answer

What is Microsoft's alternative to what they have not programmed in .Net?

I'm trying to convert several applications from .Net Framework 4.8 to .Net 8. At this moment I already know the most important problems that I cannot solve and they are these: -System.Net.HttpWebRequest/HttpWebResponse -Microsoft.Office.Interop.Word What…

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,420 questions
asked 2024-05-27T00:22:57.5366667+00:00
zequion 171 Reputation points
answered 2024-05-27T00:38:12.3766667+00:00
Karen Payne MVP 35,201 Reputation points