101 VB.NET examples - Updated 3-9-06 see first post
Many of you may be aware of this great set of .NET examples, but for those of you who are new to .NET, this set of 101 code samples can be a life saver when moving from VB6 to VB.NET. It is also useful for any newcomers to programming. These are all examples done by Microsoft and contain comments and descriptions. Almost anything you want to do in .NET, you will find a basic (or advanced) implementation in these examples. This was originally out when .NET 2002 was released, but all samples have been updated to .NET 2003. Here are a few of the cool samples included.
1) Windows Forms - XP Theme Support
2) Windows Forms - How-To Use Drag and Drop
3) Windows Forms - How-To DataGrid Sorting and Filtering
4) Windows Forms - How-To System Tray Icon
5) Web Development - Data Entry Form
6) UPGRADE SAMPLE - FORM CLOSING AND SAVE CHANGES
7) UPGRADE SAMPLE - FILE EXPLORER
8) Security - Use Cryptographic Hash Algorithms
9) NET Framework - Use Temporary Files
10) Language - How-To OO Features
11) Advanced .NET Framework (GDI+) - Animation with GDI+
12) Advanced .NET Framework - Interacting with a Windows Service
13) Advanced .NET Framework - Make WIn32 API Calls
14) Advanced .NET Framework (GDI+) - Use GDI+ to manipulate images
15) Data Access - Retrieve and Process data with a SQL Data Reader
These are just a few of the great examples you will get.
Click here for download page
03/09/2006 UPDATE
VBFORUMS member moeur pointed out the 101 VB.NET examples for 2005 link no longer works, and MS has listed a bunch of 2005 code samples in the MSDN which can be found in the link below
Click here for download page
I haven't looked at it myself yet, as I am not using 05 just yet, but I imagine its the same set of samples, just updated using the 2.0 framework (perhaps differences in coding where they apply)
Edit: 11/11/2005. I will be removing some of the posts from here since this is such a valuable sticky to have in this forum. I will leave all posts related to trouble shooting, but I will be removing any of the posts like "thanks" or "just what I needed". Not that we at VBF don't like to hear those good words, but since this is a sticky we plan to leave around a while, we dont want it to get cluttered.
That happened to me too..
one of the things is restart your system after you install MSDE
then.. make sure your server is running... check the little icon on the system tray!!
if thats not working still.. its probably cus you already have it install in .net..
make a search for the data base.. if you find it on your system under SQL server.. you have it!!
Re: 101 VB.NET examples(MY problem)
I have downloaded the 101 VB.NET examples, but running into a problem when I try to execute a data access sample. Maybe one of nice guys can help me. Following are the details.
I downloaded MSDE again from the location you suggested. It was succesfull.
1. Then I insatalled it at the defualt location, which is C:\sql2ksp3|MSDE.
2. Then I installed all four databases (including Northwind) at following LOcation.
C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Samples\Setup
3. Then using 'Server Explorer' in vb.Net I checked under Servers ...SQL Servers & noticed all four databases are present. I can see the tables & data.
except I noticed all the entries had a red "X" next to it.
4.Then I tried a data access sample & also tried to create a 'Data Wizard' form & tried to connect to the database but got following message.
"An error in initializing provider[DBNETLIB][Connection Open(Connect()).] SQL server does not exist or Access Denied"
5. One more thing in system tray I can see an Icon for SQL server & when hover mouse over it I get the message
'not connected .\\'
You guys have been helpfull so far please help more. You help will be greatly appreciated.
Thanks in advance.
Thanks
Re: 101 VB.NET examples - Updated 8-5-05 see first post
For the poor sods who need it, there's also a set of VB.NET 2002 101 samples available here.
Re: 101 VB.NET examples - Updated 8-5-05 see first post
Thanks for the link, but it shows one more reasone why I'm still not touching .Net. You have two sets of examples, one for 2003 and one for 2005. When are they going to settle for one thing and leave it like that. Am I going to have to learn a new syntax every time they want to change something?
Re: 101 VB.NET examples - Updated 8-5-05 see first post
not at all... syntax has not changed.. there just happens to be a lot of new features in 2005 that were not available for 2003.
I don't know if they actually took anything OUT of 2003 going to 2005, which would mean you could open a project you did in 2003 and 2005 would migrate it over for you. You just might want to recode some areas where new features would now be useful.
Each .NET version is just a continuation off the previous... so there are a few new things to learn, but there is nothing that needs to be "unlearned" so to speak in order to start using the newer .NET frameworks.
Re: 101 VB.NET examples - Updated 8-5-05 see first post
I know some of the controls are no longer available by default in the Toolbox, but they still work....
Re: 101 VB.NET examples - Updated 8-5-05 see first post
Hey this is great more samples :D
And I found some more if anybody is interested (and if anyone has not posted the same link yet)
http://www.asp.net/Default.aspx?tabindex=9&tabid=47
there are about 6 projects, I have installed 2 already (both works) and found them useful ASP .NET samples. :D
Re: 101 VB.NET examples - Updated 8-5-05 see first post
The 101 samples for .NET 2.0 seem not to have been updated since beta 2. I don't know whether they will be or not, but you can get language samples tested on the RTM here: VB.NET, C#
Re: 101 VB.NET examples - Updated 8-5-05 see first post
Re: 101 VB.NET examples - Updated 8-5-05 see first post
Quote:
Originally Posted by oceanebelle
Hey this is great more samples :D
And I found some more if anybody is interested (and if anyone has not posted the same link yet)
http://www.asp.net/Default.aspx?tabindex=9&tabid=47
there are about 6 projects, I have installed 2 already (both works) and found them useful ASP .NET samples. :D
Hey i couldn't find any sample downloads for ASP in this page. Can u help me to find it?