Archive

Archive for the ‘C#’ Category

How to Use the Progress Bar in VB.NET and C#

August 31st, 2009 2 comments

The progress bar is one of those universal objects that everyone recognizes, it’s useful when doing a large or long task. For example, if your updating/deleting/copying a bunch of files you can update the progress bar as you modify each file. Read more…

Categories: C#, Uncategorized, VB.NET Tags: , , ,

How to Center A Form in VB.NET and C#

August 30th, 2009 1 comment

I’ve often found it necessary to center a form on my screen using the pure code, but it’s not as easy as Me.center in Visual Basic or this.center() in C# so I wrote some code to work around that. Using the code below you can center you application on your monitor in just 3 lines of code using either VB.NET or C#. Read more…

Categories: C#, VB.NET Tags: , , ,

How to Shutdown, Restart, Log off your computer with VB.NET or C#

August 27th, 2009 3 comments

This is extremely easy using VB.NET or C# (pronounced C sharp) and the built in windows EXE file shutdown.exe. To shutdown, restart, or log off your computer is as simple as entering 1 line into your program, it just so happens that the 1 line is identical whether you’re using VB.NET or C#. Read more…