Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 19th, 2008, 10:04 AM
Authorized User
 
Join Date: Feb 2008
Location: Keighley, , United Kingdom.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default Loosing work

Hi

I teach programming and I am teaching a class in VB.NET. Until two weeks ago I was 'playing with VB2008' and we had VB6 at the college where I teach, now they have installed VB.Net 2002. I start teaching next week so must move on FAST.

I have now re-created most of my worked examples and worksheets, notes are 'in progress'.

I have noticed one or two things I do not understand.

Several times I have 'lost work' I am 100% sure I did not delete any of the 'windows generated code'.

I think after completing an example and got it working I started to rename controls from default (form1, textbox1 et al) to naming convention names (to set a good example).
What happened the form view and code view disappeared. So I could correct nothing.
I think my students will do the same trick whatever it was! All renaming was done in the IDE using properties.
How I create my examples.
1. write a small program to demonstrate say how to code a combo box.
2. copy (1) and change foldername from combobox combobox_props an example showing setting up combobox list items using properties.
3. copy (1) and change foldername from combobox combobox_Code and change code / properties to setup the list items in code.
4. copy (1) and change foldername from combobox combobox_run allowing user to change the combo box items at run time.
The problem occurs when I try to take the renaming beyond the folder level and down into the project.

Pat
__________________
Pat
Reply With Quote
  #2 (permalink)  
Old February 19th, 2008, 10:41 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Can you verify that you are working with VB.NET 2002? I ask because the behavior of the code files is different when you jump to 2005 and up.

And I'm curious why 2002 and not 2003, 2005, or 2008? Seems odd for a college to be 6 years behind the curve.

-Peter
peterlanoie.blog
Reply With Quote
  #3 (permalink)  
Old March 25th, 2008, 02:35 PM
Authorized User
 
Join Date: Feb 2008
Location: Keighley, , United Kingdom.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry for delay, I have been very busy.

OK yes the college still uses 2002, I have 2003 and 2008 at home.
The college is small and does not have a lot of money, also I think the management regard IT as a problem area, IT students are noisy and hang around playing with electronic devises; are independent get poor results because they leave for well paid jobs but before the exams, so are deemed to fail.

I have managed not to loose more work, mostly by I think by not having too many changes waiting to be saved. This also means if the worse happens I do not loose too much.

My main worry is why version 2003 so soon after 2002 - makes me think of bugs, not a service pack but a new version! The college have had .Net since the start but it was not installed until this year - I have been asking for it for at least 5 years.


Pat
Reply With Quote
  #4 (permalink)  
Old March 26th, 2008, 09:43 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Pat,

Regarding the money issue, all the major Visual Studio flavors (C#, VB.NET, C++, Web Developer) come in a free version since 2005. These are the Express editions. They lack the types of things that you need and benefit from in a commercial environment such as source control and web project files, but in an educational setting they should be more than adequate for .NET instruction. And you can't beat the price. There is even an express version of SQL Server 2005 and its management studio application. Again, they lack enterprise level functionality but are more than suitable for learning.

-Peter
peterlanoie.blog
Reply With Quote
  #5 (permalink)  
Old March 28th, 2008, 08:14 AM
Authorized User
 
Join Date: Feb 2008
Location: Keighley, , United Kingdom.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I agree with what you say, and will try and get an express version installed.

Now I am more familiar with the interface I am happy I can operate without loss of work.

I was very surprised and happy at first to discover that .net was good at renaming, however it is not perfect, for example rename a form with a database connection, data adapter and dataset controls then there is a need to regenerate the dataset - then one exists but cannot be used as it is connected to the 'old' form name, a new one means a new dataset name.
I cannot now recall exactly what happened, it is possible that at this point I did something wrong to clear compile errors that then occur eg. rename all - or at least too much - dataset-old-name to dataset-new-name.

Pat
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 1 Ctrl+F5 don't work, F5 does work? jimboak BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 7 June 29th, 2008 03:46 AM
why does it not work pauljames BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 7 January 16th, 2008 03:17 AM
Form Loosing Data netpicker9 General .NET 1 June 14th, 2007 08:12 PM
should this work? crmpicco Javascript How-To 1 January 18th, 2005 10:56 AM
Loosing a reference?? mega C# 1 November 27th, 2004 06:32 PM



All times are GMT -4. The time now is 08:52 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.