Create Form Where End User Enter Folder Location For Download?
Aug 5, 2009
I currently have a program that allows users to download files into a folder of there choice. I currently have 10 different forms all with a text box to show folder location and a browse button for user to find it, but what I want to do is create a form that will appear at the start where the end user can enter the folder location so that they don't have to enter the folder path for every download they want to do. How would I go about doing this I have a textbox, browse button and an OK button but have no idea what to do next.
I have am Explorer form and I want to be able to use a treeviewNode and all of its contents to create a windows folder structure.Each Treeviewnodes would be used to create a folder.
The problem I have is that I am using a SaveFileDialog Form to allow the user to specify where the Folder structure should be created and it only accepts a file as input or end point.
How can I get the SaveFileDialog form to accept a folder, e.g the desktop, without specifying a document in the folder?
i am working on a game that i have made in vb.net, i was able to create an Uploader where when the character moves it is uploaded to a Server, now i am trying to add the multiplayer where other player movements are downloaded, i have started off with this code:
Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick dim client as new net.webclient Label1.Location.X = client.DownloadString("ftp://User:Pass@Host/" + "Player_1_X_location" + ".txt") Label1.Location.Y = client.DownloadString("ftp://User:Pass@Host/" + "Player_1_Y_location" + ".txt")
i Receive the Error:
Expression is a Value and therefore and cannot be the target of an assignment.
I am trying to copy an entire folder and all of its contents that is in the same location as my program that is running to a user selected location. I started off by using a SaveFileDialog, but now I am working with a FolderBrowserDialog. Here is some code:
Private Sub BackupButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BackupButton.Click Dim sourcePath As String
[Code]....
But when I run the program, it works, but it does not copy the entire folder in the application startup location.. how I can copy that folder that is in the same location as my program to a user selected location?
I have to create a program that ask the user to enter the amount of hours work for 5 diferent projects in textboxes. The user have to enter the time he worked in minutes. Ex: 153, 280, 600, 130, 20... The total then is out putted into a textbox in this format "13 Hours and 35 Minutes" I'm having dificulties making the conversion and the separation from hours and minutes. I understand that the total is divided by 60, but if we fallow the above numbers the total hours comes out to 1183 / 60 = 19.71. So I'm having problems with the .71 mnts or digits... so from this total I have to output the total of in this particular format: "19 Hours and ?
I am a new user to VB and I am having difficulty with one of my assignments. The assignment states that to create an application that allows a user to enter three test scores each for three students. The application should calculate each student's average test score and assign a letter grade. The application should prompt the user for each student's name and three test scores.
i'm having a bit of a hard time on setting up the calculations.There are three seating categories at a stadium. For a baseball game, Class A seats cost $15, Class B seats cost $12, and Class C seats cost $9. Create an application that allows the user to enter the number of tickets sold for each class and the total revenue.
I have to create an application that lets a user enter as much grades he wants. The grades are between 0 and 100 and they can't be negative. Whenever the user type -1, the application is done and it shows the average of the grades, the lowest and the highest grades.I absolutly have no idea where to start but i must be using loop/do/while.
could anyone please help me with this1.Create a simple Times Table program which will allow the user to enter an integer value n (between 1 and 20) into a textbox. On the click of a button output to a label the n times tables. Use a For Next loop to perform the repetition.i can output them to a list box but only last one to a label ive been stuck for 3 days.
I have to create an application that prompts the user to enter today's sales for five stores. The program should then display a simple bar graph comparing each store's sales. Create each bar in the bar graph by displaying a row of asterisks (*) in a list box. Each asterisk in a bar represents $100 in sales. I have to make two different versions of this program. One using a "do while ... loop" and the other using a "for ... next loop". Could someone give me a hint on how to do this. I the "do while ... loop" version and I have had some problems, especially with converting the numbers to asterisks.
Private Sub btnDisplay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplay.Click 'Clear everything
this is my first vb. and i have assignment and i have been trying for hours but i couldn't do it right I have to create an application that prompts the user to enter today's sales for five stores. Create a loop to prompt for an amount for the first store using an inputbox and do not exit until you have good data. The inputs cannot be negative or greater than 5000, but may contain decimal values. The program should then display a simple bar graph corresponding to the amount of sales using a row of asterisks (*) in a listbox. Each asterisk represents $100 in sales. Display the total of all the stores by looping this process for each store.
I am wanting to create an application that will monitor the upload/download traffic of a user. Can someone point me too some code that I can have a look at?I have found SharpPcap - A Packet Capture Framework for .NET, but cannot find any vb.net code for it.
I have found this code:
Dim Properties As IPGlobalProperties Dim StatV4 As IPGlobalStatistics Properties = IPGlobalProperties.GetIPGlobalProperties StatV4 = Properties.GetIPv4GlobalStatistics Dim Packets As Long = StatV4.ReceivedPackets
What actually is a 'packet'? Can I calculate the download/upload from this code by maybe multiplying the recievedPackets by packet size... or something like that?
I'm trying to code a program that can download multiple files at once (on different threads of course).I have created a custom listview component that will allow me to add a progressbar directly to it.What my real question is, how can i take a url given by the user from an input box and create a new webclient to handle the download asynchronously and also report the progress without disturbing all of the other downloads in progress?
Create a program which promps the user to enter an unlimited number of test scores. The program should show the high score and the low score. You should use a loop of your choice within this program. The program should look similar to the one below:
How can I allow the user to create a new folder and tell it where to be saved? I was thinking of using the savedialog but I don't know how to use it for folders instead of files.
I have a sub in my app that creates a folder called logs. I'd like to ask the user where they want to create the folder (explorer?) maybe even let them name it whatever they want. Also there will be text files created in that folder, so they will have to be saved in whatever folder the user creates.
Here's the sub. Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnServerDiagnostics.Click Using p1 As New Process p1.StartInfo.UseShellExecute = False p1.StartInfo.CreateNoWindow = True [Code] .....
I am going to show you how to create a browsefolderdialog. All this does it popup to the user and let them choose a folder.
For this you need: 1 Button 1 Textbox
Double click your button and add in the
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim BrowseFolder As New FolderBrowserDialog
[CODE]........
This sets your textbox1.text to what ever folder is selected. After that you can do whatever you want with your selected folder. This is how it will work when you are done: [URL]
I am creating a VB .NET app that uses the user's Application Data to store data. Can an unprivileged user create a folder in the top level of their Application Data directory? I am trying to create the app's folder if it doesn't already exist for that user.
I have a button which on click creates a folder where the user wants. But as soon as the folder is created i want to save its name to the database(Access) The database contains one column named "FolderName"
Here lies my code that i tried:
Imports System.Data Imports System.Data.OleDb Public Class Form1 Dim con As OleDbConnection
The company require an application that displays coffee usage information for the managers of CostaB Coffee. Sample data has been provided for last years (2011) monthly usage amounts in kilos and is as follows: 400.5, 450, 475.5, 336.5, 457, 325, 220.5, 276, 300, 320.5, 400.5 and 415.
Requirements: The main form will allow the user to enter and store monthly amounts in an appropriate data structure. It will enable the users to calculate the total usage for the 12 month period and average monthly usage. A further requirement for the application is for the users to be able to display the monthly totals in ascending (smallest to highest) and descending (highest to lowest) order of the monthly usage amounts. Utilise appropriate formatting for input/output and include appropriate error trapping and data validation in the application.
I need some guidance on the best way to proceed with searching a file content. I have a large file (see attachment) that is in text form, some of these files could be upto 50 times as big, therefore creating a huge file. These files contain information that is produced from another application and therefore I am unable to change the format of the file.
how to create an error message by message box to tell the user to enter a number only if they key in a character value?
I MEAN AFTER THEY PRESS THE CALCULATE BUTTON
Private Sub btnCalcFat_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalcFat.Click Dim intFat As Integer intFat = Integer.Parse(txtFat.Text) lblResultDisplay.Text = txtFat.Text * 9 End Sub
I want to make live search form like when user enter 1 char then it ll find all data start with or contain letter.i have use the sql like query with textbox textchanged event but it is too slow any other method to make it fast?