VS 2008 Comparing 2 File Names?
Apr 13, 2012
This is the code I have in one button and I have 2 listboxes that will be filled with the info it gets.This code should compare 1 avi file to one jpg file and see if they have the same name. If YES then it will add the avi path to one listbox. If they don't have the same name OR the .jpg doesn't exists it will add avi path to another listbox.. But currently it is adding the avi name to both listboxes.
View 6 Replies
ADVERTISEMENT
Nov 9, 2005
I made project using VB.Net 2005 with multi languages, the first form is MDIParent form with MainMenu and toolbars also there is some changes in properties as righttoleft and text of forms.In my Mainmenu (Menustrip) there is opetion to change the UI Culture and I have already done but I need to change all texts in the form as mainmenu items anf form properties.My quetion is: how can I reload my form again to read the new texts names and mainmenu items names from resx file?
View 8 Replies
Nov 28, 2010
I have a ComboBox with several names within it. The names are sourced from a database. Once the user has selected a name from the ComboBox, he must input the no. of hours from another ComboBox and then he is able save it to a .txt file through a streamwriter.
Here is a little image I just put together:I want the file name of the .txt file to be whatever is selected from the first combobox. So, by using the example shown above, the file would be called bob.txt. Is this possible?There shouldn't be any save file dialog or anything, I want it to be automated and the name of the .txt file to be selected from the ComboBox.
View 2 Replies
Nov 2, 2009
I'm trying to do something like this: when i press a button a dialog opens and then i choose files, the files names should go into the listbox
Private Sub pxBrowse_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles pxBrowse.Click
Dim dr As
[code].....
View 10 Replies
Dec 22, 2009
I am creating files and then allowing the User to browse through the files via a ComboBox. I decided to name each file the current date. In order to create multiple reports each time the application is ran, each report needs a unique name.
The idea is that if they run a report once a day they'll have a unique report each day. But, then I realized that it is feasible that User could run a report more than once a day. So, I decided to create an integer and increment it each time the report has been ran. Then append the file name with that integer. So, report one of that day would show something like this:
12-22-2009_1 and so on.And this works just fine. But, if the user decides to close the app and then run the report later that day, the variable has been reset and no longer works as needed.I'm using a StreamWriter to create the file.
View 6 Replies
Dec 13, 2011
I want to fill a listbox with file names of the specific extention. This is my code , does not work.
lstClips_ListBox.Items.Clear()
If Not FolderExists = My.Computer.FileSystem.DirectoryExists(PowerPointDir) Then
MsgBox("This Directory does not contain any PowerPoint files" & vbCr & "You need to load the files now...", MsgBoxStyle.Information, "Warning - No Media Found")
[code]....
If i take away the DIR name and the Exten then it fills with ALL the file names, not what i want.
View 5 Replies
Oct 20, 2011
The code I have is:
vb.net
Dim zipFiles(0) As String
Dim x = 0
[code].....
View 2 Replies
Jun 16, 2009
I want the files names in a specific folder to show in a combox box. How can I accomplish this?
View 1 Replies
Aug 5, 2009
I need to send a switches and a filename to a command line application.First I'll need to get a collection of files that can range from 0 to an infinite amount.Then I can start the process with the correct switches. Normally, within the command line application, I would specify the specific filename and send it as an argument to the application.However, I'm not sure how I would do this. The names of the files have to be preceeded by a specific switch. I can't remember the switch right now, but we'll call it [b]-f[/f].[code]So, I need to figure out how to send all or each of the file names as an argument.
View 1 Replies
Apr 11, 2012
I'm working on a program that get's a file list from an FTP server and it's getting it as one giant html string, here's what I'm getting:
[code]...
Alternatively, if anyone knows how to get an ftp file object using .Net 2.0 instead of an html string that would be even better.
View 10 Replies
May 25, 2006
I am experiencing a problem when trying to convert a rather large VB6 application into a .Net 2005 application. Everytime I try to convert the project I get the following error: "Upgrade Failed: Exception occurred: Can't use character device names in file names"The weird thing is i have tried to convert the project using .Net 2003 and I do not get the error, it does convert.
View 12 Replies
Aug 5, 2011
Lets say we have an Access file in a well known path (i.e. "C:MyFolderMyFile.mdb"). That file does not have a primary key set on the table we are interested in . Is it possible to set one of the fields as a primary key (for example the "ID" field , which is also an AutoNumber data) ? And one more thing : I'd like to change the name of a field on that table . For example , lets say there is a field called "My Field 1" (note the space characters) and we want it to be renamed as "My_Field_1" . If it's possible , I'd like both these changes to be permanent in the data base file itself , not just in the imported DataSet ,
View 7 Replies
May 2, 2009
My card program generates a text file AllCards.txt - I want to know when the first character in this file is identical to the 3rd, 5th, 7th, or 9th. In this case I would need A (1st char) checked against the 5 (3rd char), 5 (5th char), 7 (7th char) and 8 (9th char).
[Code]......
View 12 Replies
Feb 25, 2010
iwant to create an dll file for comparing two text box dates,, since in my project comparing dates is very necessry for every form,,so iwant to create an dll file,, here iam created an dll file but it was not working, here iam working with asp.net with vb.net..... here my code os given below,
Imports System
Imports Microsoft.VisualBasic
Namespace datecompare
[Code].....
View 7 Replies
Apr 26, 2009
i m in great need for help regarding my project. the project is ECG recording ,i want to save these ecg signals in text file the input is taken from sound card... but now i need to save them in text file.... also i want to compare them.. with a standard ECG wave.. for calibration purpose only. if any thing is not clear i can send the whole project coding for better understanding...jst tell me the mail-id.urgently need help...one more thing.. along with ecg signals temperature is also be stored in the same text file for a particular recording..
View 1 Replies
Dec 8, 2010
i have 4 listbox and i named it
1. listbox40
2. listbox20
3. listbox5
[code]....
View 11 Replies
Mar 9, 2009
Is it possible to check the MIME Type of a file and compare it to the file extension in VB? Assume that he file type has been changed by the user. I want to test to see if it is of a particular type.
View 2 Replies
Aug 18, 2009
I have a 2 text files
Text file 1:
.ERR - Max6 Error file
[2 19.40 44.7] X6.950 Y-4.705 106.522, 222.048
Open -106.522, 222.048
[2 05.52 39.6] X7.720 Y5.010 214.550, 205.048, 101.078
[code]....
But it not writing anything as output..
View 1 Replies
Aug 17, 2009
I have a 2 text files
Text file 1:ERR - Max6 Error file
[2 19.40 44.7] X6.950 Y-4.705 106.522, 222.048 Open -106.522, 222.048
[2 05.52 39.6] X7.720 Y5.010 214.550, 205.048, 101.078 Open -214.550, 101.078
[2 07.69 39.2] X7.786 Y3.489 215.574, 214.075, 204.067
[Code]...
View 7 Replies
Feb 3, 2010
I am working on a VB Console Application that takes an Autocad drawing type DWG and converts it to a PDF using a shell command that calls a third party application. In this case, acmecadconverter.exe from www.dwgtool.com. Then the PDF that is created needs a unique watermark, so I call a second application for that called pdftk.exe from www.accesspdf.com/pdftk/.
Everything works as intended, except when I try file names that contain spaces. The file system object does not tolerate spaces in the drawing file name. For instance, the following command gives me a system.io.filenotfoundexception...
My.Computer.FileSystem.RenameFile("Test Flowchart1.dwg", "Test~Flowchart1.dwg")
It's the same problem for all of my File System commands. Either file not found or invalid arguments.
The complete script I'm using is here:
Code:
Sub Main()
Dim arrArgs() As String = Command.Split(","), _
i As Integer, folderPath As String, myPart As String, _
[Code].....
View 2 Replies
Jul 5, 2010
I've had no issues with this in C++, however, in Visual Basic 2008 (not sure about 2010), when I run a Do loop of any type, and run a comparison to 0, or even 0.0, the code loops a second time.
[Code]...
To my knowledge it should cancel after the 5th line, since the condition is satisfied. However it does not. Instead it runs the loop one last time.If I put in a comparison of any number higher or lower than 0, it works as it should, and cancels properly when the 5th line is written. So 1, -3, 0.0001, etc. works, so the problem lies with 0.
Now I do not know that much about the debugger, but it should be mentioned I'm running express edition, and I could not find anything that lets me see how each line compares. Nor, after an hour of searching online, could I find a single forum where this is answered (though perhaps that is due to how I worded my search).
If someone could explain to me why the comparison does not work as it should and loops a second time when comparing to 0, or even 0.0 (one person thought it was a difference in balance being double and 0 being an integer),
View 4 Replies
Feb 28, 2010
How do I check if 1 file is the same as another file? For example, lets say I have to files. Both have the same name, but different contents. How would I "compare" the files and tell if they are the same or different?
View 3 Replies
Aug 10, 2009
Hopefully this question will have an easy answer; I've tried searching for the answer myself, but I don't know what to search for (I don't know what you would call this).
Is there a way to compare a string to see if it matches more than 1 value?
[Code]...
View 6 Replies
Jan 8, 2010
How do I tell if the current time is between two other times? ie. is it currently between 8:00 AM & 4:00 PM.
View 9 Replies
Aug 21, 2009
I'm wondering if there is another way of comparing two byte arrays, that isn't going through each index of the array.[code]But that would give me false negatives. If I wanted the real results then I would have to add a Not.
View 4 Replies
Dec 28, 2009
First of all - It`s my first post here so welcome I have a short question.I have an array with strings values, and a datacolumn with values of the same data type. The question is - what is the most efficient method to find values which are in the array, but aren`t in the datacolumn?
View 18 Replies
Jun 14, 2011
I've got a project where I'm going to have to compare some PDFs. I've checked out a few SDKs, but I was wondering if anyone else has had to tackle this and may have some suggestions?
View 3 Replies
Mar 8, 2009
I have the following
Dim input As String
If e.KeyCode = Keys.Enter Then
[code].....
View 6 Replies
Jul 10, 2009
I am making a app that reads options of a ini
dim config as new iniconfigsource("patch.ini")
dim test as string = config.configs("news").getstring("test")
Then I made a dropdown with options
I want my script to compare the values of the dropdown with the string readed from the ini
then uses it as selected value (the so called standard value) the one uc without clicking on the arrow if the none of the values match with the string value of the ini then it executes
dropdown1.selectedindex = 0
View 4 Replies
Jan 30, 2011
I have a combobox that displays saved names from the fullname column of my database. This works fine, all the items under the fullname column are added to the combobox. However, I also have several textboxes on the same form that also need to display data from the database, from the same record. So I was wondering if this was possible:
[Code]...
View 1 Replies