473,396 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Moved from VB6 to VS2005 and stumped on simple task

Dear All,

I'm bemused, I'm moving an application I've written from VB6 into VS2005,
and I'm getting all the fundamentals over before I delve into the hard part,
like getting the forms layout etc....and the simple things, like the 'About'
option, opens another form....

Well here is the problem (which has me stumped)....

My VB6 Application, I click 'About' and it opens a form, from that form,
there is an 'ok' to close that form or 'information' which opens another
form with 'information' on it...

So I tried this in VS2005.....both forms get opened? but the code isn't
telling it too?

Form1 is the main form, Form3 is the About Box and Form2 is the Information
Box, I choose About and Form2 and 3 open....even though the code is

Form3.Show(), there is no reference to opening Form2, so why is form2
deciding to open?

I'm confused....

Also, whilst I'm here, it is getting apparent, VS2005 is much more advanced
that VB6, but on the flip side, so is the MSDN for it...Does anybody know of
any sites that are for beginners for VS2005?

Regards
Paul.
Jun 27 '08 #1
5 1188
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Form2.ShowDialog()
End Sub
End Class
and then this

Public Class Form2
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Me.Close()
End Sub
End Class

--
David Glienna
MVP - Visual Developer (Visual Basic)
2006 thru 2008
"Kardon Coupé" <pr*******@readon.newsgroupswrote in message
news:u0**************@TK2MSFTNGP02.phx.gbl...
Dear All,

I'm bemused, I'm moving an application I've written from VB6 into VS2005,
and I'm getting all the fundamentals over before I delve into the hard
part, like getting the forms layout etc....and the simple things, like the
'About' option, opens another form....

Well here is the problem (which has me stumped)....

My VB6 Application, I click 'About' and it opens a form, from that form,
there is an 'ok' to close that form or 'information' which opens another
form with 'information' on it...

So I tried this in VS2005.....both forms get opened? but the code isn't
telling it too?

Form1 is the main form, Form3 is the About Box and Form2 is the
Information Box, I choose About and Form2 and 3 open....even though the
code is

Form3.Show(), there is no reference to opening Form2, so why is form2
deciding to open?

I'm confused....

Also, whilst I'm here, it is getting apparent, VS2005 is much more
advanced that VB6, but on the flip side, so is the MSDN for it...Does
anybody know of any sites that are for beginners for VS2005?

Regards
Paul.

Jun 27 '08 #2

"Kardon Coupé" <pr*******@readon.newsgroupsschreef in bericht
news:u0**************@TK2MSFTNGP02.phx.gbl...
Dear All,

I'm bemused, I'm moving an application I've written from VB6 into VS2005,
and I'm getting all the fundamentals over before I delve into the hard
part, like getting the forms layout etc....and the simple things, like the
'About' option, opens another form....

Well here is the problem (which has me stumped)....

My VB6 Application, I click 'About' and it opens a form, from that form,
there is an 'ok' to close that form or 'information' which opens another
form with 'information' on it...

So I tried this in VS2005.....both forms get opened? but the code isn't
telling it too?

Form1 is the main form, Form3 is the About Box and Form2 is the
Information Box, I choose About and Form2 and 3 open....even though the
code is

Form3.Show(), there is no reference to opening Form2, so why is form2
deciding to open?

I'm confused....

Also, whilst I'm here, it is getting apparent, VS2005 is much more
advanced that VB6, but on the flip side, so is the MSDN for it...Does
anybody know of any sites that are for beginners for VS2005?

Regards
Paul.

If you are looking for good info as a VB6 developer Moving to VB.Net

http://www.amazon.com/Programming-Mi...9893967&sr=8-1

As a VB6 developer you might remember Francesco as the writer of
"Programming Microsoft Visual basic 6" wich is considered "the" VB6
reference
with the .Net series Francesco is bringing these Core reference guides to
..Net and gives special attention to pre .Net VB coders
HTH

Michel Posseth [MCP]

Jun 27 '08 #3
On May 4, 12:47 pm, "Michel Posseth [MCP]" <M...@posseth.comwrote:
"Kardon Coupé" <prefer...@readon.newsgroupsschreef in berichtnews:u0**************@TK2MSFTNGP02.phx.gbl. ..
Dear All,
I'm bemused, I'm moving an application I've written from VB6 into VS2005,
and I'm getting all the fundamentals over before I delve into the hard
part, like getting the forms layout etc....and the simple things, like the
'About' option, opens another form....
Well here is the problem (which has me stumped)....
My VB6 Application, I click 'About' and it opens a form, from that form,
there is an 'ok' to close that form or 'information' which opens another
form with 'information' on it...
So I tried this in VS2005.....both forms get opened? but the code isn't
telling it too?
Form1 is the main form, Form3 is the About Box and Form2 is the
Information Box, I choose About and Form2 and 3 open....even though the
code is
Form3.Show(), there is no reference to opening Form2, so why is form2
deciding to open?
I'm confused....
Also, whilst I'm here, it is getting apparent, VS2005 is much more
advanced that VB6, but on the flip side, so is the MSDN for it...Does
anybody know of any sites that are for beginners for VS2005?
Regards
Paul.

If you are looking for good info as a VB6 developer Moving to VB.Net

http://www.amazon.com/Programming-Mi...c-2005/dp/0735...

As a VB6 developer you might remember Francesco as the writer of
"Programming Microsoft Visual basic 6" wich is considered "the" VB6
reference
with the .Net series Francesco is bringing these Core reference guides to
.Net and gives special attention to pre .Net VB coders

HTH

Michel Posseth [MCP]
Hi Michel,
BTW, i have Balena's "Programming Visual Basic 2005: The Language"
book but buyers should be aware of that book doesn't cover many high-
level topics such as Windows Forms, ADO.NET, and ASP.NET, GD+,
Remoting, Isolated Storage, Custom Controls, XML, Web Services, Socket
Programming etc. which are all covered in 2003("Programming Microsoft
Visual Basic .NET 2003") version. It's great and valuable book for
experienced programmers from the master Balena, and a revised version
of 2003 without covering the topics described before. I wish there
were all the topics that are included in 2003 version, it's a bit
disappoinment when you think of learning these .NET-related
technologies which are in interaction with VB.NET language.

Thanks,

Onur
Jun 27 '08 #4
Kardon, I'd recommend a book by Dan Appleman called Moving to VB.NET:
Strategies, Concepts, and Code, published by APress in 2001.

Sure this is an old book, published when the very first release of VB.Net
was coming out, but it was designed specifically for the VB6 programmer
who's looking to start into the .Net framework. The framework library has
been through a couple of updates since then - 1.0 to 1.1 to 2 to 3 to 3.5,
but no fundamental changes in the philosophy of the framework or the
language have occurred since it was published, and with the exception of
changes to the Visual Studio IDE's user interface, most of the practices you
go through in development remain the same.

I was coming from VB6 myself, back in the day, and I found it to be a very
useful resource. You'll most likely have good luck finding a used copy in
something like Barnes and Noble's web site's (www.bn.com) used and
out-of-print section. Once you've been through it, you'll be ready for more
advanced texts.

Tom Dacon
Dacon Software Consulting
"Kardon Coupé" <pr*******@readon.newsgroupswrote in message
news:u0**************@TK2MSFTNGP02.phx.gbl...
Dear All,

I'm bemused, I'm moving an application I've written from VB6 into VS2005,
and I'm getting all the fundamentals over before I delve into the hard
part, like getting the forms layout etc....and the simple things, like the
'About' option, opens another form....

Well here is the problem (which has me stumped)....

My VB6 Application, I click 'About' and it opens a form, from that form,
there is an 'ok' to close that form or 'information' which opens another
form with 'information' on it...

So I tried this in VS2005.....both forms get opened? but the code isn't
telling it too?

Form1 is the main form, Form3 is the About Box and Form2 is the
Information Box, I choose About and Form2 and 3 open....even though the
code is

Form3.Show(), there is no reference to opening Form2, so why is form2
deciding to open?

I'm confused....

Also, whilst I'm here, it is getting apparent, VS2005 is much more
advanced that VB6, but on the flip side, so is the MSDN for it...Does
anybody know of any sites that are for beginners for VS2005?

Regards
Paul.

Jun 27 '08 #5
On Sat, 3 May 2008 23:18:35 +0100, "Kardon Coupé"
<pr*******@readon.newsgroupswrote:
>Also, whilst I'm here, it is getting apparent, VS2005 is much more advanced
that VB6, but on the flip side, so is the MSDN for it...Does anybody know of
any sites that are for beginners for VS2005?
Study these examples:
http://msdn.microsoft.com/en-us/vbasic/ms789075.aspx
Read the code. Anything you do not understand, look it up.
....
Also, find a general reference on object-oriented programming,
if this subject is new to you. You might have been able to avoid
it in VB6, but there is no getting around it in .Net.
....
Have a look at the requirements to become an MCSD in .Net,
e.g. 70-306:
http://www.microsoft.com/learning/mc...ntsdotnet.mspx
....
I am sure you can find something of interest using this page as
a starting point:
http://msdn.microsoft.com/en-us/vbasic/default.aspx
....
Finally, in addition to all the books that have been written
on the subject over the years, you might find this site of use:
http://www.learnvisualstudio.net/
More than 500 (short) videos covering a huge range of
topics. At little more than $50 (the price of a single book) for
one year's access to all the videos, this is a great resource
if you are just getting started.

/Joergen Bech

Jun 27 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: C Gatto | last post by:
Hello, My organization is just beginning to test out Whitby with a plan to move to it on release. We're just starting testing now and are coming across a number of issues related to converting...
5
by: clintonG | last post by:
After discovering Cassini is crippleware I learned how to use Start Options to disable NTLM and enable support for the default web server on my XP Pro dev platform. Now all new projects are created...
4
by: Chris Botha | last post by:
In VS2003 if I had a Web form, say Form1 and a class, say Class1, then I could pass the form as parameter to a sub/function in the class, so this would compile: Public Class Class1 Public Sub...
9
by: João Santa Bárbara | last post by:
Hi all, i have instaled VS2005 Develpers Edition, and i have migrate my VB code from VS2003 to VS2005(RTM). and so far i´m not pleased with this migration. i have lots of ide Bugs, some forms...
9
by: Jeff Gaines | last post by:
I have just installed VS 2005 (MSDN version) and I am having problems coping files to the Projects folder while VS2005 is running. The projects folder is on a network share and I have used...
10
by: musosdev | last post by:
Hi guys I'm trying to migrate to VS2005... I've managed to do that, but realised I'd opened my web projects as file projects, and I'm getting the error about network BIOS command limit. ...
1
by: Peran | last post by:
If I create a simple xslt stylesheet I can quickly test this in VS2005 by pressing the "Show XSLT Output" button rather than running the whole solution. If I then create a xslt stylesheet with...
3
by: teo | last post by:
Hallo, I have vs2005. I'm not a able to find a way to create and manage FRAMEs for a simple .html page in the VS2005 IDE (any toolbox, wizard, property window...). Am I missing something ?...
4
by: davinski | last post by:
Hello, it's been a while since my last post, hope everyone is fine :P I'm stuck with what seems to be a simple task, but I'm getting confused on how to complete this. Basically, I have been given...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.