Search results for query: *

  • Users: timh
  • Order by date
  1. T

    Issues with autoincrement

    That saves a few lines of code! Thanks very much for your help.
  2. T

    Issues with autoincrement

    Got there in the end thanks, although having created a new object, I also needed to recreate all the bindingsources associated with it... Is there are a quicker way than going through each bindingsource and setting the datasource and datamember again? These were initially set in the design window.
  3. T

    Issues with autoincrement

    Thanks. I understand that, but the issue is this... Say I have a dataset loaded with 19 records. When I add a new record, the new record is given the ID number 20, which is fine. If however I then load a new dataset, without first closing the application, with say 3 records, when I add a new...
  4. T

    Issues with autoincrement

    An element in a dataset I am working with is an integer datatype, with autoincrement set to "True". The idea is that this field is a unique ID for each entry in the database, which is saved as an XML file. This is not an SQL database. If I open my application with the relevant XML loaded into...
  5. T

    Issues with Databound Combobox

    OK, after feeling a little aggrieved by your comments, I had a light bulb moment...it was that easy. I assumed that the datasource was what I was binding the control to (i.e. the "entrants" datatable), which was why I didn't understand what you were saying. Lesson learned. Thank you.
  6. T

    Issues with Databound Combobox

    Obviously I'm being rather thick here, but I don't see that what I'm trying to do is so unusual? After all, people use comboboxes all the time to limit user input, e.g. sex (Male/Female). I'm working with a database of "entrants" and when inputting a new entrant, I want the inputter to have to...
  7. T

    Issues with Databound Combobox

    Thanks jmcilhinney, however I don't really understand your answer. Perhaps I've posed the question wrong? I already have a combobox that is successfully bound to an element in the binding source, but which also has drop down list items. This is for "sex" and so the items property is populated...
  8. T

    Issues with Databound Combobox

    I am currently having issues with a databound combobox, which I am trying to display as a drop down list. I thought I had it sorted, but no. This is my code Private Sub setupFeescbx() EntrantBindingSource.RaiseListChangedEvents = False With FeecategoryComboBox...
  9. T

    Trouble moving rows in DGV

    Sorted, thanks! Thanks! A minor tweak needed to keep the selection on the row being moved and I worked out the opposite direction ;-) This is what I've ended up with: Private Sub reorder(sender As Object, e As EventArgs) Handles btnMoveUp.Click, btnMoveDown.Click Dim currentRow =...
  10. T

    Trouble moving rows in DGV

    I probably am missing something blindingly obvious here, but try as I might, I can't find the solution to this issue... I have a DGV bound to a bindingsource. I want to be able to move rows within the DGV, each of which has a "classindex" column. The bindingsource is sorted on this column. I...
  11. T

    Help with "DataGridViewPrinter" class

    Looking back at my code in an effort to advise... Let me see if I can explain what I did, without simply giving you the code. My "Print" button calls a function called "SetupThePrinting", which returns a true or false value. If it returns false, the print process aborts. If it returns true...
  12. T

    ToolstripComboBox

    Sorry to "bump" such an old post, but I am curious to know whether this "bug" has ever been addressed? I'm having the exact same issue in VS Express for Desktop.
  13. T

    SQL Compact Edition & VS Express for Web

    I am using VS Express for Web (2012) and creating a data driven website, based on a .sdf database. My question is this: Can I actually populate the tables from within VS and if so, how? Try as I might, I don't seem to able to edit the data in the database explorer whilst in a VS Express for...
  14. T

    Strange Form Resizing Issue

    I have a very strange problem with form resizing. The form contains a datagridview and is initially set to 576 pixels wide. If the user clicks a filter button, the form width grows to 626 pixels as another column is displayed. I have set the width so that no horizontal scrolling is needed. When...
  15. T

    Data Binding Error

    Can someone explain this error to me please? The line my program fails at is: commentTextBox.DataBindings.Add("text", entrantcontrolBindingSource, "comment") Whilst I can seemingly work around this error, by "On Error Resume Next", this in turn seems to cause some strange binding errors...
  16. T

    Missing datarow

    Ah, simple then. I guess the other rows work because the add new method effectively calls end edit on the previous row. So simple. Been scratching my head for a while... Thank you very much once again.
  17. T

    Missing datarow

    Hello, I am writing some code to import data in a .csv file to a dataview, which is displayed in a datagridview and thereby to the underlying data source. I can import to the dgv fine, but when I close the form containing the dgv, the last row of the new data gets lost?? I have no idea why...
  18. T

    Problem creating email in application using "mailto"

    Thanks. The clipboard solution seems to work ok and requires minimum effort from the user, so I'm going to go with that.
  19. T

    Problem creating email in application using "mailto"

    ...I should have carried on Googling a bit more. I now realise that the problem is due to the limit on characters in a URL and that there is apparently no way of working around this. Unless anyone has a bright idea, I guess my solution will be to write the string to the clipboard and prompt the...
  20. T

    Problem creating email in application using "mailto"

    One of the functions in my application is to send out a block email via the user's default email client, using "mailto". However, I am running into a problem: I loop through the rows of my dataset to extract the email addresses and add them to a string, then use the following code to generate...
Back
Top