10,204 questions with C#-related tags

Sort by: Updated
0 answers

.net MAUI is there a way to have an entry field have focus on load but not show the soft keyboard?

so ive worked on an android app in VS2019 and in that app its not a problem for me to have a screen load up, set focus to the first entry field( in that case its an EditText) but not show the soft keyboard. it will only show the soft keyboard if the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,844 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,204 questions
asked 2024-04-19T20:56:32.3766667+00:00
Min T 41 Reputation points
3 answers

How to upload file and view those file in modal popup using gridview

I need help in gridview. i am using normal add, edit and delete functionalities in gridview. This is working fine. Initially i am saving the records using textbox controls and save button. This contains including file upload also. After saving the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,246 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,204 questions
asked 2024-04-17T14:56:04.6833333+00:00
Gani_tpt 1,506 Reputation points
edited an answer 2024-04-19T20:18:08.6966667+00:00
Albert Kallal 4,646 Reputation points
1 answer One of the answers was accepted by the question author.

Is it possible to create and set styles and/or template for combobox in c# only?

Hi, I'm trying to setup a app frontend in C# only. I'm more practiced with c# then XAML, but also have the feeling that I can make the app windows/pages more parametric in this way. Thus far I'm succeeding in this, however when I tried setting up…

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,667 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,204 questions
asked 2024-04-12T14:03:37.46+00:00
Reinder Weenink 20 Reputation points
commented 2024-04-19T19:37:26.1033333+00:00
Reinder Weenink 20 Reputation points
1 answer

Azure Functions - Logging not working correctly in local

I have a simple dotnet-isolated Azure function written in .Net 8 which has 1 Http trigger function. I have another custom database logger which is added to this function to enable database logging. When I am executing the function, none of the Microsoft…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,212 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,204 questions
asked 2024-04-17T14:04:02.69+00:00
Singh, Rahul 1 Reputation point
commented 2024-04-19T19:29:24.5733333+00:00
Singh, Rahul 1 Reputation point
0 answers

Dangerous site - attackers on the site you're trying to visit might trick you

I have an intranet site. This site is hosted on our internal server 2019 on IIS version 10.0. This website is just a web page that enables the employees to fill out their information and then populates a .pdf file from the information that they fill out.…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,140 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,246 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,204 questions
asked 2024-04-19T18:56:41.28+00:00
Anjali Agarwal 1,366 Reputation points
0 answers

How to get assignedLicenses from Microsoft Graph

Hi, I am using a C# program to retrieve user information from Microsoft Graph. Currently I am passing the following URL to get the information I need. https://graph.microsoft.com/v1.0/users?$filter=accountEnabled eq true&$select=displayName,id I want…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,521 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,204 questions
asked 2024-04-19T18:47:55.8666667+00:00
Robin 46 Reputation points
edited the question 2024-04-19T18:50:42.4533333+00:00
Robin 46 Reputation points
4 answers

saving the Identity token in the Aspnetusertokens table

Hi I created an Asp.net core 6 project and I added the Identity framework for authentication and authorization, I would like to add token management and while doing research I realized that Identity also manages the management of tokens because it…

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
607 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
696 questions
Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
5,451 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,140 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,204 questions
asked 2023-11-07T11:19:50.1566667+00:00
Marnelle M'BENGUET 20 Reputation points
edited an answer 2024-04-19T17:53:03.2366667+00:00
Bruce (SqlWork.com) 55,041 Reputation points
1 answer

How to design patterns from scratch using C# asp.net MVC

I am new to building design pattern using factory design pattern, its C# asp.net mvc application which i am going developing my new web application, please can you help me how to start from scratch. I have worked one design pattern application which is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,346 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,246 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,204 questions
asked 2024-04-19T14:27:10.4633333+00:00
coder rock 196 Reputation points
answered 2024-04-19T16:19:47.74+00:00
Bruce (SqlWork.com) 55,041 Reputation points
0 answers

How to remove Bottom Border Textbox | UWP

Hello. I have a native TextBox and I'd like to remove this blue border-bottom in Light and Dark: Focus State: Rest: I'd like to remove all these bottom borders. However, if my SO is in High Contrast mode, I'd like to keep these native borders: …

Universal Windows Platform (UWP)
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,204 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.
762 questions
asked 2024-04-19T14:49:44.9933333+00:00
Anderson Rodrigues Cavalcante 251 Reputation points
2 answers

Recognize whether the user is logged in

In Windows 10 and Windows 11, apps that are started automatically at startup are already started before the user has logged in. In Windows 8.1, such automatically launched apps were only started after the user had logged in. At least this is the case on…

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,667 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,412 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,204 questions
asked 2024-04-18T15:03:37.3466667+00:00
Heiko 1,191 Reputation points
edited an answer 2024-04-19T11:43:12.21+00:00
RLWA32 40,021 Reputation points
0 answers

How to fix .NET Runtime version 4.0.30319.0 - Loading profiler failed during CoCreateInstance Error.

Hello, I am seeing this error in the event logs: .NET Runtime version 4.0.30319.0 - Loading profiler failed during CoCreateInstance. Profiler CLSID: '{2EB6DCDB-3250-4D7F-AA42-41B1B84113ED}'. HRESULT: 0x80040154. Process ID (decimal): 28340. Message…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,346 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,204 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,519 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,117 questions
asked 2023-06-28T08:04:35.5566667+00:00
Bhushan Mendhe 0 Reputation points
edited a comment 2024-04-19T11:02:01.07+00:00
Mike Gledhill 0 Reputation points
2 answers

How I get 300 DPI with 648 X 1016 Using SKBitmap

I am trying to PNG image to BMP image via using SKBitmap, the BMP image not set in 300 DPI why? below i mentioned my code, if there is any mistakes please correct my code using (SKBitmap pngBitmap = SKBitmap.Decode(inputFilePath)) { …

Universal Windows Platform (UWP)
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,204 questions
asked 2024-04-16T07:17:48.06+00:00
Saranya Karthik 20 Reputation points
commented 2024-04-19T10:07:37.5233333+00:00
Junjie Zhu - MSFT 14,366 Reputation points Microsoft Vendor
1 answer

OpenXML Error when creating new WorksheetPart on deployed dll

So first off, my code works in a console application. I installed OpenXML via NuGet into the solution. I created a new solution that is a .NET dll library and installed openXML the same way and deployed the dll with the OpenXML dlls and when my dll is…

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,204 questions
asked 2024-04-07T16:11:25.71+00:00
Mike Gerbi 0 Reputation points
edited a comment 2024-04-19T09:42:33.86+00:00
Jiale Xue - MSFT 30,811 Reputation points Microsoft Vendor
1 answer

Why Dataset is empty?

Dear all, I am a beginner in C#. Can you please guide me on how to use parameters? I am not sure why ds.Table[0] is underlined in red. Could you please assist me in resolving this issue ?

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,204 questions
asked 2024-04-09T09:53:11.9466667+00:00
BenTam 1,541 Reputation points
commented 2024-04-19T09:41:44.7133333+00:00
Jiale Xue - MSFT 30,811 Reputation points Microsoft Vendor
3 answers

Working with Access database via OleDbReader

Hey all I have no problem when all my access mdb are string! I'm using Access database engine 2010 to connect to mdb. The problem occurs when I have Boolean / Integer / Date fields: New OleDbCommand("INSERT INTO tableblah (strfield, intfield,…

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,204 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,564 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.
817 questions
asked 2024-04-01T16:00:49.7066667+00:00
StewartBW 260 Reputation points
commented 2024-04-19T09:41:12.49+00:00
Jiale Xue - MSFT 30,811 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Serializing a list of objects

Hello people! I have a structure of the form: public class MasterFiles { public GeneralLedgerAccounts GeneralLedgerAccounts { get; set; } public Customers Customers { get; set; } public Suppliers Suppliers { get; set; } public TaxTable…

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,204 questions
asked 2024-04-18T09:03:26.0133333+00:00
TRAIAN MACAVEIU 91 Reputation points
accepted 2024-04-19T08:40:30.6966667+00:00
TRAIAN MACAVEIU 91 Reputation points
0 answers

Empty space between elements .NET MAUI

The entire page is a grid. I'm trying to position a child grid on top of the parent grid. This works on Android. On Apple up to iPhone 14 too. On iPhones 14 and 15, the space between the parent and child grids is displayed. <?xml…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,844 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,204 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.
762 questions
asked 2024-04-19T07:41:18.8766667+00:00
Влад Тигинян 20 Reputation points
1 answer

Update/Set SignatureHTML with ExchangeService for Office 365 Users

Hello, Could you please confirm if the code below is not working? If so, I need guidance on how to change the OWA user signature globally, as we plan to reflect the company branding for all users. The OWAConfig does not include any key related to user's…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,521 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,204 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,166 questions
asked 2024-04-18T23:50:59.3966667+00:00
Akmal Eldahdouh 0 Reputation points
edited the question 2024-04-19T07:05:36.6266667+00:00
MayankBargali-MSFT 68,391 Reputation points
1 answer

The problem with the MediaElement in WPF .NET 8.0 not supporting relative paths for the media source,Why?

Hi, I'm attempting to utilize the MediaElement in WPF to play video files with either .mp4 or .wmv extensions. However, I've encountered issues when passing the source as a relative path or a Pack URI. Strangely, it works fine when I provide an absolute…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,573 questions
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,724 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,667 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,204 questions
asked 2024-04-08T08:17:36.1833333+00:00
Sanjay Kumar Jha 151 Reputation points
answered 2024-04-19T07:02:29.0633333+00:00
Sanjay Kumar Jha 151 Reputation points
1 answer

AuthorizationPermissionMismatch error when accessing blob file with indirect permission in RBAC

Hi, I'm using BlobContainerClient for accessing blobs from code (C#) private async Task<BlobClient> GetBlobClientAsync(string blobName, string container, CancellationToken cancellationToken) { var containerClient = await…

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,670 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,415 questions
Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
660 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,204 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,389 questions
asked 2024-04-18T23:01:28.29+00:00
Kamil Zak 0 Reputation points
answered 2024-04-19T06:56:51.65+00:00
Nehruji R 1,511 Reputation points Microsoft Vendor