Command Line Parameter trailing backlash problem

I am currently working on a small console application which takes in a path name via the Command Line Parameters, parses the given path, and produces an XML file listing each folder and file. I am running the application as a Post Build event in Visual Studio, passing in the $(TargetDir) macro as; "c:Program FilesCreateUpdateXMLCreateUpdateXML.exe" [...]

By |2012-09-25T11:23:00+01:00September 25th, 2012|Bugs, File Access, VB.net, Visual Studio|0 Comments

WPF MVVM DataGrid Column Collection Binding

In my efforts to “MVVM-ify” my WPF application as much as possible, I ran into the need to Data Bind the Columns Collection of a DataGrid. After some searching on StackOverflow, I found a neat solution by David Osborn; http://stackoverflow.com/questions/3065758/wpf-mvvm-datagrid-dynamic-columns This solution was in C#, so I converted it to VB; [fusion_builder_container hundred_percent="yes" overflow="visible"][fusion_builder_row][fusion_builder_column type="1_1" [...]

By |2017-07-24T08:33:19+01:00September 24th, 2012|MVVM, VB.net, WPF|0 Comments

MVVM: Binding a Linq Query result to a DataGrids’ ItemSource doesn’t update the UI

While creating Desktop Applications using WPF, I always employ the MVVM model if I can. This model is not only great at developing testable n-tier applications, but of course is also highly recommended by Microsoft. However, as with most software development, there are nearly always specific methods to employ for certain processes and functions. One [...]

By |2017-07-24T08:33:19+01:00September 21st, 2012|Data, MVVM, VB.net, Visual Studio|0 Comments

Free FAT Calculator Online

In a couple of previous Blog’s I’ve described the FAT16 and FAT32 File Systems, and how to calculate the various elements. I’ve created a small Windows application to help you with finding the various elements. Feel free to download it here… https://pjgcreations.co.uk/FAT_Calculator_v1.zip It will calculate all the elements I’ve discussed in my previous blogs, as [...]

By |2017-07-24T08:33:19+01:00March 20th, 2011|Embedded C, FAT, File Access, SD Cards, VB.net|0 Comments

SQL Server – Formatting Numbers as Strings with Leading Zero’s

Sometimes it’s necessary to format numbers as Strings with leading zero’s. One such example is when we sort a list in Excel, Excel will sort the numbers as 0,1,10,2,20,3,30,….. So, to get round this, we simply append a leading 0 to the number. This is achieved in T-SQL by using the RIGHT instruction with following [...]

By |2011-03-03T12:46:00+00:00March 3rd, 2011|Data, Excel, SQL Server, VB.net|0 Comments