473,473 Members | 1,719 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Changing from bound textbox to dropdownlist

SF
Hi,

I am new to VB.NET. I try to start my first project linking to an Access
database. On my Form1, I have two fields (bound), Subject and Author. This
was done by draginf the table into the form. Since the author name are
mostly the same, I want to change this field to a dropdownlist but I do not
know how!. In Access, I just right click the field and select Change To
Combo Box

Could someone advice?

SF
Mar 2 '07 #1
2 1639
On Mar 2, 2:14 am, "SF" <s...@yahoo.comwrote:
Hi,

I am new to VB.NET. I try to start my first project linking to an Access
database. On my Form1, I have two fields (bound), Subject and Author. This
was done by draginf the table into the form. Since the author name are
mostly the same, I want to change this field to a dropdownlist but I do not
know how!. In Access, I just right click the field and select Change To
Combo Box

Could someone advice?

SF
In Access, I just right click the field and select Change To
Combo Box
We're not in Kansas anymore....

Anyways, just open up the ToolBox and drag a combobox onto the form.
Then click on the combobox and a arrow box should show up in the top
right corner, click it to expand the options. Click "Use Data Bound
Items" and then you should be able to select the datasource to bind to
and then set which field to display and which field to save as the
value (useful if you want to show a user's name but track the user's
ID).

Let me know if I made sense.

Thanks,

Seth Rowe

Mar 2 '07 #2
I'm assuming you added the table as a DataSource. When you have your form
open in design mode and are looking at the table, it has icons to show what
control it is going to display. Try clicking on the dropdown and see if you
can change the control from Textbox to Combobox. If it works, drag the
field onto your form again and delete the other one.

Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.
-----------------------------------------------

"SF" <ss@yahoo.comwrote in message
news:u8**************@TK2MSFTNGP04.phx.gbl...
Hi,

I am new to VB.NET. I try to start my first project linking to an Access
database. On my Form1, I have two fields (bound), Subject and Author.
This was done by draginf the table into the form. Since the author name
are mostly the same, I want to change this field to a dropdownlist but I
do not know how!. In Access, I just right click the field and select
Change To Combo Box

Could someone advice?

SF

Mar 2 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: mjpiedade | last post by:
I just started with C#. How do I navigate on a dataset by changing the value of a textbox or other simple bound controls? Imagine that I have the customer name on a textbox and have a datagrid...
0
by: Luis Esteban Valencia | last post by:
Hello. I have a datagrid with one row. I have a button that adds a new row. I am trying to implement that when the user selects one product it must change the price on the quantity column. Anyway...
1
by: jimb | last post by:
I can get the dropdownlist into the datagrid, and I can populate it, but I can't read it. Anybody have a working example of a dropdownlist in an editable grid? Thanks. -- .....
2
by: Crazy Cat | last post by:
I am using a data-bound combobox with dropdownstyle set to dropdownlist. Teh combobox is bound to a bindingsource which is in turn bound to a table in my database. The table has only 4 rows and I...
3
by: vivela | last post by:
hi, I hope you could help me out on this one,cause I have been trying for 4 days to solve it,but couldn't quite get it right: I have an ASP textbox that should change the value in a dropdownlist....
1
by: TheDude5B | last post by:
Hi, I have created the Insert Template for my FormView on an aspx page using asp.net 2.0. Inside this FormView I have some TextBox's and other elements. One of these elements is a DropDownList...
0
by: Jacob Donajkowski | last post by:
Once the user logs in I want to have the users switch from the Roster View to the Profile View and enter their profile infomation and save it. Then the next time they login and go to the Profile...
6
by: blouie | last post by:
Is there a way that a bound ddl control can: 1. display the bound data, even if it does not match a selection in the DDL? 2. allow the user to enter something other than the look up values? I...
7
by: sphinney | last post by:
I have a datasheet style form with textbox (MyTextBox) that has the Text Format property set to "Rich Text". It is bound to a memo field in a table. How do I change the text or highlight color of...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.