473,403 Members | 2,284 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,403 software developers and data experts.

Upgrading from VB6 to VB.Net

Hi EveryBody:

I have some question about upgrading from Vb6 to Vb.Net

All of us we know the RadioButton in the ToolBox and it is equal to Option
buttons in Vb6.

My question is what is equal to Option1.value =true in Vb.Net ? there is no
RadioButton1.value in Vb.net ?

Also How can I upgrade the following code from Vb6 to VB.net:

Dim hFile As Long

hFile = FreeFile()
Open sTmpFile For Output As #hFile

EmailCreate = hFile

Also How can I upgrade the following code from Vb6 to VB.Net:
If Len(email.sAddrTo) Then
Print #hFile, "To: "; Chr$(34); email.sAddrTo; Chr$(34)
Else

any help will be completlly appreciated

regard's
Dec 27 '05 #1
3 1812

Use the "Checked" property.

/JB
All of us we know the RadioButton in the ToolBox and it is equal to Option
buttons in Vb6.

My question is what is equal to Option1.value =true in Vb.Net ? there is no
RadioButton1.value in Vb.net ?


Dec 27 '05 #2
Husam wrote:
Hi EveryBody:

I have some question about upgrading from Vb6 to Vb.Net

All of us we know the RadioButton in the ToolBox and it is equal to Option
buttons in Vb6.

My question is what is equal to Option1.value =true in Vb.Net ? there is no
RadioButton1.value in Vb.net ?

Also How can I upgrade the following code from Vb6 to VB.net:

Dim hFile As Long

hFile = FreeFile()
Open sTmpFile For Output As #hFile

EmailCreate = hFile

Also How can I upgrade the following code from Vb6 to VB.Net:
If Len(email.sAddrTo) Then
Print #hFile, "To: "; Chr$(34); email.sAddrTo; Chr$(34)
Else

any help will be completlly appreciated

regard's

Doing this all from my head so it may not be perfect, but it will get
you very close:

'hFile = FreeFile()
'Open sTmpFile For Output As #hFile
'EmailCreate = hFile

Dim oStreamWriter as New StreamWriter(sTmpFile)
'EmailCreate = hFile <- Not sure what you need this for

'If Len(email.sAddrTo) Then
' Print #hFile, "To: "; Chr$(34); email.sAddrTo; Chr$(34)
'Else
if email.sAddrTo.length > 0 then
dim sOutput as String
sOutput = "To: " & Chr(34) & email.sAddrTo & Chr(34)
oStreamWriter.WriteLine(sOutput)
else

As far as your .value issue, I believe you need to use
RadioButton1.Checked. This site talks about it.

http://www.startvbdotnet.com/controls/radio.aspx

Chris
Dec 27 '05 #3
"Husam" <Hu***@discussions.microsoft.com> schrieb:
All of us we know the RadioButton in the ToolBox and it is equal to Option
buttons in Vb6.

My question is what is equal to Option1.value =true in Vb.Net ? there is
no
RadioButton1.value in Vb.net ?
Check out the control's 'Checked' and 'CheckState' properties.
Also How can I upgrade the following code from Vb6 to VB.net:

Dim hFile As Long

hFile = FreeFile()
Open sTmpFile For Output As #hFile

EmailCreate = hFile


You can use the functions in 'Microsoft.VisualBasic.FileSystem' instead
('FileOpen', etc.).

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Dec 27 '05 #4

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

Similar topics

3
by: S. Crespel | last post by:
Hi, Where can I find informations about consequences of upgrading from PHP 4.2.3 to 4.3 regarding existing PHP applications ? I have lots of existing PHP (4.2.3) scripts, will everything still...
1
by: bartolomesintes | last post by:
Hi, I have installed PHPHome 2.3.4 in Windows XP. This WAMP package installs Apache 2.0.50 , PHP 5.0.0 and it works fine. The SQLite installed version is 2.8.14 and I would like to upgrade to a...
6
by: Michael Foord | last post by:
http://www.voidspace.org.uk/python/articles/upgrading_python.html I've been looking at whether to upgrade immediately from Python 2.3 to Python 2.4 or postpone it. This is my first `major version...
0
by: Jonathan Hilgeman | last post by:
Currently, I'm running 3.23.51 on Red Hat 7.1, and I'm contemplating upgrading to MySQL 4.0, but I'm not sure what to expect. I don't know if MySQL 4.0 is fully backwards-compatible with 3.23.x...
2
by: wellington fan | last post by:
Dear newsies, My ISP has offered to upgrade my servers from 3.23 to 4.1. I'm excited by the potential gains in performance, and the ability to write subqueries, but am wary of any forward...
5
by: Mike Owen | last post by:
Hi, I have just used the import Wizard to import a VS 2003 app to VS 2005. I have a lot of work to do to enable it to compile successfully with all the errors and warnings it gave me, but as a...
13
by: Noesis Strategy | last post by:
When I ordered my new laptop, Sony didn't offer Access 2003 in its bundles. Recently, I have begun to design Access databases using an copy of Access 2002 from my previous laptop. It works fine,...
11
by: Aidan Tobin | last post by:
Hi, I have to upgrade a number of databases from Access 2.0, Access 97 and Access 2000 to work in Office 2003. These databases contain a number of Forms coded with VBA as well as a number of...
1
by: progTiger | last post by:
The upgrade wizard just hangs on step 5 of 5 when it reaches "Upgrading DataEnvironment..." I have let it sit for 3 hours and it does nothing. .Net Studio is not frozen, but the process does...
6
by: JimLad | last post by:
Hi, We have a major ASP app that we are in the process of upgrading to ASP.NET 1.1 and probably on to ASP.NET 2.0 in the middle of next year. (We will also be upgrading to SQL2K5 at the same...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.