10,357 questions with C#-related tags

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

Namespace error with nuget package

Hi, I have used nuget to add a package to visual studio community (Version 16.9.0 preview 2.0), in a C# Blazor web assembly project. The nuGet add seems to work fine, and the package shows up in the dependencies for the project in the solution explorer…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,439 questions
Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,411 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,357 questions
asked 2021-01-12T23:17:30.587+00:00
David Heddle 26 Reputation points
commented 2021-01-13T13:46:43.777+00:00
David Heddle 26 Reputation points
1 answer

How to write DateTimePicker in SQL WHERE statement?

Take below code for example, how to write correct syntax for sqlDelete? Secondly, AppointmentDate could be Date only (without time), how to make sure comparing Date only (not comparing Time)? Otherwise, data type may be mismatched, so convert both of…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,848 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,357 questions
asked 2021-01-13T04:03:01.477+00:00
VAer 756 Reputation points
answered 2021-01-13T08:25:08.867+00:00
Daniel Zhang-MSFT 9,621 Reputation points
1 answer

SQL query fails for Access 2016 x64 redistributable

Hi All, We have upgraded from access 2010 x64 redistributable to 2016 x64 distributable. After installing 2016 redistributable, SQL query execution fails for access db. It works when SQL Native client 2012 is installed. However as native client is…

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
12,853 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,357 questions
asked 2021-01-12T04:45:17.53+00:00
Geetha 1 Reputation point
commented 2021-01-13T07:10:13.44+00:00
Geetha 1 Reputation point
0 answers

Secure SSL Stream.read ...throws System.IO.IOException: The decryption operation failed (System.ComponentModel.Win32Exception: The specified data could not be decrypted)

we are using the SSL Stream Read to receive bytes of the files from the remote machine using TCP port .we have authentication done with X509Certificate2 certifcate for the file transfer from one machine to another. In call back of the tcplistener,…

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,357 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,130 questions
asked 2021-01-12T13:34:56.08+00:00
Jeyakumar Guruchandran 1 Reputation point
commented 2021-01-13T06:47:03.037+00:00
Xingyu Zhao-MSFT 5,356 Reputation points
1 answer

How to fire a event in usercontrol from main form

i am adding usercontrol onto main form in loop. now how can i fire event in user controls from main form. is it possible. if yes then please discuss with a example code. 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,357 questions
asked 2021-01-11T08:56:44.18+00:00
Sudip Bhatt 2,271 Reputation points
answered 2021-01-13T03:03:57.463+00:00
Daniel Zhang-MSFT 9,621 Reputation points
2 answers

.NET Winforms Combobox databinding with ComboBoxStyle.DropDownList

I'm running into a weird issue with databinding the Text property of a combobox to a string property of a custom object. I was able to successfully bind the data when the DropDownStyle was ComboBoxStyle.DropDown. However, I need a read only combobox so I…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,848 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,357 questions
asked 2021-01-12T02:58:06.627+00:00
Neil Hamilton Jr 1 Reputation point
answered 2021-01-12T22:18:17.493+00:00
Neil Hamilton Jr 1 Reputation point
1 answer

Any function of Generic List of Anonymous

Hey folks , I need to do this but List is not considering the Anonymous type !! any idea how i can do this ? List<object> foo = new List<object>(); var bar = new { coder= "",designer=""}; …

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,357 questions
asked 2021-01-11T16:45:48.337+00:00
prasahant pathak 1 Reputation point
answered 2021-01-12T19:03:00.577+00:00
Mike Bowen 1,276 Reputation points Microsoft Employee
1 answer One of the answers was accepted by the question author.

HTTPS server setup

We have C# WPF application built on .Net Framework 4.5. We want to transfer a file to another device using the HTTPS protocol. We will have to upload the file to a server that is HTTPS enabled. I read a few articles and found that this can be achieved by…

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,357 questions
asked 2021-01-09T16:20:12.76+00:00
S Abijith 346 Reputation points
accepted 2021-01-12T13:35:52.03+00:00
S Abijith 346 Reputation points
2 answers

ASP.NET Framework Returning Large Response

I have an ASP.NET framework web application that processes documents and returns it in a template contract. It works fine for most file, but if the processed file is large, the response is too large to return. This is what we are returning: public…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,303 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,357 questions
asked 2021-01-08T20:03:10.81+00:00
Zaid Abu-Hijleh 1 Reputation point
commented 2021-01-12T07:29:44.957+00:00
Yijing Sun-MSFT 7,071 Reputation points
2 answers One of the answers was accepted by the question author.

What's the practical purpose of using constraint of class on the Repository Pattern

The primary issue I am facing with Repository Pattern as explained in the below tutorial article is the use of the constraint. This seems to work perfect for small projects, however on larger projects this is causing a headache. For example: Lets…

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,357 questions
asked 2021-01-10T21:37:42.27+00:00
Cool Relax 21 Reputation points
answered 2021-01-12T06:33:20.03+00:00
Duane Arnold 3,216 Reputation points
1 answer One of the answers was accepted by the question author.

Set active audio endpoint

I want to set the active audio endpoint/output device, in the best case process-/application-specific. I know roughly how to read out the endpoints using: EnumAudioEndpoints MMDeviceEnumerator ManagementObjectSearcher (SELECT * 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,357 questions
asked 2021-01-11T18:13:44.617+00:00
Marcel Lorenz 81 Reputation points
accepted 2021-01-12T00:33:52.91+00:00
Marcel Lorenz 81 Reputation points
2 answers One of the answers was accepted by the question author.

Microsoft .NET Framework

Hi All After run my project exe display Error: Best Regards.

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,357 questions
asked 2021-01-11T10:57:07.29+00:00
Abdulhakim M. Elrhumi 351 Reputation points
accepted 2021-01-11T18:49:22.943+00:00
Abdulhakim M. Elrhumi 351 Reputation points
0 answers

Toast Notification app

Hi, I would like to develop an app for toast notifications. On the web, there are many toast notifications template, but my intentions are to create those toast notifications using a form, so that a non-programmer users, can fill this form and send…

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,357 questions
asked 2021-01-09T10:10:27.027+00:00
maria delpiano 1 Reputation point
commented 2021-01-11T07:35:39.54+00:00
Roy Li - MSFT 32,466 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

C# language, Encryption and decryption

C # language, Is there an encryption algorithm that can increase the length of plaintext as well as the length of ciphertext, For example: plaintext 16 bits, ciphertext 32 bits, plaintext 17 bits, ciphertext 34 bits The following is my example, 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,357 questions
asked 2021-01-09T08:28:10.607+00:00
Afon.zhang 396 Reputation points
commented 2021-01-11T05:55:03.343+00:00
Afon.zhang 396 Reputation points
0 answers

C#.Net error how do I interpret it

I get this error below ,I am not sure how to interpret it . Any help would be appreciated. Server Error in '/' Application. Sequence contains no elements Description: An unhandled exception occurred during the execution of the current web request.…

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,357 questions
asked 2021-01-11T02:46:47.897+00:00
Rob merritt 6 Reputation points
commented 2021-01-11T04:40:23.003+00:00
Rob merritt 6 Reputation points
0 answers

Form uygulamsında dosya veya uygulama buldur(t)ma

Merhabalar. Oluşturduğum form uygulaması üzerinden yine kendi kodladığım bir uygulamayı yol belirtmeden açtırmak istiyorum. Kısacası yolunu bilmediğim uygulamanın yolunu buldurup o uygulamayı aç-tır-mak istiyorum. Teşekkür ederim.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,848 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,357 questions
asked 2021-01-09T08:05:01.083+00:00
Bilal Işık 1 Reputation point
commented 2021-01-11T01:24:51.72+00:00
Daniel Zhang-MSFT 9,621 Reputation points
2 answers One of the answers was accepted by the question author.

ToolTip show doesn't work in dialog for a pictureBox

Hello, I'm trying to set the tooltip with an autopopupdelay of 5000 and reshowdelay of 0 (for showing it permanently as long as the cursor is on the pictureBox). .Net 4 I can use the ToolTip.SetToolTip but when i use the show method…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,848 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,357 questions
asked 2021-01-10T15:16:04.273+00:00
youki 996 Reputation points
commented 2021-01-10T16:17:14.64+00:00
laurentcutey-3677 16 Reputation points
1 answer One of the answers was accepted by the question author.

Struct list

All, Firstly people may realise that I posted a similar question here https://learn.microsoft.com/en-us/answers/questions/223984/struct-inheritence.html As far as I can work out this is a separate issue. If it's the same issue then I've made a mistake.…

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,357 questions
asked 2021-01-08T20:43:34.367+00:00
AS 211 Reputation points
commented 2021-01-09T15:15:50.277+00:00
Bonnie DeWitt 811 Reputation points
2 answers One of the answers was accepted by the question author.

Change gridview padding left for all rows except the column header

Can i simply change it only for the header? (If the header text is bold, the row text is too much on the left side.) The following doesn't work: for (int i = 0; i < gvTitles.Rows.Count; i++) { gvTitles.Rows[i].DefaultCellStyle.Padding =…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,848 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,357 questions
asked 2021-01-09T00:46:42.067+00:00
youki 996 Reputation points
answered 2021-01-09T13:06:42.287+00:00
Abdulhakim M. Elrhumi 351 Reputation points
1 answer One of the answers was accepted by the question author.

Struct inheritence

All, I have a struct that I would like to define in a base class and access it from classes that inherit from it I've seen that I can't use protected with a struct. I would appreciate help with two questions: a) I think it is because Structs are…

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,357 questions
asked 2021-01-08T14:59:19.68+00:00
AS 211 Reputation points
commented 2021-01-08T19:18:42.227+00:00
Michael Taylor 49,071 Reputation points