Search results

  1. S

    Combobox Binding to ArrayList for Lookup

    It would be simple for me to bind it if I didn't also want the LastName and FirstName to be displayed as LastFirst (King, Steve), which I do by building that into a class property. I know there are other ways of accomplishing what I'm trying to accomplish with an ArrayList but I've invested...
  2. S

    Combobox Binding to ArrayList for Lookup

    I'm confused by what should be a relatively straight forward design. It uses an ArrayList with classes added which is the DataSource for a combobox. The DisplayMember is then "LastFirst" and the ValueMember is the ID of the name. Sometimes the dropdown on the combobox is empty, sometimes the...
  3. S

    BindingSource AddNew Failed

    I've a form that contains a master BindingSource with related binding sources which are releated by the foreign key. My difficulty is that the users within the Intranet have both successes and failures using the sub BindingSources to add new records. The Server containing the database is local...
  4. S

    ComboBox Binding

    This seems a simple answer but what would the binding bind to? Certainly not SelectedValue.
  5. S

    ComboBox Binding

    I have a front-end application containing a database which may/or may not get it's data from another database being used as a repository. The comboboxes are currently bound to dataset which are derived from the repository. My problem occurs with the (may not) part of the requirement. If the...
  6. S

    Form Designer Error

    I've a form that give me and error 'There is already a command handler for the menu command' ... and it happened following some changes to integrate new BindingSources and TableAdapters. The form has been used for a couple years without problems. I added NO third party software as some forum...
  7. S

    My.Settings Following ClickOnce Deployment

    I've an application that uses My.Setting.SqlVersion user setting to store the version to be displayed in the About form. Although I've updated this value a number of times to 1.0.0.32 it still shows 1.0.0.31 in the deployed application About form. User settings are supposed to automatically...
  8. S

    ListView Refresh

    JohnH I got my application working marvelously. After struggling with trying to implement it remotely from frmPprAdd PopUp, I gave up and implemented the design using events. Main Form: Dim WithEvents ofrmPprAdd As New frmPprAdd Private Sub ofrmPprAdd_PprAddComplete(ByVal PprNbr As String...
  9. S

    ListView Refresh

    I'm building an application which uses a main form with a listview control. The listview control displays information concerning each record loaded for that Part Number. Adding a record causes a popup form to be displayed. After the user enters the record data and saves the record, I want the...
  10. S

    TextBox Values not Available

    I'm having problems accessing the TextBox.Value property for controls that have already been bound and that have their visible property set to False. I load these TextBoxes with keys and make the control visible, then access them when necessary for adds, etc. If the textbox is visible...
  11. S

    DataGridView DefaultValuesNeeded Failure

    According to documentation, when a row is added to the DataGridView you can use the DefaultValuesNeeded event to populate values of the row that are needed. I've a foreign key and a date value that seem to fail. I stop the process during debugging to inspect the values used to populate the...
  12. S

    BindingSource Refresh

    1. dataDbStore is a class that populates the DataSet 2. frmPprEdit is a form which uses the populated DataSet from dataDbStore to display the recordsPublic Class dataDbStore 3. frmAddSru is a dialog form popped up from frmPprEdit which performs the adds. The dataset from frmPprEdit is passed...
  13. S

    BindingSource Refresh

    My post may have confused this issue. Actually, I was simply explaining some of he ways that I had been trying - and did it in a shortened way. When I did the newSruRow = aideDS.Tables("tblPprSru").NewRow it worked fine when I filled in the fields and then added a new link table row, but again...
  14. S

    BindingSource Refresh

    I'm using controls for each data element; textboxes and comboboxes mostly. The situation is that I have a many-to-many relationship and have to create the link table row and add it following the main record row. I've tried the BindingSource.AddNew and adding a row and appending it to the...
  15. S

    BindingSource Refresh

    I'm using BindingSource with a DataSet to display data on my form. When I add a new record (newSruRow = aideDS.Tables("tblPprSru").NewRow) to the DataSet and then Update the DataSet, the BindingSource is not updated even though I can count the correct number of record in the DataSet instance...
  16. S

    Concurrency Error

    I'm working to resolve a concurrency error. My correction works with one major exception. If the answer is yes then a stored procedure updates the record. If the answer is no then I reject changes but the Me.Refresh I attempted does not refresh the DataSet I'm using for the form. I update...
  17. S

    Managing Forms Display

    I've just discovered that using form1.show with redisplay the correct form as would visible = true unless I'm using separate instances, which I was doing as a carryover from my previous experiences. I had a mental block. This is great; there is absolutely no need for visible = true except for...
  18. S

    Managing Forms Display

    I've a rather simply request but can't find the elegant solution. I want to be able to determine if a form is already open so another instance of the form isn't opened. If it's not open simply show it but if it is open I want to make it visible. I am aware that I can loop through the...
  19. S

    ComboBox Events

    I've been trying to determine the value of a combobox after the user has changed the selection without much success. Using the SelectedValueCommitted and using msgbox to display the value it shows the value of the combobox prior to the user changing the value. I need to update values of other...
  20. S

    Multi-Talented Combobox

    It's relatively easy to set up a combobox to use a lookup table and bind the 'SelectedValue' -- but, I would like to be able to have the combobox either use a selected value OR allow the user to freeform enter text into the combobox and store that value into the table. Obviously then the...
Top Bottom