Manage To Upload So The Host Seems To Be Fine?
Mar 15, 2011
I have tried different codes and non of them works for downloading a file from example DriveHQ.But i do manage to upload so the Host seems to be fine.
EDIT*
sub()
GetFile("downloadme.txt", "DESKTOP")
End Sub
[code]....
View 1 Replies
ADVERTISEMENT
Apr 24, 2011
I am working on an app that searches my network and retrieves ips and host names, but when using this.[code]
View 2 Replies
May 11, 2012
i have this code, how do i incorporate a progress bar into it? Private Sub btn_upload_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_upload.Click
[code]...
View 1 Replies
Oct 24, 2011
Rather than using a Handler(.ashx), is it possible to use a web service(.asmx) to upload?
View 2 Replies
Nov 12, 2011
I am using this code below to filter Text Strings.For exmpel CheckLabel contains a string like this: #StringA~StringB...Using this code: MyLabel. Text = CheckLabel.Text.Substring(CheckLabel.Text.IndexOf("#") + 1)I get this string; StringA~StringB And this code: MyLabel.Text = CheckLabel. Text.Substring(CheckLabel.Text.IndexOf("~") + 1)Can some one help me modify this samples to returen only this string: StringA...
View 4 Replies
Aug 5, 2010
I used autocomplete sub in one combobox keyup.It works fine in windows xp but got an error in windows 7. The error said:invalidargument=value of '-17310416' is not valid for 'length'.Parameter name:length.(-17310416 will change based on selection of combobox)
----
Public Sub AutoComplete(ByVal cbo As ComboBox, ByVal e As System.Windows.Forms.KeyEventArgs)
Dim iIndex As Integer
Dim sActual As String[code]................
View 2 Replies
Sep 24, 2010
This code works fine for absolutely every mail client except Mail for OSX, which just inserts a plain grey icon titled "Mail Attachment (2.6kb)"Can anyone see what might be missing to make it work in all mail clients.??
Dim mail As New MailMessage()
mail.From = New MailAddress("me@mycompany.com")
mail.To.Add("tom@myaddress.com")
[code].....
View 1 Replies
Jan 16, 2012
This code isn't working...
View 3 Replies
Mar 7, 2011
I have a small project I'm working on and from time to time I show it to my friend. He and I both have Visual Basic 2010 Express installed.
[Code]...
View 16 Replies
Jul 17, 2009
I'm trying to run a program that runs fine on XP OS, but it won't run on Vista. I've tried to install msinet.ocx in the system32 folder, but it never works.I've tried to register with regsvr32 but it gives error I've tried to register with regsvr32 with cmd as administrator it's register the Activex Control but it gives error " Unexpected error "
View 1 Replies
Sep 19, 2009
What this program does is it it moves the firewall tab on my Zonealarm from Medium to High thru a 2 timers and I can put how long for it to say on High and how long to stay on Medium
[Code]...
View 4 Replies
Sep 28, 2011
I am a recent newcomer to VB.net, having moved from VB6 this summer. I am using VS2008 because I also need to develop for WM6 on a ruggged pocket pc. I am not a commercial developer. I only develop apps for my own use, so I can live with some things that I could never survive with on a commercial basis. I developed an app that automates a COM object on my 32 bit WinXP machine. The app runs as expected, whether from the VS2008 IDE or from the executable in the bindebug directory where the supporting files are located. When I installed VS2008 on my new laptop, a 64 bit Win7 Home Premium system, the app still runs fine from the IDE but not from the exe file in bindebug. The problem is that the COM object gets executed fine, but never shows up on the screen.
[Code]...
View 4 Replies
Apr 3, 2009
I have an application that runs just fine if I execute it from a local drive, however when I deploy the files to a network location and run the file I get a "Common Language Runtime Debugging Serivces - Application has generated an exception that could not be handled process id bla bla bla, OK to terminate, Cancel to debug"
View 3 Replies
Apr 21, 2009
Does automatic software update causes some of the module property not to work? They are basically the same function that reads image logo from the currently executing assembly. Function named "Get2LogoImageStream" is different from "Get1LogoImageStream" by just Current.ManifestModule.Name vs Current.ManifestModule.ScopeName.
This "Current.ManifestModule.Name " version of the code worked on both Web From app and Windows form app, however right now it only works for Windows App form. But when I changed this code "Current.ManifestModule.Name" with "Current.ManifestModule.ScopeName" and it worked on WEB without any problem. So my questions to fellow C# or VB.NET developers is that does automatic software update causes this kind of issues?
protected Stream Get1LogoImageStream()
{
Assembly current = Assembly.GetExecutingAssembly();
string imageName = "logo.jpg";
[code]....
View 4 Replies
Mar 10, 2009
I have created a service which runs fine on my development PC. It reads XML files data into and Access database. Any errors that might occur are wrote to an eventlog. Like I said all of this works fine on my development PC. I have copied the service EXE on to another PC and run the install and that all works but when the service is fired I get a .Net 2.0 error - system.argumentexception error. I put a delete temp file line of code in to see where the error was occuring and it seems to be when I try to open my database.
Do I need to create a deploy for my service?
View 5 Replies
May 20, 2010
I am trying to export data from a datagridview which works fine, but it crashes when pat_eid value is empty, as pat_eid has been set a primary key and cant accept null values in the database level.
So, I want to enter a message box if column(0) which is the pat_eid has an empty field. Please could you advise me how to do that.
[Code]...
View 14 Replies
Dec 8, 2009
I'm creating a db tool for automatic database repairs i have the following sql statement:
[code]...
Where the 'BrokenDbFile' is the location of the db where data has to come from and the 'sqlString' = the access statement.it gives a error when i put it in a try the exception is of type OleDbExceprion and de message text is "De instructie INSERT bevat een syntaxisfout" in Dutch Where it says that the syntax of the INSERT INTO is not correct. but when i paste the string from my inteli snce into access it works fine.
View 11 Replies
Aug 12, 2011
Problem: The excutable of the vb program crashes when trying to run but when I step through the program inside of visual studio it runs successfully.
Details: The program performs a winscp.com transfer from a ftp server and then takes the downloaded file and extracts the data from it before sending it to a webpage. The program also decrypts a des3 encrypted file which holds the login details for the sftp server and the webpage.
My Thoughts: I was thinking this could be something to do with the excutable jumping ahead of the slower transfer and decrypt functions thus causing a "file not found" exception to be produced and the program to exit. Lending to this if I slowly (aka spend 10+ seconds stepping through the code) move through the code it works just fine.
As requested Crash Messages:(I capture everything in exceptions and exit properly so no "crash" is reported but the error I get in my logs is as follows:)
1st run with standard test case:Could not find file 'C:UsersAdministratorDesktop..ILC2INFOENC.txt'
2nd run standard case (the file above was not deleted by my cleanup function either as it could not be found)Could not find file 'C:UsersAdministratorDesktop..ILCNETSL10663.csv'
Background:The first file that is found missing is the encrypted login information file while the second file is the winscp.com downloaded csv file.
View 1 Replies
Nov 17, 2011
I have a total of 102 values associated with a fieldname called ArrivedFlag.Then I have a TextBox control with an id of txtFlag on the markup page.In my codebehind, I have an if statement that says:
If txtFlag <> "value1" and txtFlag <> "another value" Then
lblMessage.Text ="You don't have the ability to view details"
end if
This works fine.However, given that there are 102 values, I feel that doing an IF statement 102 times is a bit inefficient.
Dim allowedFlags = New List(Of String)()
With { _
"value1", _
"another value"
[code]....
View 4 Replies
Dec 11, 2011
I was asked by a client to create a tool that would let a user add/modify/delete/read content from a database. The content can be read from TextBoxes.
My question is, what is the best way to manage GUI locks/unlocks for the different states of the program. IE: If I'm in a "insert" mode, some GUI elements should be enabled, and some not. If I'm in the "read-only" mode, a bunch of them should be disabled... etc.
View 1 Replies
Aug 21, 2010
I am writing a program that uses an array with three columns and a varying amount of rows. I need to load info on a list of files in an archive(specifically: file name, size, path), and I am wondering what the most convenient way to store strings(to be loaded into the array) is.
For example: I tried creating a new .resx file in my project, and writing a function to be executed on form1_load that reads the strings from the .resx file and places them in the array in their correct column, but unfortunately had no success.
I really have no idea how resx files work, I can put strings in them using the resource editor, but I don't know how to retrieve them using resourcemanager.
I would just put the info straight into an array, but it's much easier to update a .resx file when the archive changes than it is to update the code.
Could someone please tell me how to use .resx files in vb.net? Or an easier way of accomplishing my goal?
View 7 Replies
Feb 3, 2011
I can't manage to add different values together...
TextBoxAnswer.Text = TextBox1.Text + TextBox2.Text + TextBox3.Text + TextBox4.Text
I import decimal values from my SQL Server into the TextBoxes 1-4, which works fine. But when I try to add the values together into another textbox the answer is just the values combined like a string...?The column of the table in the SQL server has a datatype decimal(18, 2)I have also tried to convert the values in the textboxes into int, str, double... Nothing seems to work...
Example:
Answer = 2,50 + 2,50 + 5,50 + 4,50
So,
TextBoxAnswer.Text = 10,00
but, all I get is:
2,502,505,504,50
View 3 Replies
May 29, 2012
I am now convinced there is no such thing using VB 2010 Express. I have read, re-read, studied, copied and pasted code to no end and all I get are error messages galore. It appears there is a big gap between what's on line as far as tutorials and the code that VB 2010 Express will accept. I hate to sound so lost but at the moment I am. I used to program in BASIC and QBASIC. I was a master at opening up ascii text files, reading them in sequential order, sorting, manipulating, then re-writing them. It was all so easy, like this: [code] That's all I want to learn how to do for the moment. But every tutorial or article I find goes off in to wild tangents about How to Manage Directories or it reads the entire text file into one giant object. Or worse, there's some code which looks promising but it won't run under VB 2010 Express or it might run but the author leaves out important parts of the code that have to be declared ahead of the subroutine....you all know what I mean. It can't be this difficult to just read a text file one line at a time, therefore it shouldn't be so difficult to find an accurate and up to date article on this.This is for really rough programming. I don't need an interface of any kind. The user, will not even need to know that anything is happening. I simply want to read text files, manipulate what's in them and then re-write the edited text.
View 5 Replies
Jun 8, 2011
im using dreamweaver and i have a table in which i have an image. When i add another table under the table existing it comes right at the bottom. What should i do to that table so i can move it and place it anywhere around the page. displaying my data wherever i want. And another problem is that, when i place something on the top it doesnt show up there it comes slighty away from where i had placed.
View 1 Replies
Jul 26, 2009
I want to know that what we use to manage another computer.
View 2 Replies
Dec 15, 2010
Id'like to pass some variables (string and integers) to a class, and when I call a method of that class, it has to change the original variable.I know it was not impossible in C#, but I'm using VB2010, I made a C# project into my solution, but methods using pointers are hidden into VB. How can I make that kind of change?
An example:
Sub ChangeValues()
Dim A As Integer = 1, Str As String = "Start String"
Dim X As MyClass(A, Str)
X.ChangeInt(2)
[code]....
View 11 Replies
Jan 19, 2009
I am a newer of VB programming, and planning to program an interface to configure/diaganose our hardware using RS232. Is Visual Studio 208 Standard version fine for my application? Do I have to buy professional version?
View 3 Replies
Jun 23, 2010
I have VB.Net application that has worked fine for years on XP and Windows 7. For some reason the last update I put out does not run even the simplest VB commands.Simple Environ() fails.I have tried putting simple VB commands onto a MsgBox on the start of the app and everything raises an error. I have no idea what is going on! The exact same app runs fine on Windows 7 clients. All the XP machines including a fresh XP virtual machine with the .Net 3.5 framework even gives the errors. No VB commands are working. I thought maybe something happened to my vbproj files, so I copied an older one from a couple weeks ago when things worked fine and it still does not work.
View 2 Replies
Feb 6, 2008
I've built an app that uses the Groupwise (email client) API. It will perform as expected when I hit F5,everything is good, when I use ctrl+F5 it fails with an access violation (see below). I tried to used JIT debugging, but I never get to see the source code, just the assembly. The app *never* fails with this error when run in the IDE.Groupwise documentation is sparse.[code]...
View 7 Replies
Mar 9, 2010
I have a backup / restore function working fine on Windows XP. When I deploy the application onto a Vista OS OI recieve the following error, can somebody please advise me how I can resolve this issue?
System.IO.FileLoadException: Could not load file or assembly 'Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'Microsoft.SqlServer.Smo, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91'
View 2 Replies