Complicated To Convert Program From VB 6 To .Net?
Nov 15, 2010
I have a program I made in VB 6 which has probably hundreds of thousands of lines of code.
Is it complicated to convert it to VB.Net or is it not worth it?
My main problem is that VB 6 doesn't work in Win 7 so I need to use the XP emulator each time I make an update.
View 16 Replies
ADVERTISEMENT
Mar 24, 2010
I am a total bginner to vb.net programming. I am trying to make a simple program that allows the user to
1.change desktop background
2.Allows the user to select a boot image listed in the form
3.alows the user to enable disable the task manager,registry editor and control pannel.Replace Windows Boot image (Picture source is a picture box in form)
4.Change XP Start Button Text
5.Disable/Enable Windows Keys
so this is how far I got;
Imports Microsoft.Win32
Public Class Form1
Implements IDisposable
[code]....
View 3 Replies
Jan 1, 2010
Suppose I want to broadcast CTRL+C to my program without using complicated code (accessing Windows API) to do it.
View 3 Replies
Apr 20, 2011
I'm trying to find a tidy way to set a string using an if else statement according to a numeric value. The only complication is that there is a possibility that this value may contain text. So it needs to handle that situation too.
So this is the basic code:
If cint(QtyShop) > 0 Then
msg = "Stock found in this shop"
ElseIf cint(QtyAllShops) > 0 Then
[code]....
View 1 Replies
May 8, 2011
I have an interesting project that i would like to complete. I have a batch file used to ping our locations. Has 1 simple input but i dont understand how to get this to work in visual basic 2010.
View 19 Replies
Mar 16, 2011
Private Sub BackgroundWorker1_DoWork(ByVal sender As System.Object, ByVal e As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
View 3 Replies
Aug 13, 2010
I am refining my VS2010 control renderers and I'm working on the TabControl at the moment. If you take a screenshot of the VS2010 IDE and zoom in on the background of the TabControl (where there are no tabs), then you might see that it consists of a pattern of dots with a slightly different color than the surrounding background. I am trying to draw these dots (yes, I'm going for perfection), but I cannot find a brush that allows me to do this.I am pretty sure I'd have to use a HatchBrush with the right HatchStyle, but I cannot find a matching style.Here is a screenshot showing:
1. The VS2010 background I'm trying to draw (higher contrast and brightness otherwise it's hardly visible),
2. The HatchStyle that is closest to this (DottedDiamond)
3. Why this HatchStyle is not correct (it's missing dots where the green dots are, which I photoshopped in).
Now of course I'm going to have to draw the pattern twice (there are two patterns, offset by 1 pixel, with a slightly different color), but the more pressing problem is the green dots seen in the third image. They aren't there with the DottedDiamond style, and no other style (I think I've tried them all, but hey I might have missed some..) produces a better output.
View 4 Replies
Jun 11, 2011
Does .NET have built-in techniques for more complicated forms of iteration like the following:
1. Iterate over rearrangements of a list.
2. Iterate over subsets of a list.
3. Iterate over all indexes of a multidimensional list.
4. Iterate over all "combinations" of a list, i.e. all subsets of a list of a given length, where subsets that differs only in their ordering occur only once total.
I recently had cause to do (1) and my method was ugly, slow, tedious, and generalized poorly, which is why I ask. I can think of better ways, but it was garbage code anyway [brute force checking that there are precisely 576 seven-digit numbers made up of 1, 2, 3, 4, 5, 6, and 7 that are also divisible by 11]. The others are just for my own curiosity.
View 4 Replies
Sep 1, 2009
Im trying to tackel a forever complicated process of comparing listviews
Imagine two listviews (listview1 & listview2) both have 4 colums.
On clicking a command button i want it to go through colum 3 of each row on both listviews ( one and two ) and see if they match, if they dont, do a msgbox of the text of colum 3 of that rows text in listview2.
View 4 Replies
Mar 1, 2012
This is going to be a lot to ask, but I'd like to convert my old GW-BASIC program to a command line program with arguments. I'd like it to operate as follows:
elapse [drive:][path]filename This is my old code.
5 CLS
10 OPEN "G:Calc.txt" FOR INPUT AS #1
20 WHILE NOT EOF(1): INPUT #1, A$, B$
30 IF MID$(A$,3,1)=":" THEN C$="DOUBLE DIGIT":GOTO 50
40 IF MID$(A$,2,1)=":" THEN C$="SINGLE DIGIT":GOTO 120
[Code]...
View 3 Replies
Apr 19, 2010
I have a few questions reguarding converting a Access program to a sql/vb.net program. I know these are vague questions, so feel free to give vague answers.
NOTES: I have a solid unstranding of SQL and VB.net. i have little Access experience, but i would be working with the individual who created the access program. I also don't have alot of experience in converting on program from one language to another. Most of my experience is in new programing.
[Q1] Is their a general rule of thumb when converting/recodeing on how long it should take? i.e. if this project would take me 40 hours to write my self from scratch it would take me 30 hours to recode into another language?
[Q2] What type of problems do i need to look out for when working on projects of this nature and being inexperinced?
View 3 Replies
Apr 26, 2012
I have developed some programs for processing and issue-coding electronic documents. I am teaching myself how to work with SQL Server because I want these programs to work with electronic documents imported into SQL Server as opposed to messing around in a folder stuck on the desktop, for example. From there I want to expand on the program so that it is a network enabled program.
[Code]...
View 1 Replies
Feb 22, 2012
I notice you can't use textbox control array in .net. Wondering how to workaround this code.
Private Sub cmdNew_Click()
Dim row As Integer, col As Integer
For col = 1 To maxCol
For row = 1 To maxRow
txtCell(Indx(row, col)).Text = ""
[Code]...
View 6 Replies
Mar 7, 2012
I'm trying to convert a program from VB6 to DOT NET. In my original program I have a menu array which was simple to create.I simply named each menu element the same name and assigned each a different Index property.In DOT NET, there is no Index property and trying to create a second menu item with the same name generates an error. I have been unable to find any info that helps me transfer the functionality to DOT NET.
Can someone help with my struggle to make the leap to DOT NET?I'm also trying to convert use of the MSHFlexGrid in VB6 to the DataGridView tool in DOT NET and this is driving my to distraction. I've figured out some things already with lots of web searches but selecting a column to sort and sorting it still eludes me.
View 10 Replies
Oct 30, 2009
hat this VB6 statement does?
BK(1) = IB(1) B0
And W1
what the back slash means. I am trying to convert a VB6 pgm to VB.Net.
View 4 Replies
Jun 25, 2009
I have this code that gets the hostname,IP and MAC address of computers under a certain domain name. but it is in C#. i am required to run the code under vb.net.[code]...
View 5 Replies
Apr 21, 2011
I've been trying to convert a little code snippet from C# to VB, but it s too hard for me.The problem is that it�s using Delegate and event handling[code]...
View 2 Replies
Mar 20, 2008
How to convert pdf in to xml using vb.net.(windows)
View 3 Replies
Aug 26, 2009
I tried the code below to convert it to c#. But i am getting many errors when i use it.Like error related to || and && symbols using in c# version.[code]...
View 4 Replies
Jan 20, 2009
Can anyone can convert this SQL script in to a visual basic source code?..I know how can i do that in executing a stored procedure without parameter.But I have a hard time doing it with stored procedure with parameter.[code]....
View 1 Replies
Jan 16, 2012
[code]...Convert To program From C#?
View 3 Replies
Oct 6, 2009
Am converting a VB6 project to VB.Net and need help with "AS ANY" type declaration in a function declaration.
Example:Declare Function BtrCall Lib "wbtrv32.dll" Alias "BTRCALL" (ByVal op%, ByVal PB$, db As Any) as integer
I know As Any is invalid in VB.Net
Most of the calls to this function will pass a String for the 3rd parameter however, there are two instances in my code where a User Defined Type /Structure is passed rather than string value.
View 2 Replies
Jun 3, 2012
I'm new to visual basic.
1) Why when I load vb6 files in vb2010 it shows many errors?
2)Hold on tight please here it goes: Removed by Moderator since the question violates our AUP
View 9 Replies
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
Feb 18, 2012
I have managed to take a screenshot of my computing using VB and I have stored it as a bitmap. I want to convert this bitmap (quickly!) to an array of rgb values.[code]...
View 1 Replies
Mar 26, 2011
Convert this below code to vb.net. I have no idea to convert from anonymous method to vb.net. I'm currently using VS2010.[code]...
View 4 Replies
Dec 14, 2009
It can be compiled successfully in C#[code]...
Is it the language difference between c# and vb.net?
How can i covert this C# Code to VB.NET Code?
View 5 Replies
Apr 19, 2010
I don't know what this developer is doing.
name = String.Format(MyStringBuilder + "");
If I convert this to VB I get the message "operator + is not defined for types system.text.stringbuilder and string".
View 6 Replies
Apr 21, 2009
"Here's the code from kaymaf's first post. I used a website to convert it from C# to VB.Net. If you can't get it to work, post again and we'll try something different."[code]...
View 6 Replies
Feb 23, 2011
I need to convert following code block from C# to VB.NET.[code]....
View 4 Replies