10,364 questions with C#-related tags

Sort by: Updated
0 answers

Interop.Excel always saving in default path even specifying the path manually for Office 365

Trying to create an Excel file using Office.Interop.dll (15.0.4795.1001).But it is taking the default file path instead of the path which set manually. if (extensionObj != null) { relativeExcelPath =…

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,364 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,570 questions
Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,657 questions
asked 2024-05-20T11:08:56.84+00:00
Venkatachalam S1 0 Reputation points
1 answer

Error when uploading CSV files to Azure blob storage using ManagedIdentity with C# and GraphQLAPI. "Total size of resourceFiles is using 147% of available space after processing."

Hello All, I have created a console app using C# where I try to fetch the data from GraphQLAPI and store the data in csv files. post that it would be uploaded to the Azure blob storage using ManagedIdentity. This complete code work fine in my local VS…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,306 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,711 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,364 questions
asked 2024-05-15T08:40:14.42+00:00
Siddhesh Chavan 0 Reputation points
commented 2024-05-20T10:49:02.6166667+00:00
ShaikMaheer-MSFT 38,126 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

Unable to restore a deleted user with graph API

I am trying to restore a deleted user via graph API. I am following the documentation here: https://learn.microsoft.com/en-us/graph/api/directory-deleteditems-restore?view=graph-rest-1.0&tabs=http I have created an azure application and add…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,795 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,364 questions
asked 2024-05-20T07:01:27.64+00:00
Yasitha Pandithawatta 141 Reputation points
accepted 2024-05-20T09:42:24.3533333+00:00
Yasitha Pandithawatta 141 Reputation points
2 answers

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,359 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,364 questions
asked 2024-04-17T14:04:02.69+00:00
Singh, Rahul 1 Reputation point
answered 2024-05-20T08:46:18.9933333+00:00
Pinaki Ghatak 2,400 Reputation points Microsoft Employee
1 answer

how to read dxf file content text?

Hi every body I have a DXF file format that have drawing and text in it. I want to extract text from this file but I have no idea t odo that. can any one help me? 4-FUG-16802-AAR61-N_Sht_1.txt and dxf file(i change dxf extension to txt to upload it)

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,364 questions
asked 2024-05-18T05:02:23.39+00:00
Farshad Valizade 381 Reputation points
commented 2024-05-20T08:19:03.3066667+00:00
Castorix31 82,031 Reputation points
0 answers

I want to update shared step in my testcase using C# program

I want to update shared steps in my testcase using C# program, I was able to get the shared steps reference with below code, but found that it is not updating the shared steps in tfs.. giving error "The ids and revisions collections must have the…

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,364 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,001 questions
asked 2024-05-20T07:48:00.78+00:00
Amey Pimpley 21 Reputation points
0 answers

how to make an object from txt file ?

hi I want to read line by line this kind of file. and make object from each TEXT tag how can I do that? file contents: TEXT 8 GT_1 10 748.286 20 495.939 40 3.25000 1 EPPPSP1510AZZ01S8 41 1.02000 7 HTX1 0 TEXT 8 GT_1 10 804.000 20 495.939 …

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,364 questions
asked 2024-05-20T05:48:17.8233333+00:00
Farshad Valizade 381 Reputation points
edited a comment 2024-05-20T07:20:25.8366667+00:00
Jiale Xue - MSFT 35,556 Reputation points Microsoft Vendor
2 answers

Create accdb or mdb from code

Hello I can create a new xls or xlsx Excel file with this: "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=D:\x.xls;Extended Properties=""Excel 8.0""" Using ExcelConnection As New OleDbConnection(AboveString) But how to…

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,364 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,602 questions
asked 2024-05-16T12:30:38.7166667+00:00
StewartBW 465 Reputation points
commented 2024-05-20T07:18:28.5166667+00:00
Jiachen Li-MSFT 27,001 Reputation points Microsoft Vendor
0 answers

root is missing error, while making frontend using window form application in VS 2022 using C#

Root is missing error, while making frontend using window form application in VS 2022 using C#. How to troubleshoot this issue.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,852 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,684 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,364 questions
asked 2024-05-20T04:10:28.07+00:00
DevNinja 0 Reputation points
edited a comment 2024-05-20T06:29:14.73+00:00
Tianyu Sun-MSFT 27,801 Reputation points Microsoft Vendor
1 answer

How to write C# based Azure Container without starting a Web

Hi all. I need to write an app that connects to a third-party vendor application via a Web Socket. I am using C# in Visual Studio 2022 to write my app. I have it running in my Visual Studio locally. My question: how do I suppress the website window from…

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,364 questions
asked 2024-05-15T15:32:06.1+00:00
Leonard Bernstein 45 Reputation points
edited the question 2024-05-20T05:51:30.2466667+00:00
MayankBargali-MSFT 69,421 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.
270 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,300 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.
994 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,684 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,364 questions
asked 2024-05-16T03:05:07.0633333+00:00
Sri Gayathri Gopalakrishnan 20 Reputation points
edited a comment 2024-05-20T04:12:19.6566667+00:00
Sri Gayathri Gopalakrishnan 20 Reputation points
1 answer

How to create backend application using Asp.net C# Web API Core

How to create backend application using web api core application followed by standards using desing pattern, Depedency injection and solid principle I am new to web api core how to start following things JWT token authentical and authorization simple…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,232 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,306 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,364 questions
asked 2024-05-17T06:22:52.4166667+00:00
coder rock 196 Reputation points
commented 2024-05-20T02:13:19.64+00:00
Brando Zhang-MSFT 2,966 Reputation points Microsoft Vendor
2 answers

How to maintain ajax text box calander control value after save button clicked

I am using asp.net text box control for date picking..for that, i am using ajax calander extender. Here, is facing issue that, date control values will be clearing after save button clicked...here I want to maintain the date values till I manually…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,306 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,364 questions
asked 2024-05-18T04:24:53.3166667+00:00
Gani_tpt 1,706 Reputation points
commented 2024-05-20T02:13:14.03+00:00
Lan Huang-MSFT 26,196 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to add the reference system.web.dll ?

I am unable add the reference to system.web.dll ? can anyone suggest me to add this reference. Thanks in advance

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,852 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,450 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,364 questions
asked 2023-01-24T11:31:25.1666667+00:00
Dineshkumar.S 451 Reputation points
commented 2024-05-20T01:40:02.0333333+00:00
Dan 0 Reputation points
0 answers

Detecting a word while using the Part of Speech enumeration.

I would like to know how I could use the Part of Speech enumeration while accessing the Synonym Info object. Can anyone provide me some examples? For example, looking up the part of speech type for the word, big. This would be very helpful if anyone can…

Word
Word
A family of Microsoft word processing software products for creating web, email, and print documents.
687 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,364 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,570 questions
asked 2024-05-18T20:00:13.5533333+00:00
John 426 Reputation points
edited the question 2024-05-20T01:31:42.0666667+00:00
Anna Xiu-MSFT 26,561 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to programmatically display the Windows taskbar using C#

I would like to know what C# code/instructions are necessary to make the Windows taskbar appear so that I can use a specific item on it. Can someone provide a concise example or resource to help me accomplish this? Thank you.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,852 questions
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,777 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,684 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,443 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,364 questions
asked 2024-05-16T13:35:04.7966667+00:00
Thad T 26 Reputation points
accepted 2024-05-19T23:47:12.7933333+00:00
Thad T 26 Reputation points
1 answer One of the answers was accepted by the question author.

DirectoryInfo GetDirectories Reverse

Hello, Using this code and need to reverse the list returned by GetDirectories: Dim di As New DirectoryInfo(path) Dim di2 As DirectoryInfo() = di.GetDirectories How to reverse di2 list? Thanks :)

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,364 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,602 questions
asked 2024-05-19T15:25:17.47+00:00
StewartBW 465 Reputation points
accepted 2024-05-19T23:19:59.1733333+00:00
StewartBW 465 Reputation points
3 answers One of the answers was accepted by the question author.

Gridview TextBox value getting null (blank) after button click

i am selecting some checkboxes and trying to enter some feedback value in the corresponding cell of textboxes. But, I am unable to get Gridview textbox value in all paging when i click save button. Getting blank value always. below is my…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,306 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,364 questions
asked 2024-05-16T16:11:44.3566667+00:00
Gani_tpt 1,706 Reputation points
commented 2024-05-19T21:09:21.2733333+00:00
Albert Kallal 4,896 Reputation points
2 answers One of the answers was accepted by the question author.

ComboBox before drop down event?

Hello I'm looking for an event in ComboBox in .net framework WinForms which fires before the drop down menu is going to drop, when DropDownStyle is set to DropDown, so when user clicks on the far button, I add some items to the list on the fly and then…

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,364 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,602 questions
asked 2024-05-18T00:15:41.8566667+00:00
StewartBW 465 Reputation points
accepted 2024-05-18T13:33:18.67+00:00
StewartBW 465 Reputation points
1 answer One of the answers was accepted by the question author.

Microsoft Graph Error: Microsoft.Kiota.Http.HttpClientLibrary: Failed to execute GetChildThreadsV2Async

Context: I'm trying to create an Azure Function that pulls Teams and Channels info using Graph API. As I understand it (please correct me if I'm wrong), there's no way to send one Graph API request to retrieve all channels in my organization, and I have…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,359 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,795 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,364 questions
asked 2024-05-16T16:57:31.6266667+00:00
Tran, Nguyen 20 Reputation points
edited a comment 2024-05-17T17:36:02.7433333+00:00
Tran, Nguyen 20 Reputation points