Converting An Old Program From VB 5 To Run In VB 2010

Jul 20, 2011

I have been given the task of converting an old program from Vb 5 that needs to be able to run in VB2010. I have read a few forums on the subject but whatever I try doesn't work. The .bas files convert over fine and the code from the forms comes over, but the forms do not appear. Instead there is a bunch of gibberish. How can I convert this? I tried going to version 6, which the forms worked in, and then to 2010, but I couldn't get the vbp file to show up or the forms.

View 1 Replies


ADVERTISEMENT

Error Converting From C# To Program

Apr 10, 2012

I converted a lot of code, and I had some errors in the conversion. There is one that I can't seem to figure it out[code]...

View 2 Replies

Temperature Converting Program

Mar 7, 2010

I am trying to a create a program that converts a Fahrenheit temperature to a Celsius temperature and vise versa. My form consists of three command buttons(Compute, clear, quit), two radiobuttons where you choose whether you want the entered temperatures to be converted from fahrenheit to celsius or celsius to fahrenheit, three text boxes(start value, stop value, increment), and a list box that displays the information. My problem is that the program needs to limit the conversions to 20 per computation. The program must verify that the range of values and increment will not generate more than 20 lines before any calculations are performed. I need a way to check whether more than 20 lines will be put into the list box before anything is actually put into the list box.

My current code is below.

CODE:

View 3 Replies

Shell Non Funtional After Converting Program

Jun 15, 2010

visual basic 2010 after converting a program from visual basic 2008 is stating that the Shell function is a namespace and cannot be used as an expression. this can be fixed with the create sub feature but when debugging causes an error stating that there is a nohandled exception.

View 5 Replies

Syntax Error When Converting One Of Applications From C# By Hand(No Program Used)?

Jul 10, 2010

I have made a smtp client in c# and I use this code to split a string that contains multiple recipients.

foreach (var n in txtSendTo.Text.Split(';'))
{
mail.To.Add(n);

[code].....

View 3 Replies

Tool For Converting Variable And Loops Declarations From Program To C++?

Jun 25, 2010

Is there any available tool for converting variable and loops declarations from VB.NET to C++?

View 3 Replies

Converting From .NET 2003 To 2010?

Jul 6, 2010

I created a VB.NET winforms project using Visual Studio 2003, including reports done with CRystal Reports. I need to upgrade the system to the latest VB.NET using Visual Studio 2010. What kind of problems can I expect? How difficult will it be to convert the reports to Business Objects (which I believe is now th default in V Studio).

It's not a huge system about 6-8 screens and a similar number of reports using an Access 2000 Database. Most of the screens were coded directly in VB and not done with the automated processes at the time.

View 6 Replies

VS 2010 : Converting Vbscript To .net?

Sep 21, 2010

lI think I almost have this done but I get and error "'Public ReadOnly Property Right As Integer' has no parameters and its return type cannot be indexed."here is the line causing the error:

If UCase(StrKey) = ".DEFAULT" Or UCase(Right(StrKey, 8)) = "_CLASSES" Then

whole code

Const HKEY_USERS = &H80000003
Const ForAppending = 8
Const OverwriteExisting = True

[code]....

View 7 Replies

VS 2010 Converting Hex Functions From VB6

Jan 9, 2011

I came about these two functions (ReadHEX and WriteHEX) that, obviously, read a hex offset or write a hex offset of a file. However, these functions were written in VB6. The main thing I'm not understanding is how to open a file (in a filestream I presume) and then to either read or write a certain offset from the file. I'd also need to convert the string I'm writing to hex before I actually right it, but I've got that under control. Here's the current functions as they were written:

[Code]...

View 12 Replies

Converting VBscript To VB 2010 Express?

Mar 27, 2011

I want to convert the following VBscript into Visual Basic 2010 express so I make a graphical interface for it.is script basically runs through excel workbooks in a folder and prints out worksheet 3 of each workbook.

'~~> Folder where the Excel Files are.
Const strSourcePath = "C:\test"
'~~> Path for the log File

[code]....

View 14 Replies

Error Converting Code From 6.0 To 2010

Jun 10, 2011

i was used to be vb 6.0. but now im starting with vb 2010 because 6.0 is old. but now i have a few problems with converting some things for my game that im making.

in 6.0 it was

modPlayer (module)
Public Player(1 To MAX_PLAYERS) as PlayerRec
Private Type PlayerRec
Name as string
Level as string
End Type

but this code gives in 2010 some errors; it says it should be structures right now?

Module modPlayerRec
Public Player(0 To 100) As PlayerRec
Structure PlayerRec
Public Name As String
End Structure
End Module

what should be the right code for vb 2010? this is not working what i have right now.

View 5 Replies

Visual Studio 2010 Converting?

Jul 26, 2010

I have installed visual studio 2010 ultimate version but it doesn't convert my 2008 visual basic projects so it can not open projects. What should I do to activate converting options?

View 5 Replies

VS 2010 - Converting Base36 To Decimal?

Jan 2, 2012

What code should I write to convert a Base36 to decimal?

View 6 Replies

VS 2010 Converting A Text File To XML?

Feb 28, 2012

Currently I am trying to convert a tab file to an xml but I seem to be running into some issues when trying to do the conversion.Example of the text file this I need to convert:

View 8 Replies

VS 2010 Converting An Image To Stream?

Jun 23, 2010

How would I go about doing this? I plan to send the image over a network.

View 3 Replies

VS 2010 Converting ArrayItem To String

Aug 15, 2011

I'm trying to get the first checked item from a checked list box and turn it into a string. I tried using [code]But that threw an error at me: "Conversion from type 'FileInfo' to type 'String' is not valid." So then I thought of dumping it into an array. But then I couldn't convert the array to a string.Remember I only want one value. array(0)

View 1 Replies

VS 2010 Converting Keys To/from Different Formats?

Aug 3, 2011

I have a lot of keyboard keys stored in different formats. For example, "Up" may be stored as a string, as a decimal (200) or as hex (C8). I need to convert all of this different representations to strings so they can be easily understood by the user, and then back again when I save them.When I capture the key press using the KeyDown event, I can grab the decimal value from KeyEventArgs.KeyCode, which can easily be converted to hex if needed.

View 2 Replies

VS 2010 Converting Recursion To Iteration?

May 10, 2010

Is it possible to make this function iterative or must it be recursive?

The Function traverses a grid of x length and y height. At each point in the grid, it checks all of it's neighbors to see if they are valid, meaning they exist in the grid and haven't been used yet.

The function works in it's current form but I was wondering if an iterative version would be more efficient.

PathManip is a Stringbuilder, stores the path currently being manipulated. PathQueue is a List(Of String), stores all paths yet to be traversed.

IsPathAlreadyUsed is a boolean function that checks whether or not a specified point has been used in the current path.

Sub FindNeighbors(ByVal coords As String)
Dim x As Integer = CInt(coords(coords.Length - 2).ToString)
Dim y As Integer = CInt(coords(coords.Length - 1).ToString)

[Code]....

View 18 Replies

VS 2010 Converting String To Short?

Jan 5, 2011

Working on a Sudoku program and I want to read a puzzle in from a file. So, I read the file in as a string in the form --3-2--1- and so on, where - means nothing starts in that cell. How do you convert a string to a short? I found the cshort function but it doesn't seem to work. Is there a different way or am I making some other mistake?

SudokuPuzzle is a string where I read in the file. squareValue(i,j) is the number is the ith row, jth column position of a correct solution I used 1 to 9, 1 to 9 as the indices for my puzzle (and just ignore the 0, though I did Dim as (0 to 9, 0 to 9)), so that is why I have the i - 1 and j - 1 in there.

For i = 1 To 9
For j = 1 To 9
If SudokuPuzzle.Substring(9 * (i - 1) + j - 1) <> "-" Then
squareValue(i, j) = CShort(SudokuPuzzle.Substring(9 * (i - 1) + j - 1))
End If
Next
Next

View 1 Replies

Converting Socket Connection From Python To VB 2010?

Mar 23, 2012

I have codes which is written with python. I am not good with python and i want to convert this python codes to VB 2010.This python function searching local network and finding my LG TV's local IP adress. I want to find my TV's local IP with VB 2010.

[Code]...

View 9 Replies

VS 2010 : Program To Save Settings To Another Program Without Running The Program That Is Being Edited?

May 5, 2012

is it possible by 1 program to save settings to another program without running the program that is being edited?

View 6 Replies

Converting Multiple Numerical Data Types In 2010?

May 7, 2011

I'm having a bit of an issue with this program I have been working on for my class. It's a future values calculator, that takes a single data type, decimal data type and a integer data type does the formula and then spits back out the Future value. What i'm having difficulty with is converting the string over.

Public Class Form1
'Define the Module level variables
Dim FutureValueInteger As Integer

[Code]....

View 1 Replies

VS 2010 Converting Forms Based Application To A Service

Apr 30, 2012

I have an application that I created a while ago. It's a forms based application that runs on one of our servers at work. The app works well, BUT at the moment, requires someone to manually run it, which means having the admin account always logged in, but having the server locked.Although it's a forms based application, for the majority of the time I don't need to see the forms, so can I safely make this run as a service (by adding the appropriate code), and hiding the forms?Also, is there some code I can put in to test whether the instance of the program was started as a service or from a user double clicking on the icon? If so, I'd like the user initiated instance to run with the forms visible.

View 2 Replies

Converting File Into Bytes And Then Converting Those Files Back Into Its Original Form?

Aug 22, 2011

my goal is to

1.Take an file(exe,dll,etc)

2.Convert it into hex

3.place that hex values in a stack

4.Execute the values inside the stack to its original form(i.e. take the elements out of stack and then convert it to a compile format)

Imports System.IO
Sub Main()
Dim fileName As String = "ABC.exe"

[code]....

View 1 Replies

VS 2010 Converting Strings Received From Serial Port To Double?

Apr 25, 2012

how to convert received string to double.

I'm receiving string as 420.8 280.9 140.2 like this from serial port.. and transferred it into textbox..

I'm using following code to split string and to convert to double

Dim ReceivedText As String
ReceivedText = txtReceived.Text
Dim str_RY_1U, str_RY_1V, str_RY_1W As String

[Code]...

For calculating percentage RY_R is calculating fine.. But when it comes to RY_Y it showing error "string not in a correct format..."

View 3 Replies

VS 2010 Generic Type Converting Function, With A Special Case

Aug 1, 2011

I wrote my own database handling code (actually, I write T4 text templating files that generate my database code for me) and part of it takes care of converting values from a database (as Objects) to the desired types.

I have been using this generic function successfully:

vb.net
Public Overridable Function ConvertType(Of T)(value As Object) As T
Try
Return If(value IsNot Nothing AndAlso value <> DBNull.Value, DirectCast(value, T), Nothing)

[Code]....

Simple enough, but it doesn't work... The return type of the function is (and must be) T, so I cannot return a Boolean because a Boolean cannot be converted to T!

Well... It can in this case, because I specifically check that T is Boolean, but the compiler doesn't know this so it doesn't allow me to return a Boolean. I cannot cast the boolean to T either.

View 8 Replies

VS 2010 Generic Type Converting Function, With A Special Case?

Aug 19, 2009

I wrote my own database handling code (actually, I write T4 text templating files that generate my database code for me) and part of it takes care of converting values from a database (as Objects) to the desired types. I have been using this generic function successfully:

vb.net
Public Overridable Function ConvertType(Of T)(value As Object) As T
Try

[code].....

View 13 Replies

VS 2010 WebClient Get Error When Converting String To System.Net.IWebProxy

Sep 21, 2011

I am getting an error with this Dim Web As New WebClient Web.Proxy = "69.196.16.237:62159" It says runtime errors may occur when converting string to System.Net.IWebProxy What does that mean?

View 9 Replies

Converting A VB 2005 Express Program To VB 2008 Express

Feb 24, 2010

The program I am trying to modify was initially written using VB 2005 Express. I have subsequently downloaded the 2008 version. The program creates a monthly spreadsheet from a template. The old code that will no longer (highlighted and underlined) compile is as follows:

[Code]...

View 4 Replies

Converting C# Program To VB - Use "Yield" Statement ?

Feb 23, 2012

I am converting C# program to VB. I heard that "Yield" statement is ready from Visual Studio 2010 SP1.

[URL]

I updated my developing environment to Visual Studio 2010 SP1. However IDE still displays error to the following code saying that "yield" is not delclared.

Public Class WeakCollection(Of T)

Implements IEnumerable(Of T)...

ReadOnly innerList As List(Of WeakReference) = New List(Of WeakReference)()

[CODE]...

How can I use "Yield" statement in VB?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved