I am looking to create a small program in visual basic 2010 to perform the following actions on some photo's.
#1) I want to select a folder, that contains say 3 to 10 pictures all of which will have random file names (including some characters like - _ ~ )
#2) I want to resize each photo by 2pixels (both width & height)For right now shrinking it by 2 pixels would be best, i do not want to crop, as it may mess the photo up after a couple of times being run.So if it was 500x500 to start with, when its done, it should be 498x498.
#3) I want to save these newly resized photo's as newly created files.We can either delete the old ones automatically & save the file with the same name. Or simply add a random 1 digit # to the old file name, for the new file name.Either way, I do not want to "save over" the old file.I have never worked with any type of image operation in VB before so I have no idea where to start.
I have a dbase.txt file with some data in it. i.e -
Institution Course StudentID XZY ABC 2010-1111111 "the spaces between columns is one tab space" XYZ ABC 2010-1222222 XYZ ABC 2010-1333333
I want to perform simple SQL like operation - i.e - SELECT * FROM dbase.txt or SELECT Institution FROM dbase.txt WHERE StudentID=2010-1111111 and an insert operation like - INSERT dbase.txt VALUES (XYZ ABC 2010-1444444)
I have written some code which is not even closer to what I mentioned above. My program can read only the whole text file. There is a menu, but not functioning well, as well as my write function which is not working at all.
Below is my code - Imports System.IO Module Module1 Sub Main() Dim intInput As Integer Console.WriteLine("Main Menu") [Code] .....
I have about 10000 picture in folder and I want to insert them in table by comparing the name of picture to ID if the same he make update to table to save.
The code below works fine on my development PC, but when I deployed the app, it crashes.
Here is the lines of code that are relvant
Private TdsTypesList As List(Of TDS_Type) ... TdsTypesList = (From tt In db.TDS_Types Select tt).ToList
[Code].....
I have many queries that are using linq, and none of them throw any errors. The set of data is not very large either, less that 100 rows. I dont know if I have any other queries that do not have where statements in them that work.
Running .net 3.5 without sp1 on the client machine, although I am running sp1 on my development PC. looking for a solution that doesn't require sp1 to be installed.
Edit Code breaks on the second line when remote debugging.
I looked over [URL] and tried the following, with the same error.
TdsTypesList = tl.OfType(Of TDS_Type)().ToList
I finally found a dirty workaround. Instead of pulling all of columns from that table, I was able to re-write the query to omit 1 column. This returns an object of anonymous type, and I can use that object. I still would like to know what causes this though.
I'm setting up a simple app that has 2 variables, one from a combobox and one from a textbox.Putting all my code directly in the button1_click sub works just fine, however, I wanted to add a marquee progress bar so I tried to implement a backgroundworker.
[code]...
and call it with Me.Invoke(New SetComboBoxTextDelegate(AddressOf SetComboBoxText), ComboBox1.Text)but it still throws the Cross-thread operation invalid error.
I am trying to build a slideshow app that will display 6 pictures at a time from a specified folder. I put 6 pictureboxes in a TableLayoutPanel and have a timer control call the Ahead1 subroutine to load a new picture into the last box after all of the other pictures "move up one box".The problem is that every the timer calls the Ahead1, the program uses about 30MB of RAM and the program eventually ends with an OutOfMemory Error. (Choosing the Picture Folder - only called once)
Private Sub ChooseDirectoryToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ChooseDirectoryToolStripMenuItem.Click FolderBrowserDialog1.ShowDialog()
I'm trying to move a lot of pictures from FOLDER A to another, FOLDER B. However, some of the pictures already exists in the FOLDER B. This stops my program saying it cannot copy the pictures over because they already exist. I'm trying to make it so any pictures from FOLDER A will copy over the pictures in FOLDER B if they are similar in name. Like... Folder A's pictures will just replaced the Folder B pictures if they have the same name. I was told to use the System.IO.File.Copy tool. Here is my code.
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click If FolderBrowserDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then Dim files() As String = IO.Directory.GetFiles(FolderBrowserDialog1.SelectedPath)
I have a console application. I get the console application's folder path via this code:
dim Folder as string Folder = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly.Location)
And I need to create a new file with this name Key.txt in the same folder as the console application. Because this file name is rather normal and there is possible duplicate in that folder. How do I prevent duplicate file name while still using simple name for that file?
I want to allow a user to click a button that will launch Windows Explorer and go straight to the My Pictures folder when I don't know who the current user is.
Im using a black n white image of a human as my back ground and panels to display the same bits in color when the area is clicked. What isn't working for me is the panels are slightly overlapped and one will always be on top of the other. it is transparent so you can see the back ground, but not the panel underneath it when it has a picture in it.
Trying to make a simple browser with some simple addon's. What Ive done is setup a menu(forum) for the user to enter their email providers web address and it will save it in a xml file. When they click on the email link, it should load the email xml iformation and place that info in the tb_html.text and navigate. I keep getting a null exception and im not sure what going on here. Here is the code:
Browsers: Private Sub btn_Email_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_Email.Click 'Load Action Dim SavedEmailObj As Storage
I am fairly new to vb.net and I was curious, I have experienced issues in the past of using .jpg files from my computer and it working fine, but then when I compile it and send it to another computer it doesn't work like intended and I assume it is because the file isn't on the other computer. My question is how do I prevent this? Is there an easy way of including all picture files I will be using.
I am using Visual Studio 2008 Setup project. I need to copy one folder and the sub folders into the program files but when I tried to copy or add the folder to "Application Folder" in File System editor, I am able to add only files and not folders.
how to change the install folder path in a setup and deployment project/Installer class from program files to C:usersPublic in windows 7 and allusers folder in xp.Want to add MVP with my name.
I installed the new one. I then imported an old project made using vb 2008 EE.I found that a few errors were reported.In the project I addressed some function from a dll called "rsource.dll". I used the following function call:Public Declare Function rs_init Lib "rsource.dll" Alias "init" () As Double.The other different thing is the projevt was developed on a 32 bit OS but since then I have upgraded to 64bit (if this makes any difference). he other thing is where is the debugger PAUSE button. has it been removed from vb 2010?Also when i run debug it seems to create the exe in the Build output target folder instead of the default bindebug folder why is this?
Private Sub Button21_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button21.Click
If TextBox11.Text = "" Then Exit Sub MkDir(Dir1.Path + "" + TextBox11.Text) MsgBox("Folder Created:") TextBox11.Text = ""
End Subok now the file i have is from my.resources.test1 put this file into the folder that wascreated after mkdir line of code i have tried differnt ways of doing it but dose not work. it seams that this whould be so easy i dont if its me getting a mind block or something
Visual Basic 2008/2010 - Save Page As, create a Folder, upload the folder to a specific ftp site I am working on this vb app that will goto a specific site, click on a button(i am still working on the button process) do a save page as, create a folder, save those files to a folder and then upload that folder to a ftp site.
I have the following directory structure in my asp.net webdirectory i want when any body access anypage inside my admin folder then it auto redirect to login page of admin folder until they login
I have made this installation program and everything work just fine, but I wish to improve it a little. Atm. all the files being installed is in a seperate folder, and the installation program simply move them to the right location.There is a builder program too.I would like it to add all files from a list to the programs resource.folder instead of a seperate folder.Atm I add the installation file to the destination folder with the following line. [code]
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click If FolderBrowserDialog1.ShowDialog = Windows.Forms.DialogResult.OK Then End If End Sub
I have managed to get drag and drop working if this is any help:
Private Sub ListBox1_DragEnter(ByVal sender As Object, ByVal e As _ System.Windows.Forms.DragEventArgs) Handles ListBox1.DragEnter If e.Data.GetDataPresent(DataFormats.FileDrop) Then