C# Bible 2002 phần 6 ppsx
... an Internet standard called RFC1 766 . The standard is titled Tags for the Identification of Languages and is available on the Internet at www.ietf.org/rfc/rfc1 766 .txt. The assembly product name ... applications designed using C#, WindowsForms applications must be compiled with the C# compiler before you can execute their code. WindowsForms applications compiled with the C# compile...
Ngày tải lên: 05/08/2014, 10:20
C# Bible 2002 phần 4 ppsx
... Compiling with Multiple Classes Working with inheritance in C# means that you'll be working with more than one C# class. C# is not picky about how those classes are arranged relative ... to If you overload one of these pairs but not the other, the C# compiler issues an error message like the following: error CS02 16: The operator 'Point.operator ==(Point, Point)'...
Ngày tải lên: 05/08/2014, 10:20
C# Bible 2002 phần 7 ppsx
... simple Web application by using Visual C# in the ASP.NET framework. You learned the basics of ASP.NET and how you can create Web applications in Visual C#. Table 22-3: Events Associated with ... to aid in development. If you embed all of your strings inside your C# code, for example, then only someone familiar with C# would know where to look to change the string values. If you wr...
Ngày tải lên: 05/08/2014, 10:20
C# Bible 2002 phần 1 pdf
... of the pieces fit together to construct a complete C# application. Readers approaching C# with a background in C++ will find C# very familiar. C# was built with C and C++ in mind, and the syntax ... can hold 16- bit signed integers. The smallest possible value for a short variable is -32, 768 ; the largest possible value is 32, 767 . ushort Variables with a ushort type can hold 1...
Ngày tải lên: 05/08/2014, 10:20
C# Bible 2002 phần 2 pptx
... current time is between 12:00 P.M. and 6: 00 P.M. Behavior like this requires that your C# code examine values at runtime and take an action based on the values. C# supports a variety of code constructs ... variables. This chapter looks at the C# flow control statements that will act as the brains for the applications you write. Statements in C# A statement is a valid C# expr...
Ngày tải lên: 05/08/2014, 10:20
C# Bible 2002 phần 3 pot
... See Listing 6- 9 for an example. Listing 6- 9: Working with Overloaded Methods class Listing6_9 { public static void Main() { Listing6_9 MyObject; MyObject = new Listing6_9(); MyObject.Add(3, ... Listing 6- 11 to the application you just created. Listing 6- 11: Overriding Methods by Inheriting the Book Class class Wiley : Book { new public string Title() { re...
Ngày tải lên: 05/08/2014, 10:20
C# Bible 2002 phần 5 doc
... a mathematical operation guarded by the C# checked operator results in an overflow. Listing 16- 6 shows the OverflowException exception. Listing 16- 6: OverflowException Exception using System; ... control. The C# language contains special keywords that make it easy for you to fire, publish and subscribe to events in your C# code. You can use these keywords to allow your C# cl...
Ngày tải lên: 05/08/2014, 10:20
C# Bible 2002 phần 8 docx
... ClientRectangle); } Running the preceding code produces an image like the one shown in Figure 26- 6. Figure 26- 6: A solid ellipse using a brush The types of brush that you can create come in several ... preceding code produces something similar to what is shown in Figure 26- 7. Figure 26- 7: HatchBrush with different HatchStyles Table 26- 6 describes each of the pen types available...
Ngày tải lên: 05/08/2014, 10:20
C# Bible 2002 phần 9 pptx
... Explorer, right-click and choose Add and then Add Property. The C# Property Wizard, shown in Figure 29 -6 opens. Figure 29 -6: In the C# Property Wizard, name this property Seconds. Ensure that ... in Listing 29 -6 to the Click event of the Start button. Listing 29 -6: Start Your Control private void button1_Click(object sender, System.EventArgs e) { cdTimer1.Seconds =60 ;...
Ngày tải lên: 05/08/2014, 10:20
C# Bible 2002 phần 10 pot
... SquareIt : int 16( int 16& amp;,int 16& amp;) The type of the return value returned by the method follows the colon. The signature of the SquareIt() method lists a return type of int 16, which, in Intermediate ... In Visual Basic, the default is True; in C# and C++, the default is False. Calling DLL functions from C# is similar to calling them from Visual Basic 6. With the DLLImpor...
Ngày tải lên: 05/08/2014, 10:20