Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
1 answer
142 views

I'm getting a Feature 'pattern matching' is not available in C# 4 error in my C# code. I'm using a large switch statement with multiple cases. switch (Name) { case string a when a.Contains("...
Rand alrand's user avatar
0 votes
1 answer
80 views

Currently I am working on a task where I need to generate access token for a user based on user credentials(emailaddress and password) and some Id (e.g: subscriptionId ). As per my research there is ...
Sachin Gaikwad's user avatar
0 votes
1 answer
427 views

Is it possible for serilog to send emails to pickup directory? I don't actually want to send emails right now it's just a POC. Thank you
David's user avatar
  • 5,557
0 votes
0 answers
62 views

I am trying to programically/dynamically create some user control, since there will be a variable number of display elements. The following code makes something that looks like this: This looks ...
mygrandclarity's user avatar
0 votes
2 answers
146 views

The function of the form is that if I put a number in the text box and click the add button, the label shows the number. Then, if I put another number in the text box and click the add button, the ...
subramaniyam vithyaban's user avatar
0 votes
1 answer
56 views

Here is my code getting the file from FileSelectFileInfo public FileSelectFileInfo selectedFile { get; set; } then if there is a selected file, i store it in the variable above private async Task ...
Josh's user avatar
  • 1
0 votes
1 answer
65 views

I have an app where the user would like to be able to enter a record for a client and then copy that record to another client. I'm picturing doing this after the record is created and saved. Perhaps ...
MelB's user avatar
  • 183
0 votes
1 answer
89 views

I have an image box in the C# form application and I want to clone that image when I press it.I tried this code but I didn't get any results private void pictureBox9_Click(object sender, EventArgs e) {...
Arif Şenel's user avatar
0 votes
1 answer
427 views

Getting an error while calling API from WCF service: "A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed ...
user24140580's user avatar
0 votes
0 answers
116 views

I required a help on JSON schema and JSON validation where We have a requirement to have multiple attributes (built-in and custom) for a property in C# and then serialize them into JSON schema. I am ...
Developer 's user avatar
0 votes
2 answers
259 views

I'm using safaridriver, included with Safari 17.3.1 (19617.2.4.11.12). I'm not having problems with the latest versions of Chrome, Edge or Firefox. I have a web page with just a textarea input. If I ...
user22916347's user avatar
0 votes
1 answer
43 views

Table col1 col1 col3 filepath1 filename1 modified date1 filepath1 filename1 modified date1 filepath1 filename1 modified date2 <- latest in duplicates in col1 filepath1 ...
Rao Sasipalli's user avatar
0 votes
0 answers
69 views

I want to apply a blurr effect to a specific geometry, inside WPF UIElement OnRender method. I have code like below. protected override void OnRender(DrawingContext drawingContext) { ...
hseki's user avatar
  • 23
0 votes
1 answer
94 views

I am writing Nunit test case for the below. Here the IDbContextTransaction is from the Microsoft.EntityFrameworkCore.Storage library. Here the argument of DeleteDataAsync transaction is beling passed ...
jubi's user avatar
  • 645
0 votes
0 answers
101 views

In our system, we have around 16 microservices that communicate seamlessly using events through a message broker. These microservices use gRPC as their endpoint communication protocol, with an ...
Ali Mohammadnezhad's user avatar
0 votes
0 answers
67 views

I work on asp.net MVC web application . i face issue on RequesterIndex action with type Post failed to cast user code to employee id . action Requester index with type post fire when failed cast and ...
ahmed abdelaziz's user avatar
-1 votes
1 answer
47 views

I want to subtract the qtyordered (8) from the list of items quantity. I have the given list below and Pen1 5 Pen2 6 Pen3 7 Pen4 8 I am expecting the output: Pen1 0 Pen2 3 Pen3 7 ...
Andi's user avatar
  • 43
1 vote
0 answers
262 views

I have the following function that plots an error bar. public void AddErrorBarsTwoSigma(string curveName, List<double> xValues, List<double> yValues, List<double> yErrors, ...
user366312's user avatar
  • 17.5k
0 votes
0 answers
137 views

Good evening fellow Samaritans I need the collaboration of the community, I have a collectionview which I update every 3 seconds, but I need it to maintain the scroll position it had before updating ...
Yoandry Castellanos's user avatar
0 votes
1 answer
140 views

We aspire to achieve encryption and decryption in a way that ensures the length of the encrypted result aligns with the length of the original data. How can this objective be accomplished in .NET code?...
Praveen Kumar's user avatar
0 votes
1 answer
175 views

I had trying my hands on creating a SSIS custom component to retrieve data from Salesforce. I having the custom connection manager project working and verified, and the custom source works and ...
Shaggy's user avatar
  • 259
0 votes
1 answer
36 views

I wrote a program in VBA a number of years that reads in files and builds a macro enabled spreadsheet. It works reasonably well. I am rewriting this code in C# with enhancements. The problem that I ...
Steve5785's user avatar
1 vote
0 answers
138 views

I write a service get data from club Strava for Running Club. I want show on dashboard with some infor like that: fullname, distance, moving_time, elapsed_time, time start tracklog, ... I call api api/...
caocuongccc's user avatar
0 votes
1 answer
285 views

One of my questions is closed due to insufficient information so I written another with detail. I want to write a blazor app in c# & .netCore plateform using Visual Studio 2022. Such app will be ...
Alamdar Khan's user avatar
0 votes
0 answers
63 views

Recently, I had changed my css font size from 0.875rem to 1rem. However, after I run the command yarn start for testing, it had changed back the font size to 0.875rem. Any idea how to solve it, else ...
BellBalloon123's user avatar
0 votes
1 answer
71 views

int bread = 0; DataTable dt = new DataTable(); DataRow dr ;` private void Form1_Load(object sender, EventArgs e) { dt.Columns.Add("Food"); dt.Columns.Add("...
Nitu's user avatar
  • 3
0 votes
1 answer
66 views

I want to refactor this code as Sonarqube showing as 'bidRelations.Where(x => x.Type == _appSettings.ResType).FirstOrDefault()' is null on at least one execution path. public new List<...
Roger's user avatar
  • 11
0 votes
0 answers
72 views

I am trying to build a database management system for legal department of a company using C# and ASP.net and SQL server this is the load record method of the Case.aspx.cs used to load the gridview ...
Ahmed's user avatar
  • 1
0 votes
1 answer
611 views

I am new to Unity and C#, most of my experience is in Python. I need to store some data. For the sake of the discussion, let's imagine it looks like (and no, it does not look like json here, I am ...
Sam's user avatar
  • 157
2 votes
1 answer
410 views

I am creating backend service that is supposed to subscribe to Microsoft Graph API and receive notification whenever there is a new meeting scheduled in one of our meeting rooms. I am getting all ...
david sery's user avatar
0 votes
1 answer
40 views

I have the following code running as it should (albeit not special), but I'm trying to make the number of columns defined to be variable. Ideally, this would be done right here in the class. Is ...
ng80092b's user avatar
  • 677
0 votes
2 answers
311 views

class FieldType { string Id {get; set;} string dataType {get;set;} } class Field { int fId{get;set;} string fName{get;set;} FieldType fType{get;set;} string data; } class ...
Abhishek Kumar's user avatar
0 votes
1 answer
67 views

I have a GroupBox, and inside that GroupBox is a Panel with properties: .AutoSize = false .AutoScroll = true .Dock = Fill .AutoSizeMode = GrowAndShrink I create controls in that (Scroll)Panel at ...
V.Kirsch's user avatar
-1 votes
2 answers
92 views

How to matches the string in a sentence with the array list string Input - Machine Name is server1.domain.com ArrayList of string - server1.domain.com, server2.domain.com, server3.domain.com I want to ...
Earth's user avatar
  • 3,591
0 votes
1 answer
62 views

To learn databinding I have a test-project with copied example code. I have a test class with some properties and on a form I have some textboxes, that should be two-way bound to the class properties: ...
DataSalad's user avatar
-1 votes
2 answers
66 views

i am working with a project and facing a glitch i have a list of string values and have one class object and want to insert data to that object based on the list of string values. I am facing index ...
varun 's user avatar
  • 73
0 votes
1 answer
78 views

I have the list string with some tags is defined, I want to count how many total element in each tag. <L1 //2 element <L1 //1 element <H1 content> > <L1 //3 element <H2 ...
Headshot's user avatar
  • 452
0 votes
0 answers
113 views

I have to put a WPF C# application in an old winform hmi. The wpf application must be contained in a panel. To do this, I create a new wpf application process and use the SetParent function to "...
Lenns's user avatar
  • 1
-1 votes
1 answer
53 views

PS C:\Windows\System32> dotnet new console Template "Console App" could not be created. Failed to create template. Details: Error while processing file /content/ConsoleApplication-CSharp/...
Lakpa chhiring Titung's user avatar
0 votes
1 answer
1k views

I am writing with a request here, and It would be great if someone can share your thoughts about it from your experience. Scenario - Consider we have a node as part of an AKS cluster and there are ...
AshwinGandla's user avatar
0 votes
0 answers
38 views

i am presently working on an API to create form data. however one of the fields is Multiselect with options. MY model looks like this public record createAdmissionDto { public string Username { ...
GIS Support EEDC's user avatar
1 vote
1 answer
741 views

I have one UWP application in which I am trying to detect if microphone is used by any application or not. Here is the code to get the microphone from my system. namespace CallDetector { public ...
Smit Rathod's user avatar
0 votes
1 answer
1k views

I have a dll that uses .NET Framework 4.0 and DirectX and works and debugs fine in Visual Studio 2019. When I ported over to VS2022 DirectX no longer worked and the dll wouldn't load. I had to change ...
TedG's user avatar
  • 11
0 votes
0 answers
103 views

I have a winform application, with multiple dockable forms. In one of the dockable forms, i am seeing a resize issue of the content (described below), the document outline of which is as follows: ...
Pankaj_Sen's user avatar
1 vote
2 answers
58 views

Here's the object graph public class Dto { public List<OrderTypeA> AOrders {get;set;} public List<OrderTypeB> BOrders {get;set;} } public class OrderTypeA { public string ...
Auroops's user avatar
  • 43
1 vote
0 answers
30 views

it is not a problem , more of enhance. i wrote this to control auto resizing controllers on windows forms form but when maximizing, the gaps at height are grater that the ratio between old height and ...
Mo Mo's user avatar
  • 31
0 votes
1 answer
128 views

I'm working on a C# project that only accept Amharic language from the user and I want to use regular expression to evaluate the input. This is the function that I found that works for Latin words. I ...
Biruk Jeldu's user avatar
0 votes
1 answer
38 views

There is a class Employee, defined below: class Employee { public int Id { get; set; } public string Name { get; set; } public string Address { get; set; } } and I need to fill in the ...
Mayank Gupta's user avatar
0 votes
1 answer
189 views

I have 6 DataTemplate for this API. API is a enum. public enum ShimmerType { CirclePersona, SquarePersona, Profile, Article, Video, Feed, Shopping, } API name is Type. I ...
Budding bro's user avatar
0 votes
1 answer
104 views

so I am relatively new to the C#/WPF techstack. I created a WPF program but sometimes the main window takes a bit to load and I am trying to add a loading window with progress bar but the UI is not ...
Maspochji's user avatar

1
2 3 4 5
512