General

How to use User Controls to create MDI WinForm Applications

How to use User Controls to create MDI WinForm Applications

User Controls are commonly used in ASP.NET web sites. Their main idea is to bundle a set of controls (buttons, text fields, textareas, etc) and form a new and more complex control. That could be useful in the case that we want to use the same set of controls and functionality across a number of pages in a site. This tutorial will demonstrate how we can make use of User Controls in WinForm applications to create a Multiple Document Interface (MDI in short). In general, an application can either have a Multiple Document Interface or a Single Document Interface. Their definition and main difference is stated below: Graphical computer applications with a multiple document interface (MDI) are those whose windows reside under a single parent window (usually with the exception of modal windows), as opposed to all windows being separate from each other (single document interface). Further reading on their definition and differences you can find on Wikipedia and on the MSDN Library. In a typical WinForm application or any desktop application, each Window Form represents distinct functionality and serves a specific task. Therefore, we can conclude that we will create separate Forms for each task. The advantage is obvious as each task is ‘grouped’ or to phrase it better is encapsulated within each Form. The disadvantage of such implementation is that our users will have to cope with an application that has numerous windows appearing and disappearing on their desktop and let me share with your a little secret: Most users cannot cope with multiple windows open. They tend to maximize the one that they are currently working with and minimize it to find the next one they need.  We may use multi-tasking operating systems but our users are mainly single-task beings. This tutorial will demonstrate how we can make use of UserControls to encapsulate the presentation and functionality of each application task. Our application will have one central/main winform that will load the contents of each UserControl depending on the user selection from the application pull-down menu items. Project Creation Let’s kickstart this tutorial by creating a brand-new project in Visual Studio. We select File/New/Project… and select the “Windows Form Application” project template as shown below. I have named the project as ‘UCApplication’. Customize Skeleton Project The next step is to customize the skeleton project that Visual Studio has created for us. By default Visual Studio has created a single WinForm...

read more

Setup a Development Environment for Your WordPress Site

Setup a Development Environment for Your WordPress Site

How many times you have stumbled upon a theme or a plug-in that you want to test on your site? WordPress does not offer a preview feature so the only option is to make it live which should not be the prefered (and only) option while testing or in general experimenting with new features.

In this article, we will investigate how we can setup a copy of our WordPress powered site on a local machine will serve as a development and test environment.

read more

How to use MSN (Windows Live) Messenger without a Hotmail or Live account

How to use MSN (Windows Live) Messenger without a Hotmail or Live account

If you don’t have (or don’t want to use) a Hotmail or Live account and you want to use MSN Messenger follow the instructions below: Navigate to the Windows Live ID page. Under the Sign up today header and subsection“Use an e-mail address you already have” section, click the Get started now link (it should be the second one). Enter your personal details. Click next, type in you email again and click accept. You should now have an email on the inbox of your email account to validation the account. Use the email address and specified password from step 3 to authenticate into MSN Messenger or Windows Live Messenger (as it is called these...

read more

Checking For Hard Disk Errors

Checking For Hard Disk Errors

In Windows, you can scan the computer’s hard disks for errors (bad sectors) by right-clicking on the hard disk icon from My Computer and selecting Properties. Under Tools, press the Check Now button. The disadvantage of this tool is that you receive no information on what it is doing and it does not produce a report on the status of your hard disk. There is an alternative method of checking the status of your hard disks with actual reporting. From the Start button press Run…, type cmd and press enter. This will bring-up the console and type: chkdsk C: /f /v /r /x where C should be replaced with the letter of your hard disk which can be found in My Computer. Depending on the size of the hard disk, the check may take a while. If the system is using the hard disk in question, then it will suggest to schedule the check for the first time that you restart the...

read more

Setting up Eclipse for PHP

The pursue of a PHP editor is not a easy one. Over the years, I have tried a variety of editors. Some of them were generic text editors, like Notepad, VI, Pico, Textpad, KEDit, XCode and some dedicated PHP editors like Zend and PHPEdit. I needed a PHP editor that I could use on my Mac mini and my PC computer at work. I couldn’t find one that was meeting all my needs. Zend editor is a good choice but it is expensive and slow. Hence, PHPEclipse.

read more