Search results for query: *

  • Users: timh
  • Content: Threads
  • Order by date
  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. T

    Control Enter and Mouseclick Events

    Next question... I'm trying to cater for all eventualities and make data entry as swift as possible on my form. To that end, I have set several combo boxes to "drop down" if the user tabs to them, by using the "Enter" event. Private Sub sexComboBox_Enter(sender As System.Object, e As...
  10. T

    Datagridview DataError

    Hi, I'm puzzled by this one, but hopefully someone can point me in the right direction. It's a little hard to explain what is happening and I don't really know which bit of code (if any) is relevant to post. My application consists of one main form and various others that open modally. On...
  11. T

    Print Preview Dialog doesn't close??

    I expect I'm missing something blindingly obvious here, but... I am using a standard PrintPreviewDialog in my application (Visual Studio 2010) and everything works fine, except that when I click the print button, the document prints but the preview dialog stays open... Shouldn't it close once...
  12. T

    Date Time Picker

    In my Windows Forms application, I have a DateTimePicker control. When the user enters the control, I have it set so that the calendar automatically drops down. Is there any way of then replicating the 3 mouse clicks on the "year" part of the top line of the calendar, such that the display...
  13. T

    Automatically highlight control with focus

    Is there a way to highlight the active control (e.g. changing the BackColor property of a text box, to aid user input) without having to manually do it in each control's GotFocus and LostFocus event? Hopefully the answer is "Yes", even if that means I'll be embarrassed at asking an obvious...
  14. T

    Filter Paper Types in PageSetupDialog?

    Is it possible to "filter" the paper sizes available to select from in a PageSetupDialog? I have a function to print an envelope and was hoping to be able to constrain the user to only select an envelope size (or custom one). At the very least, it would be nice for the PageSetUpDialog "Paper...
  15. T

    Help with "DataGridViewPrinter" class

    I've downloaded some VB.NET code for a DataGridViewPrinter class to use in my project, but I don't seem to be able to get it to work properly. Hopefully someone else is using this same code and can advise. The code I am using is from this link... CodeKeep Snippet : datagridview printer class...
  16. T

    Sorting Datagridview Column with Mixed Values

    Hi, I suspect the answer to my question may lie with "IComparer" interface, but I can't get my head round how that works. Hopefully someone can help with a simple solution to my problem, or explain how to use IComparer for my scenario. Within my bound datagridview, I have a column...
  17. T

    Populate Form from DataGridView

    Hello, I have a problem with linking a datagridview to text boxes on a form. I want to be able to click a row on the dgv and populate the fields of the associated form. Everything works fine, until I filter the dgv or sort it, at which point the relationship between the data on the dgv and the...
  18. T

    XML Structure and Dataset Designer

    OK, so I'm struggling here! I'm trying to create a dataset representation in Visual Basic 2010 Express of my XML schema. The problem I've got is understanding the relationships. I want my XML to look like this... <eventdata> <createdwith>schema.xsd</createdwith> <eventdetails>...
  19. T

    Question Datagridview not displaying values from datatable

    Hello. I have searched long and hard for an answer to this problem, to no avail! First off, let me say that I am a "hobbyist" and enjoy tinkering with Visual Basic. All my "knowledge" is scoured from books and the internet, so my coding is probably horrendous... I am using Visual Basic 2010...
  20. T

    Question XML and Datagridview

    Hello, I am struggling with reading the contents of an XML file into a DataGridView control in Visual Basic (using Visual Studio 2005). Extensive searching on the internet and scouring through a couple of books on VB and XML have failed to find a result. The answer is probably out there, but I...
Back
Top