IDE - VB Express 2010 - ComboBox

Nov 22, 2011

I have created my first ComboBox form but now I am stumped. I am using VB Express 2010. What Toolbox or Property buttons do I use to generate code for the following:

(1) Title.Text (to add text on my form)

(2) Title. Location (location on the form)

(3) Items.ADD (to add the options on the drop down)

(4) Dropdownstyle

Please give instruction like On ToolBox (left side) click XXXXXX , then click, then click.

View 1 Replies


ADVERTISEMENT

Filter ComboBox Data [2010 Express]?

Jan 7, 2011

I have started a form application using visual studio 2010 express, vb programming. I'm using Access as my database.My goal is to have ComboBox1 display a ProjectID and ComboBox2 display a TestNumber. Once the Test Number is selected I want my textboxes in the form to display fields from the row that the selected Test Number is in.I have 2 tables set up right now "Projects" and "TestData". The "Projects" table has a [ProjectID] field, the remaining fields are just misc. project data. The "TestData" table also has the [ProjectID] field, and then the [TestNumber] field, then the remaining fields are misc. data.

Filling [ProjectID] in textbox1 is easy, in the properties I select DataSource from the Projects table, display [ProjectID] field. Where I'm having troubles is ComboBox2 displaying the TestNumber from the other "TestData" table. If I select that field, it fills the ComboBox with EVERY TestNumber there is. So for Project 1 there is a test 1... over 500 projects, that combobox lists 500 Test 1's, no way to tell what project it belongs to...How do I make ComboBox2 only display Test Numbers that pertain to the Project number selected in ComboBox1?Using this code I can get it to work:

Dim ProjectNo, SQLString As String
Dim dtTableData As New DataTable()
Dim dbDataAdapter As OleDbDataAdapter

[code]....

I also imported system.data.oledb Problem with this code is it will only filter data in ComboBox 2 but when you make your selection from ComboBox2 it won't activate the row so none of my databinding textboxes fill anymore. Before the code/query is ran it fills up the textboxes perfectly after every selection I just have no idea what project that report number belongs to because the whole field is displayed in the dropdown. I can fill the form with ComboBoxes and they display the corresponding row data because I use a "datasource" instead of textbox "databindings" but I don't want to use 20 comboboxes as my entry form...

View 4 Replies

IDE :: VB Express 2010 - ComboBox DropDown Default

Nov 23, 2011

In a combobox dropdown. What toolbox or properties do I use in VB Express 2010 to add a default to my drop down so the user will see the default when the panel is first shown?

View 3 Replies

VS 2010 Connecting VB 2010 Express To SQL Server 2008 Express Database Via IP

Feb 29, 2012

I am trying to make a user account SQL database work with Visual Basic 2008 Express for login purposes, i.e. usernames & passwords. Plan is to host this server so people can login to use the the application and verify they have a valid account. I would like to host all the account information in SQL due to the possiblity of hundreds of users at any given time. I also need the ability to add data to the database for users registering for the first time. The SQL server will need to be able to access the SQL Server databases remote via WAN.

View 3 Replies

Unhandled SqlException In VB 2010 Express Thta Does Not Occur In VB 2008 Express?

Oct 16, 2010

I tried to start using VB 2010 Express with a program I originally developed with VB 2005 Express that I moved to VB 2008 Express successfully a couple years ago. It uses a database file (*.mdf) that is on the computer ( not out on a server). When attempt to run the program in debug mode, I get the following error "An attempt to attach an auto-named database for file C:Documents and SettingsTomMy DocumentsQuizzing StuffQuestion Database 2010QuizQuest ionGameQuizQuestionGameinReleaseQuizQuestionDB.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share."

I first made a copy of the entire project folder that was working in VB 2008 Express and gave it a different name. In VB2010 I opened the project in the copied folder and it said it successfully converted the project. I am able to open the Data Source inthe Designer and see the database structure as I expect. I think the project is still using SQL Server 2005 Express (because it is what is checked in the list of prerequisites on the Publish tab).

Note, I have programmed off and on for many years, but fairly new to using databases and SQL Server.

View 3 Replies

Connecting VB 2010 Express To SQL Server 2008 Express Database Via IP

Feb 29, 2012

Here is the scoop: I am trying to make a user account SQL database work with Visual Basic 2008 Express for login purposes, i.e. usernames & passwords. Plan is to host this server so people can login to use the the application and verify they have a valid account. I would like to host all the account information in SQL due to the possiblity of hundreds of users at any given time. I also need the ability to add data to the database for users registering for the first time. The SQL server will need to be able to access the SQL Server databases remote via WAN.

View 1 Replies

INSERT Or Update In SQL Server 2008 R2 Express In VB 2010 Express

Jan 21, 2011

I am trying to re write a VB6 program using MS Access, many years ago, using VB 2010 express and SQL server 2008 R2 Express. I have a database with several tables, which I created using the designer. I am able to connect to the database and select data and display it in textboxes etc in vb code. What I have not been able to in code is to INSERT rows DELETE rows or UPDATE any data in the tables. I can do any of these operations using the Query Designer, but I want to do it in code. I can post some code if necessiary, but I thought it might just be some property that I had not set in the designer.

[Code]...

View 13 Replies

VB Express 2010 Slower To Compile And Run That Older Versions Of VB Express?

May 12, 2010

Is VB Express 2010 slower to compile and run that older versions of VB Express? I've installed it this weekend and it seems a little sluggish on my quad core computer with 1 gig of RAM. I have VB Express 2005 installed for my students at school and it seems to fly just fine. Those school computers are older P4s with 512k of RAM.

View 7 Replies

(VB 2010 Express - Bug In VB 2010 Express Working With Excel?

Jun 3, 2011

Initially my app worked with excel fine, now it causes my computer to reboot only after Excel has been opened (two or more times). I have opened and closed Excel files 20+ times without running thru either of my apps (they all uses identical code for excel) and it has never caused a reboot or a crash.

run either of my apps and have the app control excel has become a crap shoot, it will reboot my computer. Adding to that I then have to do a manual shutdown because the reboot process after is unstable. (System doesn't respond properly). My code in this app is small, should make for a good example. I can provide the entire project to anyone who would volunteer to test it. (First I need to know how to send the project).

[Code]...

View 10 Replies

Connecting VB 2010 Express To SQL Server 2008 Express Via IP

Feb 29, 2012

there Dream in Code Community! Im an okay programmer as far as skill right now I am still learning as we all are I need some help from some experienced VB.NET programmers in the community, Here is the scoop: I am trying to make a user account SQL database work with Visual Basic 2008 Express for login purposes, i.e. usernames & passwords.

[Code]...

View 2 Replies

2008 Express Edition Combobox

May 14, 2009

I would like to have one combo box associated with another combo box. When the first one is selected the price is displayed in the next one. The information is got from a txt file and the item name loads in the first combo box and the price loads in the other combo box. What I want it to do is to show the correct price when the first box is selected for the item Here is a copy of my code at the moment. [code]

View 14 Replies

Combobox That Gets Its Values From A SQL Express Tabl

Jul 13, 2010

In a VS2008 VB project, I have a combobox that gets its values from a SQL Express table. This table has three columns. I want to display the value from one column in the combobox, and obviously the user will select from this. I want to then write the value of the selected record from a second column back to a different table, and I also want to change the value of a radio button (on the same form as the combobox) based on the value of the third column of the selected record.I'm setting the ComboBox.Text value to be the first column, the ComboBox.SelectedValue to be the second column, but how would I change the radio buttons in the most efficient way? If it was VB6, I'd probably make another trip to the database to find the value of the third column based on the selected value from the combobox. I'm not familiar enough with the tableadapter concept but I suspect I should use them to do what I need.

View 15 Replies

VS 2008 [Express] Set Webbrowser1 Combobox Value?

Sep 15, 2009

I have a problem with changing website's combobox value.

PHP

[code]...

WebBrowser1.Document.GetElementById("location").SetAttribute("The Exodar", 9) But this code seems to be wrong.What would be the code?

View 1 Replies

VS 2010 Class Library / - If Create A DLL Using VB 2010 Express Can It Be Used By Previous Versions Of Of .Net (3.5 - 2.0)

Aug 19, 2011

If I create a DLL using VB 2010 express can it be used by previous versions of of .Net (3.5, 2.0)? Will the DLL use .Net 4.0 components, which is what I want. I don't see a way to force that to be the case.

View 1 Replies

VS 2010 Basic Timer Animation - Error Check And Colour Scheme VB Express 2010

Mar 26, 2012

this is my very first posting and I must say I am desperate. I have a VB assignment due in 2 days and I am so lost. I have written a code to draw some graphic, just a basic house, tree, sun etc. I have also written a code to magnify said graphics which were all the specifications of my Assignment 1 part A. Now for Part B I am being asked to extend my program so that: A - My graphic can be drawn using different colour schemes designed by me but chosen by the user B - My graphic or an appropriate part of it can be animated around the picture box if the user chooses to do so. C - Error checking is included.

[Code]....

View 2 Replies

Is It Ok To Install VS 2010 Ultimate If Already Have Installed VB 2010 Express Edition

Mar 7, 2012

Is it ok to install my VS 2010 Ultimate even if I already have VB 2010 Express Edition? or should I uninstall the express edition first?

View 3 Replies

VS 2010 - Applications Made Using VB 2010 Express Expire After Some Time?

Nov 3, 2011

Here are my questions concerning VB 2010 Express:

1. I've registered my VB 2010 Express, will it still expire?

2. Will the applications I made using VB 2010 Express expire after some time?

3. Is it OK to write my code in the designer.vb file? I don't know why, but when I started writing my application it took me to the designer.vb instead of form1.vb code.

4. I've been working on an application for a week now, but suddenly I can no longer access my Design View(Shift-F7). All my codes are written on the [form name].Designer.vb. I can still view my codes but I cant access my form layout. On the solution explorer, my forms no longer have the 'form icon'. When i press Shift-F7 nothing happens. Right-clicking the form on the solution explorer doesn't show 'View Designer' option. How can I fix this?

View 5 Replies

Visual Basic 2010 Not Available In VS 2010 Mobile Express?

Mar 16, 2010

I just downloaded the Visual Studio 2010 Express for Mobile Phone. C# is the only language available. Will Microsoft add Visual Basic as well? When?

View 5 Replies

VS 2010 : Change Express 2010 Gray Theme?

Apr 14, 2010

I was looking all over but didn't find how to change VB 2010 Express default gray theme?

View 4 Replies

VS 2010 Copy / Paste Code From A PDF To VB 2010 Express

Oct 7, 2010

I am learning VB for the moment. I want to copy/paste code from a PDF to Visual Basic 2010 Exppress, but if i paste the (structured in PDF) code to VB, i get 1 long string of code and need to restructure it by entering after each line. Otherwise VB gives me a lot of errors. This is a time consuming work. Isn't there a way, VB puts the code in the right format?

View 4 Replies

VS 2010 ComboBox Dependent On Another ComboBox

Aug 22, 2011

I am having issues when trying to populate a combobox that is dependent on another combobox. Populating the first combobox works as expected but attempting to set the value member or display member properties of the first combo box cause its selected index changed event to fire. That event seems to fire before the first combobox is fully loaded. The issue is then raised when trying to populate the second combo box, since it is dependent on having a valid value member to complete the dynamic sql statement, and at that point in time, there is no value member.

I can�t imagine that this is difficult but searching hasn�t yielded me any results. Should I be using a different event? What is the right way to do this?

I have a simple workaround in place - not allowing the second combo box to attempt to populate unless the first combobox has an index greater than zero but this hack is no good since it clearly prevents the user from selecting the first element in the first combo box.

Private Sub SpecialsForm_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim sql As String
Dim dt As New DataTable

[Code].....

View 2 Replies

VS 2010 : Embedding Resources With 2010 Express?

May 23, 2011

I'm trying to create an installer with VB 2010 Express. In order to do that, I need my project to have some files embeded so I can copy them in the installation directory. How could I make this (embed the files and then acces them from my code)?

View 7 Replies

Update 2010 Express And Access 2010 - Error "Operation Must Use A Updateable Query"

Aug 20, 2011

I reproduced the following code to update a database and I get the error" Operation must use a updateable query"

[Code]...

View 3 Replies

2010 Not Available In VS 2010 Mobile Express?

Jun 16, 2010

I just downloaded the Visual Studio 2010 Express for Mobile Phone. C# is the only language available. Will Microsoft add Visual Basic as well? When?

View 5 Replies

VS 2010 Debugging In 2010 Express?

Jan 26, 2012

I had written an app that runs at ever login (win7). So as it is running I load 2010 Express and try to test some things, but it comes back and says "The operation could not be completed. The Process cannot access the file because it is being used by another process."How is that possible when the 2010 Express should be fully contained? I have even named it completely different from the originally application. Am I missing a setting?

View 8 Replies

VS 2010 How To Tokenize In VB 2010 Express

May 17, 2012

I have database table having values like:

col1 has some value.
col2 has some value
col3 has some value

[code].....

How can I show values from col4 on my form, maybe in grid. I know it have to be tokenized,but considering that I'm new, do you have some guide or idea how to do it?

View 4 Replies

VS 2010 VB 2010 Express Ed Sql Error - A Network-related Or Instance-specific Error Occurred

Jun 1, 2010

trying to get my hands wet on vs 2010 and i downloaded samples from ms site but when i tried to run some of the DB samples i received this sql error: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) any ideas how to get around on this?

View 5 Replies

Add A Sql Express Database In 2010?

Sep 21, 2011

i created a database in SQL Server Management Studio by use engine sql express how to add my database in my project in vb.net 2010

View 8 Replies

Bookmarks In VB 2010 Express?

May 25, 2012

I have read other threads on this topic, but I still can't get this to work in VB 2010 Express. I am using 2 PC's, one with Windows7 32 bit and the other with Windows7 64 bit. On both machines the Bookmark icons are not in the toolbar. Using shortcut keys such as CTRL-kk works but I would prefer to use the icons.

I have 'Expert Settings' enabled and the 'Text Editor' toolbar is visible, but there are no bookmark icons in the Text Editer toolbar. Apparently other people have got this to work in the Express version.

View 5 Replies

Bookmarks In VB Express 2010?

Dec 15, 2010

When I am in the Visual Basic Express 2010 IDE I can search for an item using CNTR F. If I select "Book Mark All" in the CNTR F window a blue square will appear on the left hand side of the code viewer ex. Form1.vb*. Can someone tell me how to remove these bookmarks, and,also how can I add a bookmark manually for a line of code (perhaps there is a keyboard short cut). Please see the Jpeg attachment of my screen. (this was moved from The General Forum). I found the answer, if others need to know add the TEXT tool bar to the IDE and see the second JPEG below.

View 2 Replies







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