by ds | Jul 17, 2013 | C# .Net
These exceptions are hardly reproducable if they only appear at the customer’s workstation who cannot explain exactly what they did to get this message – and if it is quite a large project. Long story short – Don’t forget to dispose controls...
by ds | May 21, 2013 | C# .Net
Scenario: Basically, most developers publish their projects separately for x86 and x64 platforms. This can lead to problems if the user installs the x86 version on an x64 OS; the software might not work because of driver problems, wrong 3rd party DLL references with...
by ds | May 21, 2013 | C# .Net
This error can e.g. happen in combination with Infragistics NetAdvantage product. In my case, previously I had added some NetAdvantage controls to a Visual Studio C# project and deleted them afterwards, including the references. The project compiled without problems,...
by ds | May 8, 2013 | C# .Net
UPDATE: Please have a look at the additional notes at the bottom! With Dotfuscator, coming with Visual Studio Professional, you can protect your code against reverse-engineering (i.e. at least make it very hard to read). But, if you are using Visual Studio Setup...
by ds | May 2, 2013 | C# .Net
In your installer class of the service itself, use the event AfterInstall to start the service. After setup has finished, the service will start. public ProjectInstaller() { InitializeComponent(); AfterInstall += new InstallEventHandler(ProjectInstaller_AfterInstall);...
by ds | Apr 19, 2013 | C# .Net
If you set a DataGridView’s property EditMode to EditOnEnter, it is hard to find a way to delete the whole row. Workaround: private void dataGridView_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex < 0) { dataGridView.EditMode =...