Top ".net" questions

Do NOT use for questions about .NET Core - use [.net-core] instead.

Nuget connection attempt failed "Unable to load the service index for source"

While trying to connect to Nuget, getting the error below and then I am unable to connect: [nuget.org] Unable …

.net visual-studio nuget
How to automatically select all text on focus in WPF TextBox?

If I call SelectAll from a GotFocus event handler, it doesn't work with the mouse - the selection disappears as …

.net wpf silverlight textbox
Winforms TableLayoutPanel adding rows programmatically

I've been fighting with this for a while, and have found that a number of other people struggle with the …

c# .net winforms runtime tablelayoutpanel
ITextSharp HTML to PDF?

I'd like to know if ITextSharp has the capability of converting HTML to PDF. Everything I will convert will just …

.net itextsharp html-to-pdf
How do I create/edit a Manifest file?

I have this code from a coworker (probably got it from the web somewhere) but he's out on vacation and …

c# .net visual-studio-2010 visual-studio-2008 manifest
What does "yield break;" do in C#?

I have seen this syntax in MSDN: yield break, but I don't know what it does. Does anyone know?

c# .net yield
What is the difference between 'protected' and 'protected internal'?

Can someone please explain the difference between the protected and protected internal modifiers in C#? It looks like their behavior …

c# .net access-modifiers
Sorting Directory.GetFiles()

System.IO.Directory.GetFiles() returns a string[]. What is the default sort order for the returned values? I'm assuming by …

.net .net-2.0
Set focus on textbox in WPF

How to set the focus on an TextBox element in WPF I have this code: txtCompanyID.Focusable = true; txtCompanyID.Focus(); ...…

c# .net wpf textbox focus
Importing Excel into a DataTable Quickly

I am trying to read an Excel file into a list of Data.DataTable, although with my current method it …

c# .net excel office-interop