Convert VB6 To Net?
Apr 11, 2011The program is being used a lot by several users and is re-developed (new features, etc.) often.
The idea behind converting it, is to make the program more "future-safe".
The program is being used a lot by several users and is re-developed (new features, etc.) often.
The idea behind converting it, is to make the program more "future-safe".
See where my vb.net equivalent of a working c# assignment statement is not working?
bytes(i / 2) = Convert.ToByte(hex.Substring(i, 1), 16)
Here's the c# followed by the vb.net function.
private byte[] StringToByteArray(String hex)
{
int NumberChars = hex.Length;
byte[] bytes = new byte[NumberChars / 2];
[CODE]...
And the vb.net that is throwing the error within the for loop
Private Function StringToByteArray(ByVal hex As String) As Byte()
Dim NumberChars As Int16 = CShort(hex.Length)
[CODE]...
my project was intially mandated to be done in c#.however a large contributor to the project wrote much of the business logic, which he knows well, in vb.net.How difficult would it be to convert the following c# code into vb.net.
[Code]...
i wanna try to convert this ASM code into vb.net or at least find a solution that will allow me to enable this script after creating a handle on a kernel32 process.
View 1 RepliesI am looking for some library or code that will allow me to convert mp4 video to mp3I want it to be for free and compatible with the latest .NET framework (4).Also, if possible, I am looking for a free ffmpeg wrapper than I can have in my vb.net application without trial or messageboxes.
View 2 RepliesWill Microsoft Visual Studio 2008 convert my app to an app I can use on the Internet. I've used it to help convert up from 2005 but I'm looking so save time in creating a web app version.
View 3 RepliesI developed a windows application in VS2008 as 2.0 . I would like to migrate to 3.5 . This really basic but how do I do that? It seems like I should just change a few parms somewhere, but I can't find it.
View 2 RepliesI have my running application in vb 6.0, & needs to convert in C# .Net platform
View 9 RepliesHow do I convert a hex to an int. I know:
Dim hex as String = "FFFF"
Dim int as Integer = Val("&h" & hex)
The problem is that it only returns a signed integer, so the example above gives -1 instead of 65535. Is there a way to make Val return a Long instead f.ex. , or an other way ?
as the title sayshow can i convert a bmp file to jpg file "real conversion not only changing the file file extension"or to a gif file
View 4 Repliestypedef
struct {
unsigned
long
[code]....
I was wondering if someone could convert the following to VB.NET.
[code]...
I have some C# source code that I got off the Internet and I want it in VB.NET. How would you convert it because I don't know C#.
View 4 RepliesI got this class parameters in C# and I can't convert one parameter to VB. [:(]
public static string PageLinks(this HtmlHelper html, int currentPage,
int totalPages, Func<int, string> pageUrl)
Is there any tools that I can use to convert c++ code into vb.net code?
View 1 RepliesHow can i convert doc in vb(windows application form) pdf format+free pdf generator can i download n can be used in vb.net.
View 2 Repliesconvert below code from C# to VB
protected void Page_Load(object sender, EventArgs e)
{
Validator1.Enabled = Request[DDL1.UniqueID] == "2" ? false : true;
}
I'm currently converting a VB6 app to vb.net 2010 and i'm struggling to convert the following code and was hoping that someone could assist me. Im rather new to .Net [code]...
View 3 RepliesHow to convert to jpg file to Pdf file using vb.net
View 3 RepliesI have the below code that searches through directories and displays the largest file in the directory. the problem is that it displays it in KB - how on earth do I convert it to MB? The file size comes out way too large so want easier reading
Private Sub btnGetMax_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetMax.Click
ClearList()
[Code]....
How can I convert mdf to mdb thru vb.net code? I know it can be done using Access Import but I don't want my client to open Access just to convert a database from mdf to mdb. It will be more convenient for my client to just click a button in my vb.net apps to convert mdf to mdb.
View 6 RepliesWill Microsoft Visual Studio 2008 convert my app to an app I can use on the Internet. I've used it to help convert up from 2005 but I'm looking so save time in creating a web app version.
View 2 RepliesHow to convert the php into exe
View 4 Repliesin the project I'm currently working on, One of the requirements is to convert the characters (in my case it's hebrew) to DOS 7 BIT format, is there an easy way to do this in VB.NET ?
View 2 Repliesi have some code in vb 6.0 but I want to convert it to vb.net so i don't know how to change
View 3 RepliesIs there a wrapper that can turn a VB.NET DLL into an OCX?
View 2 RepliesHow do I convert this from VB.Net to c#?
Dim dd As String = Hex(ExpiryDate.Value.Day).PadLeft(4, "0")
I tried a conversion tool (It uses the mono project source code they say)
[URL]
and it came up with this but c# does not like it. - the code that is.
string dd = Conversion.Hex(ExpiryDate.Value.Day).PadLeft(4, "0");
This is the error:-The name 'Conversion' does not exist in the current context
I'm having a problem converting vb.net code I found on the web to C#.[code]...
View 3 RepliesI'm looking for doing a Pivot Table query in vb.net.I've found a lot of code in c# but not in VB.Net and i don't understand how to convert c# to VB.
View 2 RepliesI would like some help with converting a .txt file to a .mdb file using VB2008. The .txt file contains the following:
View 4 Replies