|
I am learning ADO .NET with Rebecca M. Riordan's Microsoft ADO .NET 2.0 Step by Step and discover that there many unexplained Proceedures and Functions lik
"CreateScaffolding()", InitializeComponent(), Public Sub New(). together with comments like:
This call is required by the windows Form Designer 'This call supports the exercise, etc.
It is regretable that a beginner book like this one is loaded with un-explained codes and phrases. Could someone please explain what these codes and comments mean?
Only performance counts!- Edited bySylva Wednesday, February 18, 2009 8:17 PMcorrection
-
|
| Sylva Wednesday, February 18, 2009 8:12 PM |
The code that the Windows Forms Designer automatically generates contains comments. The comments state that you must not use the code editor to modify the contents of the InitializeComponent method.
If you change the code generated byWindows Forms Designer to a way thatis not understood by theWindows Forms Designer, your change may be lost or your component may fail to open when you try to open thecomponentinWindows Forms Designer.
MSMVP VC++ - Marked As Answer byBruce.ZhouMSFT, ModeratorFriday, February 20, 2009 10:11 AM
-
|
| Sheng Jiang 蒋晟 Wednesday, February 18, 2009 9:14 PM |
Public Sub New() is the class constructor. Any introductory book about .NET programming in VB.NET will cover it. InitializeComponent() is the initializer for a Windows Form(). Any introductory book about Windows Forms programming will cover it. CreateScaffolding() is not a standard method. Presumably, the book's author needs it to setup her examples.
Don't assume that one book will teach you everything you need to know about .NET programming. It takes at least 10. Programming is a craft, it takes 4 years of higher education and many years of practice. Hans Passant.- Marked As Answer byBruce.ZhouMSFT, ModeratorFriday, February 20, 2009 10:15 AM
-
|
| nobugz Thursday, February 19, 2009 1:53 PM |
I am learning ADO .NET with Rebecca M. Riordan's Microsoft ADO .NET 2.0 Step by Step and discover that there many unexplained Proceedures and Functions lik
"CreateScaffolding()", InitializeComponent(), Public Sub New(). together with comments like:
This call is required by the windows Form Designer 'This call supports the exercise, etc.
It is regretable that a beginner book like this one is loaded with un-explained codes and phrases. Could someone please explain these codes and comments mean?
Only performance counts!- Merged byBruce.ZhouMSFT, ModeratorFriday, February 20, 2009 10:14 AMduplicate thread
-
|
| Sylva Tuesday, February 17, 2009 10:29 PM |
Yes but that will be off-topic for this forum. If you have problem with someone else's comments, contact the author, like the Windows Form Designer team or the exercise's producer. MSMVP VC++ |
| Sheng Jiang 蒋晟 Tuesday, February 17, 2009 11:11 PM |
All these methods related to Windows Formsdesigneror general .NET development. Keep in mind that book is focusing on ADO.NET and trying to avoid explanation for other aspects of .NET development. If you need to get more insides about Windows Forms development or .NET in general, you need to read the book that is related to it. Val Mazur (MVP)
http://www.xporttools.net |
| VMazur Wednesday, February 18, 2009 11:02 AM |
All these methods related to Windows Formsdesigneror general .NET development. Keep in mind that book is focusing on ADO.NET and trying to avoid explanation for other aspects of .NET development. If you need to get more insides about Windows Forms development or .NET in general, you need to read the book that is related to it.
Val Mazur (MVP) http://www.xporttools.net
Could you please give me specific idea on how to resolve this. What other books do I need to read? I am a beginner and went out of my way to import some books like the one under reference to assist me only to end up with unexplained codes and phrases. I need assistance please.
Only performance counts! |
| Sylva Wednesday, February 18, 2009 7:50 PM |
The code that the Windows Forms Designer automatically generates contains comments. The comments state that you must not use the code editor to modify the contents of the InitializeComponent method.
If you change the code generated byWindows Forms Designer to a way thatis not understood by theWindows Forms Designer, your change may be lost or your component may fail to open when you try to open thecomponentinWindows Forms Designer.
MSMVP VC++ - Marked As Answer byBruce.ZhouMSFT, ModeratorFriday, February 20, 2009 10:11 AM
-
|
| Sheng Jiang 蒋晟 Wednesday, February 18, 2009 9:14 PM |
Try to read some book on general .NET development, not specific to ADO.NET. It should go through all the aspects of the development. Keep in mind that none of the books will cover everything for you and it takes some time to lean new staff.
I will move your thread to another forum that covers general .NET development
Val Mazur (MVP) http://www.xporttools.net |
| VMazur Thursday, February 19, 2009 11:07 AM |
Public Sub New() is the class constructor. Any introductory book about .NET programming in VB.NET will cover it. InitializeComponent() is the initializer for a Windows Form(). Any introductory book about Windows Forms programming will cover it. CreateScaffolding() is not a standard method. Presumably, the book's author needs it to setup her examples.
Don't assume that one book will teach you everything you need to know about .NET programming. It takes at least 10. Programming is a craft, it takes 4 years of higher education and many years of practice. Hans Passant.- Marked As Answer byBruce.ZhouMSFT, ModeratorFriday, February 20, 2009 10:15 AM
-
|
| nobugz Thursday, February 19, 2009 1:53 PM |