VS.NET learning methodology

zhaozj2021-02-16  58

VS.NET Learning Method - My VS.NET Learning Tour http://www.tuenhai.com

Development Tools: Microsoft Visual Studio .NET 2003 Chinese Enterprise Edition Operating System: Windows XP English Professional Edition

Inscription: Even if you don't have a little programming, as long as you are willing, and understand the learning method introduced in this article, you can easily enter the door as the author is as easy as the author. Let us start exciting VS.NET trips together.

One. The ability to get knowledge through Internet is the most important ability to network era

At the age of 26, give yourself a goal, you must have English and programming before your age of 35. I have just been standing so far, the procedures and English are not working very well, and they have some understanding of learning methods. I hope to share with you. Let me introduce my situation first. 26 years old, mainly engaged in language teaching, can say that it is unable to computers and English. Say that you may make you joke: the computer will not go online; English does not know the phonetic symbol. I am not like this level, I am more determined to change myself, I will do it, spend 7000 oceans to purchase the computer. 26 years old, life opens a new chapter. First, put your own computer to a blind belly, put hardware, install it (pity my motherboard, repair a few times, still scrapped; the graphics card has burn "foot" due to charge and unplugging, or a friend of the mobile phone store to help Welding). In order to quickly find the tutorial articles in the online, I will take 100 ocean narrow tape months. I want to Down X-I I have used two nights for two nights. As a result, there is no image, and he has heard him, 乎! I have always advocated learning, learning things and work related, work and learning. Although the language teacher can also learn computer, I think the process is too slow (at that time I haven't design a computer course.). So, a person who just learned a computer in less than half a year became a computer teacher. It is basically basically entry-level training, but it is also forced to learn faster. Originally, I used the pinyin to add input method, because of work relationship, I had to use five pen. National Computer Rank Test To test DOS, so I learned DOS. I originally used FrontPage to do a web page, now use Dreamweaver MX, and Fireworks MX, Flash MX also knows. Try a few more times to the motherboard random manual and English dictionary, the boot CMOS can also come and go. What system optimization, GHOST system backup is not in the words. Although the page is not very good, IP daily access is 300 per day. Until 29, the WINDOWS application programming is still a little, VB6 deletes, installed, repeated a few times, feel hard, never cross-programming the first threshold. The day before, with MM communication works in Yucheng Information Port, said in self-study Visual Studio .NET program, MM asked: Are you studying in a closed custom? I replied: You may consider the words "sponsorship" tuition. Yes, the network is university, the largest university, and the network can change the world and will eventually change the world. The network can change life, allowing our study and life, as long as you know how to use, good at using. It is now a network era, and network communication basically makes up for the shortcomings of self-study. Through network exchange, learn more than school education. You see here, if you don't touch the process of contact, I want to know what Visual Studio .net is "Dongdong", how will you do? First, check the head book. Personally open a computer library is unrealistic. The knowledge to find is often can't find in hand; second, call your friends.

Friends don't understand is a problem, even if you understand, is he is there? He is empty, he doesn't know the actual situation of your side, he does not necessarily what you want, or he said that you don't necessarily understand; third, the library check the information; fourth, Bookstore; fifth, ran to ask the teacher; sixth, ... Yes, the tradition is doing this. But it is now a network era. You are entirely probably less than a minute to find the answer you want. Internet, open Internet Explorer, type http://www.google.com in the address bar, then enter, in the open page middle input box, type the Visual Studio .NET language, there is a space in the middle of the English. Then enter the bus, the page shows: about 66, 900 query results in line with the Visual Studio .NET language, the following is 1st 10. (Search 0.12 seconds)

How is it, I also use me to introduce you to Visual Studio .NET? You will click on the article title and check your knowledge you need.

"Software is a past era. Web Service will come." Microsoft senior vice president Li Kai Fu said, "Web Service itself can be said to be a gamble, a risk; because you can believe, you can not believe in this matter. I It can only be said that Microsoft gambles the whole company, the future we gamble is Web Service. "You don't tell me that you are much more than Gates. We pursue that surpassing Gats is not reality, but we can contact the network earlier and use the network.

two. In the process of learning and programming, it is necessary to seek help to the master, but also to guide beginners. Learning programming in communication, its music is endless

29 years old, began working in corporate management. Due to the relationship of the work, there is a Microsoft Office office software. There is a Visual Basic for Application (VBA) language in the Office office software. It is a subset of VB, with all the advantages of VB, built into office, only in Office. Create, program, and run, record macros and automatically convert to code. Since the first contact programming language, it feels difficult to self-study VBA. When you encounter a problem in your study, when you are confused, I will go online to find a learning resource and find an answer. Soon I found a great community about Microsoft Office, such as officefans (http://www.officefans.net), Excelhome (http://club.excelhome.net/), so immediately registered with the community, study VBA I encountered the question to ask if I went to the community. Every time I have a friendly answer. For example, my work needs to insert blank lines in front of the EXCEL worksheet, first select the worksheet, and the mouse pointer is positioned to the specified line, and then right-click, select "Insert". Repeat operation, it is not bored. So in OfficeFans, pass the master kengzeng point to get the following VBA code:

Sub insert () Sheets ("Sheet2"). ROWS ("10:10"). INSERT END SUB

It turns out that you have to do four steps, and now you will complete it. I didn't understand VBA, and I didn't even have a "collection", "object", "method", "attribute", "event", "enumerated", etc., but because there is an online master point guide, help I still apply VBA in my job. I have applied multiple times. Some of the VBA code used will not go back. Some concepts of VBA, the theory begins. All beginnings are hard. If you can't get it, you may have given up your questions if you can't solve it. If you have a warm person to answer his questions, then you can apply new knowledge in practice, new knowledge is realized, learning is interested. Get excitation and enhancement, learning will continue and deepen. Of course, for friends with "hanging beams", they can solve all difficult problems, but it is a very small number of questions, but that's a few people, I think most people are ordinary people like me. Come and not. Getting a lot of heroes online, I always seem to be owed, I think of an e-book, and a common Excel VBA learning tutorial is concentrated together to help beginners will get started quickly. In June 2003, it was idle. Just a little about HTML syntax, I spent two weeks, collecting an e-book, called "Excel Application Collection", where the focus is Excel VBA. Put your e-book to OfficeFans for users to download, very popular. Why do I edit this e-book? Really a relatively idle? I have time to go to MM is not very good, why bother to make a boring text finishing work, in fact, I have "selfish"? What "selfishness"? Help others help others. "Buddha" Talent is actually in order to serve. In order to understand this truth, the seconds of the sons, the Buddhist Confucian is easy to do, there is nothing, and there is slight in life, so it still uses "30 years" time (too exaggerated, a born ...? Huh, ), Everyone is smarter than I, you should understand this reason. Why help people help others? Help others in academic, pointing to others, just thinking about others' perspectives, thinking about others thinking, breaking the limitations of my thoughts. From the perspective of information, personal self-decoration, the additional information of knowledge is small, and in the process of helping others, there are people's information exchange, in information exchange, knowledge information is strengthened. For example, the child lives in the English environment, 3 years old, oral fluent, and our school education, college graduates, English learning for more than ten years, or a dumb English, why? The little child remembers a word or sentence, which is memorized with the exchange of outside information, and it is precisely that the child remembers the situation of information exchange at the time, realizing the natural memory of the situation through the natural memory of the situation. Natural memory. How to learn oral language, what is the learning programming? You point to others on a question, your memory impression may be particularly deep. If you are self-studying self-study, I understand that although I have understood, the amount of context information that is accompanied by the help of memory is very small, and it is easy for hours. .

Therefore, in the process of learning and programming, more people with others, and ask for a manner, and more guidance, the beginners are in the artificial learning situation, strengthen memory, and strengthen understanding. Li Yang advocates "crazy English" learning method, I advocate "crazy programming" learning law, which is to create all opportunities and other people exchange programming experience, strengthen training and learning from communication. But also pay attention to communication is not a purpose. There are many ways to exchange programming experience: such as the forum exchange, media submission, QQ, ICQ and other communication software exchange. Personally think that 9CBS is very good for us, you can learn from your experience while you can write down your experience and communicate with you through your personal column. VBA is a VB application branch. I applied VBA in my work, and naturally, I have a preliminary understanding of VBA's concept. At this time, I will look at VB's tutorial. I feel extraordinarily. Because VBA and VB are none in nature. I can finally enter the gate of VB programming. three. From the application, from the solution to the actual problem, in the completion of the project, gradually master the types of program design theory and skills, and the PConline tools platform is VB / VB.NET, VC / C #, Delphi, Java, C Builder et al. What is the language to learn? In the Google input language, find an article "The Religious Frequitance and Cross Army" programming language ", the first paragraph is: Amateur's favorite thing is to compare different languages. Is Java better than C ? C # will become the ultimate language? All such use. From the perspective of professional programmers, this is the lowest unrestered game. First, after the project is determined, there is usually the room for selecting the language; the second, language survival itself is a Darwinism problem: if there are two languages, it is clearly comparable, where the more inferior It is necessary to have been eliminated, and how is it necessary?

I am based on two principles to choose the programming language: First, it is best to fit yourself. Second, if you don't know what to apply yourself, then give priority to Microsoft's programming language. I chose VB (everyone's specific situation is not, my choice is not necessarily suitable for you), I currently consider developing ordinary Windows applications, and I hope that the development of Windows applications and the application of Microsoft VBA will promote each other. It is a limited energy, it is best to apply everywhere. So I a lot of ebooks on the online Down, a lot of VB website in the favorite. I found that in addition to 9CBS, the popularity of the VB Community Forum is not prosperous. First contact VB, no foundation, amateur, how to quickly master VB programming? If I have enough time (amateur self-study, time is obvious), there is enough patience (just that I am a patient who is patient), can learn, practice according to a control, practice, this process is undoubtedly good, but I am obviously too boring. Maybe this, after half a year, my VB foundation is better, but may be gave up in less than half a year. This will take another way. My idea is to set a software project at first, with the purpose of learning, with a control as the core, gradually master the use and programming of the VB control in the process of completing the project. When the project is basically completed, VB programming will be entitled. Since it is to learn from the project, the purpose is clear, the learning process will not bother. If you do sharing software, your project creativity is better, your VB programming the day, maybe your software can bring you Money, huh, huh! What kind of software is developed? Sun proposed exciting slogan: "Network is computer." The application of the computer is mainly in the network, so it is positioned in the development network application. I often go to the Network Community Forum to communicate, registration should be fill in the information. When you speak, you must fill in the information. Feel your time, intend to program your own registration, automatically speak. In May 2003, I wanted to use VBA to realize the automatic registration and speaking in the forum. I realized it, I found alternative software online, I found "Button Elf" (http://www.vrbrothers.com/cn/qmacro ), Button wizard is a software that simulates the mouse keyboard action. By making a script, you can automate your hands and automate the actions of a series of mouse keyboards. I feel very good, I have written a script, automatically implement the following function with the button wizard: Open Internet Explorer, enter and open the URL, move the mouse to the specified coordinate, enter the character, and press Enter to complete the registration A or speak.

Compared to manual input, use the button elves to save a lot, but different websites, the graphs of the input boxes are different, have to be crawled, is there more convenient software? Some people in the Key Spirit community talked more Ezscript (http://ezscript.seed.cx/), and then found that in Windows XP, it was not sensitive, and then in Google Mad, found PCWorker (http: // www .pcWorker.net. PCWORKER Metaged Network Filling Filk FormGhost, you can achieve double-click registration or speaking, if you need it, you can also add random numbers in the title, and the PCWorker code is more readable, and the author can listen to netizens to improve the software. PcWorker is easy to use, but to achieve information from the network and make judgments (such as extract hyperlink), this is the PCWorker software that PCWorker software cannot be competent. So I decided to use VB6 to realize my own ideas. In October 2003, VB6 began to learn from November, and the project was basically completed. How did I do it? First browse each VB website related article, and find that the WebBrowser control can implement the functions I have requested. Second, a large number of textures and code collected by WebBrowser controls. Search with Google. If you use "WebBrowser" to search, there are 7, 260, and 000 query results. 9CBS Forum Search. Navigate to http://expert.9cbs.net/expert/forum.asp, log in to the forum, click "Search", select "All Community", use "WebBrowser" as keyword, then click "Search for the selected major class ", Wow, there are 300 posts about" webbrowser ". 9CBS document search, navigate to http://www.9cbs.net/search.asp, enter "WebBrowser" in the Search box, select "Document", click Search button to find 57 "WebBrowser" related documents. In actual programming is difficult, you can also ask questions from the 9CBS Forum to seek help. I have asked the 9CBS Forum, I haven't worry about WebBrowser related questions and I have learned. Due to being good at using three steps, 1 and a month, my software is basically released, and VB programming has also basically introduced.

Naturally in contact with the Microsoft Visual Studio .NET (referlateral VS.NET) while learning VB6. Ten years ago, Visual Basic 1.0 became a revolutionary application for millions of developers. Now, Visual Studio .NET is ready for the next ten years (a bit like Microsoft advertising, you said), vs.ne is an ideal and realistic development tool for creating next-generation applications, is a From the beginning of the development environment created for the XML Web service. The XML Web service enables the business to convert the business to the true platform for integration and transferring their core business value from the Internet to the Internet. Visual Studio .NET and XML Web services provide simple, flexible, standard-based models, allow developers to assemble applications from new and existing code, regardless of platform, programming language, or object model. VS.NET 2003 mainly includes the following development tools: Visual Basic .NET 2003 Visual C # .NET 2003 Visual C .NET 2003 Visual J # .NET 2003 Some people say, "learning to face the future", December 2003, I The main development tool is converted from VB6 to VB.NET. On January 1, 2004, I upgraded the newly developed software from VB6 to VB.NET, and officially named "Forum Posting Software Tools Download Edition" (also called "forum Automatic posting software "," Forum Automatic Posted Software "," Forum Batch Posting Software "," Forum Automatic Posting Tool "," Forum Quick President "," Forum Posted "," Forum Quick President ") ( If you want to promote your products online, remember to come to me).

When I turned VB.NET, I considered: First. What is the essence of vs.net? The vs.net is the development environment created from the XML Web service from the beginning. The XML Web service enables the business to convert the business to the true platform for integration and transferring their core business value from the Internet to the Internet. Learning to face the future, learn the latest technology, and now learn to put the pad for future applications. My software has to highlight two points, one is based on Internet applications, and the other is to apply XML technology. In this way, I can master new technologies as soon as possible, otherwise, just learn to learn, it will undoubtedly be more boring, it is easy to forget. Second. It turns out that "Forum Posted Software Tools Download Edition" written by VB6 is mainly used to use WebBrowser controls. The webpage is slow, downloading pictures, Flash and other unwanted things, consider using other methods to achieve the same function in VS.NET . With the help of friends in 9CBS, and refer to the many information, my "forum automatic posting machine" has basically had .NET characteristics. Code example: 1. "Forum Automatic Posmed Machine" Apply XML Technology VB6, INI files are usually used to save system information, configuration information, read and write INI files to use the API function, is not very convenient to use. In vs.net, there is no need to save and read some information with the INI file, you can use the class of reading and writing XML files in vs.net. Moreover, in subsequent versions of VS.NET 2003, processing XML related features will be further enhanced. Read XML to DataGrid code: public myXmldataset As New DataSet is a memory resident representation of data, regardless of what data 'comes from what data source, it provides a consistent relational programming model. MyXMLDataSet.Readxml ("regid.xml") 'read XML file form1.definstance.dataGrid1.dateasource = myXmldataset' Definstance is Form1 shared property strName = myXmldataset.tables (0) .ROWS (0) .Item ("Name" ) .Tostring 'reads username information from DataGrid.

Update information from DataGrid to XML file code:

Dataset MyXmldataset = CType (DataGrid1.datasource, Dataset) 'Type Conversion MyXmldataset.writeXML ("regid.xml")' Write the information into XML file

If you don't have to use a DataGrid control, you can read and write the specific information in the XML file.

DIM XMLINFO AS New XMLDocument XMlinfo.load ("Info.xml") 'Load XML file DIM STR AS STRING = XMLinfo.item ("reginfo"). Item ("name"). Innertext' Use "item" to step by step Read the data xmlinfo.item ("reginfo"). Item ("pass"). InnerText = "mypass" xmlinfo.save ("info.xml") 'Save information to the XML file I originally intended to save in INI format " The registration information and speech information of the forum automatic posting machine, but one reads written INI is not very convenient, and the two XMLs become important in software development, so I started using an XML file with XML files at first. I don't know if XML is just in contact with VS.NET, I can now read and write XML in the "Forum Posting Software Tool". Is it a bit "master" feel? (Self-intoxication first) 2. Use the httpwebresponse related class GET and POST information to read the web page source code:

The DIM HTTPREQ As System.Net.httpwebRequest 'HTTPWebRequest class provides support for the properties and methods defined in WebRequest, and supports users directly with additional properties and methods interact with the server using HTTP. Dim httpResp As System.Net.HttpWebResponse Dim url as String = "http://www.riveastking.com 'my station Dim httpURL As New System.Uri (url) httpReq = CType (WebRequest.Create (httpURL), HttpWebRequest ) httpReq.Method = "GET" httpResp = CType (httpReq.GetResponse (), HttpWebResponse) Dim reader As StreamReader = _ New StreamReader (httpResp.GetResponseStream, System.Text.Encoding.GetEncoding ( "GB2312")) 'Chinese case, To set the encoded format to "GB 2312". Dim Resphtml As String = Reader.ReadToEnd () 'Resphtml is the web source code httpresp.close ()

POST information to the server:

Dim httpurl2 as new system.uri ("http://www.riveastking.com?" & "Name = 1 & pass = 6") '"&" is' registration information, change into your own DIM Req AS HTTPWebRequest Req = CType (WebRequest.Create (httpUrl2), HttpWebRequest) req.Method = "POST" req.ContentType = "application / x-www-form-urlencoded" Dim bytesData () As Byte = System.Text.Encoding.ASCII.GetBytes ( "name = 1 & pass = 6") req.ContentLength = bytesData.Length Dim postStream as Stream = req.GetRequestStream () postStream.Write (bytesData, 0, bytesData.Length) 'is the above POST message to the network server HttpWebResponse Dim res as = CType (req.GetResponse (), HttpWebResponse) Dim reader as StreamReader = _ New StreamReader (res.GetResponseStream, System.Text.Encoding.GetEncoding ( "GB2312")) Dim respHTML as String = reader.ReadToEnd () 'respHTML of After POST, the information returned by the web server MsgBox (Resphtml) 'available MsGbox to view the return information res. () 3. With the regular expression from the web page source code to get the web source, we can process the source code, For example, the link, email address, image address, flash, etc. are useful in the forum automatic posting software tool.

Dim r As System.Text.RegularExpressions.Regex Dim m As System.Text.RegularExpressions.MatchCollection Dim respHtml As String = "http://www.NETsh.Net/subdomains/f_s_o.php?leibie=shangmao" 'to the address Example Strregex = "http: // ([/ w] /.) [/ W] (/ [/ w.?] ) Leibie [=] {1} [/ w] " 'use this Regular expressions can extract the above address. Universal 'extraction link regular expressions are "http: // ([/ w-] /.) [/ W-] (/ [/ w- ./?%&=]*)?". r = New System.Text.RegularExpressions.Regex (strRegex, System.Text.RegularExpressions.RegexOptions.IgnoreCase) m = r.Matches (respHTML) Dim i As Integer For i = 0 To m.Count - 1 MsgBox (m (i ) .Value) Next I

four. Master and use a large number of network resources to assist VS.NET learning, you will take a few more effort. Now my "Forum Automatic Pickup Download Edition" has been fully rewritten with .NET, and uses inheritance, overloading, multi-threading, etc., all of these can be implemented in VB6, is it wise from VB6 to .NET? From October 2003, I started to learn VB6 programming. In November, I use VB6 to complete the first software - "Automatic Posting Tool Download Edition", by 17, 2004, using VB.NET technology rewriting "Forum Posting Tool download version ". It can be found to be found. It turns out that there is no programming foundation, all of the spare time, no face, please ask a teacher. If you learn more smoothly, a large part must be attributed to the mastery and use a lot of network resources. The following lists the VS.NET network learning resources I have, what is missing, I hope everyone can point out. 1. Microsoft Technical Support In the process of learning VS.NET, there is questions to ask Microsoft to help Microsoft. If you don't know how to use the huge learning resources provided by Microsoft, I want to tell you, you are looking for a long time. (1) First, you have to install MSDN, he is more vs.net books on the market. In order to install MSDN, he sacrificed my 98 and XP dual boots, and changed to a Windows XP single system. After installing MSDN, you have to learn the regular expression, click "Help" in VS.NET 2003, then click "Search", then enter "Regular", a car, wow, find 470 themes, this slowly Study. It is really studying, nor is it urgent, and Google and 9CBS. (2) Online Microsoft .NET Framework SDK Quick Start Tutorial (http://chs.gotdotnet.com/quickStart), can be used with MSDN. (3) Microsoft China Community (http://www.mscommunity.com/profile/). Register in the community, there is a problem to go to the community. (4) Online Chinese MSDN (http://www.microsoft.com/china/msdn/default.asp); online English MSDN (http://msdn.microsoft.com/), test your E text, but There is Jinshan word tyrant, I am not afraid, what are you afraid of? Why choose vs.net, why is you optimistic about VS.NET, look at Microsoft's Help documentation. If you don't use the huge HELP resources provided by Microsoft, is it a little sorry for Gats! 2. 9CBS http://www.9cbs.net/ 9CBS claims that China's largest developer network is indeed fake. I am the most often the 9CBS document (http://www.9cbs.net/develop/) Forum (http://expert.9cbs.net/expert/forum.asp) As long as you are good at using search function, you are Many of the issues encountered in development can find answers in the documentation and forum.

If you encounter difficulties during the development process, you think Bill Gates can't help your busy, then, you will be 9cbs, you will be satisfied. Teach you two tricks, the first trick, is "Search Dafa". Incident, first of all, search at 9CBS documents and forums to see if there is a similar answer. If you can't, let's take a moment. The second trick, "Ask the Dafa", as long as there is a courteous, sincerely ask questions in the forum, there must be many people who are willing to answer your questions. 3. Other related websites, there are many websites in the column to open up the vs.net column, often take a look, there must be gains. Pacific Development SAR (http://www.pconline.com.com) NMUR tutorials to serial with http://act.id.sohu.com/book/slist.php?class1=6 Visual Studio.net column (http://www.yesky.com/softchannel/72342380467978240/index.shtml) Caid's Net Zone (http://tech.ccidnet.com/pub/column/c340.html) 9CBS Latitude's VS.Net (http://www.9cbs.net/develop/author/netauthor/latitude/) Mengxian's Wonderful World (http://xml.sz.luohuedu.net/xml/) Board (Http://www.cnblogs.com/) .NET Blog (http://dotnet.mblogger.cn) Bo Hall (http://blog.joycode.com/)

Beijing Hope Electronic Press Book material Download (http://www.b-xr.com/bbs.htm) Tsinghua University Press VS.NET Source Code Download (http://www.wenyuan.com.cn/soft_index. ASP) also has my small station http://www.riveastking.com 4. Foreign programming learning resources If your E article is good, you may wish to go to the E-article website. http://www.startvbdotnet.com http://www.vbdotnetHeaven.com http://www.vbaccelerator.com http://www.vbcity.com/ http://searchvb.techtarget.com/ http: / / www.vbwire.com/ http://builder.com http://www.developer.com http://www.codeproject.com

http://www.dotjunkies.com http://www.planet-source-code.com/

http://www.a1vbcode.com/

http://www.freevbcode.com/

http://www.vbcode.com/ http://sourceforge.net/ http://www.syncfusion.com/faq/winforms/ http://www.123aspx.com http://panopticoncentral.net/ http : //www.regexplib.com/ http://www.harding.edu/user/fmccown/www/vbnet_csharp_comparison.html http://www.only4gurus.com/v2 http://www.gotdotnet.com http: //www.programmmersheaven.com/ http://www.aspnetpro.com http://www.dotnetgenius.com/ http://www.devx.com/dotnet http://www.devhood.com http: / / www.devshed.com/ http://www.devarticles.com/ http://www.c-sharpcorner.com/ http://www.csharphelp.com/ http://authors.aspalliance.com/aldotnet /examples/translate.aspxhttp://www.developerfusion.com/ http://www.dotnet247.com http://www.codestudy.com Of course, there is also a global people know, the world's largest knowledge warehouse, I don't say, you should know it, it is not http://www.google.com! Http://www.riveastking.com December 12, 2004 Sunday

This article is currently engaged in online marketing, online advertising research, if you want to promote your stuff online, remember to come to me (QQ: 26624998).

转载请注明原文地址:https://www.9cbs.com/read-22814.html

New Post(0)