User To Choose Save Name And Area?

Apr 7, 2011

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
'Creates a string that holds the path to your file.
'this path uses the Special Dir .MyDocuments
'so on my computer LogPath = "C:UsersTechNoHickDocuments"
'on your computer LogPath might = "C:UsersKirbyDocuments"
Dim LogPath As String = String.Format("{0} est", My.Computer.FileSystem.SpecialDirectories.MyDocuments)
Dim FileName As String = "test.txt"

[Code]...

I am using visual basic 2010 express and would like to know how i can use a text box of sorts or windows explorer function to allow a user to save a file to a location of their choosing.At the moment a folder and .txt file is created in the mydocuments folder of the user's computer using this code

View 2 Replies


ADVERTISEMENT

DialogBox - Enable User To Choose Folder Name And Save It

Jan 28, 2010

I want to have a dialog box like SaveFileDialog that will enable the user to choose a folder name and the save it. How I can achieve this?

View 5 Replies

Io - Allow User To Choose Directory To Save Multiple Files

May 26, 2012

I am needing to allow the user to choose a directory to save in. They can create a new directory if they want/need, and once they choose the directory, my program will save a few pre-coded files into that directory.

View 1 Replies

VS 2008 : Assign Ctrl+s To Automatically Save The Labels Text Once Pressed Instead Of Going Through A Menu To Choose Save?

Jan 20, 2011

so i have a quite huge program. but lets say i have one label. and i want to save that. i have the code and everything for saving the text of the label. now i want to assign ctrl+s to automatically save the labels text once pressed instead of going through a menu to choose save.this is like a regular texteditor where u press ctrl+s and it saves.

ive used this

If (e.KeyCode = e.Control & Keys.S) Then
MessageBox.Show("Ctrl+S pressed")
End If
and

[code]....

but it doesn't do anything once pressed.im also using the keydown declaration for the form.

View 4 Replies

Allow User Select The Sign Name From A Combo Box If User Choose?

Jan 18, 2011

Write an application that tests the user�s knowledge of road signs. The application should display a random sign image and ask the user to select the sign name from a Combobox.

View 12 Replies

File I/O And Registry :: Save File Dialog - Allow Users To Choose The Directory To Save Files Into

May 8, 2010

I am trying to find a way to allow my users to choose the directory to save files into, THe file name is automatically generated as it has a naming convention and i am able to pre program a location to save to but i d like to be able to allow my users to decide themselves which directory they want to save the files to and to have the ability to choose which directory to save to

[Code]...

View 2 Replies

Save Image Area And Load?

Jan 18, 2011

I need to load a picture and save some areas into a database (like you do it on Facebook when tag peopple into pictures).I need to save de selected area and then, in another form, show the picture and the selected areas in blue?

View 1 Replies

Pop-Ups - User Can Choose If They Want The Pop-up Blocker On Or Off?

Nov 2, 2010

I made a pop-up blocker in my Visual Basic browser. Here is my code:

WebBrowser1_NewWindow

e.cancel = true

msgbox "Pop-Up Blocked!"

But how can I make it to where the user can choose if they want the pop-up blocker on or off? Also, how can I make it block pop-ups, but still open clicked links in a new window of my browser? Just curious.

View 9 Replies

Forms :: Choose Item From ComboBox And Save Selected Value To DataSet

Dec 23, 2009

I have a problem with a combobox. I have a form (with information about clients) with textboxes binded to a dataview. One of the columns in the dataview contains a number that tells me what kind of client it is. I don't my users want that my users have to fill in a number in a textbox, but I want them to choose a item from a combobox. De selected value should be the value that is actually saved in the database.

This is my
Dim cmd As New SqlCommand
Dim dr As SqlDataReader
VerbindingMaken()
cmd.Connection = cnnVraagbaak
cmd.CommandType = CommandType.StoredProcedure
[Code] .....

De Datasource is the information in my combobox. With Databindings I'm trying to bind it to my dataset (or view, that doesn't work either) with clients. Every time I get a NullReferenceExeption. The moment I remove the line cbo.DataSource = dsRelatie.Tables("Relatiesoort"), I don't get an error, but it doesn't work either.

That dataset is filled (I've checked) and also the derived view. The column Relatiesoort exists. What do I have to do to make it possible for my users to choose an item from a combobox and save the selected value to the underlying dataset?

View 1 Replies

Lets A User Browse And Choose A Folder?

Nov 8, 2011

Basically I need to make a program that lets a user browse and choose a folder, then I need a box that the user can then select the files to work with, then with the selected files I need to put them into a zip file. I'm trying to use a list view box but having all kinds of problems using the data in it.

View 2 Replies

Let The User Choose A Multiple Amount Of Car Parts?

Jul 10, 2011

i am currently developing a small basic program that will let the user choose a multiple amount of car parts and it will add it up and display a quote at the end.

View 7 Replies

Let The User Choose A Time With The Numeric Stepper?

Nov 12, 2010

I have an application that, when I finish it, will generate a graph of data drawn from a My SQL Database. It's going to be a simple time graph, with time on the bottom and a few stuff on the y axis.What I want is for the user to be able to enter the date. I would like it to be like a numeric stepper. Before I had two numeric steppers in the form but I decided one would be best.The idea was it would be like this: mm:hh [UP/DOWN ARROWS HERE]I saw one that was in use in an actual program. It had it so when you clicked the minutes, it selected the minutes and you could change them. The you could select the hours and change them. How would I do this?

View 2 Replies

MDI - Childforms - Application - User Can Choose Which Modul He Wants To Use

Oct 4, 2010

Here is a simplified hierarchy of a application I want to create:

1. Mainform - here should be a navigation pane, where a user can choose which modul he wants to use.

2. Childform Reports, Childform Maintenance, Childform To Do, Childform Management, ... - depending on which modul of the program the user wants to work with, a proper childform will appear as the main working part of the application

3. Childform CostReport, Childform TurnoverReport, Childform EmployeesReport, ... - if user wants to work with Childform Reports (chosen in 2. paragraph) he can work with one of these childforms.

I wanted to do this with MDI childforms, but visual basic keeps telling me that a form can be a MDI container only as a toplevel, which Childform Reports isn't. So i can make the program till 2nd paragraph but when i want to make the 3rd, its a problem.

I put the error here: "Top-level style of a parented control cannot be changed.

Parameter name: value"

Is there a workaround?

Maybe i could use TabControl for the 3rd paragraph, but its not that convient, since I want to use more "tabs" or forms...

View 9 Replies

Publish My App Where User Can Choose Location To Install It?

Aug 14, 2009

I am using VB Express 2008. Im jus't wondering is there any way I can publish my app where the user can choose the location to install it?

View 1 Replies

User Can Choose Excel Cells To Read

Oct 5, 2009

I want the people using my program to choose their own cell to read. I will have 2 textboxes (txtRow and txtColumn). They will have to click "read" to read from excel (but I will not open MS excel) and the answer will show in a message box. This is what I have done..

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCheck.Click
Dim conn As New OleDbConnection("Data Source= D:LeeABC.xls ;Provider=Microsoft.ACE.OLEDB.12.0; Extended Properties=Excel 12.0;")
Dim da As New OleDbDataAdapter("Select * from [Sheet1$]", conn)
Dim dt As New DataTable
Dim Row1 As Single
Dim Column1 As Single
txtRow.Text = Row1
txtColumn.Text = Column1
da.Fill(dt)
MsgBox(mycell)
End Sub

View 2 Replies

VS 2005 Choose Randomly From User List?

May 18, 2010

I'm relearning VB.net just for fun, so consider me new at this. I'm trying to write a program where the user can input a list of names or numbers, and the program will randomly pick one of those names or numbers. So far, I can get it to randomly generate numbers based on what I put in the code, but I don't know what I should use for the user to input the data, and how to code it so that the program will pick from that data.

View 3 Replies

Assign Default User Area?

Nov 26, 2011

[code]...But, when someone else runs it their user name won't be the same as mine, so only people with the account name ADAM would be able to run successfully Is there a code so instead of me putting adam there is a code that will choose the user that the program is being run by?

View 9 Replies

Brings Up A Form With Some Radio Buttons For User To Choose

Nov 20, 2009

I've written a program that brings up a form with some radio buttons for the user to choose.The form is setup by a sub in module1 (called Type2Q, shown below). For some reason, often radiobutton1 is checked when the question appears.I specifically set checked to false since I did not want this to happen. [code]

View 3 Replies

Allowing User To Choose Color For Form Background

Jul 31, 2009

How do I give the user a color chooser for the background of a form or anything else? I would like to be able to give him all colors in vb.net.

View 2 Replies

Display Dialog With List Of Web Colors For User To Choose?

Jun 5, 2011

How can I display a color dialog with a list of known web colors for the user to choose?
E.g.
black
white
dimgray
gray
darkgray
silver
etc.
I need to display ALL web colors

View 1 Replies

How To Create A Browsefolderdialog - Popup To The User And Let Them Choose A Folder

Aug 19, 2010

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]

View 3 Replies

Numeric Up - Down Box - Display A Variable That The User Can Choose A Number For

Jul 24, 2011

I am using VB .net 2010 express from microsoft. I have a numeric up down box to display a variable that the user can choose a number for. Then I have a text box that I want to display a result of the updown box * 1.5... So far I have the following... What do I need or need to change? I have the integer variables initialized or whatever with Dim statements as follows -

'speed variables
Dim CruisingSpeed As Integer 'cruise speed - updown box
Dim FlankingSpeed As Integer 'Flanking speed - will be cruise * 1.5

[CODE]..................

It says that it cannot convert the up down box into an integer... I need it as an integer to calculate the other number...

Complete code just in case the above was not enough info...

'Imports Excel
'Imports System.IO

Public Class Form1

[CODE].............................

I have some stuff commented out because a variety of issues - some I will end up using and some I will end up taking out before it is done...

View 5 Replies

VS 2010 - Time Scheduling Control That Allow User To Choose

Dec 10, 2010

I once saw in an app a control that allowed the user to choose when they wanted the Timer running. It looked something like this: And when the squares are green, for example Tuesday 3:15 AM - 4:15 AM, the timer would run during that time period. I'm curious as to what control will allow me to do something similar?

View 3 Replies

Ability For A User To Drag An Area On Screen

Mar 14, 2012

i want to give the ability for a user to drag an area on the screen that they want and a that area to be print screened. or alternativly they click anywhere and that location is the top left of the box and then when they next click that location is the bottom right of the box and that box is print screened. [code]

View 1 Replies

Saving A File Into The End Users, User Area?

Jun 11, 2011

If I create a save a text file, how do I get my application to save it into the end users directory?

Ive current got this which saves into my user area.
file = My.Computer.FileSystem.OpenTextFileWriter("C:Users#####FruitFruit.txt", False)

View 6 Replies

VS 2010 Take A Picture Of An Area The User Chose?

Feb 8, 2011

screenshot function in my application. This is what I currently have:

vb
Dim bounds As Rectangle
Dim screenshot As System.Drawing.Bitmap

[Code]....

But instead of taking a picture of the whole screen, I want to just take a picture of an area the user chose. When the user presses the start point, I would like to have a rectangle drawn to the place where the user presses the end point. And then take the picture.

View 2 Replies

Adapt The Application Area To The User's Monitor Resolution?

Jun 16, 2011

how do I adapt the my application area to the user's monitor resolution?I have created a winForms application on 1280*768 resolution monitor and the application is generally used on smaller laptops (10inches). Now I need to a scrollbar on my entire application so that the spacing remains the same as I have designed. For this, there has to be a scrollbar (Both Horizontal and Vertical) on the application.

View 1 Replies

Wpf Custom User Control MouseleftButtonDown Capture Area?

May 23, 2012

I have a custom control with an event handler when you click on it. Everything works and the event get fired right.

AddHandler (cu.MouseLeftButtonDown), AddressOf Me.DoSomething

When the control resizes to show some extra information it expands. It also collapses when the user preses a button. This works alright. But now when I click where the expanded area used to be, it still fires mouse leftbuttondown on that control. I have tried to set IsHitTestVisible to false on the expanded element but it diden't work. Here's some xaml...

<UserControl x:Class="MyCustomControl">
<StackPanel>
<Grid>

[code]....

I cant use another element around my customcontrol since I also use this MouseLeftButtonDown on all different kind of controls.
I can't figure out how the boundaries on the cu.MouseLeftButtonDown event work to fix this.

View 1 Replies

Radio Button Group For The User To Choose Entry Temperature Type?

Jan 22, 2012

I need to have 4 text boxes and three command buttons. One button should be used for exiting the program, one button should be used for clearing all of the text boxes, and the last button should be used for any calculations/conversions. You should also have a radio button group for the user to choose entry temperature type.

One text box should be used for the entry of an initial temperature. The radio button group will then allow the user to select the entry temperature. When the button is clicked for conversion, the other three text boxes will populate with answers to the conversion. and if I enter 37 degrees Fahrenheit, the Fahrenheit text box should read 37 after the conversion.)

View 4 Replies

Let The User Choose An Assignment Then The Program Should Look For The Matching Text File In A Folder?

May 7, 2010

i created a form with a combobox that lists out Assignments ( assignment 1, assignment 2, etc...)......what i need to do is let the user choose an assignment, then the program should look for the matching text file in a folder, ex: user picks assignment 1, and the program will read from assignment1.txt and display the result in a listbox. I have everything except the coding to match what the user chooses and the text file to streamread.

View 10 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved