Add Stuff Form One Combo Box To Another?

May 11, 2011

i am working on a project! the problem i am having is that i have two combo box first combo box takes stuff form the file and then add it to listfile it also removes that selected file from the combo box.suppose i have four carid in my combo box...when i select one car and then send it to dispatch it removes form tht combo box and add it to the lst file... this much i can do. is i need that carid that removes from the combo box should add in another combo box ... but i cant able to do it

Public Class MainForm
Private strCarID() As String
Private strTime As DateTime
Private strDate As DateTime

[code]....

View 27 Replies


ADVERTISEMENT

Database Stuff In Each Form Separately - Place It In A Global Module - Dataset Is Being Duplicated ?

Apr 19, 2011

I have finally got my code all working, but there is just a quick query really. At the moment I have all the database stuff in each form seperatly. When I place it in a global module, it looks like the dataset is being duplicated I was wondering why this happens when I place it in a global module?

This the code I use and the code I would put in a global module

Dim con As New OleDb.OleDbConnection
Dim dbProvider As String
Dim dbSource As String

[CODE]...

View 1 Replies

Create A Stopwatch In One Form And Another Form Show My Progress Bar Using A Combo Box

Nov 11, 2011

Im trying to create a stopwatch in one form and another form show my progress bar using a combo box for mins and seconds to show the progress bar on form1 1

[Code]...

View 2 Replies

VB 2008 - Change Child Form Combo Box From MdiParent Form

Feb 23, 2010

In VB 2008, I have a Parent form with a combo box on it. There is a child form also with a combo box on it. I want to be able to change the values on the child form based on what the user selected from the main form. The user launches the child form from a toolbar on the Parent form. The following code is run:

[Code]...

What I want to do is if the Parent's combo box has "Red", "Blue", "Green" values and the user selects "Green", the child form's combo box(With the same values) will also change to "Green". (I do not need to change the Parent form if the child form changes.) I've tried changing the Child's combobox from the combobox's change event on the Parent form, and the code runs, but nothing changes on the child form.

View 5 Replies

Load The Combo Box'values From One Form To Another Form's Combobox?

Nov 15, 2011

how to load the combo box'values from one form to another form's combobox

Example:

form1:
cust(table name)
no(textbox)

[code]....

now i load the form1's name which is the combo values .. to form 2's combo box whixh is name of 'CName'

View 2 Replies

Combo Box Crashing Form?

Jun 1, 2009

but it's strange. I have a few combo boxes on a form that are fed via select query. They each are populated by their own table. Each of the tables feeding them have a codeassociated with a name, function etc... the code is what is stored in the form's table. I have another select query that converts the code to the name or whatever so that the user does not see the code, but the name associated with it when the form loads.What is happening is: The form loads and if i don't touch any of these combo boxes every thing is fine if i update them, I can't tab off the combo box or move the cursor anywhere, or even close the form. I have one of these boxes with the same code and it works fine.. I don't understand what is going on... I have an after update function that is the same on all of them and it is indeed updating correctly....

Public Shared Function LoadCallSource() As String
Dim sConnectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:Documents
and Settingsdiw07My DocumentsDaily Backupsphone memo backend.mdb"

[code].....

View 12 Replies

Open Form From Combo Box?

Oct 30, 2009

i have a simple form that allows one to see all forms in project through a comboboxthe problem is i want to be able to open these formsbut i dont want a "hardcoded" command, i want the "form.show" statement to be taken from whichever form is picked in comboboxme and my copadres have tried a dozen different ways and keep drawing blanks and errorsbelow is my load codelemme combo box with list of form names,

Select form name,
Click open button
the selected form opens!

[code].....

View 6 Replies

Repopulate A Combo Box On Another Form

Jun 26, 2009

I have a form that among other things displays a list of customer names in a combo box. Should the person that launched that form not see the customer in that combo box they can launch another form that will allow them to add the missing customer. The 2nd form adds the customer name to the customer table and the customer information to the customer information table - the 2 tables are related by the CustomerID.I have no problem saving the record to each table but in the process of saving the customer name to the customer table, I would like to refresh the combo box on the 1st form so the newly added customer is displayed in the combo box it was previously not found in.Each time the new customer is added I would like to update the combobox with the new customers name so the user of that form can use it to complete the task it was designed for. I have tried "frm.combobox.refresh", "My. frm. combobox.refresh", changing focus to the first form - none of which worked.

View 6 Replies

Combo Box Activates On Form Opening?

May 15, 2009

I have created a main form in my program to which I have added a combo box containing 12 months of the year. What I want is when the selected month is changed it should call a subroutine which does a calculation. The procedure works but the combo box acts as if the selected item has been changed as the form is opening which is not what I want as at that time there is no data loaded for the procedure to do it's calculation. So what I want to know is, is there some way to prevent the combo box from behaving this way at start up?

View 5 Replies

Combo Box And A Property Grid In A Form?

Dec 15, 2011

I have a combo box and a property grid in a form. The combo box contains 2 items. If one item is selected, two properties are listed in the property grid. These properties should have a dropdown that contains a list of items. I have two string arrays that contain the values for these properties. Can I use one TypeConverter that inherits StringConverter for these lists to be displayed in two different properties? That is, with one TypeConverter class, can I populate both the lists? I will also have to do the same with the other items in the combo box.

View 2 Replies

Form Show After Select Combo Box Value?

May 13, 2012

when i select 1 week so this frm show after 1 week to the current date

View 1 Replies

Function Key Form Combo Not Working?

Aug 10, 2010

I have a form that displays a graph. From the appropriate toobar button click frmGraph.show is called and it works. But when I call it from the assigned F6 function key the graph hardly ever displays. Sometimes it does display properly, sometime it flickers a one time display of the graph then it's gone, but mostly the form just draws the background but no graph. In debugging this i discoverd that putting a message box just before the call to frmGraph.show the graph will display properly everytime after i click ok in the messagebox. Anyone know how to cure this or at least a workaround that doesn't involve displaying the messagebox? This is the code with the messagebox("here") just above the call.

View 8 Replies

Refresh Combo Box In Windows Form?

Mar 9, 2010

I have a Main form (a window form) in VB.NET which has a Combo Box to display a list of countries. A sub form activated from a "Button" on the Main form allows users to add Countries to their list. But After Adding a new entry the Combo Box on the Main form does not show the update (while it is still open). I have to exit the main form and relaunch it to see the update.

The populate function in shown below. I call this method after adding new countries but still; not good. I have used Invalidate function of combo box but of no use as well.

Public Sub PopulateCountry()
Dim rsLocal As New ADODB.Recordset
Try

[Code]......

View 1 Replies

[2008] Loading Form Name From Combo Box?

Feb 18, 2009

on this program you have a ability to choose items from a list lets say

Apple
Blueberry
Cheese

when you push button1 and have selected an Item from the combo box, it launches That form

Dim times As Integer
Dim name1 As String
name1 = ComboBox1.SelectedItem

[code]....

(it used to be Object instead of string when I dim'd name1)

View 5 Replies

Capturing Form/combo Box Data To Mysql?

Jul 28, 2011

Im trying to capture the result of a combo box and time/date stamp this to mysql. I have a working connection between the form and the db able can anyone tell me how to achieve this?

View 2 Replies

Combo Box Items Send To New Form ListBox?

May 9, 2011

Our chapter is all on printing, but the teachers example sends the data to a new form, into a listbox. How do I take the contents of a ComboBox from one form and input it into the ListBox on another form, first adding the line "High School List".

I have this much, but then don't know how to read fromt he ComboBox. Not what is highlighted, but the full contents.

FrmPrint.Show()
FrmPrint.LstPrint.Items.Add("High School List")

View 3 Replies

Form Show Selected Combo Box Values?

May 13, 2012

[URL]

View 1 Replies

VS 2010 Adding Combo Box Into A Windows Form?

Mar 19, 2011

I'm using windows form (vb2010) for data entry.. so now I want to add a combo box into my windows form using sql code because all my connection & Inserting records in SQL command. And other important matter is the combo box should connect to my SQL Server database Table.

Combo table Name : TblPosition
Data entry Table : EmployeeList (with EmpId, EmpName, Position, BasicSalary) fields.

View 3 Replies

Access Value Of Datagridview Combo Box Toassign Them To Property In Form?

Sep 28, 2011

can any1 tell me how can i access value of datagridview combo box toassign them to property in form...

View 3 Replies

All Project Forms Not In Application > Startup Form Combo Box

Jun 3, 2011

I am wanting to change my startup form for my application in Visual Studio for VB.Net. I double clicked "My Project" in the Solution Explorer and then clicked on the Application tab. For some reason I only see 12 forms out of the 6 forms I have in my project when the "Enable Application Framework" check box is True. When the check box is False I see all my forms, why?

View 9 Replies

Building A Form With Just A Combo Box In It That Contains A List Of Other Forms That Made?

Jan 17, 2010

I'm building a form with just a combo box in it that contains a list of other forms that I made. I want to program the combo box so that if a user opens it and clicks on "Web Browser", that form with the combo box will close and the web browser that I made will open. Another example is that if a user selects "Media Player" from that combo box, the form with the combo box will close and the media player that I made will open. How would I program the combo box to do this?

View 3 Replies

Linking Combo Box Items To A Button To Load A New Form?

Jun 9, 2011

Linking Comb Box Items to a Button to load a new form

Combo box 3 has 2 items.....Item 1, Item 2

i want it so if you click on the button when item 1 is selected it will load form3 and if item 2 is selected the same button will load form 4

View 2 Replies

Printing To A Label From A Combo Box Makes VB Form Freeze?

Feb 24, 2011

am developing a basic "stock tracking system" in VB.Net with an Access Database for my final year project, and I am in need of help with some issues that I am still facing.System:The user basically selects a customer, selects the product, batch number, quantity, and date that the customer has chosen, and gives a summary of the transaction.I am then generating a summary report via the report wizard tool to show stock levels, and info on which customers bought what product.My Database contains 3 tables: Customer, Product, TransactionI can currently write to both the customer and product tables, bit i havnt figured out how to save a transaction record yet?, also, I am saving to the product table from a "Deliveries Form" that I have for entering incoming products. But I have not yet figureed out how to subtract the quantity values in the product table from the "Purchasing Form"? This is a major issue)en the user selects a customer from the dropdown box, that customers details is displayed in a label on the next form for the users benefit. This works when I hard-code the customer ID to be 2 for example, but it doesnt seem to recognise the "gCustomerID" (I have gCustomerID declared Global Variables module file)I think that this is the problem?

View 2 Replies

Select Next Radio Button Combo Box In Next Form Does Not Populate

Apr 15, 2012

i am developing a simple vb.net application. i have three forms in my app. the first form has 2 radio buttons from which i need to select one. based on the selection made in my next form a combobox ll be populated.so far so good.there is a back button on my 2nd form which when clicked redirects me to the first form. here when i select the next radio button the combo box in the next form does not populate accordingly. it still holds the old values. \[code]

View 4 Replies

Using A Combo Box To Open A Form Displaying The Record Selected?

Oct 11, 2011

work using Access 2010, however am having to use VBA as the Macros are not compatible.I have a form which for this I will call Form1, on this form I have a Combo Box called Combo202, this combo box lists a selection of Building Names, and a button called Command201.The process goes;User selects a Building Name from the drop down list in Combo202, and then clicks Command201. This then opens a form, Form2, which displays a record based on the field [Building Name] in Form2 matching that value in Combo202. I have been using this code;

View 1 Replies

When Form Loads - Combo Box Displays Valuemember Rather Than Displaymember

Apr 23, 2009

I have a couple of combo boxes, one that I have hand coded the query to load and another that uses the databinding feature. My problem is (well one of them!) that when the form loads, it displays the data stored in the table (ValueMember) and not the display member, the display members are shown in drop down once selected. Basically, I have a table that feeds the combo box with two columns both strings "Code" and "Reason" I want to display the reason when the form loads, not the code...

[Code]...

View 8 Replies

Pick A Word In Combo Box A That Has Specific Words/phrases In Combo Box B Show?

Feb 24, 2009

i wanted to link options selected from Comb box A (general) to specific options in combo box B (specific). I want to pick a word in Combo box A that has specific words/phrases in Combo Box B show. But not all the words to show in the combo box B if they aren't associated with the Word picked in Combo Box A. Ex.When "Soda" is picked in A, only "Coke, Sprite, Fanta" should be visible in combo box b, not everything else.This is the code i used to make the boxes, but i don't know how to link them.

Private Sub MainForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
' fills the combo boxes with values
Me.xGeneralComboBox.Items.Add("Soda")
Me.xGeneralComboBox.Items.Add("Juice")

[code]....

View 7 Replies

Use A Databound Combo Box To Display One Field In The Drop Down And Another As The Combo Box Text On Roll Up?

Feb 21, 2012

How to use a databound combo box to display one field in the drop down, and another as the combo box text on roll up? Using VS 2005... For example, I have a datatable that has 2 fields. One called "ShortDesc" and one called "LongDesc". I want to be able to see the "LongDesc" column values in the drop down on the combo box. When I make a selection, I want the text in the combo box to read the corresponding "ShortDesc" value.

[Code]...

View 4 Replies

Combo Box - Disable SelectedIndex Changed Event During Form Load

Apr 26, 2010

I have a combo box on a form. I have a SelectedIndexChanged event, that displays a message box when the combo box has another item from it selected. This works fine. However when the form is loaded, I initially want to set the current drop down box item from the database, then AFTER I have set the current value, I want this event to work. Problem is from the get go when the form loads it asks me the question as its being changed from 'no data' to then be populated with a bunch of data and an item selected.

[Code]...

View 5 Replies

Using A Text Field Or Combo Box In A Form To Filter Records In A Datagrid?

Sep 17, 2009

I have a form that has a combo box and a sub form which displays as a datasheet or aka. datagrid. I would like as i type text into the combo box that the datagrid scroll to the matching record.

View 9 Replies







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