10,550 questions with C#-related tags

Sort by: Updated
0 answers

What is the correct way to get the site delta query to include the correct graph id for each site returned.

I am using the C# Graph SDK to retrieve the delta of sites in my organisation and i have noticed that they return results with an ID that cannot be used to retrieve more information about the sharepoint site regardless of if it was deleted or not. Here…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,195 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,108 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,550 questions
asked 2024-06-20T01:32:25.0466667+00:00
Baz Van Den Dungen 0 Reputation points
1 answer

Issue with providing load balancing information using AxMSTSCLib

I am trying to establish a remote desktop connection via a remote desktop session broker in my C# application using the 'AxInterop.MSTSCLib' where I encounter problems with the transfer of the load balancing information. Basically, I create a new object…

Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,358 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,550 questions
asked 2023-01-12T11:16:50.74+00:00
Lukas Peschel 10 Reputation points
edited an answer 2024-06-20T01:00:30.1166667+00:00
Torbjørn Svae 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to migrate the FCM v1 in xamarin forms apps as xamarin got migrated

Hey Team, We got a mail from Firebase team that legacy http is going to be deprecated . When i checked in the documentation, all i could find is xamarin is not supporting FCM v1. We have azure notification hubs common library for android and iOS and…

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.
288 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,317 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,057 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,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.
10,550 questions
asked 2024-05-16T03:05:07.0633333+00:00
Sri Gayathri Gopalakrishnan 40 Reputation points
commented 2024-06-19T15:55:21.5266667+00:00
Junior Saravia 20 Reputation points
0 answers

MSAL: getting logged in user in C# layer in MSAL project

I have an MSAL project built upon the sample code from Microsoft. Angular front end and .net backend, in the UI I get the logged in user email using the instance of MSAL this.authService.instance.getAllAccounts()[0]; how can I get the logged in user in…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,195 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,550 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,281 questions
asked 2024-06-19T14:48:29.0566667+00:00
Miguel 270 Reputation points
commented 2024-06-19T15:43:42.4433333+00:00
Bruce (SqlWork.com) 59,966 Reputation points
1 answer One of the answers was accepted by the question author.

How to check expired date in my database using c# windows form

Good day, I want to check the expiration date on my database. Now if my Form1 running and detect the expiration date in my database the notification will show. private void NotificationOfForm() { DateTime date = DateTime.Now; MySqlCommand…

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,550 questions
asked 2024-06-16T13:14:55.16+00:00
BgnerNprg207 286 Reputation points
accepted 2024-06-19T12:18:58.01+00:00
BgnerNprg207 286 Reputation points
2 answers One of the answers was accepted by the question author.

Compiler cannot find System.Windows.Forms namespace

I'm writing a console app in C#, targeting .Net 8.0. I want to pop a MessageBox, but the compiler can't find System.Windows.Forms. Here's a screenshot of the error: I've searched but cannot find an assembly or package that fixes this issue. Any…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,562 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,550 questions
asked 2024-01-05T21:46:43.0666667+00:00
Robson, James 61 Reputation points
edited a comment 2024-06-19T11:53:46.1833333+00:00
Nizar Makhoul 0 Reputation points
1 answer

A request that does not have a valid action parameter cannot be processed. Specify a valid SOAP action.

Hello! Please tell me how to correctly execute the method using a Soap request Code: using System.Text; public class Soap { public async static Task CallWebService() { var _url =…

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,550 questions
asked 2024-06-19T05:08:22.84+00:00
Виктор Белянкин 0 Reputation points
answered 2024-06-19T09:39:21.4266667+00:00
Jiale Xue - MSFT 41,976 Reputation points Microsoft Vendor
0 answers

Microsoft.ui.xaml.dll App crashes after Publishing on starting

Hi everyone, We're trying to publish a Winui 3 APP with ClickOnce, but everytime we publish the app and try to start it, we get following error: Faulting application name: Test.exe, version: 1.0.0.0, time stamp: 0x65cd0000 Faulting module name:…

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,550 questions
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,744 questions
asked 2024-04-02T12:06:13.9666667+00:00
Alan Benet 10 Reputation points
commented 2024-06-19T08:25:37.8233333+00:00
Mark Tagab 0 Reputation points
1 answer

Picker with custom template

This is quite simple task but I am running short on ideas how to implement it. I have added FontAwesome to my app and would like to create a picker control that would display two different labels with different fonts side by side, but it looks like…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,117 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,550 questions
asked 2024-06-17T19:12:50.6466667+00:00
mrw 201 Reputation points
edited a comment 2024-06-19T08:24:00.84+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,281 Reputation points Microsoft Vendor
2 answers

how to insert records in a table using script task

I would like to insert records in a table by using script task. I cant use execute sql task and other task available in ssis. The script should be in C#.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,167 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,502 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,550 questions
asked 2024-06-19T03:33:51.8233333+00:00
Nilimesh Maiti 0 Reputation points
answered 2024-06-19T05:51:19.7066667+00:00
Olaf Helper 42,746 Reputation points
3 answers

How to eliminate if end user open the same ASP.NET page in another tab

This is simple question. I am developing ASP.NET application and sharing the hosted URL to end user. some times end user opens the same page in multiple tab. i want to control, either should not allow the same page in another tab or redirect some…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,393 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,550 questions
asked 2024-06-18T14:39:10.5133333+00:00
Gani_tpt 2,186 Reputation points
commented 2024-06-19T02:42:53.65+00:00
QiYou-MSFT 4,311 Reputation points Microsoft Vendor
0 answers

Microsoft Graph - Issues when trying to upgrade from 3.19.0 to v5.56.0

I got a problem when trying to upgrade GraphServiceClient from 3.19.0 to 5.56.0 (as shown below), how do I update this code to Microsoft.Graph 5.56? Please note, I find all examples on the web and they don't show me a solution: protected…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,195 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,550 questions
asked 2024-06-18T15:31:44.6333333+00:00
Terry Fedirko 0 Reputation points
edited the question 2024-06-19T01:40:24.2333333+00:00
Jiale Xue - MSFT 41,976 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Access and read all SMS on Android phone with .NET MAUI

For an application that, as a part of its functionality, can read all stored SMS on an android phone, can you give general directions what to read exactly to learn and implement it in a .NET MAUI project? I'm a beginner. I've only worked with MVC, WPF…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,117 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,550 questions
asked 2023-11-21T03:48:09.5466667+00:00
MSCollege3000 160 Reputation points
commented 2024-06-19T00:53:55.4466667+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 71,281 Reputation points Microsoft Vendor
3 answers One of the answers was accepted by the question author.

What do the "/" and "~" signs mean in file path usage?

Hi, If you allow, I would like to ask a question. I want to access "b5.jpg" in CoreBlogTema from About/Index. Which one should I start with "/", "./", "../", "~/" in the file extension? Can you explain…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,328 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,550 questions
asked 2024-06-15T11:01:15.27+00:00
Yalçın Mete 60 Reputation points
commented 2024-06-18T23:51:45.99+00:00
Yalçın Mete 60 Reputation points
1 answer One of the answers was accepted by the question author.

Can Desktop Applications Be Used in Azure/ISV Environment?

This is a very basic and generic question, but no answers were found in searching the internet. Can a desktop application (WPF/WCF) run in Azure/ISV environment? I know that an Azure VM can host a desktop/client-server application, but that's not what…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,562 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,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,550 questions
ISV (Independent Software Vendor)
asked 2024-06-11T22:32:46.7633333+00:00
TJ Fan 25 Reputation points
accepted 2024-06-18T21:51:35.4066667+00:00
TJ Fan 25 Reputation points
2 answers One of the answers was accepted by the question author.

How to Run Asp.net website project as a web Application Project

Hello, I have just assumed a duty to take over development of a asp.net project. It happened that the project is a asp.net website project, and I discovered the the former developer did not create App_code folder, when I brought the solution to my VS…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,393 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,550 questions
asked 2024-06-17T13:06:17.44+00:00
Emeka Okoye 86 Reputation points
accepted 2024-06-18T20:47:40.9+00:00
Emeka Okoye 86 Reputation points
2 answers One of the answers was accepted by the question author.

Deletion from a datagridview on the second attempt returns null exception if the column is hidden, but works fine if vissible.

my program loads a table from sqlite3 and displays the content in a datagridview form with c#. I am sorting the table entries according to name and some values which gives out of order ID's to display in the datagridview. The program works fine if the ID…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,867 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,550 questions
asked 2024-06-17T16:30:40.47+00:00
George Panayiotou 20 Reputation points
answered 2024-06-18T16:16:52.3933333+00:00
George Panayiotou 20 Reputation points
2 answers One of the answers was accepted by the question author.

How to replace double back slashes returned by AppContext.BaseDirectory in C#

I'm trying to replace the double backward slashes returned by AppContext.BaseDirectory with only one backward slash. I attempted to replace the double slashes using the code snippet below, but it didn't work as expected. Can anyone help me with this?…

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,550 questions
asked 2024-06-18T01:43:15.3233333+00:00
Tom Meier 180 Reputation points
accepted 2024-06-18T13:07:49.29+00:00
Tom Meier 180 Reputation points
2 answers One of the answers was accepted by the question author.

Losing GridView Textbox value after GridView Pagination Changes

Please help look into what i need to modify in my code. My textbox is losing values typed into its control after gridview pagination click. Thanks and code below <asp:GridView ID="GridView1" runat="server"…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,393 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,550 questions
asked 2024-06-16T01:03:18.18+00:00
Imoleayo Emmanuel 20 Reputation points
accepted 2024-06-18T12:12:14.8533333+00:00
Imoleayo Emmanuel 20 Reputation points
1 answer

How to disconnect a BLE device after successful connection

I have successfully connected to BLE device by using BluetoothLEDevice.FromIdAsync(deviceInfo.Id) and bluetoothLeDevice.GetGattServicesAsync(BluetoothCacheMode.Cached) API's in unpaired mode over Windows 10 with .NET Framework 4.7.2 but I was…

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,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,550 questions
asked 2024-06-13T10:31:14.1533333+00:00
Prajnith Kumar 0 Reputation points
commented 2024-06-18T10:21:55.9533333+00:00
Hui Liu-MSFT 47,176 Reputation points Microsoft Vendor