10,277 questions with C#-related tags

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

How to properly export excel data to a listview using epplus?

I'm trying to export data from a .xlsx file to a Listview control where the date of the "Due Date" column falls between today's date and the next 10 days from today and below is my code (I'm using EPPlus library for excel file stuff): using…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,835 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,277 questions
asked 2021-12-27T03:53:58.79+00:00
don bradman 621 Reputation points
accepted 2021-12-29T15:23:20.917+00:00
don bradman 621 Reputation points
1 answer One of the answers was accepted by the question author.

Importing filtered excel data to a dgv using epplus & c#.

I've got a spreadsheet with 6 columns in the order "Party, Bill No., Bill Date, Amount, Due date, Remarks". I'm trying to filter data from this excel where the column Party is filtered by text in textbox & Remarks is blank and then add the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,835 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,277 questions
asked 2021-12-29T13:08:42.21+00:00
don bradman 621 Reputation points
accepted 2021-12-29T15:21:48.763+00:00
don bradman 621 Reputation points
1 answer One of the answers was accepted by the question author.

Does a unit text need a Main( )

Dear All, I am a C# beginner. I copy from YouTUBE (https://www.youtube.com/watch?v=HYrXogLj7vg), it shows an error "Program does not contain a static 'Main' method suitable for an entry point". My question is does a unit text need 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,277 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
329 questions
asked 2021-12-28T10:53:29.703+00:00
BenTam 1,561 Reputation points
accepted 2021-12-29T13:56:22.123+00:00
BenTam 1,561 Reputation points
1 answer One of the answers was accepted by the question author.

Convert multiple files in at a time in c#

First Of all :- I have listbox and button , I want to Drap 4 files in listbox and convert it at a time like batch converter. Code // FFMpegConverter converter = new FFMpegConverter();

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,277 questions
asked 2021-12-26T19:54:09.537+00:00
Kailash Sahu 141 Reputation points
commented 2021-12-29T13:37:03.597+00:00
Kailash Sahu 141 Reputation points
1 answer

Slowness in using printersettings.DefaultPageSettings

The application which is running as windows service is used for printing. If I use the Logon as "Local system account" then the below lines of code is taking more time which results in significant delay in printing. If use the Log On as domain…

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,277 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,274 questions
asked 2021-12-22T15:50:12.913+00:00
Sevanthalingam, Vivek 11 Reputation points
answered 2021-12-29T10:00:05.797+00:00
Limitless Technology 39,371 Reputation points
1 answer One of the answers was accepted by the question author.

Running Selenium Headless Tests on Outlook shows older version of outlook on Edge chromium browser

When I run selenium headless tests on outlook , the outlook UI chosen is an different version than running test in an non-headless mode in outlook using selenium c#. I also ran the test using chrome headless mode but it didn't attach the screen shot for…

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,144 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,277 questions
asked 2021-12-08T05:15:57.18+00:00
Manikandan Suresh 21 Reputation points
commented 2021-12-29T09:35:34.987+00:00
Yu Zhou-MSFT 12,071 Reputation points Microsoft Vendor
0 answers

Stream audio from server to client

Hi Would like some advice on how can I stream audio from the server to the client. It has to be ad hoc, for example, if the youtube or any audio is played on the server, the client should be able to hear the audio from the client pc. Any examples 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,277 questions
asked 2021-12-29T01:59:33.247+00:00
Kalpana 286 Reputation points
commented 2021-12-29T08:00:38.45+00:00
Jack J Jun 24,296 Reputation points Microsoft Vendor
0 answers

Xamarin IOs IPA with Distribution ProvProfile failed

Hi, I'm working using Xamarin Forms 5.0.0.2012. The main problem is when I signed the IPA file with a distribution ProvProfile, nothing's work but show the app run and show the first screen. When I run in development mode, everything working coool. I…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 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,277 questions
asked 2021-12-28T00:57:01.803+00:00
Juan Zamora 1 Reputation point
commented 2021-12-29T06:06:12.48+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,446 Reputation points Microsoft Vendor
2 answers

Visual Studio 2019 taking longer time to build and debug unit tests

I am using visual studio 2019 enterprise version 16.11.3. I am facing few issues like loading the solutions are taking more time than expected and while building the solutions normally it will take 20-30 minutes for building but it took 3 hours for me…

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,277 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
945 questions
asked 2021-12-23T06:41:50.577+00:00
RAJAGOPAL Siva P 1 Reputation point
commented 2021-12-29T05:12:25.713+00:00
RAJAGOPAL Siva P 1 Reputation point
0 answers

How to fill and submit form

How do you programmatically select the date range and click on the download button in an app online?

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,277 questions
asked 2021-12-28T20:25:51.97+00:00
MikeY1975 41 Reputation points
commented 2021-12-29T02:30:15+00:00
Jack J Jun 24,296 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

What are the alternatives to Pos for .Net on .NET 6?

Unless I am wrong, it doesn't seem that .NET 6 supports POS for .NET. What are the alternatives to Pot for .NET,? It's unfortunate because I am developing a desktop app using WPF with .NET 6 and now I may have to downgrade to .NET framework

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,676 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,277 questions
Windows Hardware Performance
Windows Hardware Performance
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Hardware Performance: Delivering / providing hardware or hardware systems or adjusting / adapting hardware or hardware systems.
1,546 questions
asked 2021-12-27T20:53:46.927+00:00
JohnMartel 41 Reputation points
commented 2021-12-28T18:03:26.14+00:00
JohnMartel 41 Reputation points
1 answer

Assigning a cell value (dynamic url?) to NavigateUrl in GridView. Or making relative value/address - clickable/transfarable to sub-page

GridView allows to create a virtual HyperLinkField column that converts another column assigned to it, (and its cell values) into hyperlinks, but to NavigateUrl must be assigned a "predetermined" url address - however, in my case hyperlink (as…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,272 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,277 questions
Access Development
Access Development
Access: A family of Microsoft relational database management systems designed for ease of use.Development: The process of researching, productizing, and refining new or existing technologies.
823 questions
asked 2021-11-14T16:07:45.077+00:00
Eni Nede 21 Reputation points
commented 2021-12-28T14:48:23.217+00:00
Eni Nede 21 Reputation points
1 answer One of the answers was accepted by the question author.

Getting Error while passing session login page to master page in asp.net C#

I am Getting Error while passing session login page to master page in asp.net C#. i am using session in login page. when i am passing the same session value in master page, the value will not be triggering in master page. I am getting error…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,272 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,277 questions
asked 2021-12-28T03:55:25.62+00:00
Gani_tpt 1,546 Reputation points
accepted 2021-12-28T10:41:14.293+00:00
Gani_tpt 1,546 Reputation points
2 answers

What cause the difference in the Toolbox?

Dear All, When I include an existing project 'ObjectListView2012' to solutions, for some solutions there shows a choice 'ListViewCustom' (left side picture), for other solutions the is no 'ListViewCustom' (right side picture). What makes 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,277 questions
asked 2021-12-18T05:20:12.937+00:00
BenTam 1,561 Reputation points
commented 2021-12-28T06:56:47.857+00:00
BenTam 1,561 Reputation points
4 answers

Error while serializing

I have an error while this line is running XmlSerializer serializer = new XmlSerializer(typeof(Invoice)); Error text: invalidoperationexception you need to add xmlchoiceidentifierattribute in member TaxPointDate on lines: …

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,277 questions
asked 2021-12-02T10:11:18.27+00:00
Rinaldo 396 Reputation points
commented 2021-12-28T06:24:47.583+00:00
Jack J Jun 24,296 Reputation points Microsoft Vendor
0 answers

.NET Published App Crashes while calling Activex DLL method, works in Debug

Hi, We are building an integration with QuickBooks desktop (2021 Pro). Following their documentation, we added a reference to their ActiveX dll (Interop.QBFC15). Everything works well in debug, and even if you build a release and run it directly (without…

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,277 questions
asked 2021-12-26T05:02:02.927+00:00
Anvaya Tech 1 Reputation point
commented 2021-12-28T05:44:57.473+00:00
Jack J Jun 24,296 Reputation points Microsoft Vendor
0 answers

How can I save and load timer counter time ? I saved it wrong and now it's starting counting wrong.

At the top of the form : I'm not sure if I should set the seconds to 0 at the top or to 10800 because I want it to count back 3 hours. private int _elapsedSeconds = 10800; Then in form1 constructor : TimeToDownload(lblNextDownloadRadar); The…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,835 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,277 questions
asked 2021-12-27T19:38:50.747+00:00
rhodanny 166 Reputation points
commented 2021-12-27T20:33:41.22+00:00
Karen Payne MVP 35,036 Reputation points
3 answers One of the answers was accepted by the question author.

join a PDF to multiple PDFs with c#

How about guys I need your help to program an application in c #. I have a folder that is constantly fed with documents and we must always add them manually, something that is complicated by the large number of files so I wanted to program something that…

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,277 questions
asked 2021-12-10T21:33:50.687+00:00
Omar Veloz 41 Reputation points
commented 2021-12-27T18:57:42.163+00:00
Omar Veloz 41 Reputation points
2 answers

Upgrading to .net 6.0 timer issue

I have upgraded my .net framework 4.7.2 project to .net6.0 using upgrade assistant after successfully upgrading I have rebuild and installed service in system I have created timer after each interval it writes to logfile when I stop service it stopped…

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,277 questions
asked 2021-12-24T13:36:30.667+00:00
Sachi 221 Reputation points
commented 2021-12-27T17:01:56.953+00:00
Karen Payne MVP 35,036 Reputation points
2 answers One of the answers was accepted by the question author.

UpLoad pdf,tif, in filestream

Hi, I've created a database with filestream to upload the file pdf, TIF and another format (>50000 files). To upload one image we can do the code below SELECT @img = CAST(bulkcolumn AS VARBINARY(MAX)) FROM OPENROWSET( BULK 'C:\image.jpg',…

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,756 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,277 questions
asked 2021-12-27T11:18:22.02+00:00
sblb 1,166 Reputation points
commented 2021-12-27T16:42:40.92+00:00
Ronen Ariely 15,096 Reputation points