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


ADVERTISEMENT

Create A Function Inside Data Grid View Have A Combo Box And Can Let User To Choose

Jul 28, 2009

i have a question in vb about inside a data grid view i need to create a combo box...

View 1 Replies

Make The User To Be Able To Select A State From A Combo Box?

Feb 8, 2009

I'm setting up a program where I would like the user to be able to select a state from a combo box. I can not figure out how to allow to select the abbreviation from the drop down list and also allow them to type a letter and it will select the state from the state or just allow them to type the full abbreviation that would match what is already in the list. It is supposed to be in the drop down list style. I would also like to confirm that the user has chosen a state before allowing them to click a submit button but I'm not sure how to go about confirming it.

Private Sub FrmMain_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
' Inserts state abbreviations in combo box
cboState.SelectedItem = " "
cboState.Items.Add(" ")

[code].....

View 4 Replies

Display A Message Box If The User Doesn't Select Anything From Combo Box?

Apr 25, 2010

How can I check for my combo box to have a selected item? I want to display a message box if the user doesn't select anything from my combo box.

View 3 Replies

Application That Allows User To Select Or Enter Into A Combo Box Number Of Days A Person Will Work

Oct 28, 2009

Create an application that allows the user to select or enter into a combo box the number of days a person will work, and calculates the total amount of pay she will receive over that period of time. Salary is one penny the first day, two pennies the second day, four pennies the third say, and continuing to double each day.

The combo box must list the following items: 30, 180, 365, and 1000. Must be the default drop down box. Use a validating event procedure on the combo box.

The program should go through a loop once for each day, doubling the number of pennies with each iteration of the loop. You will need a running totl of the number of pennies that you add to with each iteration. To calculate the total amount of pay, multiply the total number of pennies by .01 and show the result in currency format.

Public Class Form1

Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged

[CODE]...

View 14 Replies

Sign Out User If Someone Else Signs In With The Same Account

Sep 28, 2009

Sign out user if someone else signs in with the same account Anyone have code in VB that will do this?

View 3 Replies

Give The User The Option Of Using A Password And Sign-in Or Not?

Mar 21, 2012

I am working on an application that I want to give the User the option of using a password and sign-in or not. I have added three items to the "Settings" , these are:

1) SignInRequired (True or False)

2) UserID (string)

3) Password (string)

My problem is that I'm not sure where I should put the code. Should I use a module and set it as the opening form, or shall i put the code in the first form the viewer sees, which I tried and due to other situations the form has several different appearances, a this is causing a problem.

View 2 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

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

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

Allows A User To Select A Program To Run At A Certain Time For A Specific Amount Of Time All Choosen By The User

Jul 1, 2010

I have a program that allows a user to select a program to run at a certain time for a specific amount of time all choosen by the user. Everything works with the exception of if my program has launched the other program, my program become non-responsive. Meaning I am not able to look at that window again. Not that one really needs too, because when time is up my program closes the program it opened, then closes itself. I just want to be able to see my program when the other program is running. how to do this and perhaps drop me some links, that would be wonderful. This is what I have coded, but like I stated there are no code errors.

[Code]...

View 5 Replies

VS 2005 Using Combo Box In User Control And Getting Selected Value In Another User Control

Aug 31, 2009

i am using vb.net 2005 to developed desktop application I am having two windows form user control , the first control name con.vb containing the design and code for connecting to database and getting a list of my project values in combo box.

Now the second user control report.vb which i am using to generate some reports , since the code behind is using connection to connect to various project database , so i want to get the value of

First user control into another how i can get the i have tried the below but its giving me error in run time but no error in design or code behind -

MR.MainForm.Connection1.project_combobox.SelectedV alue.ToString

Error i am getting is :

System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
Source="MDR"

View 1 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

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

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

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

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

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

SQL Statement - Change The Word Mobinil When The User Choose Another Item From The Combobox?

Oct 14, 2009

the below statment is right 100% but what i need is to change the word mobinil when the user choose another item from the combobox

cmd.CommandText = "select * from warehouse where mobinil ='" + ComboBox2.Text + "'".I thought that i can do the follwoing dim x as string x= here will be the item selected by user- and ofcourse i need it to be put instead of the word Mobinil
cmd.CommandText =

"select * from warehouse where x value ='" + ComboBox2.Text + "'" is that possible ?

View 8 Replies

Display Previous Shadow Copy Versions Of File Allowing User To Choose One?

Dec 11, 2011

I'm writing an Excel file recovery program with VB.Net that tries to be a convenient place to gather and access Microsoft's recommended methods. If your interested in my probably kludgy, error filled, and lacking enough cleanup code it's here: http:[url]..... The basic functionality seems to work although I haven't tested graph macro table recovery yet.

It occurred to me that Vista and Windows 7 users could benefit from being offered a list of previous versions of the file within my application if the Shadow Copy Service is on and there are previous copies. How do I do this?I looked at a lot of web pages but found no easy to crib code. One possibility I guess would be to use vssadmin via the shell but that is pretty cumbersome. I just want to display a dialogue box like the Previous Versions property sheet and allow users to pick one of the previous versions. I guess I could just display the previous version property sheet via the shell by programmatically invoking the context menu and the "Restore previous versions choice", however I also want to be able to offer the list for Vista Home Basic and Premium Users who don't have access to that tab even though apparently the previous versions still exist. Additionally if it possible I would like to offer XP users the same functionality although I'm pretty sure with XP only the System files are in the shadow copies.

I looked at MSDN on the Shadow Copy Service and went through all the pages, I also looked at AlphaVSS and AlphaFS and all the comments. I'm kind of guessing that I need to use AlphaVss and AlphFS and do the following?Find out the list of snapshots/restore points that exist on the computer.Mount those snapshots.Navigate in the mounted volumes to the Excel file the user wants to recover and make a list of those paths.With the list of paths handy, compare with some kind of diff program, the shadow copies of the files with the original.Pull out the youngest or oldest version (I don't think it matters) of those shadow copies that differ from the recovery target.List those versions of the files that are found to be different.This seems cumbersome and slow, but maybe is the fastest way to do things. I just need some confirmation that is the way to go now.

View 2 Replies







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