ExtensionToPropertySheetSample & Unable to get installer types

I am currently researching possible scenarios for extending ADUC property pages with .NET. I have started with the ExtensionToPropertySheetSample, shipped with (probably) with VS2005 or VS2008 (I’m not sure how it made to my dev box 😉 ), located by default in the C:Program FilesMicrosoft SDKsWindowsv6.0SamplesSysMgmtMMC3.0 After quick change in …

Non-existent, not used project reference causes error in WinForms VS designer

Today I was struck by another „self-explanatory” 😛 Visual Studio exception: The path is not of a legal form. Hide at System.IO.Path.NormalizePathFast(String path, Boolean fullCheck) at System.IO.Path.GetFullPathInternal(String path) at System.Reflection.AssemblyName.GetAssemblyName(String assemblyFile) at Microsoft.VisualStudio.Design.VSTypeResolutionService.AddProjectDependencies(Project project) at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.get_Assembly() at Microsoft.VisualStudio.Design.VSTypeResolutionService.AssemblyEntry.Search(String fullName, String typeName, Boolean ignoreTypeCase, Assembly& assembly, tring description) at Microsoft.VisualStudio.Design.VSTypeResolutionService.SearchProjectEntries(AssemblyName assemblyName, …

2 Synchornized TreeView controls

There are business scenarios that need to keep two separate TreeView controls synced, one of them can be content comparison. I was surprised that creating a form with two TreeView controls with synchronised Expand/Collapse and Scroll actions cannot be done without P/Invoke. Here a complete solution. This article does not …

Visual Studio null’s properties at design time

It always pisses me off when VS sets custom properties of UserControl to null, at design time. Properties that should not be null, that in turn breaks design view of my Custom Controls. It you do not put any assertions on property set, you’ll get all-informative „Null reference exception”. Now …

Deisgn-time error – DataSource property on BindingSource

Today I have beed cursing VS2005 for it’s stupidity and lack of error descriptions, it showed me a very informative message box: An unexpected error has occured. Object reference not set to an instance of an object. … they could added a nice icon of „the finger”. I tryed to …

System.IndexOutOfRangeException: Index -1 does not have a value

I had encountered a strange error in my winforms .NET application, when I entered a form and clicked a GridView bound to a IList<T> collection: System.IndexOutOfRangeException: Index -1 does not have a value. at System.Windows.Forms.CurrencyManager.get_Item(Int32 index) at System.Windows.Forms.CurrencyManager.get_Current() at System.Windows.Forms.DataGridView.DataGridViewDataConnection.OnRowEnter(DataGridViewCellEventArgs e) at System.Windows.Forms.DataGridView.OnRowEnter(DataGridViewCell& dataGridViewCell, Int32 columnIndex, Int32 rowIndex, Boolean canCreateNewRow, …

Back to Top