Wednesday, September 12, 2012

Web Designing Guidelines Tips and Tricks

Web designing is a tricky business. It's a big market where lot of people day by day entering in to the profession. To survive the designer has to unique in what he or she designs. 

There are thousands of articles focusing on web designing therefore it is hard to find good set of rules to follow to be a great designer. Following are some of the articles which I find useful for web designing. 





Tuesday, September 4, 2012

User Input Handling in Windows Phone 7

In this tutorial we'll look at how to handle user interaction with Windows Phone. We'll use a Textbox a Button and a TextBlock to do this basic tutorial. This is very similar to the coding you do with Win forms or WPF. Difference is this is Windows Phone. 

1. First open Visual Studio Express 2010 for Windows Phone. Create a new project of the type "Windows Phone Application" . Give any name you like and select a location to be saved. Then the project will be created.

2. From the toolbox on left hand side. Drag and drop a TextBlock and a Textbox and place it in the Design view. Note that TextBlocks acts as the Labels you use in WPF. Remove the text in the Textbox from the properties window and replace the text of the TextBlock as "Enter your name"

3. Also drag and drop a Button and another TextBlock and place it in the Design view. Rename the content of the Button from "Button" to "Display". Remove the text in the TextBlock2. Finally the design view should appear similar to this (figure 1)

4. What we will do in this application is we'll prompt the user to enter his name and press display. Then a message will be displayed on the textBlock added in bottom. 

5. To do the coding for the button click event, double click the Display(button1) button. The event will be created in the code behind and you will be entered to the button1_Click method. 

6. Add the following code in the button1_Click event which will get the input from the textbox and display in the label.


Nothing really to explain. This will simply get the input from the textbox and display it in the textBlock.

7. Debug and run the application in the emulator. Try enter a name and pressing display.