Forms :: Users To Enter Their Own Choices In And Then Their Choices Are Displayed Into The Gridview?

Apr 28, 2010

wondering if someone can help me some small issues I am having with building my first project.

1.I have comboboxes that allow users to enter their own choices in and then their choices are displayed into the gridview.

the problem I am having is this is allowing me to duplicate choices. for example:when I run debug to try my boxes, I can type in Johnathan into the combobox as many times as I want to and it adds is to the combobox list..so now I got 10 johnathans in my combo box.and then to make things worse, when I hit the button I made to send choices to display..it causes duplicated choices to show up in the display.What I figure is that it is easier for me to just prevent duplicates in combobox.

2.Lets say on one of 10 comboboxes I got...lets say someone skips the box and doesnt make a choice...my grid will then display the last choice made.. (man o man)for example:John chose in his boxes and is displayed on gridview: Combobox1 (john) Combo2 (5:00 PM) combo3 (waiting)now lets say I come up to the computer and in Combobox1(Dcurvez) Combo2( i skipped and didnt enter a choice) and Combobox3(In Progess)

The display will put Dcurvez....5:00 PM.....In Progress because I didnt make a choice in the time combobox..it put in the last choice (Johns) as 5:00 PM Can someone in very simple terms tell me how to fix this problem?? I am using visual studio 2008 and vb/vb.net as language this is not a webpage, btw. it is for in shop computer just.

View 6 Replies


ADVERTISEMENT

Saving Users RadioButton Choices Into A File?

Feb 17, 2009

how to save the users radio buttons choices to load into a file. I have a button which controls the If statements to determine the price of the configuration. I was wanting to save these choices that the user made. I thought I could do this by altering the If statements but I don't know if thats the right way. I've got 3 different groupboxes with 3 options in each.

Heres a part of the code for the IF statements:

Private Sub UpdateConfig_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles UpdateConfig.Click
If Choice1Option1.Checked = True And Choice2Option1.Checked = True And Choice3Option1.Checked = True Then
PriceShow.Text = Prices(0, 1)
TextBoxProcessor.Text = Choice1Option1.Text

[code]....

View 2 Replies

Add Choices To The First Two List Boxes?

Dec 14, 2009

I'm new to visual basic and I've put all forths of effort towards this program and I can't get it to work. I know one reason is I don't know how to add my choices to the first two list boxes.

Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim RegistrationFee As Integer
Dim LodgingFee As Integer
Dim Days As Integer

[Code]...

View 27 Replies

Add Item List As One Of Choices?

Sep 10, 2010

I have visual basic 2008 express. i am learning through videos at LearnVisualStudio.Net and the next step is to add item which is the sql database. i don't have this as one of my choices? am i suppose to have it with express? if not, can i get it somehow and add it to my Add Item list as one of my choices? I have the local and the server database but the video i'm following has an SQL database. Again i am just learning so be easy on me.

View 7 Replies

Filter The Choices In The Second Combobox?

Dec 31, 2008

I have 2 comboboxes, textbox and a cmdbutton. When the user makes a selection in one combobox I want it to filter the choices in the second combobox. Then when the user clicks the button it passes the values from the comboboxes to a stored procedure and populates a datagridview. I am using VB.net 2005 and sql server 2005.

View 1 Replies

Get The Number From Choices In A Combobox?

Apr 9, 2011

I have a combox with a bunch of choices already populated.

View 3 Replies

Keeping Track Of Choices?

May 24, 2011

I have two combo boxes, and four buttons. When the user clicks "Add" on the first combo box, it adds a new item to the combo box with "New" and then lets the user rename that item to something else. That "new" item has to have an array of "answers" that go along with that item in the list. What I'm having trouble figuring out is assigning "answers" to the second combobox for each item in the first combobox and changing the second combobox when selecting an item in the first combobox.

EXAMPLE:

Item 1 - Combobox1
- Item 1 - Combobox2
- Item 2 - Combobox2

[code]....

View 5 Replies

C# - Language Choices When Porting A Classic Asp App To .NET

Sep 7, 2010

We are looking to port our existing classic ASP application to .NET, but we're unsure of what language to use for the new app. I personally would 'prefer' C#, as I'm more familiar and comfortable with that languages way of doing things, but, the original code is VBScript, so it would possibly be easier to port to VB.NET ... One possible situation I fear would be that, because the code is so similar between the two variants of VB, that we might end up getting stuck on something that is not similar between the two, even though it looks like it would work. A shift to a wholly different language might avoid that kind of situation. Does anyone have any practical examples of this kind of situation? Insights to illuminate the issue with? Do the potential benefits of a complete paradigm shift outweigh the gains from a high degree of 'copy-and-paste-ability' ?

View 9 Replies

Display A Random Messagebox Out Of Nine Choices?

Apr 4, 2009

i'm trying to display a random messagebox that displays a message associated with a character. the character image displays and the user clicks a button to guess the character if it is correct, one of three messages should randomly appear that is associated with that character (there are 4 characters, so there are 12 possible messages total. 3 for each character) but as it stands now, the picture box on the form displays the character name so the user doesn't have to guess which button to push. i need to remove the name from beneath the picture so only the buttons have the name and the user is forced to guess and i don't have the messages randomly popping up. only a messabebox that says correct i added a message box in the code but i can't figure out how to randomly get the messages associated with the characters to appear?

Imports System.IO
Public Class Form1
Dim currImageIndex As Integer = 0
Dim characterNames As String() = New String() {"Donny", "Jesus", "Lebowski", "Walter"}

[code].....

View 12 Replies

Override The DevExpress Filter Choices In GridControl?

Oct 5, 2011

I am currently programming in Visual Studio 2010 within VB.NET and am using DevExpress v10.2, specifically WinForms. In the DevExpress GridControl at runtime you can click on the right side of the column header and choose which values in the column you want to show. For example if your table contained:

Name1 Checked
Name2 Unchecked
Name3 Unchecked
Name4 Checked

Then if you click on the right side of the checkbox's header you can choose checked (or unchecked) and it would display only the data that is checked (or unchecked). In this case with checked you would have:

Name1 Checked
Name4 Checked

I was wondering if there was some way to override the names so instead of letting me choose checked or unchecked I could override it with 'owned' and 'rented' or 'active' and 'inactive' based on what the checkbox represents in that specific column.

View 1 Replies

Disable Appearance Choices From Designer View

Dec 14, 2011

I'm building a game using the traditional form view on VS2010 and I'm trying to change the colour of a label's text depending on its contents. I believe I've coded that fine, but the problem is that the settings for the label in the designer view pane are overriding my code!Is there a way to disable certain options in the designer view so that my code can work?

View 2 Replies

Login To The Website - Fill The Choices And Then Navigate Further?

Sep 15, 2010

I've been trying to write a vb program to help me login to a website! I've managed it with HtmlCollection, but the problem is that on the next page there are a few choices that need checking and it goes kind of crazy. Is there any way to login to the website, fill the choices and then navigate further?

View 1 Replies

Radiobutton To Select Multiple Choices From Listbox?

Jan 25, 2011

Can't seem to find code for radiobutton to hilight multiple choices from listbox, e.g.

If radiobutton1.clicked = true then
listbox1.selecteditems = "apple" "cherry" "pear
if radiobutton2.clicked = true
listbox1selecteditems = "apple" "cherry" etc....

View 3 Replies

VB 2010 - Creating A Simple Db - Overwhelmed With Choices

Aug 1, 2011

What is the simplest and most straightforward way to: Create a local dB with a table with 2 fields (a string, a number) Determine is string s is present in the dB Add a record into the table consisting of a string and number Delete a record based on the string Get the record for a particular string Get the record with the highest number

View 3 Replies

Events - The Selection In A Box Can Affect The Possible Choices In Subsequent Boxes

Mar 10, 2009

I have a project that has several combo boxes on one form. The selection in a box can affect the possible choices in subsequent boxes. Right now I am using SelectedValueChange to fire the code that loads the choices in the later boxes. There are a number of possible events that I could use:SelectedIndexChangedLeaveLostFocusTextChangedI was wondering if someone could give me a rough idea what the differences are between these. Is there a 'best' evnet to use?Also, I find that most events work when the choice is made with a mouse click but if you click in the box and type in a value an event does not fire. How can I program for the case where the user enters a value by typing it in instead of choosing from the drop down list?

View 3 Replies

Form.Print Does Not Implement 2nd Level Printer Dialog Box Choices?

Oct 16, 2009

In the following code, a local printer dialog box shows and its choices are implemented in the printout, but if the user goes to a 2nd-level printer dialog box such as by clicking an Advanced or Properties button, choices made therein (such as landscape/portrait or scaling) are not implemented in the printout (prfPrintForm is a PowerPacks.Printing.PrintForm on form frmPlotTrends). Is there something else that must be done to make the 2nd-level dialogs work?

Dim dlrResult As DialogResult = frmPlotTrends.dlgPrintDialog.ShowDialog()If (dlrResult = DialogResult.OK) Then frmPlotTrends.prfPrintForm.PrinterSettings.PrinterName = frmPlotTrends.dlgPrintDialog.PrinterSettings.PrinterName
frmPlotTrends.prfPrintForm.PrinterSettings.Copies = frmPlotTrends.dlgPrintDialog.PrinterSettings.Copies
frmPlotTrends.prfPrintForm.Print(frmPlotTrends.prfPrintForm.Form, Printing.PrintForm.PrintOption.ClientAreaOnly)End If

View 1 Replies

Output Data From A List Box With The Possibility Of Multiple Choices Selected(frmPrint)?

Oct 11, 2009

I am attempting to output data from a list box with the possibility of multiple choices selected(frmPrint) and output the data froma another list box frmMain. The code posted does nothing. I can get this form to output everuthing but multiple items selected by the user. I am a student and I have been working on this problem for a long time with no luck.

Private Sub btnAddBooks_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAddBooks.Click
Dim intCount As Integer = 0 ' Counter
Dim mainForm As New frmMain ' Form instance
Dim strInput As String ' Input

[code]....

View 2 Replies

Combobox.items.add - Combobox To Have A List Of Choices From A Table In A Db

Jun 14, 2011

[Code]...

I'm making a combobox on a form. I want the combobox to have a list of choices from a table in a db. The two columns are a String and a Date. I want the date column to only show the year. I'm hoping I have the code right as it is above, but I'm not positive I've done the whole date thing right.

View 6 Replies

Enter The Minus Sign To Allow Users To Enter Negative Values?

Jun 8, 2012

I have a function that allows a user to enter numeric vallues and also a period for the decimal points but I also want to allow for users to enter the minus sign to allow users to enter negative values . How would I go about it.

Public Function SingleDecimal(ByVal sender As System.Object, ByVal eChar As Char) As Boolean
Dim chkstr As String = "0123456789."
If chkstr.IndexOf(eChar) > -1 OrElse eChar = vbBack Then
If eChar = "." Then

[Code]...

View 18 Replies

VS 2008 - List Of Users On PC To Be Displayed In Combobox

Nov 29, 2009

I am testin my application on XP and have 2 issues: Issue 1) I have a combobox that has filter items in it:

[Code]...

View 1 Replies

Allow Users To Use The Enter Key Instead Of Just The Tab Key?

Jun 12, 2009

My form's KeyPreview is set to True. I want to allow my users to use the Enter Key instead of just the Tab key. I have the following code in my form's KeyPress event:

Private Sub frmDesigner_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress
If e.KeyChar = vbkeyreturn Then

[Code]....

It doesn't like vbkeyreturn, which I used in Visual Basic 6.0. I think I must be close to having it right.

View 3 Replies

ASP.NET Localization - Strings Stored In A Database And Displayed In A Gridview?

Jan 8, 2010

I have an app that has been localized in the usual fashion (i.e., .resx files), which handles about 95% of the strings. However, I still need to localize some strings for category names that are stored in the database. I'd like to avoid adding 15 new columns named categoryname_ES, categoryname_FR, etc, and then pulling the right column dynamically. If there would be some way to pull the data, and then do a substitution in the code, I think that would be a little less messy. Maybe along the lines of:

go through gridview row by row if the language selected isn't English, look for this text value in a global resources file and replace it. Or is adding a lot of categoryname columns for each language just the way to go (ewww).

View 3 Replies

Changing Database Tables Displayed In A GridView Control?

Sep 17, 2010

Using a Windows Form with a Menu bar and a Gridview control, I have bound data to the GridView from an MS Access 2000 database query using Dataset. The contents of this table displays just fine. But I want to be able for the user to select a different query from the menu bar and display it in the same GridView control. How can I change the query bound to the control (in VB)?

Public Class Actinide Private Sub Minerals_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.Actinide_Series__Radioactive_TableAdapter.Fill(Me.Minerals2000DataSet._Actinide_Series__Radioactive_) End Sub Private Sub LanthanideToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LanthanideToolStri

[code]....

The error message that it is giving me is:

"Value of type 'Mineralogy.Minerals2000DataSet.Yttrium_MineralsDa ta Table cannot be converted to
'Mineralogy.Minerals2000DataSet._Actinide_Series__ Radioactive_Data Table'.

The query is getting information from two seperate tables,so I can't just bind a table to the control and then filter what is displayed using SQL.

View 1 Replies

Pulling Database Information From Gridviews That Is Not Displayed On The Gridview?

May 12, 2009

I've created a Gridview control that pulls some data from my database, but doesn't display all of the information I'm hoping it gathers. I choose not to display the primary key for user interface purposes, but require that key for basic operations on the grid.I'm currently attempting to add a "Delete" option to the table, but unfortunately I'm having very little luck. Here's my .aspx file.

<asp:GridView ID="ManagerList_GV" runat="server"
AutoGenerateColumns="False" AllowSorting="True"
DataKeyNames = "ManagerID" OnRowEditing="editManager"

[code].....

View 2 Replies

Create A Rtb For Users To Enter Data?

Feb 23, 2009

We want to create an rtb for users to enter data and would like for them to be able to bold words or change their color.(and create hyperlinks)

View 2 Replies

VS 2005 - Gotchas With Docked Forms - Forms - Displayed Using Menu Items To Display Information To User

Nov 10, 2011

We have an application that has a main form with a map on it. Right now the paradigm is to have forms that are displayed using menu items to display information to the user. Most of these forms are modal forms, but a couple are non-modal forms that interact with the map. For some of the forms, it really would make for a better user experience if we could dock them in the main form of the app and allow the user to see both the form and the map. For instance. We could have a list of map features in a docked window, and select one of the items on the list and have the map zoom to that feature. Or do the reverse: let the users select a map item and have a docked window that shows details of the feature. Sounds great, but I wonder about what sort of gotchas we may encounter. In particular, what if we have two windows docked at the same time? Could we get tangled up in our event code?

View 2 Replies

Force Users To Enter A Username And Password?

Dec 9, 2010

When I originally set up my project I 'hard-coded' my username and password in so that I could access a remote DB2 database. Now that I need to publish it to other users they need to be prompted for their own usernames and passwords. I've gone to "My Project/Settings" and deleted the items from the string - but when I run I get the following message on the statement:

Me.BATCHTableAdapter.Fill(Me.DB1DataSet.BATCH)
ERROR [08001] [IBM] SQL30082N Security processing failed with reason "3" ("PASSWORD MISSING"). SQLSTATE=08001

The settings are as follows (before I delete the userid and password):

Name:DB1ConnectionString
Type:(Connection string)
Scope:Application
Value:Database=DB1;Server=99.999.999.99:446;userid=myuser;password=mypassword;Persist Security Info=True;

The question is what do I have to do to make it forget my userid and password - and always prompt the user for both when running up?

View 1 Replies

Performance - Give Users A Certain Time To Enter Something?

May 15, 2010

I'm making a speed game in VB.Net (Console Application) and users have a certain time to press a certain key. So how can I give the Console.ReadKey function a timeout without just waiting until a key was pressed?

View 2 Replies

Users Enter Some Record Sometimes Two Records Get Saved On Same Number?

Aug 26, 2009

i have a sql table which has 2 fields number & name

1 abc
2 xyz

Situation is that the app finds out max of number and increments it by 1 to get new number.The problem is when two users enter some record sometimes two records get saved on same number.

[Code]...

View 4 Replies

Add A Message To A Mask TextBox Reminding Users To Enter Number?

Mar 21, 2011

I have two masked text boxes that holds Phone Numbers and Zip Codes.Since they are Masked text boxes and are set not to allow characters or letters, the user must enter numbers.However, how do I add a message telling the user to enter number and zip code since there is no prompt?I don't need to validate the numbers just to add an error message if it's left empty.

View 9 Replies







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