10,574 questions with C#-related tags

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

c# need help with adding an object to a list of objects

namespace Pread835 { public class LineItem { public string ClaimNo { get; set; } public string PatID { get; set; } public string ProcCode { get; set; } public string ChargeAmt { get; set; } public string PaidAmt { get; set; } public…

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,574 questions
asked 2021-01-02T19:55:49.077+00:00
Dataporter 21 Reputation points
commented 2021-01-02T21:35:53.703+00:00
Dataporter 21 Reputation points
3 answers One of the answers was accepted by the question author.

MS SQL Stored Procedure working in SSMS but not workng when called from C#

Hello I’m following a tutorial which creates a winForm based app using C# and accessing SQL DBs and text files. Whilst I’m uncertain whether my problem is rooted on the SQL or C# side of the house I’m very strongly leaning towards C# despite the abort…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,868 questions
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,203 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,574 questions
asked 2020-12-30T15:28:18.497+00:00
Art Hansen 566 Reputation points
accepted 2021-01-01T16:02:17.973+00:00
Art Hansen 566 Reputation points
4 answers

Visual Studio C#: How to set a global varibale? Where to set it?

Let us say, in the application, I will refer to Access database a lot (File path: C:\Users\QR\Documents\UserDatabase.accdb). I would like to set a global variable for the file path, the reason is: the file may be moved over the time, and setting a…

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,574 questions
asked 2020-12-31T13:16:45.537+00:00
VAer-4038 761 Reputation points
answered 2021-01-01T11:26:21.27+00:00
Karen Payne MVP 35,291 Reputation points
1 answer One of the answers was accepted by the question author.

Visual Studio C#: File path error

I have a class GlobalVariables.cs, I have code public static string InstructionFilePath {get; set;} Now the code for file path does not work (not able to build solution). If I don't use the variable and use file path directly in Process.Start, 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,574 questions
asked 2020-12-31T13:45:31.903+00:00
VAer-4038 761 Reputation points
accepted 2021-01-01T02:36:35.837+00:00
VAer-4038 761 Reputation points
1 answer

WCF Service's Data Gets Refreshed (Deleted) Completely After 15-30 Minutes for No Apparent Reason

I'm creating an event-management system. In this system I have a WCF service which loads the events. I have a layered architecture with a repository and service layer. The data is published to an Azure web service app. The data is consumed in a…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,320 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,574 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,574 questions
asked 2020-12-31T01:33:46.877+00:00
iDo Code 1 Reputation point
answered 2020-12-31T10:52:52.607+00:00
Viorel 114.1K Reputation points
2 answers

C# Listview Subitem Text Crash

Problem Statement: C# List view sub item text is getting crashed quite often when we do Delete/Insert operation on List view in Item Checked event handler[please refer event handler code in sample]. Pease find the attached sample project, WebEx clip…

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,574 questions
asked 2020-12-22T16:10:12.613+00:00
James J 586 Reputation points
answered 2020-12-31T09:01:35.953+00:00
Timon Yang-MSFT 9,576 Reputation points
0 answers

Windows.Devices.Bluetooth ValueChanged event handler frequency

I'm able to test connection with a BLE device and I'm able to receive ValueChanged event to read value received after subscription to a notify service. This is ok if the ValueChanged event it is fired about 4 times/seconds. But if this frequency…

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,574 questions
asked 2020-12-17T10:47:37.18+00:00
AMM 1 Reputation point
commented 2020-12-31T06:51:07.977+00:00
Nico Zhu (Shanghai Wicresoft Co,.Ltd.) 12,861 Reputation points
1 answer

Error: mixed mode assembly is built against version v2.0.50727 of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information

I working in a solution containing a VB and a C# project. It runs well from Visual Studio (2013)development environment and as an executable in the development PC. When deployed to another PC I keep getting this error: "mixed mode assembly is built…

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,574 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,642 questions
asked 2020-12-27T16:53:42.933+00:00
RR 1 Reputation point
commented 2020-12-31T04:56:29.77+00:00
Cheong00 3,471 Reputation points
3 answers One of the answers was accepted by the question author.

Ignoring UIAutomation ArgumentException

I'm getting an exception only in the output window in debug mode of the Element.FindAll: Exception thrown: 'System.ArgumentException' in UIAutomationClientsideProviders.dll The application keeps running and i'm getting the right element. I can't…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,868 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,574 questions
asked 2020-12-24T22:42:57.683+00:00
youki 1,016 Reputation points
accepted 2020-12-31T00:28:53.26+00:00
youki 1,016 Reputation points
1 answer One of the answers was accepted by the question author.

Using directive works...and doesn't.

I am using core 3.1 and am writing a WPF application. Visual Studio Community 2019 with all updates applied. All project are using core 3.1 and in the csproj files I have <UseWPF>true</UseWPF> I am also using a nuget package called…

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,706 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,574 questions
asked 2020-12-30T17:01:58.857+00:00
Magnus Vinterhav 61 Reputation points
accepted 2020-12-30T23:58:54.517+00:00
Magnus Vinterhav 61 Reputation points
1 answer One of the answers was accepted by the question author.

How to enable a textbox and wait for criteria to be entered before delete operation in WPF

I am having trouble with deleting a record from my programme. I have a textbox which is disabled by default by the ReadOnly property which is bound to a boolean property of my ViewModel. The textbox permits the user to enter the ID as criteria for the…

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,706 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,821 questions
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,203 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,574 questions
asked 2020-12-29T07:07:36.563+00:00
DPlug 41 Reputation points
commented 2020-12-30T21:54:23.83+00:00
DPlug 41 Reputation points
1 answer One of the answers was accepted by the question author.

understanding api

Hello everybody This is a very basic and stupid question, but I have been staring at this API for a while now, and I have been checking the dock, I want to get all the YUGIOH cards from a specific Set (https://db.ygoprodeck.com/api-guide/) but…

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,574 questions
asked 2020-12-30T11:41:06.69+00:00
Eduardo Gomez 3,416 Reputation points
accepted 2020-12-30T19:17:55.693+00:00
Eduardo Gomez 3,416 Reputation points
1 answer One of the answers was accepted by the question author.

C# endless list is filled and taken - concept with BlockingCollection<T> Class and xml messages

Hello, system.collections.concurrent.blockingcollection-1 I am looking for an example of C# WPF. The data XML is permanently added to and taken from a list. This is done asynchronously. Several messages XML can be added than taken. …

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,574 questions
asked 2020-12-23T08:39:07.03+00:00
Markus Freitag 3,786 Reputation points
accepted 2020-12-30T16:40:57.437+00:00
Markus Freitag 3,786 Reputation points
1 answer One of the answers was accepted by the question author.

Increasing Size Problem When Handling WM_NCCALCSIZE

Hello, When I process the WM_NCCALCSIZE message, after minimizing and restoring the window, the window gains some size each time. I know it is caused by the function RestoreBoundsIfNecessary called in the WM_WINDOWPOSCHANGED message handler. And a…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,868 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,499 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,574 questions
asked 2020-12-30T15:12:00.563+00:00
semih artan 41 Reputation points
commented 2020-12-30T15:55:40.73+00:00
semih artan 41 Reputation points
7 answers One of the answers was accepted by the question author.

C# insert List<List<object>> in datatable and then to sql

Background story: I want to get data from influxdb and copy this data to SQL table and I want to do this with a datatable. structure of the JSON file: public class Series { public string name { get; set; } public List<string> columns…

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,574 questions
asked 2020-12-29T18:53:49.2+00:00
Eric Bezemer 186 Reputation points
commented 2020-12-30T13:41:41.003+00:00
Eric Bezemer 186 Reputation points
2 answers

Use UTF8Encoding.GetBytes get some error

My netcore version is 2.0.0 I run it as a server,and I get a error when I write my log: Unable to translate Unicode character \uD83C at index 267 to specified code page. however it happen just only once,I find the uD83C mean the signal � first,I…

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,574 questions
asked 2020-12-25T08:54:56.233+00:00
济田 胡 1 Reputation point
commented 2020-12-30T13:06:23.303+00:00
Viorel 114.1K Reputation points
1 answer One of the answers was accepted by the question author.

C# lock - the opportunities

Hello, What is the difference. When do I need my own object? When can I just lock the object? The list? Is that enough if I am in the same application, and an object like a list of two or more functions could be changed? Can someone explain 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,574 questions
asked 2020-12-17T10:04:53.067+00:00
Markus Freitag 3,786 Reputation points
commented 2020-12-30T11:14:35.767+00:00
Cheong00 3,471 Reputation points
0 answers

additional logs are treated as error during build of C/C++/CSharp code

anything that prints on visual studio command line is treated as error (such has logs/warnings from integrated thirdpatry tool) how to make visual studio not treat that as error and ignore it to continue to build.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,345 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,574 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,612 questions
asked 2020-12-29T11:13:56.26+00:00
Mohan Reddy 1 Reputation point
commented 2020-12-30T09:33:36.18+00:00
Tianyu Sun-MSFT 28,941 Reputation points Microsoft Vendor
2 answers

SqlDataAdapter.Fill method is throws SqlException when the BUILTIN/Administrators language in Sql server is British English

Our c# application uses SqlDataAdapter to fetch data from the DB(from an rdlc file) to present in a report. For some reason the SqlDataAdapter.Fill method is throwing below SqlException when the BUILTIN/Administrators language is British English. When it…

SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,855 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,574 questions
asked 2020-12-30T02:06:40.067+00:00
Rajaiah 1 Reputation point
answered 2020-12-30T09:20:11.537+00:00
Alberto Poblacion 1,556 Reputation points
2 answers One of the answers was accepted by the question author.

Where to put the code?

I following the book "C# Tutorial" (https://learn.microsoft.com/en-us/dotnet/csharp/tutorials/default-interface-methods-versions). Since the book doesn't mention where the code should be placed, I just paste the code on a new tab…

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,574 questions
asked 2020-12-30T06:12:48.657+00:00
Ben Tam 216 Reputation points
commented 2020-12-30T08:34:03.47+00:00
Ben Tam 216 Reputation points