CHAPTER 2 50 BUILDING C# APPLICATIONS (Photo web hosting) Using

CHAPTER 2 50 BUILDING C# APPLICATIONS Using this same window, you can handle events for a given GUI item. To do so, click the lightning bolt icon at the top of the Properties window. Next, select the GUI item you wish to interact with from the drop-down list (your Button in this case). Finally, handle the Click event by typing in the name of the method to be called when the user clicks the button (see Figure 2-16). Once you press the Enter key, SharpDevelop responds by generating stub code for your new method. To complete the example, enter the following statement within the scope of your event handler: void ButtonClicked(object sender, System.EventArgs e) { // Update the Form’s caption with a custom message. this.Text = “Stop clicking my button!”; } At this point, you can run your program (using the Debug .Run menu item). Sure enough, when you click your Button, you should see the Form s caption update as expected. That should be enough information to get you up and running using the SharpDevelop IDE. I do hope you now have a good understanding of the basics, though obviously there is much more to this tool than presented here. Building .NET Applications Using Visual C# 2005 Express During the summer of 2004, Microsoft introduced a brand-new line of IDEs that fall under the designation of Express products (http://msdn.microsoft.com/express). To date, there are six members of the Express family: Visual Web Developer 2005 Express: A lightweight tool for building dynamic websites and XML web services using ASP.NET 2.0 Visual Basic 2005 Express: A streamlined programming tool ideal for novice programmers who want to learn how to build applications using the user-friendly syntax of Visual Basic .NET Figure 2-16. Handing events via the Properties window
You need excellent and relaible webhost company to host your web applications? Then pay a visit to Inexpensive Web Hosting services.

Leave a Reply