Get single listView SelectedItem

Usually SelectedItems returns either a collection, an array or an IQueryable. Either way you can access items via the index as with an array: By the way, you can save an item you want to look at into a variable, and check its structure in the locals after setting a breakpoint.

How to make an installer for my C# application?

Add a new install project to your solution. Add targets from all projects you want to be installed. Configure pre-requirements and choose “Check for .NET 3.5 and SQL Express” option. Choose the location from where missing components must be installed. Configure your installer settings – company name, version, copyright, etc. Build and go!

Playing a MP3 file in a WinForm application

The link below, gives a very good tutorial, about playing mp3 files from a windows form with c#: http://www.daniweb.com/software-development/csharp/threads/292695/playing-mp3-in-c This link will lead you to a topic, which contains a lot information about how to play an mp3 song, using Windows forms. It also contains a lot of other projects, trying to achieve the same … Read more

c# Show Windows Form

This creates a new instance of type Form: Which, of course, is a blank form. It would appear that your type is called frmLogin. Normally this sounds like a variable name and not a class name, but the error you’re getting here tells me that it’s a class: Given that, then the quickest way to … Read more

tech