... khkhááiininiệệmm..––BiBiểểuuththứứ c cchchíínhnhquyquy:: C C ssởởtotoáánnhhọọ c c.. C Cáá c cllớớppRegexRegex, Match, MatchỨỨngngddụụngng–– C Cáá c cllớớppddạạngngnhnhóómmKhKhááiininiệệmmLLớớppArrayListArrayList, ... Minhn Quang Minh22MMụụ c l c lụụ c cNhNhắắ c cllạạii c cáá c cbbààiittậậppđãđãhhọọ c cTrTrảảllờờiiththắắ c cmmắắ c c Summary Summary -- ... menu vvàà c cáá c ccontrol control khkháá c cHandle Handle ssựựkikiệệnnSSửửddụụngng c cáá c chhộộppthothoạạiiddùùngngchungchungỨỨngngddụụngngththựự c ctitiễễnn––XâyXâyddựựngngtrtrììnhnhsosoạạnnththảảoovănvănbbảảnn...
... phphảảiillààttààiililiệệuuhhợợppkhuônkhuônddạạngng..––CML, MML: CML, MML: c cáá c cngônngônngngữữbibiểểuudidiễễnn c ng c ngththứứ c chohoááhhọọ c c, , c ng c ngththứứ c ctotoáánnhhọọ c c. . C Cáá c c c ng c ngththứứ c cnnààyy c cóóththểểđưđượợ c cvvẽẽtrêntrên c cáá c ctrtrììnhnhduyduyệệttđđặặ c cbibiệệtt, ... c ng c ngththứứ c ctotoáánnhhọọ c c. . C Cáá c c c ng c ngththứứ c cnnààyy c cóóththểểđưđượợ c cvvẽẽtrêntrên c cáá c ctrtrììnhnhduyduyệệttđđặặ c cbibiệệtt, , ... thuthuộộ c cttíínhnhValueValue C Cóóththểểssửửddụụngng c cáá c cphươngphươngththứứ c c c cụụththểểkhkháá c cnhưnhưReadStringReadString(): (): đđọọ c cgigiáátrtrịịtext...
... nnếếuummộộttclass class hohoặặ c cmmộộttstructstruct c cààiiđđặặttmmộộttinterface interface ththììphphảảii c cààiiđđặặttttấấtt c cảả c cáá c cttíínhnhnăngnăngđưđượợ c ckhaikhaibbááootrongtronginterface ... trong C# -- Editor Editor: : ĐoĐoààn Quang Minhn Quang Minh1212 C Cấấuutrtrúú c c((StructsStructs)) C Cấấuutrtrúú c c((structstruct))––ChChỉỉchchứứaa c cáá c cbibiếếnn, ... trongtrong C+ +, C+ +, gigiúúppchochoviviệệ c ctruytruy c cậậppvvààoommộộttclass class hohoặặ c cmmộộttstructstructgigiốốngngnhưnhưtruytruy c cậậppvvààoommộộttarray.array.––GiGiốốngngnhưnhưthuthuộộ c cttíínhnh,...
... Quang Minh77 .NET Framework Classes .NET Framework Classes C Cáá c cllớớpp c c bbảảnnđưđượợ c ccungcung c cấấppbbởởiiMicrosoft, Microsoft, chochophphééppththựự c cthithihhầầuuhhếếtt c cáá c cttáá c cvvụụthưthườờngngggặặpp–– C Cáá c cththủủttụụ c ctritriệệuuggọọiiđơnđơngigiảảnn..––Cho ... ququảảnnlýlýtitiếếnntrtrììnhnhddựựaatrêntrênttààiikhokhoảảnn C# v C# vààkikiếến trn trúú c . c . NET. C# NET. C# c b c bảản n -- Editor:Editor: Đo Đoààn Quang Minhn Quang Minh1010 C# C# c c bbảảnn C# C# c cóónhinhiềềuunnéétttươngtươngđđồồngngvvớớii C+ +, ... Specification ––CLSCLS))––TTậậppcon con c củủaaCTS CTS mmààttấấtt c cảả c cáá c cngônngônngngữữđđềềuuphphảảiihhỗỗtrtrợợĐĐặặ c cttíínhnh c củủaaIL:IL:––HHỗỗtrtrợợhưhướớngngđđốốiitưtượợngngvvààgiaogiaotitiếếpp:...
... ddùùngngtrtrììnhnhregeditregedit..–– C Cáá c cththàànhnhphphầầnnquanquantrtrọọngng::HKEY_CLASSES_ROOT (HKCR): HKEY_CLASSES_ROOT (HKCR): chchứứaa c cáá c cmômôttảả c củủaa c cáá c cththàànhnhphphầầnnCOM ... trongtrongregistryregistryRegistryKeyRegistryKey: : chochophphééppthaothaottáá c cvvớớii c cáá c ckeykey– Cc phương thứccủa RegistryKeyOpenSubKey(): : mmởởkey con (key con (titiếếppttụụ c cđiđixuxuốốngng))CreateSubKey()/DeleteSubKey/DeleteSubKey(): ... file hay folder c cầầnnllààmmviviệệ c cDirectoryInfoDirectoryInfovvààFileInfoFileInfo: : cungcung c cấấpp c cáá c cphươngphươngththứứ c cnhưnhư2 2 đđốốiitưtượợngngtrêntrên,...
... tốố c đ c độộxxửửlý cao, tlý cao, tậận dn dụụng đưng đượợ c c c cáá c s c sứứ c m c mạạnh c nh c ủủa ha hệệ đi điềều hu hàành.nh.–– C Cáá c c ứứng ... llớớpptrongtrongnamespace Forms, namespace Forms, vvàà c cóótươngtươngứứngng c cáá c cthuthuộộ c cttíínhnhđđặặ c ctrưngtrưngriêngriêngbibiệệtt. . C Cáá c cllớớppbaobaoggồồmm: ... Minh22MMụụ c l c lụụ c cWindows Application in .NET Windows Application in .NET Windows FormsWindows FormsWindows ControlsWindows ControlsCustom ControlsCustom Controls Windows Application...
... c cóóththểểllấấyyđưđượợ c c c cáá c cthôngthôngtin tin khkháá c cnhưnhư c cáá c cphươngphươngththứứ c c, , c cáá c ctrưtrườờngng, , c cáá c cssựựkikiệệnn, ... Minh1616ReflectionReflectionReflectionReflectionllààthuthuậậttngngữữchchỉỉ c cáá c cllớớpptrongtrong .NET .NET chochophphééppchchúúngngtata c cóóththểểđđọọ c cđưđượợ c cthôngthôngtin tin vvềề c cáá c cassembly. ... đđếếnnbibiểểuuththứứ c cchchíínhnhquyquy::––GGồồmmmmộộttttậậpp c cáá c ckýkýttựựđđạạiididiệệnn;;–– C Cáá c cphươngphươngththứứ c cphphụụ c cvvụụchochoviviệệ c cttììmmkikiếếmmvvààthaythayththếế;;––SSửửddụụngngbibiểểuuththứứ c cchchíínhnhquyquy, , c cóóththểểththựự c chihiệệnn c cáá c c c ng c ngviviệệ c cphphứứ c cttạạppvvềềxxửửlýlýchuchuỗỗiiKiKiểểmmđđịịnhnhchuchuỗỗiiđđầầuuvvààootheotheommộộtttiêutiêuchuchuẩẩnnnnààoođđóó;;ĐĐịịnhnhddạạngngllạạiichuchuỗỗii((thaythayththếế c cáá c ckýkýttựựkhôngkhônghhợợppllệệ););TÌmTÌmkikiếếmmvvààtrtrííchchttừừchuchuỗỗiiđđầầuuvvààooraranhnhữữngngththàànhnhphphầầnnđđặặ c cbibiệệtt.....
... Types:DDữữliliệệuuchchứứaattạạiinơinơinnóóđưđượợ c c c cấấppphphááttvvùùngngnhnhớớ C Cáá c ckikiểểuussốố, , boolbool, char, date, , char, date, c cáá c c c cấấuutrtrúú c c, , c cáá c ckikiểểuuliliệệttkêkê––Reference ... Exception––TTấất c t c ảả c cáá c ngo c ngoạại li lệệ c b c bảản đn đềều đưu đượợ c cung c c cung c ấấp bp bởởi .NET i .NET ––NNếếu gu gặặp lp lỗỗi, chi, chúúng ... HandlingPhPhầầnntrytryththựự c cthithi c cáá c cllệệnhnhbbììnhnhthưthườờngngPhPhầầnncatchcatchxxửửlýlý c cáá c cngongoạạiillệệ c cóóththểểxuxuấấtthihiệệnn––NNếếuukhôngkhôngssửửddụụngngngongoạạiillệệnnéémmrara,...
... DataSetDataSet––ExampleExampleSqlConnectionSqlConnectionconnconn= new = new SqlConnection(sourceSqlConnection(source););SqlCommandSqlCommandcmdcmd= new = new SqlCommand(selectSqlCommand(select, , connconn););SqlDataAdapterSqlDataAdapteradapter ... DataRelationDataRelation, Constraint, Constraint–– C Cáá c cllớớppđđặặ c cbibiệệtt: : SqlCommandSqlCommand, , OleDbCommandOleDbCommand, , SqlCommandBuilderSqlCommandBuilder, ... Minh22MMụụ c l c lụụ c cADO .NET OverviewADO .NET OverviewUsing Database ConnectionsUsing Database ConnectionsCommandsCommandsQuick Data Access: The Data ReaderQuick Data Access: The Data...
... Exception––TTấất c t c ảả c cáá c ngo c ngoạại li lệệ c b c bảản đn đềều đưu đượợ c cung c c cung c ấấp bp bởởi .NET i .NET ––NNếếu gu gặặp lp lỗỗi, chi, chúúng ... Minh88DelegatesDelegatesdelegatedelegate–– C Cóónhnhữữngng c ng c ngviviệệ c ckhôngkhôngxxáá c cđđịịnhnhllúú c cbiênbiênddịịchch, , chchỉỉxxáá c cđđịịnhnhllúú c cththựự c cthithi..–– C Cáá c cthuthuậậtttotoáánnttổổngngququáátt, ... date, c cáá c c c cấấuutrtrúú c c, , c cáá c ckikiểểuuliliệệttkêkê––Reference Data Types:Reference Data Types:ChChứứaammộộttcon con trtrỏỏtrtrỏỏttớớiinơinơi c cấấttgigiữữddữữliliệệuuBaoBaoggồồmmkikiểểuustring,...
... the core .NET 2.0 Framework, it can take advantage of the .NET Framework capability of partial classes. Partial classes enable you to separate your classes into multi-ple class files, which are ... are then combined into a single class when the application is compiled. BecauseASP .NET 3.5 combines all this page code for you behind the scenes when the application is compiled,the code-behind ... you can choose a newlocation for your Web application from this dialog. To choose a new location, select a new folder and save2 Evjen c0 1.tex V2 - 01/28/2008 12:27pm Page 9Chapter 1: Application...
... covers each step change generically.CancelButtonClickTriggers when the end user clicks the Cancel button in the navigationsystem.FinishButtonClickTriggers when the end user clicks the Finish ... with.The sections, or views, do not change on the client-side; rather, they change with a postback to the server.You can put any number of elements and controls in each view, and the end user can work ... on each of the steps. You can customize the Wizardcontrol in so many ways that it tends to remind me of the other rich Web server controls from ASP .NET, such as the Calendar control. Because...
... selects a date, the selected date is populated in theTextBox1control using theCalendar1_SelectionChangedevent. After a date is selected and the button on the page is clicked, theButton1_Clickevent ... =DateTime.Now.AddDays(14).ToShortDateString();}protected void Calendar1_SelectionChanged(object sender, EventArgs e){TextBox1.Text = Calendar1.SelectedDate.ToShortDateString();}protected void Button1_Click(object sender, EventArgs ... the CustomValidator control is its capability to easily provide customclient-side validations. Many developers have their own collections of JavaScript functions they employin their applications,...