VS 2008 How To Convert VB6 To VB2008

Mar 9, 2010

I'm trying to create a combobox with lists of radio stations in it so when user selects lets say "rap" it will play rap radio station which I have put in the code ( I did something liek this for VB6 long time a go just wanted to knwo if any one can make this code work for VB2008 ) .

[code....]

View 6 Replies


ADVERTISEMENT

Convert A Program For VB6 To VB2008?

Sep 4, 2009

I am trying to convert a program for VB6 to VB2008. In VB6 I have the code below to load a database field into a variable.

The database = Local MS Access MyDatabase has a table in it called CoInfo which has a field CustID that I need to put in a variable gCustID.

This code works greatin VB6 but I can't for the life of me figure out how to accomplish this in the Visual Basic 2008.

Dim adoCon As New ADODB.Connection
Dim adoRec As New ADODB.Recordset
Dim MyPath

[Code]....

View 1 Replies

VB6 Code Convert To VB2008 Express?

Nov 23, 2010

I am converting a VB6 program to VB express and am having a couple of problems. One of them is a difference in String use. "Result=string$(32,0)" doesn't compile and I tried the trim function, but when I cannot use the "0" with the trim function the program shuts down with the error "Argument 'Start' is not a valid value." I need to replace the "Result=string$(32,0)" with a valid vb express line.

[Code]...

View 1 Replies

Control Array Calculator Convert To Vb2008?

Jul 22, 2010

Super newbie here and I recently signed up just to address my problem. Please help me convert or at least tell me what to do on the following code to my vb2008.I saw this listing on a website and I like its simplicity. It was written in vb6.

here's the snippet:Design the form. Create a Command Button named as Command1 and copy that and paste it 11 times. This will create a control array.Then assign the text naming it 0-9 plus (.)dot and they are under one control array. Likewise create cmdOperator control array for the operators Add, Subtract, Multiply and Divide. One button for equals and one for clear. All in all 17 buttons. 1 textbox serves as input and output.

Sorry if I'm in a rush here( I am already) but vb2008 its hard for me to learn control array. I have read a few post awhile here dealing with arrays in vb2008 but I'm overwhelmed with info and confusing for me to grasp the idea.

[Code]...

View 3 Replies

Convert VB2010 Express Proj To VB2008?

Oct 4, 2010

I created a windows form in VB 2010 and I am trying to view it in 2008, but I get the error message "The selected file is a solution file, but was created by a newer version of this application and cannot be opened".

Is there anyway I can re-save the 2010 project(similar to Microsoft word) in order to be able to open in older version?

View 4 Replies

How To Convert VB2010 Express Proj To VB2008?

Oct 20, 2011

How to convert VB2010 Express proj to VB2008

View 6 Replies

Convert A VB2008 Console Application To Windows Forms Application

Feb 7, 2010

I have a fully functional multi-threaded VB2008 console application that I need to convert to a windows forms application. I am doing this to add additional functionality at a later time. How would I go about doing this?

View 9 Replies

VS 2008 How To Install VB2008 Pro (min.)

Nov 18, 2010

I install (vb 2008 professional edition -90days trial)but I ONLY NEED part of Visual Basic,

when setup installed:
microsoft .net framework 3.5
microsoft .net framework 3.5LP

[code].....

View 1 Replies

VS 2008 Moving 2D Map Using VB2008?

Jun 15, 2009

I am coding a program and I want to add an option of moving 2D map (using the mouse to move the map left, right, up and down). when I say to move a map is not moving a window. I want actually to move the map itself, for example "google maps".

View 6 Replies

VS 2008 VB2008 And HidD_GetSerialNumberString?

Mar 18, 2010

I'm using VB2008 Express and trying to read the serial number from a HID device. I'm trying to use the HidD_GetSerialNumberString API. For some unexplained reason, I'm not getting any errors or warnings but it's also not working. Here is how I'm declaring the API:

<DllImport("hid.dll", SetLastError:=True)> _
Shared Function HidD_GetSerialNumberString _
(ByVal HidDeviceObject As SafeFileHandle, _

[code].....

View 1 Replies

VS 2008 Vb5 To Vb2008 Conversion?

Apr 10, 2010

Okay so I have decided to upgrade my game from vb5 to vb2008 express edition. When I opened it I was told it needed to be converted so I said ok. However, there are some things in the language syntax that have changed.Obviously. Well here is one of them:

[Code]...

Setting controls to objects allowed me to cut down on typing but it seems you are not allowed to reference things without the "full path". I understand that you now have to set the full path of the object but doesn't setting something to an object already do that? Do I have to just delete the object references on the top and instead of using objCmbGraveU2 I now need to replace it with frmMain.cmbGraveU2?

View 6 Replies

VS 2008 Deploy VB2008 Express?

Nov 25, 2009

How do I deploy application using vb2008 express? I tried to find on in its package but couldn't.now i use cyber installer suite and works fine, except for one thing:

when I use visual basic powerpacks conponent, such as rectangleshape or ovalshape, I still cannot make my program works in other computer without vb2008 installed.. (deploy using cyber installer suite 2009)

View 4 Replies

VS 2008 Dial Up Connection In VB2008?

Apr 26, 2011

i need to dial a dun connect in vb 2008. But am not able to find a working code for it.

View 2 Replies

VS 2008 Mysql Backup Through Vb2008?

Sep 26, 2011

Anyone knows how to backup mysql db?I got this code by searching, but nothing happens here

Process.Start("C:xampp/mysql/bin/mysqldump.exe", "-u root -p --database=goodhand > -r ""C:ack.sql""")

View 5 Replies

VS 2008 VB2008-Dynamic TreeView?

Jul 1, 2010

I am currently attempting to devise an algorithm that will take a list of part numbers with their corresponding levels and create a Tree View. Here is a sample of the data I am using.

[Code]...

I just can't seem to get the "Do Something" code right.

View 4 Replies

VS 2008 Adding Music/sound To Vb2008.net?

Mar 23, 2011

How can you add music/sound to vb2008.net and be able to stop and start it with buttons?

Also how do I make it so that i can play an mp3 file not just a wma or whatever it is?

View 5 Replies

VS 2008 Looking For A VB2008 Book Explaining Controls?

Jul 8, 2009

I've recently decided to switch from VB6 to VB2008 and am looking for some advice for a certain type of book I seek.Already I've aquired several VB2008 books, but the type of reference book I'm seeking I can't find.For VB6 I have a book called "The visual guide to visual basic". It's a very very very very old book but its gold, platinum and diamonds in one.This book basically takes ALL controls, commands, etc, and in alphabetical order as a sort of encyclopedia, explains its purposes, possibilities, properties together with many examples.

If I was uncertain about a control or command I could simply look it up in this book and almost always find what I was looking for.My question, does anybody know of an equivalent for VB2008?

View 13 Replies

VS 2008 Merge Cells In Datagridview In Vb2008

Nov 11, 2009

Is there any way to merge cells in datagridview in vb2008 like we could do it in excel?

View 6 Replies

VS 2008 Package And Deployment Wizard In VB2008

Jan 14, 2010

In Vb6.0 i used to use package and deployment wizard for creating installation packages for my projects. Now I'm not getting to do the same in VB2008.

View 2 Replies

VS 2008 Vb2008 Set A Connection String Using Openfiledialog?

Dec 4, 2010

Not sure this is the most efficient way but i am trying to set a connection sting via the openfile dialogue. Is this possible? Im trying to enable a user to specify the excel file they want and to access the excel data using data adapter and fill table etc. Im use to working with access db files but not excel.

View 5 Replies

VS 2008 Multi-User Chat Program In VB2008?

Aug 8, 2009

do this??& can I make a Main server like this?

View 1 Replies

VS 2008 : Timer Code For VB6 To VB2008 - Error1Name 'StartTime' Is Not Declared

Jun 10, 2009

This timer code is for VB6 and worked fine, It's to change the timer seconds into minutes, I'm not sure how to make this work for 2008 though.

Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Timer1.Interval = 1000 ' set timer to 1 sec intervals.
Timer1.Enabled = False ' timer is off
End Sub

[code]....

the errors are...

Error1Name 'StartTime' is not declared.
Error2Name 'MinutesToWait' is not declared.
Error3Name 'StartTime' is not declared.

View 4 Replies

Inserting To SQLServer Express 2005 Using Visual Studio 2008 VB2008?

Oct 15, 2010

I am new to SQLSever, Visual Studio and Visual Basic. I have read through Microsoft Visual Basic 2008 by Michael Halvorson and Microsoft Visual Studio 2008 by Lars Powers and Mike Snell. These books mention the ability to use SQLServer as the DB but I am not clear on the process. I am not knew to programming an have had training in OO programming but have never done any OO programing professionally. So, you can assume I am new to OO programing.

I have created an SQL DB using the Server Explorer in VS, and created a Windows form with Labels, TextBoxes, and ComboBoxes for the application's user to add the demographic information about a new employee. I created a new query with the Query builder that is in the Employee table of the DB which contains all the field for the record for inserting. I have a few questions to understand the process for inserting into the DB.

The DB fields are defined as numeric(6, 0), nurmeric(5, 2), and char(30) for some examples.

The maxlength on the form windows are in sync with the maxlength of the DB for the various fields.

1. What is the process to update the DB with the fields from the form?

2. Do I need to declare and set the results from the form first? If so, how do I call the function (query) that I created in the Employee table.

3. The emp_num I would like to be a dynamically incrementing number starting from 1000. How do I make this a dynamic? The emp_num is also the key on the Employee table.

4. I have a decimal field on the Employee table to hold emp_rate (pay rate). Does the user enter the decimal on the Form or is this resolved by SQL to take the 7 numbers and insert the decimal beause of the table's field definition?

View 2 Replies

VS 2008 Error Message When Import Csv Into Access With VB2008+Vista But Not With VB2005+XP ?

Jan 7, 2010

My pc is a Vista SP1 + VS2008 I try to import a csv file into an existing access database with the following code but I have the message that the database is only in read access and I can't update it with the csv file.I tested the code on an other pc with XP and VS2005 and it works.

[Code]...

View 2 Replies

VS 2008 Writing Some VB2008 Code To Control Four 7-seg LED's / Serial Port Control?

Nov 10, 2010

I'm writing some VB2008 code to control four 7-seg LEDs I bought from Velleman. They came with some example code in VB 5.0, and with instructions telling me to input 5 bytes at a time in the format Chr$() & Chr$() & etc. for the rest of the 5 bytes. When I try to do this using VB2008, it rejects the $ sign, so I've tried it using the Chr() format, which VB2008 allows. However, it doesn't work. Is Chr() the new version of Chr$() or are they different entities? In sending data to the LEDs, I'm using LiveComPort.WriteLine() as my command. (My serial port is called LiveComPort) I also tried it with LiveComPort.Write() asthe command. I know that my serial port and the LEDs are working, because they respond to the demo program provided by Velleman.

View 7 Replies

VS 2008 How To Convert This Program To 2008 (18F2550)

Nov 25, 2011

How to convert this vb 6 codes to vb 2008 or 2010, this program is IO 18F2550, please find attached file.

View 1 Replies

Convert From Vb6 To Vb 2008?

Aug 4, 2009

convert this from vb6 to the new vb 2008 Here is the call to the function I am having problem with:

[Code]...

View 2 Replies

VS 2008 Convert Mp3/wav To DLL?

Apr 2, 2010

I'm currently coding a game and i've put some sounds in it. I want to convert those mp3/wav files to a DLL file then i can merge it with the game How can i do this ?

View 1 Replies

VS 2008 Convert Vb 06 To 08?

Aug 27, 2009

is there an app for this or an Online site that does it ? i know you can do vb to c# but vb 06 to 08 ?

View 2 Replies

VS 2008 Convert Vb6 Into Vb 08

Jun 26, 2009

i downloaded a vb 6 chat client so me and my friends can talk but i want to edit it

View 2 Replies







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