combobox

  1. J

    Question SQL ORDER BY with ComboBox

    Hi I've got a TSQL view which looks like this SELECT TOP 100 PERCENT --Needed for the ORDER BY clause N.NHSReasonID ,N.Reason ,N.Notes ,N.TopValue FROM dbo.NHSReason N ORDER BY N.TopValue DESC ,N.Reason In my VB.Net application, I have a ComboBox which uses the above as its datasource...
  2. K

    Question Syntax of adding combobox to get field

    Hi, On the form, the user have to pick 4 different fields from combobox and then it will show into DataGridView here the code.. ----------------------------------------------------------------------- Dim EmployeeInt As New AcoSDK.Employee017 DataGridView1.Columns.Add("id", "ID")...
  3. F

    Populate combobox using linq to sql selected items

    Hi, New to vb so please go easy on me :) Im trying to populate the combobox with items that are returned from a search of the database with linq from the combobox when the text changes(in the combo box) here is some of my code: Dim db As New ProdLinqDataContext Dim searchstring =...
  4. E

    Combobox and databinding

    I have a problem with a combobox and no page on the Internet has been able to help me so far. So I hope that one of you can. I have a form (with information about clients) with textboxes binded to a dataview. One of the columns in the dataview contains a number that tells me what kind of client...
  5. J

    .NET Combo Box

    I have a form that I'm going to use to display a single staff information record. One of the fields is STAFF_TYPE_ID which is a number. The number corresponds to a number in another table (STAFF_TYPE) where there is text field that holds the description of the type (Manager, specialist, auditor...
  6. P

    Resolved Updating the BindSource

    Again I have hit a snag!!!! I have patched together a program, initially using the VS object helpers and then coding in functionality as and where I need it. Initially I had a problem updating a table from a combobox, but I did that with a class and attaching it an arraylist as I read on...
  7. P

    Resolved Two Display Values in Databound Combobox

    I am having a problem display a first name and last name from another table that the form is bound to. After a lot of research and experimentation I managed to change the combo box from bound at design time to bound at run time. This displays all the records in the combo box and selects the...
  8. P

    Foreign key updating as -1

    I am having a problem and I'm pretty sure it is me missing something somewhere. I have set up a project in VS2008 and for most of the application I am using the Windows controls and their default behaviour. However, I have started programming in some functionality for the combo boxes that link...
  9. P

    Question Add Item To Databound ComboBox

    This may seem like a silly question, but i'm really stuck on this. Short story of how I got to situation first. I started a Windows app using all code for database connection and validation. However, it was always losing the formatting that I had set at run time. So I thought I would use the...
  10. P

    Remove the highlighting from combobox when selected

    Hi, There's probably some easy way to do this but it's driving me mad... I have a form with a combo box that is populated from a database. When I set the text of the combo box to the value in the db .Uc_address1.cmb_country.SelectedText = C_User.country the combobox remains highlighted, and...
  11. solidsnake204

    Question ComboBox AutoCompleteSource as Items

    Hi, I want my ComboBox to display items from the AutoCompleteSource AllSystemSources. Basically, I want the Items property to get its items from the AllSystemSources. But I don't know how to do this. Any help appreciated. I am using Visual Studio 2008 Express (Not the WPF forms though)
  12. S

    Inherited Control reference

    Hi, I'm just starting to look at Custom Controls after watching a MS video online. Video Training - WindowsClient.net I wondered if it's possible to get the name of the control that calls the OnEnter event that I am running. Public Class MyComboBoxAuto Inherits System.Windows.Forms.ComboBox...
  13. zendog1960

    Combobox to populate with Folder list

    Morning all! I have a winform that has one combobox. I want to populate that it with a list of folders in a directory. I thought this might be a common thing but I have not found any thing concerning this. For this example lets say the root folder is C:\Testing\Folder List\ In the folder...
  14. V

    Data Binding Question

    Hello, I'm pretty new to VB, and need some help with a project I'm working on. I'm trying to create a random name generator, and in order to store all the names I'm using an SQL database. I've got the database set up (simple version just until I get it working) and here's basically what I want...
  15. P

    Do a free text search in a combobox

    Hi. I'd Like to know how to make a free text search function, If you don't Know what i mean by "Free Text Search" then here is an example: Lets say i want to search for the string "ong" in a Combobox(In the list ofc) And we have the following Listitems: then Both Julie and Jimmy Should apper...
  16. K

    Question Using ComboBoxes in a DataGridView

    Hi All, I've got a DataGridView with six columns. Three of these columns are actually comboboxes (i.e. each row in the datagridview is a combobox) aka DataGridViewComboBoxColumn. I have successfully populated each combobox with the collection I want from a dataset. On form load, I want to...
  17. M

    select an item in a combo/dropdown box from an incoming database return

    hi all im writing some software at the moment, i have a mysql database backing it all and i have a page called "edit items". its basically a datagrid which displays all the rows from the sql database in the products table. now i identified a problem which is that if i leave the "category" area...
  18. V

    combobox data binding problem

    Hi, Have been writing in VB .net for a few years now but this is the first time I have attempted to use data binding and I am having a problem which I just can't understand... I am creating a dataset and populating it using a data adapter, it all seems to work fine up until this point, I then...
  19. JuggaloBrotha

    Color ComboBox

    Here's a custom control that automatically handles displaying colors in a ComboBox. My goal is to have it be flexible (Automatically include system colors, or an array of user selected colors) and I'd like other people to test it out.Option Explicit On Option Strict On Imports...
  20. C

    Question Combobox FindString and Selected Index

    Hello all! I'm using a combox Findstring function to return the index location of an item in the list. The search string is created from a Database query that all works correctly. I then set the SelectedIndex to the value found. Dim SearchString as String =...
Back
Top