Allow User To Select More Than One Row?

Mar 20, 2012

In a datagridview, how do i allow user to select more than one row? so if theres 5 rows and user can click on any number of rows and they stay highlighted and if he click on them again it unhighlights them.

View 7 Replies


ADVERTISEMENT

Javascript - Code Giving The Msgbox If User Select Or Not Select The Checkbox?

Jan 27, 2011

IT STILL GIVES A MSGBOX IF I SELECT THE CHECKBOX BOX OR NOT ....My code below will redirect to Google in both conditions: If the user selects the checkbox, then it will redirect to www.google.com, but if a user forgets to check the checkbox then it shows the msg box with an ok button. When I click on ok it should redirect to www.google.com

I want When a user forgets to check any of the checkboxes to show a msgbox with an ok button and stay on the same page. Otherwise if user selects any of the checkboxes then redirect to google

[code]...

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

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

Allow The User To Select A Printer?

Apr 19, 2010

In VB 2008;

I have seen a couple of printing tools in VB 2008; I do not know how to use them?

I have a form (Form A) which collects data from other forms.

Form A is a certificate, how do I with a button click print this form (Form A - certificate)?

Go straight to default printer? Or allow the user to select a printer?

View 4 Replies

Allow User To Select And Resize Image

Jan 17, 2009

I've got code to allow the user to import an image to the document they have opened, however right now, the image displays at it's default size, and well, if it's a large image, the document stretches and looks like crap. I want the user to be able to select the image after they insert it, and have the handles show up on the corners so they can resize it, and would also like to have it allow them to move it around the document if possible. [Code]

View 2 Replies

Datatable.select User Functions?

Aug 12, 2009

I've defined a function:

Public Class GeneralFunctions
Function StartsWith(ByVal sStart As String, ByVal sWord As String) As Boolean
Return Strings.Left(sWord, Len(sStart)).Equals(sStart)

[code].....

View 1 Replies

Forms :: Allow The User To Select The Shortcut Key?

Feb 12, 2006

is there any way to let user to set the shrtcut ?look like "shortcut key" in properties of the shortcut file i know about keypress and keydown or keyup but how to use them to auto detect the key and set it?example ctrl+h . when it happen one by one i can get keycode or keychar but if they press by user in one time and hold it together i cant read it by kecode or keypress.

View 1 Replies

Let The User Select A Password For A Program?

Nov 2, 2011

i want to know how to let the user select a password for a program that i made and would like to know where the password is storedNever Fear Spartucus49 is here

View 16 Replies

Restrict User To Select Not More Than 10 Asp.net Checkboxes?

Aug 9, 2010

How to restrict user to select not more than 10 asp.net checkboxes on button click event , if user select more than 10 checkboxes then alert box will pop up that you can not select more than 10 checkboxes

View 7 Replies

.Net Calculator - Allow The User To Select Which Way They Want To Calculate The Mortgage

Jan 1, 2009

Write the program in VB.Net (not Web based) with a graphical user interface. Allow the user to select which way they want to calculate the mortgage: By input of the amount of the mortgage, the term of the mortgage and the interest rate of the mortgage

[Code]...

View 2 Replies

Alert Allow User To Select Access Database?

Apr 4, 2011

i want to allow user to select or find access database file when the software is executed/opened for the first time. after user selects the file and as he clicks open the software shows the full path of the file and then stores it with the provider and datasource in a txt file for future use.

View 3 Replies

Allow User To Browse For, And Select, SQL Server & Database?

Apr 4, 2010

My application needs to be able to be pointed at different SQL Servers and different databases and I would like to provide the end user with a nice method of selecting both the server and database (the app is for use by other IT staff).Ideally, I was thinking of allowing them to browse to the server (with possibly entering credentials or even better, using their Windows credentials as the databases in question should be accessible to the relevant people via their AD account), and then listing the databases on that server allowing them to select one to use.

I would like them to then be able to easily change the server and database whenever necessary.I imagine I would then need to build the connection strings based on what they select but at the moment I have got rather stuck in just trying to create a form with some kind of Server Browser (I've not got as far as a database browser!).Failing some kind of server/database browser options, I would change to some simple text boxes where the user can enter the name of the server and database directly with some kind of connection verification button.

Finally, is it easy to connect to multiple databases on the same SQL Server at the same time? Is it just a case of creating and referencing multiple connection strings?I am using VB 2008 Professional and SQL Server 2005 Standard.

View 5 Replies

DataGridView - Allow User To Select One Cell And Delete It

Mar 11, 2012

I want to be able to delete records from my database and have this piece of code to do so:
Dim myConnection As SqlConnection
Dim myCommand As SqlCommand
Dim ra As Integer
myConnection = New SqlConnection("connectionstring'")
myConnection.Open()
myCommand = New SqlCommand("DELETE FROM player_table WHERE player_ID = 1", myConnection)
ra = myCommand.ExecuteNonQuery()
MessageBox.Show("Player Deleted")
myConnection.Close()
But I want let the user actually select one of the cells displayed and delete that.

View 1 Replies

Have The Results Generated In Such A Way That A User Can Select One Of The Records?

Jun 16, 2011

I have a search form that has the ability to return many records. I would like to have the results generated in such a way that a user can select one of the records.An example:

John Doe
Jane Doe
Mark Smith

If the user specifically wants to look at Jane Doe, then that record would be pulled and put into a new form. How can I make the records selectable especially when I don't know how many will be returned on the search.

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

Multiple ListBox - User Cannot Select Same Items

Jun 9, 2010

I currently have two list boxes that have the exact same items in each. I don't want the user to be able to select the same item from both list boxes.

My code:
listbox1.Items.Add("SSS")
listbox1.Items.Add("AAA")
listbox2.Items.Add("SSS")
listbox2.Items.Add("AAA")

I'd like the user to not be able to select AAA & AAA from different list boxes, just SSS & AAA. I have way more items just thought I'd shorten it.

View 6 Replies

User Click Checkbox And Select Date

Apr 27, 2009

I am creating a program that requires the user to click a checkbox and then select a date in a Date Time Picker Control. There will be up to 20 entries. I need to know how to take all of the dates entered and display on a different form the latest date selected by the user from all the entries on a form. All the options will be training selected and when the last training item is selected and a date entered I need to be able to output the training completion date which will be the latest date entered in the form.

View 2 Replies

User Select Auto-ScaleMode At Run Time

Jan 1, 2011

I want the user to be able to select the AutoScaleMode at runtime.I have set everything up, and set:[code]When the user makes their selection, nothing happens.If I compile with the mode set to DPI, it looks like I want it to, but others will want the display to be different.How can I make the mode change take effect in runtime?

View 3 Replies

User To Select A Directory And Then List The Appropriate Files?

May 6, 2012

I am using the following code to allow the user to select a directory and then list the appropriate files within that directory in a combobox. What I would like to do is sort that combobox into a descending order so the most resent files are listed first as the filename contains a date yymmdd.

ComboBox1.Items.Clear()
If FolderBrowserDialog1.ShowDialog() = DialogResult.OK Then
TextBox1.Text = FolderBrowserDialog1.SelectedPath
End If
Dim BackupFolder As String = TextBox1.Text

[Code]...

View 4 Replies

VS 2008 Let User Select A Form Theme?

Oct 27, 2011

Ok, so i am trying o make it so that a user can change themes, i have moved all major code to a module so it can be accessed but then i have a problem.

I have 6 forms, all forms are the same just different themes, The problem is that in the module it calls form1, like for example form1.webbrowser.blah.blah, if i user used form3 for there theme then this dones not work as in the module it calls form1.

Basically i need to add something else there like for example:

dim Cform as string
Cform = form1
Cform.webbrowser.blah.blah
But form1 can not be a string

View 4 Replies

When User Clicks Dropdown / Doesn't Select Anything

Mar 25, 2009

I currently have a few comboboxes in my project that on the 'Dropdown' event, I have them show items from a database that I have bound to the Combobox, I have tried this on several other events too with the same result.The problem i'm having is when the user clicks the dropdown but doesn't select anything, it automatically defaults the first item in the combobox although nothing was ever really selected so what I want is the combobox to remain blank UNTIL they click on an item in the dropdown, is there a way to avoid this? Is there some code I can place in the combobox's selected indexchange to prevent the first item in the list from appearing unless it was actually physically clicked?

View 5 Replies

.net - Datagridview - User Only To Be Able To Select Rows And Not Individual Cells

Jul 1, 2011

I want the user only to be able to select rows and not individual cells in a VB.NET DataGridView. Is there a way to make this happen? I don't see an option for the DataGridView object to control this via properties.

View 2 Replies

Allow User To Select Multiple Files From One Directory And Place Them In Another?

Jun 3, 2011

Here is my current code, and it works fine to choose one image and copy it, however, I cannot figure out how to allow multiple file selections then copy them to a new folder.

Imports System.IO
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim strFileName As String

[code].....

View 3 Replies

Check If Only The Checkbox Is Checked Without Having The User Select The Node?

Dec 30, 2010

How can i check if only the checkbox is checked without having the user select the node.

This code works, but the user has to check the itm first

If TreeView1.SelectedNode.Checked = True Then

View 3 Replies

Code If User Doesn't Select Messagebox Button

Feb 26, 2009

I have an application that has a timer. Every hour, the application will see what time it is. If it is after 5 P.M., then the application will shut the computer off. (For power saving purposes)I have a messagebox pop up warning the user. I want the user to be able to hit "Cancel" on a dialog box if he/she is still working on the computer and reset the timer to ask again in about an hour. If the user isn't there to select a button on the messagebox, I want the computer to turn itself off. But I can't get the code to skip the dialog box after so many seconds. [Code]

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

Drawing From - User To Be Able To Select Any Tile, And Read Data From It?

Jan 30, 2010

Say I have a tile map, example:

111111
122221
122221
111111

And we know that the total X and Y coordinates of the map is (6, 4), with the numbers 1 and 2 representing different tiles at specific coordinates.I have already retrieved the X and Y coordinate for each tile, now all I want to do is duplicate(clone) the entire map. After I clone it, I want the user to be able to select any tile, and read data from it.

View 11 Replies

How To Catch Error If The Data That User Select Not In Database

Oct 23, 2010

How can I catch error if the data that user select not in database?
This is my code.[code...]

View 5 Replies

Select All The Items From The Combobox When The User Check The Checkbox?

Nov 19, 2009

I have on my form a combobox and a checkbox.What I want to do is when the user checks the checkbox all the values contained in combobox will be selected. So a multi-select for all items of combobox when the checkbox is checked.I tried this:

Private Sub CheckBox1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged
If CheckBox1.Checked Then
ComboBox1.SelectAll()
End If
End Sub

But only one element is selected with blue.

View 6 Replies







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