0

c language and vb net

data entry and validation with c sharp and vb .net windows forms 2003

data entry and validation with c sharp and vb .net windows forms 2003

Kỹ thuật lập trình

... In your constructor, add the following lines of code C# //Event based input restricted controls txtAlpha.CharacterCasing = CharacterCasing.Lower; txtMixed.CharacterCasing = CharacterCasing.Upper; ... txtMultiLine.ScrollBars = ScrollBars.Vertical; txtMultiLine.WordWrap = true; txtMultiLine.AcceptsReturn = true; txtMultiLine.AcceptsTab = true; this.AcceptButton = cmdClose; cmdClose.Click += new EventHandler(this.CloseMe); ... FormStartPosition.CenterScreen; //Handle the click events for each combo box cmbSpeed.SelectedIndexChanged += new EventHandler(this.Speed); cmbLen.SelectedIndexChanged += new EventHandler(this.DataLen); cmbParity.SelectedIndexChanged...
  • 568
  • 484
  • 0
network programming .net with c sharp and vb.net 2004

network programming .net with c sharp and vb.net 2004

Kỹ thuật lập trình

... Asymmetric encryption Using RSA as asymmetric encryption Symmetric encryption 8.6.1 Using 3DES as symmetric encryption 8.7 Piracy protection 8.8 Conclusion Controlling User Access: Authentication and ... from compiling C# is generally identical to MSIL code generated from compiling VB. NET code Exceptions to this lie with a few language- speci c features, such as how C# can use classic C- style pointers ... (www.go-mono.com) In this book, the two most popular NET programming languages, C# and VB. NET, are used Both languages differ syntactically, but are equally capable and offer identical performance characteristics...
  • 562
  • 2,536
  • 0
Pro c# 2010 and the  NET 4 platform, troelsen, 5ed, apress, 2010

Pro c# 2010 and the NET 4 platform, troelsen, 5ed, apress, 2010

Kỹ thuật lập trình

... this chapter, however, is to acquaint you with a number of NET centric building blocks, such as the Common Language Runtime (CLR), Common Type System (CTS), Common Language Specification (CLS), and ... of the NET 4.0 Dynamic Language Runtime (DLR) and the C# 2010 dynamic keyword Later chapters will examine some fairly advanced topics, such as object context, CIL code, and the construction of ... System.Object collections via covariance and contravariance Perhaps the most important point to understand about the C# language is that it can only produce code that can execute within the NET runtime...
  • 1,753
  • 682
  • 1
pro c# 2005 and the .net 2.0 platform

pro c# 2005 and the .net 2.0 platform

Đại cương

... this chapter, however, is to acquaint you with a number of NET- centric building blocks, such as the common language runtime (CLR), Common Type System (CTS), Common Language Specification (CLS), and ... xxxix PART ■■■ CHAPTER CHAPTER PART CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER CHAPTER The Philosophy of NET ... Sumser Associate Publisher and Project Manager: Grace Wong Copy Edit Manager: Nicole LeClerc Copy Editors: Nicole LeClerc, Ami Knox Assistant Production Director: Kari Brooks-Copony Production Editor:...
  • 1,033
  • 472
  • 0
Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition phần 1 doc

Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition phần 1 doc

Kỹ thuật lập trình

... in the Calc class: // Calc.cs using System; nl oa d o rg namespace CalculatorExample { // This class contains the app's entry point class Program { static void Main() { Calc c = new Calc(); int ... end of method Calc::Add w 14 s Source Code The Calc.cs and Calc .vb code files are included under the Chapter subdirectory 8849CH01.qxd 10/1/07 10:30 AM Page 15 Simpo PDF Merge and Split Unregistered ... to class types Table 1-1 CTS Class Characteristics Class Characteristic Meaning in Life Is the class “sealed” or not? Sealed classes cannot function as a base class to other classes Does the class...
  • 140
  • 345
  • 1
Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition phần 2 potx

Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition phần 2 potx

Kỹ thuật lập trình

... savings account class class SavingsAccount { public double currBalance; // A static point of data public static double currInterestRate = 0.04; public SavingsAccount(double balance) { currBalance = ... double currInterestRate; public SavingsAccount(double balance) { currBalance = balance; } // A static constructor static SavingsAccount() { Console.WriteLine("In static ctor!"); 157 8849CH05.qxd ... scope (such as a constructor) to execute the code statements For this very reason, C# allows you to define a static constructor: class SavingsAccount { public double currBalance; public static double...
  • 140
  • 436
  • 0
Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition phần 3 ppsx

Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition phần 3 ppsx

Kỹ thuật lập trình

... ADO .NET we have numerous connection objects we may choose between (SqlConnection, OracleConnection, OdbcConnection, etc.) Regardless of the fact that each connection object has a unique name, is defined ... i++) tonsOfObjects[i] = new object(); // Collect only gen objects GC.Collect(0, GCCollectionMode.Forced); GC.WaitForPendingFinalizers(); // Print out generation of refToMyCar Console.WriteLine("Generation ... http://www.simpopdf.com CHAPTER s WORKING WITH INTERFACES s Source Code The InterfaceNameClash project is located under the Chapter subdirectory Designing Interface Hierarchies o rg Interfaces can be arranged...
  • 140
  • 461
  • 0
Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition phần 4 ppt

Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition phần 4 ppt

Kỹ thuật lập trình

... following code compiles as expected: w public static class CarExtensions { public static int SlowDown(this Car c) { // OK! return c. Speed; } } w 428 At this point, you could create a Car object and ... declare a local variable that allocates memory directly from the call stack (and is therefore not subject to NET garbage collection) To so, C# provides the stackalloc keyword, which is the C# ... inheritance s Source Code The CustomConversions project is located under the Chapter 12 subdirectory Working with Pointer Types oa d Table 12-3 Pointer-Centric C# Operators and Keywords o rg In Chapter...
  • 140
  • 299
  • 0
Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition phần 5 pptx

Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition phần 5 pptx

Kỹ thuật lập trình

... http://www.simpopdf.com CHAPTER 17 s PROCESSES, APPDOMAINS, AND OBJECT CONTEXTS class SportsCar { public SportsCar() { // Get context information and print out context ID Context ctx = Thread.CurrentContext; Console.WriteLine("{0} ... http://www.simpopdf.com CHAPTER 17 s PROCESSES, APPDOMAINS, AND OBJECT CONTEXTS System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg); public virtual ... context ID Context ctx = Thread.CurrentContext; Console.WriteLine("{0} object in context {1}", this.ToString(), ctx.ContextID); foreach(IContextProperty itfCtxProp in ctx.ContextProperties) Console.WriteLine("->...
  • 140
  • 275
  • 0
Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition phần 6 docx

Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition phần 6 docx

Kỹ thuật lập trình

... the Internet zone, which as you recall does not allow access to the hard drive using standard file IO operations To so, click the Enable Click Once Security Settings check box, select the This ... offset, int count, AsyncCallback callback, object state); public virtual int EndRead(IAsyncResult asyncResult); public virtual void EndWrite(IAsyncResult asyncResult); } oa d o rg The process of ... evidence s Source Code The MyEvidenceViewer project is included under the Chapter 20 subdirectory The Role of Code Groups nl oa d o rg Using evidence, the CLR can then place the assembly into a code...
  • 140
  • 301
  • 0
Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition phần 7 ppsx

Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition phần 7 ppsx

Kỹ thuật lập trình

... Explorer, and ensure you have an active connection to the AutoLot database (if not, right-click the Data Connections icon and select Add Connection) At this point, select each 8849CH24.qxd 10/19/07 ... ctx.Inventories.DeleteOnSubmit((from c in ctx.Inventories where c. CarID == carToDelete select c) .First()); ctx.SubmitChanges(); rg static void DeleteCar(AutoLotObjectsDataContext ctx) { int carToDelete ... declarations, etc.), you can load the object tree into the constructor of an XDocument type Consider the following CreateFunctionalXmlDoc() method, which first creates an in-memory document and...
  • 140
  • 520
  • 0
Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition phần 8 ppsx

Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition phần 8 ppsx

Kỹ thuật lập trình

... (which is the inheritance chain of the Form type) defines a property named Controls This property wraps a custom collection nested in the Control class named ControlsCollection This collection ... property allows you to access a strongly typed collection (ControlsCollection) that contains any child controls within the current control .o rg As you would guess, the Control class also defines ... Which Mouse Button Was Clicked w Another common mouse-centric detail to attend to is determining which button has been clicked when a MouseUp, MouseDown, MouseClick, or MouseDoubleClick event occurs...
  • 140
  • 345
  • 0
Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition phần 9 doc

Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition phần 9 doc

Kỹ thuật lập trình

... (often called Command) that returns an object implementing the ICommand interface, shown here: w w public interface ICommand { // Occurs when changes occur that affect whether // or not the command ... Click ="FileExit_Click"/> w 1100 ... void SetF1CommandBinding() { CommandBinding helpBinding = new CommandBinding(ApplicationCommands.Help); helpBinding.CanExecute += CanHelpExecute; helpBinding.Executed += HelpExecuted; CommandBindings.Add(helpBinding);...
  • 140
  • 382
  • 0
Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition phần 10 ppsx

Pro C# 2008 and the .NET 3.5 Platform, Fourth Edition phần 10 ppsx

Kỹ thuật lập trình

... ASP .NET application cache As suggested by its name, the ASP .NET System.Web.Caching.Cache object (which is accessible via the Context.Cache property) allows you to define an object that is accessible ... e) { // Place a custom object in the application data sector Application["CarSiteInfo"] = new CarLotInfo("Chucky", "Colt", "Black"); } and then access the information using the public field data ... ...
  • 140
  • 433
  • 1
pro visual c++-cli and the .net 2.0 platform (2006)

pro visual c++-cli and the .net 2.0 platform (2006)

Kỹ thuật lập trình

... native and CIL object files (Compiler switch: \clr.) • Pure mode: source-level mix of native and CTS types All compiled to CIL object files (Compiler switch: \clr:pure.) • Native class can hold CTS ... deterministic finalization of garbage collected types that hold scarce resources • A form of deep-copy semantics associated with the C+ + copy constructor and copy assignment operator; however, this could ... version of C+ +/CLI, you no longer have a forced kludge of NET concepts and C+ + Instead, C+ +/CLI is now a true implementation of the C+ + language from which you can implement NET applications If...
  • 961
  • 309
  • 0
Tài liệu BEGINNING ASP.NET 4.5 in C# and VB doc

Tài liệu BEGINNING ASP.NET 4.5 in C# and VB doc

Kỹ thuật lập trình

... Page and Control Life Cycles Revisited The ASP .NET Page Life Cycle and Events in Data Controls Handling Errors that Occur in the Data Source Controls Hand-Coding Data Access Code Caching Common ... your C drive, call it BegASPNET, and move the Source and Resources folders into this new folder so you end up with folders like C: \BegASPNET\ Source and C: \BegASPNET\Resources The Source folder contains ... his own company called De Vier Koeden (http://devierkoeden.com), a small Internet agency specializing in consultancy and development of Internet and intranet applications with Microsoft technologies...
  • 890
  • 6,697
  • 2
Professional ASP.NET 3.5 Security, Membership, and Role Management with C# and VB ppt

Professional ASP.NET 3.5 Security, Membership, and Role Management with C# and VB ppt

Kỹ thuật lập trình

... protocols and services that handle request processing inside IIS 7.0 Protocol Listeners Protocol listeners are services in which each service is configured to listen and process a specific protocol ... can “stretch” ASP .NET 2.0 and ASP .NET 3.5 to match your application’s security requirements What This Book Covers The subject of ASP .NET security can refer to a lot of different concepts: security ... application services possible ❑❑ Chapter 18, “Best Practices for Securing ASP .NET Web Applications,” covers the best practices that can be followed to secure ASP .NET applications The discussion takes...
  • 940
  • 2,688
  • 2
Beginning ASP.NET 4: in C# and VB potx

Beginning ASP.NET 4: in C# and VB potx

Kỹ thuật lập trình

... Occur in the Data Source Controls Hand-Coding Data Access Code Caching Common Pitfalls with Caching Data Different Ways to Cache Data in ASP .NET Web Applications Practical Data Tips Summary Chapter ... Deployment Checklist What’s Next Summary Appendix A: Exercise Answers Chapter Chapter Chapter Chapter Chapter Chapter Chapter Chapter Chapter Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Chapter ... your C drive, call it BegASPNET, and move the Source and Resources folders into this new folder so you end up with folders like C: \BegASPNET\Source and C: \BegASPNET\Resources The Source folder contains...
  • 844
  • 1,564
  • 0
Build Your Own ASP.NET 3.5 Web Site Using C# and VB docx

Build Your Own ASP.NET 3.5 Web Site Using C# and VB docx

Kỹ thuật lập trình

... Summary of Contents of this Excerpt Preface xxi I Introducing ASP .NET and the NET Platform ASP .NET Basics 25 VB and C# Programming Basics .45 Constructing ASP .NET Web ... ASP .NET 3.5 Web Site Using C# & VB to a specific technology and language, ASP .NET lets you write web applications in a variety of familiar programming languages ASP .NET uses the Microsoft NET ... file You can click the View Code icon at the top of the Solution Explorer window, you can right-click the Default.aspx file in Solution Explorer and choose View Code, or you can click the + symbol...
  • 219
  • 1,312
  • 0
Professional ASP.NET 3.5 Security, Membership, and Role Management with C# and VB docx

Professional ASP.NET 3.5 Security, Membership, and Role Management with C# and VB docx

Kỹ thuật lập trình

... protocols and services that handle request processing inside IIS 7.0 Protocol Listeners Protocol listeners are services in which each service is configured to listen and process a specific protocol ... can “stretch” ASP .NET 2.0 and ASP .NET 3.5 to match your application’s security requirements What This Book Covers The subject of ASP .NET security can refer to a lot of different concepts: security ... application services possible ❑❑ Chapter 18, “Best Practices for Securing ASP .NET Web Applications,” covers the best practices that can be followed to secure ASP .NET applications The discussion takes...
  • 940
  • 1,836
  • 0

Xem thêm