Skip to content

Brian Cline

Solution Architect skilled in Salesforce, NetSuite and JavaScript Development

  • About
  • Resume
  • JavaScript
  • Salesforce
  • Contact
  • Articles
  • About
  • Resume
  • JavaScript
  • Salesforce
  • Contact
  • Articles

Category: .NET Framework

CSV Parser

June 16, 2011Brian Cline.NET Framework, C#.NETc#, CSV, Data Importing, Parsing

For some of my work, I work on data importers and other different tasks which require dealing with CSV and tab delimited files which can often be very challenging to parse. I was sick of rolling my own csv/tab delimted parser, so I went ahead and found one that worked very well on CodeProject simply…

Read More

try..catch Usage – Unused Variable Warning

May 11, 2011Brian Cline.NET Framework, C#.NET

Elminating the unused variable warning for a declaration in the catch block is very easy because you don’t need to assign to a variable. See the below code for an example. try { doSomething(); }catch (Exception) { logError(); } Note: you should always log an exception if it isn’t expected. For example, for any IO…

Read More

Stopping a System.Threading.Timer

May 3, 2011Brian Cline.NET Framework, C#.NET, ProgrammingSystem.Threading.Timer

Stopping a System.Threading.Timer isn’t very well covered in the MSDN documentation. We need to use the Change Method which accepts two integers. Please note that it is possible that a few callbacks can be potentially queued and called after you have stopped the timer. This is because the callback of the System.Threading.Timer uses worker threads.…

Read More

Run a Single Instance of An Application (.NET)

March 25, 2011Brian Cline1 Comment.NET Framework, C#.NET, Programming

Occasionally, as a software developer you want to restrict a user to only allow them to run one instance of an application on their machine. The reasons why vary dramatically, but often it is because it could make large system changes, maybe their is some business reason, or perhaps it just doesn’t make sense. Restricting…

Read More

How to Minimize Application to Tray

March 18, 2011Brian Cline1 Comment.NET Framework, C#.NETIcon, Minimize, Resize, Tray, Tray Notification, WindowState

I’m not sure how many times I have been someone ask for help on the MSDN forums, email me, or come over and ask me in the case of coworkers. The steps to have an application minimized to tray are very simple. Create .NET Windows Application. Create .NET application. Add Tray Notifcation Icon to Windows…

Read More

Subversion On Windows?!

March 10, 2011Brian Cline1 Comment.NET Framework, Programming, VB6, WindowsAnksvn, SourceSafe, Subversion, svn, VsTortoise

It’s no secret that I have been contact almost daily by Technical Recruiters , often the job advertisements that the technical recruiters have been sending me include a requirement for Microsoft SourceSafe experience. I often wonder a company would choose SourceSafe to manage their code as it doesn’t really do a good job: the only…

Read More

Determine if Skype is Installed

May 25, 2010Brian Cline.NET Framework, C#.NET, Programmingc#.net, Programming, Registry, skype, Skype4Com, Windows

The easiest method of checking whether Skype is installed is actually to check for a Registry Key. We, of course, can’t check C:Program Files for a Skype Directory because the user could have installed elsewhere (or maybe if 64 bit the operating system did?) Skype’s API Document provides us with the following information: To check…

Read More

Books I’ve Read

September 8, 2009Brian Cline.NET Framework, asp.net, C#.NET, Excel, Experience, Programming

Sometimes, when I have applied for full time employment in the past I have seen job ads or received responses from companies asking what books I’ve read. Nearly every time, I have heard this question I was so shocked because I didn’t ever keep track of what I had read or where I had gleamed…

Read More

Sending Emails from C#.NET

August 5, 2009Brian Cline.NET Framework, C#.NET, Programming.net emailer, c#, email, plaintext email, smtp server, System.Net.Mail, windows form

Emails are incredibly easy to send from .NET especially your typical plaintext email. We will be making use of the System.Net.Mail namespace along with an smtp server you should already have setup or you could use a free one like Gmail.

How To Stop A .NET Form from Closing

July 10, 2009Brian Cline.NET Framework, C#.NET, Programming, VB.NET

How to stop a form from closing in the .NET Framework

Developed by Think Up Themes Ltd. Powered by WordPress.