Skip to main content

Posts

Locked

Her heart was locked Without his touch, his kiss, his embrace She was lost, her world was black – Wade Brooks, Locked Remembering a time when my world was black and my heart was locked. The image is from a recent walk around Lake Crabtree park. Cheers, Wade

Matrix Rain Window

  I wanted a small application that would show a Matrix like rain window, so I converted C# code (link below) to VB.NET (links below). Original C# Code is here: http://www.codeproject.com/Articles/113227/Matrix-Rain My VB.Net Source Code: https://drive.google.com/open?id=0BxXnsiUlViylWkhTQ2dtclkwTFE My created executable file is here: https://drive.google.com/open?id=0BxXnsiUlViylU25KaG44NUpfTnc

Adding a Missing Icon to Program and Features for a Click Once install, VB.NET

  Click once is a great way to install win form applications within your organization. One issue I discovered recently is that the installed application’s icon does not appear in the Add/Remove programs (or Program and Features) dialog screen. This does not look very professional. Searching the internet I found a work around here (this has both C# and VB.Net examples): https://goo.gl/MpjXev I made a few changes to the VB.Net code which I share below. A few issues I found that you should keep in mind: Icon file should be set to Copy Always for the property Copy to Output Directory Make sure your display name and product name match exactly as these are compared. Icon is only updated on the first run of the application after install, so if you’re testing this code you will need to un-install before the next test/install. Here’s my code, you will need to replace the  calendar.ico  text with your icon file and add the imports. Imports System.Deployment.Application Impo...

Settings in C# and other lessons learned while converting from VB.Net

  I started converting some of my VB.Net code to C# and have learned a few things. Reading settings was my first stumbling block as there was a lot of incorrect information on the internet. I did finally get it to work and will summarize here. I have a small application that loads engineering data into a SQL database. The files are basic text files with either XML or comma separated values. I store a few variables, such as path, file type, etc, in the app.config file. In VB it is simple to pull this info: Path = My.Settings.Folder In C#, the code is a little different. Here is my final working code for the above example:  Path = [NameSpace].[AppName].Properties.Settings.Default.Folder; For me, using the This keyword did not work. I have also been using this website to convert each Method from VB to C# and have found it very helpful: http://converter.telerik.com/ A couple of other items that tripped me up are all arrays need brackets, instead of parentheses. Also when...