.net - Legacy Code Visual Basic To C#?

Jul 6, 2011

I'm building an c# app that is designed to replicate and enhance the functionality of an VB6 app developed many years ago. My problem is that one module in the old app does some realy complicated things and trying to replicate this starting from specs would be a big pain for me. Even if this sounds like the best idea.

My question is : is there a way i could keep the old VB module and integrate it into the c# app, so that i wouldn't have to rewrite everything ?

View 6 Replies


ADVERTISEMENT

Replacing Legacy BASIC Code With VBA?

Sep 7, 2009

I have an old application in BASIC. It still runs under Windows ME. It no longer works under XP, so I was looking at recoding the applciation. I started coding it in VBA, which I have used for Excel macros for years.

We are looking at getting a new computer for kids to use for schoolwork, etc. I also want the kids to learn programming and recoding my old BASIC application is a good place to start. A new computer we were considering has MS Works, but I suspect I will need MS Office (at least Excel) to get VBA. There are multiple versions of Office 2007 (Home & School, Small Business, Pro), so I looked into the Microsoft website to see if I could find out what version of Office I need to get to have VBA. What I found is that VBA seems to be going away in favor of VSTA and VSTO.

Is VBA truely going away? Or is it still going to be a part of Excel for wrting macros? If VBA is part of Excel, is it available in all versions of Office? If VBA is going away, what is recommended for recoding my old BASIC application?

The application involves display of a screen full of data with color coding and has several actions for updating those data.It does not involve any graphics or animation. In the old BASIC application all the system data and runtime data are in program variables.

The actions to be performed are selected by number from menus.In creating the application in VBA, I envisioned primary data display on a main form, which would also have buttons to invoke dialog panels to perform the various updating actions.I have the system data that are not changed when the application is run in one Excel worksheet and the runtime data on another worksheet.

View 2 Replies

Extracting Visual Basic Source Code From Visual Basic EXE?

Jan 24, 2011

How do you extract source code from a VB.NET .EXE file?

View 3 Replies

Using A Legacy DLL In New Visual Studio Express (C++ Prefrred) Project?

May 21, 2012

I've got an old legacy application for communicating via serial port to an embedded controller communications bus. that someone else developed.The application is written in VB6, and is structured as two projects - a DLL to handle the connection and communications logic, with an application GUI project.I was hoping to be able to write a new application GUI (in C++ ideally) to use the existing DLL as-is, but I'm having lots of problems working out how to import it.So I'm wondering, is it even going to be possible to use this old DLL into a C++ project as is? or is it possible to import into a C# project? or a VB.NET project? (would prefer not to use VB, but can if I have to)Where I am now: I have the existing compiled executable and DLL, and these run on my system.I also have the project files, and they're all readable in notepad++ but I don't have VB6, and importing the project into visual studio VB.NET 2008 express isn't at all straightforward. Especially not without a working example to dig through and play with first (DLL project may be importable, but has 50+ things indicated as needing changing in the upgrade report. It also seems to be ignoring three .cls files that look very important to my not particularly VB6-savvy eyes... The application project has a message in the upgrade report about something "missing a design time license" and the only project files that actually seem to come into the project explorer for imported project is the project file itself, and the assembly info file.)

Most examples of how to import a DLL into VS C++ assume you have a solution with the DLL project all compiling nicely alongside your project that will use it. Or at least a .DLL and .lib and .h file... I spoke with the original developer of the code (in another city, we don't work directly) and got a .lib to match my .dll, but still have no .h file.I'm usually fine to bash through something new, but without a baseline working example of the project even in VB6 that I can get my understanding from, it makes this very hard. Also a lack of similar questions anywher google can find them on the net makes me wonder if this is something i should be even attempting.I'm working on getting a non-express copy of visual studio if that will make any difference (express worked fine for everything up until now so I never needed anything more) but that will take a number of weeks, most likely.

View 1 Replies

Cannot Develop Visual Basic Code?

Mar 26, 2009

Launch a Quadratic Equation Mathematics Machine.The machine is to take input from the user in respect tovalues for a, b and c

View 2 Replies

Cleaning Visual Basic Code?

Jan 6, 2012

however there is a portion in this code that can be simplified more (the if orelse statements). I know it has something to do with a collections class or an array, but I'm stumped on how to change it.

Function GetLastName(ByVal accountName As String) As String
Dim lastName As
Dim stringArray As Array = accountName.Split(" ")

[code].....

View 1 Replies

How To Hide Code In Visual BASIC

Jan 18, 2012

Say I want to distribute my Visual BASIC program, but I don't want people who download it to be able to look at the Visual BASIC code. How would

View 3 Replies

Loop Code In Visual Basic?

Aug 15, 2011

im making a friend adder for teenspot and this is what i have. basically you click a button and it adds the person selected on the list, then you have to click it again to add the next one. the thing is i need to know how to loops this so it just keeps moving down the list adding people automatically

[Code]...

ive tried multiple times with do...loop and for..next and all that kinda stuff, but i still havent figured it out. what it does is, it only runs through the add me pages and never clicks confirm which is the second part. im kinda new to vb

View 1 Replies

Code A Visual Basic IP Address Changer?

Aug 13, 2009

I have a Vista O.S., but I want my program to change the Ip address on mutiple O.S. with one click of a button or possibly on a timer to switch ip addresses every few minutes. How would I do this in VB 2008?

View 4 Replies

Compile To P-code In Visual Basic 2005

Jun 24, 2009

i had 13 years old and i need to know how to compile my programs to p-code in visual basic 2005.net,

View 2 Replies

Converting Javascript Code To Visual Basic?

May 4, 2009

I�ve tried a verity of different things but I can�t seem to find something that works so I thought I would Ask here, if This is the wrong place then Sorry If you could point me to the correct place the I would Post there. Now I have this JavaScript code that I want to get working in a VB.Net Client side application?

function send_request() {
if (window.XMLHttpRequest) { // Mozilla, Safari, ...
http_request = new XMLHttpRequest();

[code]....

View 1 Replies

Port Visual Basic .NET Code To Java?

Mar 2, 2012

Try
Dim sr As New IO.StreamReader(Mapfile & ".txt")
'Dim intValue As String = ""

[code].....

View 2 Replies

Run Visual Basic Project From Java Code?

Oct 20, 2009

some idea to how to run VB project using Java.

View 3 Replies

See The Registration Code Entered For Visual Basic?

Aug 12, 2010

I recently downloaded Visual Basic Web Developer, Visual C# 2010 Express, and Visual C++ 2010 Express asI intend to learn ASP.NET, C#, and C++ after I have learned more about VB.NET (wish me luck, haha.)I am creating a text file with all of my registration codes, but I did not keep my registration code for Visual Basic (neither in records norn email.) I have tried re-clicking the 'Register Product' button, but I just get a message saying that I havealready obtained a key. Is there someplace I can go within the program to view my code?

View 5 Replies

Use HTML Code In Visual Basic 2010?

Feb 22, 2012

<html>
< body>
< h1>My First Heading</h1>
< p>My first paragraph.</p>
< /body>
< /html>

if Possible to Use HTML Code like above in Visual Basic 2010 in WPF?

View 3 Replies

.net - Visual Basic Tools UML To Code Or Reverse Engineering?

Jan 9, 2012

I would like to either generate VB Code from UML or vice versa UML from Code. Does anyone know some UML tools for VB6 or VB.Net that can do this?Is it possible with Visual Studio 2010?

View 1 Replies

Ask Code In Visual Basic 2008 For Calculator Programming?

Oct 18, 2011

Build calculator using visual basic 2008

View 1 Replies

Get 'Illegal Characters In Path' In Visual Basic Code?

Jun 19, 2012

I have a directory with multiple sub directories that contain .doc files. Example:

[Code]...

In my code below, I am trying to display in a list box all of the files that end with extension '.doc' that are in sub directories of C:Users medinaDocuments estenviromentReleased So for example, I have

[Code]...

View 2 Replies

How To Edit Visual Basic 2008 Source Code

Jan 23, 2010

I downloaded some visual basic 2008 Source Code from a site and when i edit it or delete something it still shows up in program when debuging and playing the program,even when i delete it in code it still shows up how can i stop this

View 10 Replies

Microsoft Visual Basic Code For Merging Files?

Jun 3, 2010

how to merge records in ms access 2007 in just a click away??i need visual basic code for merging files.

View 6 Replies

Visual Basic 2008 - Code Movenextitem Of Bindingnavigator?

May 6, 2012

I am loading a table from access in my form while clicking on a "load table"button:

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles btnLoadtable.Click

Me.WoodsheetsTableAdapter.Fill(Me.WoodshopDataSet.woodsheets)
End Sub

The binding navigator should not be visible so I set the property "Visible" to "No"...

What is the code to include for another button called "Next" to use the functionality which is normally in the bindingnavigator to move to the next item in that table?

View 3 Replies

Visual Basic Code Be Inserted In A Windows Form?

Apr 9, 2012

I have read a few chapters, and researched a few websites but none of which fulfil my question, which is where should I put this If statement

Public LoginName As String
Public Password As String
LoginName = txtUserName.Text
Password = txtPassword.Text

[Code]...

The idea is once the user has finished inputting text into both text-boxes the image on the button changes from a no-go to a green-submit button but unsure what declaration it would go under and which element. I have tried several form elements and declarations but not having the desired effect that I would like

View 3 Replies

Asp.net - Converting Some Legacy .NET Code To C#?

Nov 18, 2009

Public Const COLUMN_MODEL_ORDER As String = MDL_ORDER.ColumnName

DataModel.Config.DefaultView is a System.Data.DataView

how can I convert it?:

Dim ModelOrder As Integer = 1
Dim DataModel As New ProfileDataModel(New DBConnection, Me.ProfileID)
If DataModel.Config.DefaultView.Count > 0 Then

[code]....

View 5 Replies

Adjust The Volume In The Code Of A Visual Basic 2005 Program?

Sep 13, 2011

I have Visual Basic 2005. I want to be able to adjust the Master Volume programmatically. In the recent versions of Visual Basic it is much easier but in VB2005 it is a little more involved from what I have read on previous posts. Is there a way to adjust the volume in the code of a Visual Basic 2005 program?

View 8 Replies

Forms :: Visual Basic Code To Find SMTP Address?

Jan 12, 2011

Is there a way i can write this into a command button?

In a CMD Prompt if you type:
nslookup
set type=mx
set timeout=30
emailaddressdomain.com

it will give you the outgoing mail server address is there a way i can write that into a command button and display the results into a textbox?

View 5 Replies

Microsoft Visual Basic Code That Will Hide/show A File

Mar 31, 2010

I need a code that will hide a folder and if i wanted to find that folder i could click a button and it would be vissible again.

View 1 Replies

Visual Basic 2010 AxSHDocVw.AxWebBrowser Source Code?

May 20, 2011

I have AxSHDocVw.AxWebBrowser in my form. I want to get the source of the navigated webpage

View 3 Replies

Writing Code For Both Keypress And Click Event In Visual Basic?

Oct 12, 2009

I am learning visual basic. I have created a form for a calculator. I have placed buttons for plus, minus, division, multiply etc. The programme is working for clicing on buttons i.e. when I want to add two nos. I accept 1st no. from text box then I click on "PLUS" button then I accept 2nd no. When I click on "Equal" button the result is displaying on textbox. But I want to write code insted of clicking on "PLUS" button if press " + " key on keyboard and for "Equal" button, if I press " Enter " key on keyboard, The result for adding two number should display on textbox. I want code for both click event and keypress event.

View 2 Replies

When Was Isnumeric Considered Legacy Code

Jan 3, 2012

When was isnumeric considered legacy code? I guess all that i have learned from my college class last semister is legacy.

View 4 Replies

Using Checkbox To Delete Row In Gridview With Visual Basic.net Code Behind And Stored Procedures?

Apr 29, 2011

Tools for my website.Visual Studio 2010SQL Management Studioasp.netvisual basic.netI am using GridView. Because of my search code I am not able to use the automatic delete function that GridView has to offer.I clicked on GridView, said "Add New Column" and added a checkbox column.I want to be able to check one or more boxes and select a button that will delete those rows from the database using a stored procedure.

View 1 Replies







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