Move Files Using Kill In Visual Basic?
Dec 7, 2011
I am making a desktop cleaner and I want the program to search For files extensions and move them into a new folder each named after the extension name. Here is what I have.
Public Class Form2
Private Sub Form_Load()
End Sub
[Code]...
I want to use Kill(Me.FileReference.Text("*.txt")) to move the files with .txt extention in the Directory which the textbox named Filereference.text contains which is extracted using MyFolderBrowser.SelectedPath.
View 1 Replies
ADVERTISEMENT
Aug 8, 2009
I actually have to questions related to the same subject. First, I would like to know how to drag and drop items from a toolbox, for example, and onto a control coded to accept them. My second question is how could I move a form, with the mouse, that is completely customised.
View 3 Replies
Dec 10, 2011
So I have an application that saves and retrieves images from an Access database. The images are displayed in a picturebox but I'm having a bad time figuring out how can I move to the next/previous record/image in the database, so the user can view them and delete it if he wants to...
Here is a screen of my form so you can better understand what I'm trying to do:
And here is the
Imports System.Data.OleDb
Public Class Form1
Dim dbConnection As New OleDbConnection
[Code]....
Save and delete functions work fine, I just need to know how to do the Next and Previous buttons... This should be easy to do, but I'm still a beginner to VB
Biggest problem is that this is a part of a school work which I must deliver tomorrow.
View 11 Replies
Apr 11, 2011
I need to submit a project tomorrow, and the topic is WPF using XAML. We are using VB by the way. Now I am still a beginner at programming, so I needed help. I've got a ton of WPF and blend tutorials open in tabs in my browser, but I have no idea where to start, and no idea for a project. I asked my tutor and he said he'll be checking our understanding of XAML, and creating an object using XAML as well as the other way round.
I stumbled onto some tutorials of media players main in WPF, and I decided to go with it. But because I have never used blend or WPF along with XAML before, I don't know what to do, if say I make a button in blend with effects, so that I may add coding behind it in VB. Please help me out. I've got like 15 hours before I have to submit.
View 1 Replies
Oct 19, 2010
1st i make resource file 2nd in module i make this : I don't have errors but it is not working here's i want to do; i want to move a file that a player/person who is using this doesn't see how it copy and past into folder
[Code]...
I don't have errors but it is not working here's i want to do; i want to move a file that a player/person who is using this doesn't see how it copy and past into folder
View 1 Replies
Jun 24, 2009
I wrote a programme about 12 years ago in visual basic 3.Since then I have moved interstate and changed jobs quite a few time and lost the original Visual Basic 3 discs.Visual Basic 3 saved the files in a binary format that has not been used in any other version of Visual Basic. So now I cannot read or modify the files.
View 3 Replies
Jan 5, 2011
I would like to iterate the files in a folder in Visual Basic. I want to check for each file's name. I heard about a Dir function or something, but I am not very sure how to use it..
View 1 Replies
Jan 16, 2012
For instance, I would like to read the picture's dimensions (width, height) and modify them to fit space available on a page. I have many pictures, so don't want to do this by hand.
If this involves using components or objects, where to find useful documentation about properties, methods, or whatever I need in order to write a program.
I'm using Vis Basic 2010 Express in Vista Ultimate.
View 11 Replies
Jan 21, 2011
Me Again, Can anyone tell me how to go about using Visual Basic 2010, on getting file information off of My CD'S/DVD'S as I have Many of them with No titles written on them.basically i would like to insert a CD or DVD into my computer and when i click a Button, A textBox will have all the files from the CD or DVD. and then i could print the list and keep a record of my CD/DVD.
View 8 Replies
Mar 31, 2007
How do I run files/application with standard editor/viewer?
View 1 Replies
Aug 24, 2008
In VB, i see file format in wav, but how we can run other formats through vb code my.computer.audio take wav format is there any other posibility
View 5 Replies
Jul 10, 2010
I have this
[code]...
Still it shows the message box, this shouldn't be the case and is a tested and proofed situation, in this case it didn't, what am I doing wrong here?
Kind Regards, Starf0x
View 2 Replies
Jul 6, 2011
I am trying to locate the runtime install for Visual Basic 6 Runtime Extended Files. I am not a developer just the guy truing to get it onto the systems for them. My question is simple anI hope the answer is the same. We are converting our systemsfrom Windows XP to Windows 7 and we need the extended runtime modules so a number of our applications will actually work.
I cannot locate the install for this in the Visual Studio download area. Is the re-distributable part of the studio install (so it should be on one of the developers systems) or do I download it from somewhere else.
View 7 Replies
Oct 22, 2010
What files do I need to include when I share my published VB form. I see in the "Application Files" folder there are all my version that I have published. Do I need to include all these or just the most resent with the Setup.exe?
View 1 Replies
Feb 27, 2010
how can i create and update mdb [ access ] files in visual basic 2008..and also if i have a dll library how can i get all of its syntax for using it in visual basic?
View 2 Replies
Jun 3, 2010
how to merge records in ms access 2007 in just a click away??i need visual basic code for merging files.
View 6 Replies
Jun 25, 2012
I currently have these group of files I want to rename:
C:Users medinaDocuments estenviromentTestfolderfile1-1111.doc
C:Users medinaDocuments estenviromentTestfolderfile2-1111.doc
C:Users medinaDocuments estenviromentTestfolderfile3-1111.doc
C:Users medinaDocuments estenviromentTestfolderfile20-1111.doc
I have a text box on my form where a I would enter a string of text which will replace the '1111' to whatever the string is in the text box field.
So for example, On my app, in the text box field, I would enter 2222, then when I click on button1, it will rename file1-1111.doc to file1-2222.doc, file2-1111.doc to file2-2222.doc, etc.....
This is my VB code I currently have:
[Code]...
View 4 Replies
Jan 25, 2012
how to sort the group of files in the directory using Hashtable by values?
i'll have more than 500 no of files in the below format:
prod_orders_XXX_<TimeStamp>.dat
XXX = symbol of the product and the length may varies.
<TimeStamp> = date and time
Multiple files for the same XXX are possible with different time stamps.
Here are some examples:
prod_orders_abc_20122001083000.dat
prod_orders_abc_20122001083111.dat
prod_orders_xyz_20122001093157.dat
[Code]......
I have posted a similar question before but this time i need this specificly using Hashtable.
View 1 Replies
Jan 31, 2011
I've made sort of a "Game"
I want to add an Item to all accounts. I know HOW to write into files and add the item but it's adding it to ALL accounts.
Accounts Dir: C:DatabaseAccounts"Username"Items.txt
Without adding EVERY Account file as a streamwriter how would I make the streamwriter do all available directorys for the account's name.
View 3 Replies
Dec 30, 2011
I have an issue with creating a VB program. I reference files on my computer that are displayed in a webbrowser in the program. The issue comes when I install the program on another computer because of the file path. The program is looking for the files on the computer I created the program on because of the file path, instead of looking for the files within the program resource files.
For example, I created the program on Computer A and referenced File "C:ComputerAMy DocumentsHelp.txt"
Once installed on Computer B, the program doesnt display the image because it's looking for "Computer A" in the file path.How do I correct my programming so that the files are universial and can be found on any computer the program is installed on?
View 13 Replies
Jun 20, 2010
how to read selected text from pdf files in vb.net - visual basic language ?
View 1 Replies
May 6, 2010
I would like to be able to read a column of numbers from an Access database into a VB.NET program and then manipulate that data.For example I have a column of numbers and want to add them up and then take the averageThe maths is not a problem but how do I read the column of data into the program. I know how to do this if I first export the Access data into a CSV file, but
View 11 Replies
May 1, 2011
My students did a tutorial in HTML Help Workshop to add Help files to a VB 2008 Windows application. They zipped the files and uploaded them to our class web site.
I downloaded them at home, unzipped, and tried to check, but every one shows Table of Contents or Index and cannot find the .htm documents for the topic. The same thing happened in my office. However, these projects work correctly in our classroom
lab and do display the .htm files.
View 4 Replies
Feb 14, 2011
I am trying to delete rows of an .sdf file using the Database Explorer utility of Visual Basic. When doing so, I get the following error message:No rows were deleted.
A problem occurred attempting to delete row 1.
Error Source: Microsoft.VisualStudio.DataTools. Error Message: The row value(s) updated or deleted either do not make the row unique or they alter multiple rows(48 rows). Correct the errors and attempt to delete the row again or press ESC to cancel the change(s). It is correct that the data in the rows are not unique (and not supposed to be; there is no "error" to correct), but why should this prevent deleting them?
View 4 Replies
Apr 9, 2009
My app is designed to work on XP & Vista but I get an error on Vista but not XP When I want to kill/delete or move a file from an external drive I get an external error message System.UnauthorizedAccessException: Access to the path is denied.
full error text:
************** Exception Text **************
System.UnauthorizedAccessException: Access to the path is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
[code]....
View 15 Replies
Jan 24, 2011
How do you extract source code from a VB.NET .EXE file?
View 3 Replies
Dec 12, 2009
In a discussion with another programming student I was asked if I knew what external files are and how they are used with VB? Before coming here I referred to my VB tome, searched the web with Google, and looked at other VB forums without finding an answer. I would just like to find something that explains what "external files" are. I have already read something about "reference files" but reference files do not appear to be the same thing as ext. files
View 1 Replies
Nov 30, 2010
My naming convention for certain files is ------------kill 28 nov 2010.ext Is there a way I can throw an if statement and a few variables together to check each file in a folder and if date.today = variable then delete file? I want to make a program i can schedule to run daily w/task scheduler, I haven't used VB in awhile but just found the disks from school so i figured this was the easiest way to go about it.
View 9 Replies
Apr 2, 2008
im trying to make a game in visual basic in which your character can move around, jump, and kill things. I can get the picture box with the character to move and everything is fine. but i did run into one problem. when the character moves over a tree (or something) you can see the gray backround of the character as i made in paint. how do i make the backround of the picturebox transparent?
View 4 Replies
Jul 3, 2010
I need to write a paper on the comparison between (Microsoft Visual studio 2005 to develop web applications using asp.net) and (visual basic and Netbeans to develop j2ee applications using java).I need suggestions for good webpages,journals or documents which can help me out here. I have to write at least 1500 words so any suggestions are welcome.
View 1 Replies