Search Results - VBForums

Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 1.17 seconds.

  1. VS 2010 Re: (Question) Write in a specific line of a Textbox control

    By the way, to be clear, both arrays and collections are zero-based, so the element or item at index 13 is actually the 14th element or item in the list.
  2. VS 2010 Re: (Question) Write in a specific line of a Textbox control

    You use the Lines property, but you don't do it like that. Lines is not "live". You have to get an array from the Lines property, modify it and then assign it back. In this case, because you want...
  3. Replies
    6
    Views
    245

    VS 2012 Re: Barcode generation

    Perhaps they followed my suggestion from post #2 and that is what is working.
  4. Replies
    5
    Views
    117

    Re: IoE IoT prefixes?

    IoT has been around for a while that I've but I haven't noticed IoE before that I'm aware of.
  5. Re: Comparing csv or xls files using VB 2010

    Those aren't really approaches to doing what you said you want to do. They are just approaches to reading and storing the data. If you want one method that will work for both XLS and CSV files then...
  6. Replies
    4
    Views
    225

    Re: Shuffling a list

    A first-chance exception just means that an exception was thrown, which is perfectly legal. It's when an exception is thrown and not caught that you have an issue. Does your application crash at...
  7. Replies
    4
    Views
    161

    Re: Getting Value of a another value?

    Firstly, there's no Return statement there so nothing is going to be returned. If you mean that that text should be displayed in a TextBox then that's something different.

    My first guess is that...
  8. Re: Populate Database from a text file (32,000 files)

    Quite so. There is a 64-bit ACE provider as of Office 2010, but it wasn't quite the great thing we'd hoped for. You can't have both the 32- and 64-bit versions installed together and, if you have...
  9. Re: Populate Database from a text file (32,000 files)

    You can't use an MDF file like that. SQL Server is a server-based database so an MDF data file has to be attached to a SQL Server instance in order to be of any use. If you want the database on a...
  10. Re: Populate Database from a text file (32,000 files)

    Firstly, SQL is a language, not a database. When you say that you opted for SQL, do you actually mean that you opted for SQL Server, which is Microsoft's enterprise-grade RDBMS? The SQL language is...
  11. VS 2013 Re: FTP copy file to a folder (example: backup)

    Just to be clear, the file is already on the FTP server, right? You want to copy a file from one folder on the FTP server to another folder on the FTP server, right? Do you already know the basics...
  12. VS 2013 Re: Setting a DataGridView cell to edit mode

    You're probably doing it in the Load event handler, which is executed before the form is actually displayed. Try doing it in the Shown event handler, which is executed after the form is first...
  13. Re: Do I need attributes and reflections to do this?

    Open the Application page of the project properties and click the `Assembly Information...` button. The information you enter into that dialogue will be stored in the AssemblyInfo.vb file, which you...
  14. Replies
    10
    Views
    211

    Re: DateTimePicker - Changing Years?

    Using VS 2010 and .NET 4.0 on Windows 8.1, I added three DateTimePickers to a form with the Format properties set to Long (which was the default), Short and Custom, with the CustomFormat property of...
  15. Replies
    10
    Views
    211

    Re: DateTimePicker - Changing Years?

    I asked some questions in post #4 and I asked them for a reason. We can't test whether we can reproduce the same behaviour that you're seeing if we don't know what your configuration is.
  16. VS 2013 Re: DataGridView: Enter on cell & validate value

    Keep in mind that, when you're editing a cell, it's the editing control that has focus and not the grid. You need to handle the EditngControlShowing event of the grid to access that control in order...
  17. VS 2013 Re: Problem with ReadToEnd and output freeze

    ReadToEnd won't return until there's an end to read to. If you want to read the output in blocks then call some other method, e.g. ReadLine or Read.When you post code snippets inside highlight tags,...
  18. Replies
    2
    Views
    132

    Re: How to get the nearest day by date

    There's no magic to it. You determine what day of the week that date represents and then add or subtract the appropriate number of days to get to your desired day of the week. Note that the...
  19. Replies
    10
    Views
    211

    Re: DateTimePicker - Changing Years?

    Given that this is a programming forum, it's best to specify when you're asking how to actually use software rather than create it. You absolutely can change the year one its own. Perhaps there's...
  20. Replies
    10
    Views
    211

    Re: DateTimePicker - Changing Years?

    Your question is not clear. Can you elaborate?

    Presumably you're talking about interacting with it in code. All you can really do is set the Value property. It's a DateTime so you can use it...
  21. VS 2012 Re: Datagridview data won't save unless typed in manually

    DO NOT call AcceptChanges. It's rare that you should ever need to call that method directly. Learn what it actually does before considering using it.

    By the way, if you want to add a new record...
  22. VS 2010 Re: MS SQL Express Attach DB & Connection String

    If you want to open multiple instances to connect to the same database then attaching the database at run time is not the appropriate option. You should be using a permanently attached database.
  23. Replies
    1
    Views
    113

    Re: Printing a form / data grid view

    If you want to use a reporting tool then I'd probably suggest SQL Server Reporting Services, as VS will allow you to add a client report directly to your project. If you want to stick with the...
  24. Replies
    3
    Views
    121

    Re: Set List Property as DGV Datasource

    By the way, why are you using FirstOrDefault there? It's a pet peeve of mine that so many people don't know how to use First, FirstOrDefault, Single and SingleOrDefault properly. There is NEVER a...
  25. Replies
    3
    Views
    121

    Re: Set List Property as DGV Datasource

    When you bind a list to a grid, what happens is that a column is created for each property of the items in that list. Your items are Strings so a column is created for the Length property of each...
  26. Replies
    13
    Views
    359

    Re: Best way to....

    The actual table structures are basically irrelevant. What matters is what I asked in post #2, which is why I asked it.
    As has been said, creating a single result set for all four tables without...
  27. Replies
    13
    Views
    359

    Re: Best way to....

    What is the relationship among the tables? Are they all the same schema or different? Are they related via foreign keys or not? Do you want data from all four tables every time or only those...
  28. Replies
    2
    Views
    135

    Re: Creating PFD files with VB.

    The most commonly-used component, as far as I can tell from threads I see around here, is iTextSharp.
  29. Replies
    11
    Views
    226

    Re: Select case - is this right?

    You should turn Option Strict On and fix the errors that arise. It will be beneficial in the long run. You should also turn it On in the IDE Options so that it will be On by default in all future...
  30. Replies
    5
    Views
    227

    Re: Finding Data Mismatch

    Worrying about resources at that scale is counter-productive. Readable, manageable code should be your priority at that level.
  31. VS 2008 Re: [HELP] What's method for REALTIME NOTIFICATION

    You probably need to use the correct keywords, which you wouldn't have known before. For instance, have you searched for "SqlDepemdency" as a keyword before? I'll wager not.
  32. Re: VB.Net printing. How to print a line on the last page of a 8 1/2 by 11 page

    Oh, you failed to mention that you were using a PrintForm component. You may be able to do what you want then. The point of that component is to print a form. If you want more control then you...
  33. VS 2008 Re: [HELP] What's method for REALTIME NOTIFICATION

    I don't expect you to have examples like that. Why would you? What I expect is for you to search the internet to find examples like that. I don;t have them lying around. If I was to provide...
  34. Replies
    6
    Views
    160

    VS 2013 Re: Link ComboBox with Data from a Table

    Does the Customers table contain the name of a City or an ID?
  35. Re: How do I scroll through a simple database?

    Who said anything about using drag'n'drop? You seem to be inferring that I'm suggesting using a typed DataSet and dragging a table from the Data Sources window. That could certainly be done but I...
  36. Replies
    11
    Views
    226

    Re: Select case - is this right?

    You should be handling the Validating event, not the Leave event. If the control fails validation then you set e.Cancel to True and it will not lose focus.
  37. VS 2008 Re: [HELP] What's method for REALTIME NOTIFICATION

    Any SqlDependency examples will be relevant for the server receiving notifications from the database. Any example of a server sending notifications to one or more clients will be relevant to that...
  38. VS 2008 Re: [HELP] What's method for REALTIME NOTIFICATION

    I asked how many clients needed to be notified, not how much data there was. Anyway, 100 clients is still too many for SqlDependency, but it might be OK if only a few would be connected at one time.
  39. Replies
    11
    Views
    226

    Re: Select case - is this right?

    Why is it strange? Where does the word "alphabet" come in the dictionary in relation to the words "a" and "I"? It's between them, right, so "alphabet" is in the range "a" to "I". In exactly the...
  40. Replies
    6
    Views
    160

    VS 2013 Re: Link ComboBox with Data from a Table

    How are you retrieving your data currently? Please tell me that you're using a data adapter or table adapter to populate one or more DataTables.
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.