VS 2008 Porting To Win7 FtpRequest?

Apr 13, 2011

I created an application for Windows XP, now it needs to run on Windows 7. I have had some issues to resolve, but rather small ones. I am now stumped on this one... Here is my code block

vb.net
Private Shared Sub RenameFileAfterDownload(ByVal File As String)
Try

[code]....

The code works perfectly for Windows XP, but the ftpRequest does not work in Windows 7 for renaming. That said, the code runs that entire sub becaues WriteToEventLog get's written, but seems to ignore the ftpRequest lines.

View 4 Replies


ADVERTISEMENT

Porting VB 2005 To 2008

Mar 22, 2010

I have the following code in a VB 2005 project that works fine:

Imports System.Text.RegularExpressions.Regex
Do While intIndex >= 0 'Or Not boolMatch
If IsMatch(strTitle, Trim(arrTitle(intIndex)),

[Code].....

View 4 Replies

VS 2008 Porting C# Unchecked Keywords To VB?

Oct 23, 2009

I am trying to decode yEnc data using the component found here:[URL]...It all converts fine, except for Line 173 of Decoder.cs which contains the c# keyword "unchecked".Without using unchecked I get an OverflowException.What is the correct way to implement this in VB?

[Code]...

View 6 Replies

VS 2010 Transparency Just Background As Win7 Does While Running Under Win7 Plataform

Jun 6, 2011

I know the propertys transparency key and opacity. It isnt what I am looking for. I need to have my form to have the same Glass Effect the as win7 does while runing under win7 plataform. Like, if i have glass effect in the top I should have it in the background.

View 14 Replies

Way To Add A Progress Bar To An Upload Ftprequest

Mar 9, 2012

I borrowed code from url... to use for uploading a file to an FTP server. Works fine. However, I'd like to be able to display a progress bar so the user knows what is happening. The code doesn't seem to lend itself to this. Can anyone help me modify this so that I can get a progress bar shown? [code]

View 3 Replies

Access A FTP Secured Site (SSL/TSL) And Transfer A File Using FTPRequest?

Jun 8, 2010

I am trying to access a FTP secured site (SSL/TSL) and transfer a file in VB.Net using FTPRequest. When I try to complete the transfer I get an error back "The remote certificate is invalid according to the validation procedure". However when I connect to the same FTP site with FileZilla UI, I can transfer files with no problem. Why can do transfers with FileZilla and not in VB.Net? Does FileZilla have its own Certificate?

View 3 Replies

VS 2008 Pro App From Vista To Win7 Fails?

Dec 22, 2009

I have an app developed in VB that works fine on Vista machines but fails on Win7. The offending line of code merely references a variable stored in a module. Evidentally, something is quite different on Win7. How to I find and fix this behavior?

The code is very straightforward. The error occurs in the Application Startup event.

Public Sub MyApplication_Startup(ByVal sender As Object,
ByVal e As ApplicationServices.StartupEventArgs) _
Handles Me.Startup

[Code].....

View 5 Replies

VS 2008 - WinXP Ping Successful But Not Win7

Jan 19, 2012

I have a sub that I just discovered does not work for my windows 7 users but works fine for my windows XP users. This is basically a sub for a ping monitor to ping devices on a timer. What happens is that when the windows 7 user tries to ping, it always reports "down" on a windows 7 whether actually up or down. But, windows xp will report correctly with "up". 3 different windows 7 boxes, users say it worked before. Can't quite debug correctly as i'm on xp myself and it works just fine. Also, I haven't changed anything in the code in quite awhile and this is a recent bug that just started.

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim itm As Object
Sec = Sec - 1
If ListView1.Items.Count = 0 Then Me.Close()
If Sec <= 0 Then
[Code] .....

View 3 Replies

VS 2008 Get Current Master Volume (Audio) - Win7

Jun 1, 2011

It seems like this would be a very easy thing to accomplish, but, from what I can tell, it's most definitely not. My OS is Windows 7. All I need to do is get the current volume/audio level - the master volume. When you click the little speaker icon in the task bar and change the volume - I need that number. All I need to do is get the current volume and assign it to a label. So if the volume is at 74 when the application starts, I need my label to display 74. I've been searching for days now for a way to do this and I'm starting to get frustrated. I've looked everywhere. I've tried 3 different classes, at least a dozen different codes, assorted imported dll's- none of it even came close to what I need. From what I can tell, the current methods are all designed for windows xp. I need a way to do it in windows 7.

View 7 Replies

Strange Behavior Between SQL Server 2008 R2 And VS2010 (Win7 And WinXP)

May 16, 2012

I develop my VS2010 project in my laptop with SQL 2008 Standard. In my laptop everything is working good, using the following connect string as global public string when the main form loads:

[Code]...

View 12 Replies

Porting C# Code To VB?

Feb 26, 2009

I have a bit of code which is causing me a few problems to port from C# to VB.NET

The C# looks like this

byte[] serverbuff = new Byte[1024];
int count = 0;
while (true)
{

[code]....

View 13 Replies

Porting Linq From C# To VB

Jul 4, 2010

I am trying to port the folling C# Linq statement to VB.NET. I can't seem to find any equlivant for Select((asm, idx) => new { asm, idx })

List<AssemblyReference> assemblies =
(
from asm in loadList.Assemblies.Select((asm, idx) => new { asm, idx })

[Code]....

View 2 Replies

PV Function And Porting VB6 To C#?

Sep 24, 2009

I'm working on porting some classic VB6 code to C# and just stumbled across a usage of the PV function.I feels wrong including a reference to the Microsoft.VisualBasic Assembly. Is this something that is commonly done, or should I explore further options. The next idea that pops into my mind is exploring this PV function in Reflector.

View 3 Replies

Porting Winforms Application To C#?

Jun 24, 2012

Possible Duplicate: Porting VB.NET Winforms Application to C# .Is there any way to convert a vb.net winforms application into c# ? In terms of both code and .vb (forms) files.

View 2 Replies

Porting VB Apps To OS X/Linux?

Dec 29, 2009

I've been wondering about this for a while, but is there actually any free way to port VB.net apps to OS X and Linux? I've searched the web for this and couldn't find anything much.

View 5 Replies

Vb6 Migration - Porting A .bas File To Vb?

Feb 21, 2011

I'm working on some legacy VB5/VB6 code and need to convert a ".bas" file to vb.net. i found several options

Compile the .bas file into a com dll and then reference and use it in my project. (For this I guess I would need vb5 or vb6 which I don't have at my disposal) Copy and paste the contents of the file in to a new module in vb.net and then try solving the errors one by one.The contents of the .bas file reference a particular dll. The .bas file has mostly declarations consts, types, sub's and functions.

What would be the most elegant way of redoing this in vb.net. Is it as simple as option 2.EDIT

I used VS2008 express and ran the code through the upgrade wizard it did the necessary conversion. and the .bas file was converted to .vb. I took that file and decided to rewrite other parts of the code, including some redoing of the converted .vb file. Other questions related to this one are here.

View 3 Replies

C# - Language Choices When Porting A Classic Asp App To .NET

Sep 7, 2010

We are looking to port our existing classic ASP application to .NET, but we're unsure of what language to use for the new app. I personally would 'prefer' C#, as I'm more familiar and comfortable with that languages way of doing things, but, the original code is VBScript, so it would possibly be easier to port to VB.NET ... One possible situation I fear would be that, because the code is so similar between the two variants of VB, that we might end up getting stuck on something that is not similar between the two, even though it looks like it would work. A shift to a wholly different language might avoid that kind of situation. Does anyone have any practical examples of this kind of situation? Insights to illuminate the issue with? Do the potential benefits of a complete paradigm shift outweigh the gains from a high degree of 'copy-and-paste-ability' ?

View 9 Replies

Datagridview - Porting A VB6 Application With Msflexgrid

Mar 17, 2009

I am porting a vb6 application to VB.net. One of the key forms has a large msflexgrid on it - about a 1000 columns and 50 rows. It has 2 header rows - the first header row has merged cells to form a main header and the second row has sub headings. There is no requirement for any data entry and it's unbound. The code does the work in deciding what to display (if anything) in each cell. It is solely used to display data in the form of a character and a coloured background and to display a tooltip text with more information when you mouse over it. Works beautifully in vb6. I'm trying to decide whether to:

a) use the vb6 msflexgrid in the .net version
b) use the datagridview - which at a first glance seems to have a problem merging the cells on the header row
c) build my own custom control to do the job

View 2 Replies

Forms :: Toolbar Question - WRT Porting From VB 6?

May 16, 2009

I've got a VB 6 application that I ported over to VS 2005. The application has a toolbar on it. When building it in VB 6, I created all the bitmaps for the toolbar. And they looked just fine.Now I have ported to VS 2005. The toolbar works just fine. But the images in the toolbar look "wrong". The best way to describe them is if you took each bitmap and squeezed it down to about 67% of it's size. So it is missing the detail it used to have. And the smalleer picture still takes up the same amount of space on the toolbar. It is just that each squeezed bitmap now looks like it has a thick, blank pictureframe around it.

View 5 Replies

Porting .net Application From Windows To Linux?

Mar 21, 2011

I developed an application using VB .NET on a Windows OS. If I want to enable this application for a client who uses Linux , how do I do so? Do they need to purchase VB .NET? I am totally lost on how this works.

View 5 Replies

Linq - Database Advice Needed: Porting VB6/ADO/JET App?

Jul 22, 2010

I need to update (well, rewrite really) a SMALL VB6 application which uses ADO to access a JET database, to a vb.net app in Visual Studio 2008. My research suggests that I should use LINQ, but it doesn't seem to be possible to connect to JET. If JET is now deprecated, what should I use? Or should I use ADO.NET without LINQ?

Please don't answer SQL Server! - this needs to be an app that end users can install easily in corporate or non-corporate environments, and must not require any ongoing technical maintenance. I started to install SQL Express, but stopped when it required at least 2 system updates, as that will be far too complex for this little app.

View 4 Replies

Porting VB Projects To Earlier Windows Versions?

Jan 12, 2012

I make loads of programs in visual basic, but it happens that my friends that want to try some, have Windows XP or Vista, when I have Windows 7 on the computer where i create them.I tried to launch the application compiled on 7 on their PCs but it just doesn't work. Is there any way to port programs from Windows 7 to other version of Windows? Or just to find a way to make them run?

View 9 Replies

.net - Porting Crystal Reports Application (VB 2003, Framework 1.1)?

May 17, 2012

I've been asigned to a new project. I have to mantain an application wich was made in Visual Studio 2003 (VB.NET, Framework 1.1) and Crystal Reports wich came included with the IDE. The application is absolutely what we call "legacy code" :).Just to make the test, today I've tried to convert the application in Visual Studio 2010. The converter is offering me download SAP Crystal Reports, with no cost and no registration.The question is: Does anybody has experience with this components?. Is feasible to migrate an application as described to VS 2010?

View 1 Replies

.net :: Porting VBA Function Parameter Is Possibly Multidimensional Array?

Aug 26, 2009

I am porting Excel VBA to VB.NET. I have a function that takes a selection of data, and it may be one dimensional or two. VBA code is quite fluid about using a variable as either a 1-D or 2-D array, but VB.NET marks it as an error.

Here is the reduced code:
Public Function Stat(ByVal Data As Range) As Object
Dim Y() As Object

[code]....

View 2 Replies

Migrating From XP 32 B To Win7 64b?

Jul 1, 2009

I are testing Win7, and I have a ____ trying to just do anything in Win7. Lots of permissions problems. unexpected crashes.

I are no more owner of my code files!

I had no idea that my application was so buggy on Windows 7 :(

View 6 Replies

PlatformID Value For Win7 64 Bit

Sep 29, 2011

Does PlatofrmID work in Win7 64bit? And if so what value does it return?

View 5 Replies

Close Outlook.exe In Win7

Jan 29, 2011

I found the following code in the forum, but for some reason it will not work in win7.

Dim processes() As Process = Process.GetProcesses
For Each proc As Process In processes
If proc.Id > 4 Then

[code].....

View 8 Replies

Delay With OpenFileDialog On Win7?

Sep 25, 2010

I have a winform, VBExpress 2008 with a single button and this code behind it to illustrate the problem:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
OpenFileDialog1.ShowDialog()
MsgBox(OpenFileDialog1.FileName)
End Sub

View 5 Replies

Enter Key Behavior On Win7?

Mar 6, 2012

i have a application based on Visual Basic platform.. where Enter key action as Tab key ,, which ease the enter key to move from field to field, rather than the tab key.. its works perfectly in Winxp ... but i'm having problem in Windows7 ultimate..

View 1 Replies

Get RTF To Print In Win7-64bit?

Oct 14, 2010

Depending on what component is handling the print for you, some of them are not 64 bit ready (i.e. 32 bit only). To use them you must compile your application as 32 bit only. It will then run on the WOW platform that Win7 supplies.

You change this option on the PropertiesCompile screen. Press Advanced Compile Options and review Target CPU:

View 1 Replies







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