Search Results - VBForums

Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 1.37 seconds.

  1. Re: what statement is needed here? to get it too show the next code en labels and tex

    You might try providing a title in the Title field and then using the post itself as a place to provide a FULL and CLEAR description of the problem, rather than a vague question in the title and then...
  2. Replies
    11
    Views
    142

    VS 2008 Re: Validating a currency

    Here's how I would recommend handling it:Private Sub TextBox1_Validating(sender As Object, e As System.ComponentModel.CancelEventArgs) Handles TextBox1.Validating
    If Not...
  3. Replies
    1
    Views
    65

    Re: Resetting Access Database

    You quite possibly added the columns to the wrong database. Here's what you should do when working with an Access database in VB.

    First, create the database in Access. Next, right-click your VB...
  4. Replies
    11
    Views
    142

    VS 2008 Re: Validating a currency

    You should be using the Decimal.TryParse method. It will handle everything, including decimal points, currency symbols, letters, etc. You can tell it what formats to accept, so you would specify...
  5. Replies
    1
    Views
    130

    VS 2010 Re: Get Set vs Function

    Um, nope. A class is a template for a type of object, e.g. you might define a Person class and then create an instance of that class for each person you wanted to represent. A method represents...
  6. Replies
    2
    Views
    78

    Re: from web to datagrid

    Your URL has been truncated so it's not possible to see the page in question. Presumably it contains a table of some sort. Firstly, can you access that data via a web service? If so then you...
  7. Replies
    1
    Views
    78

    Re: Reclaiming SQL Server disk space

    Have you considered reworking the database to use the FILESTREAM feature, which stores large binary data outside the primary data file? I'm not 100% sure but I don't think that data then counts...
  8. Re: mscorlib.dll an unhandled exception.

    Yes, that is an exception. Given that we know nothing about the application, it's functionality or its code, we can't really tell you much more than that. Generally speaking, that exception is...
  9. Replies
    4
    Views
    142

    VS 2010 Re: backup and restore DB

    In that case, you have two choices.

    1. You can execute an appropriate SQL statement against the database, which you would do the same way as any other SQL statement, i.e. call ExecuteNonQuery on a...
  10. Replies
    4
    Views
    142

    VS 2010 Re: backup and restore DB

    We're going to have to know what type of database you're using. "SQL" means nothing in this context because SQL is actually a language used to manipulate databases, not a database itself. Pretty...
  11. Replies
    5
    Views
    160

    Re: New SqlConnection Help

    If you have code that works for SQL Server then all you need to do is change all the SqlClient types to OleDb and change the connection string. Other than that, it should generally work as is. You...
  12. Replies
    5
    Views
    160

    Re: New SqlConnection Help

    I looked more closely at your code and see that you are using OleDb elsewhere. That would explain why that part is working.
  13. Replies
    5
    Views
    160

    Re: New SqlConnection Help

    You're using members of the SqlClient namespace, which is for SQL Server specifically. If you want to connect to Access then you would use members of the OleDb namespace. You should visit...
  14. Replies
    7
    Views
    260

    Re: Help with StreamWriter

    Please don't delete your question when it has been answered. By doing so, you remove virtually all possibility of this thread helping someone in the future who may have a similar issue. Even if...
  15. Replies
    7
    Views
    260

    Re: Help with StreamWriter

    I just tested your code and an exception is being thrown within the Load event handler. For reasons that you can read about elsewhere if you choose to, exceptions thrown in the Load event handler...
  16. Replies
    7
    Views
    260

    Re: Help with StreamWriter

    You need to close the FileStream. It's always best to create such objects with a Using statement, so you can't forget.
    Using fs As New System.IO.FileStream("output.htm", IO.FileMode.Create,...
  17. Replies
    3
    Views
    185

    VS 2008 Re: Properties of properties?

    Firstly, a class can only be declared Private if it is declared inside another class but nesting classes like that is something that should rarely be done in the first place. Just as you already see...
  18. VS 2010 Re: checklistBox in MySQL (Save / Update)

    You'll notice that, based on the title, this thread is about saving the contents of a CheckedListBox to a database. You know how to do that so your issue is resolved, so the thread should have been...
  19. Thread: Timers

    by jmcilhinney
    Replies
    2
    Views
    142

    Re: Timers

    A Timer already behaves like that by default. A Windows Forms Timer raises its Tick event repeatedly while its enabled, with how often its raised being controlled by the Interval property. If you...
  20. Replies
    7
    Views
    165

    Re: assigning arrays to a list box

    AddRange is a single method call to add a range of items. There's no loop required.
  21. VS 2010 Re: Losing cell data when datagridview gains focus

    I doubt it was a discrepancy in your code. It would have been something in the auto-generated files, which is why it's often quicker to simply recreate something than try to find the source of an...
  22. Replies
    4
    Views
    214

    VS 2013 Re: ComboBoxitis

    I'm not sure whether you have re-read your first post or not but nowhere does it actually explain what's supposed to happen when the user makes a selection. Anyway, you're not wrong about it being...
  23. Replies
    4
    Views
    214

    VS 2013 Re: ComboBoxitis

    Perhaps it would help if you actually explained what that is. We can't tell you how to achieve something if we don't know what the something is.
  24. Replies
    7
    Views
    165

    Re: assigning arrays to a list box

    You can either assign the first array to the DataSource property of the ListBox or pass it to a call to Items.AddRange. You can then handle the SelectedIndexChanged event, get the SelectedIndex of...
  25. VS 2010 Re: checklistBox in MySQL (Save / Update)

    1. If you wanted to store the values True and False in VB, would you use a Boolean variable or a String variable. Whatever considerations you used to answer that question apply equally to the...
  26. Replies
    7
    Views
    226

    Re: Good Beginner Projects

    I literally (and I mean literally, not figuratively) copied the words "create games in VB.net" from your post and pasted them into a Google search and seconds later I had a page full of links that,...
  27. VS 2010 Re: Losing cell data when datagridview gains focus

    It sounds like something may be corrupted. I recreate the grid and related objects at least, if not the entire form.
  28. VS 2010 Re: Losing cell data when datagridview gains focus

    There's nothing inherent in a DataGridView that would cause that. Either you have written some code that does it or something is corrupt. What events are you handling, of the grid, the...
  29. Replies
    7
    Views
    226

    Re: Good Beginner Projects

    Something a lot of people try is an inventory database of some sort, e.g. for music or books.
  30. Replies
    1
    Views
    127

    Re: Word to PDF

    Would that really make sense? You're using a Save As dialogue so you're saving the file. If you're saving the file then you're saving the whole file. In what other scenario can you select one page...
  31. Replies
    2
    Views
    189

    Re: Array Help! Counting Numbers

    As the question states, you would need to create a 1D array to store the counts. Array indexes are zero-based so you can either create an array with 9 elements at indexes 0 to 8 and perform the...
  32. Re: A question with regard to accented characters.

    Can you show us the exact code to get the data in the first place, add it to the ListBox, retrieve it from the ListBox and then display it?
  33. Re: Date Problem - extracting from Dataset

    So many people make their lives so difficult when it comes to dates because they over-think things. There is no format. You're trying to accomplish something that is impossible for a reason that...
  34. VS 2012 Re: Help with using datetimepicker to search database with linq

    Then it effectively doesn't contain time, which is the important point. It doesn;t matter whether it can contain time, only whether it does.

    The Value of a DateTimePicker returns a DateTime value...
  35. Re: My app needs to start automatically on a server....

    Is that true for the Run keys in the Registry as well? I'd not really thought of that but I suppose it would make sense. I also suppose that I could test it for myself. :)
  36. VS 2010 Re: checklistBox in MySQL (Save / Update)

    My previous post sorts out your specific issue but there are two other things that should be fixed in your code.

    Firstly, why, why, why would you be storing the values as text? I'm not aware of...
  37. VS 2010 Re: checklistBox in MySQL (Save / Update)

    Why are you doing the right thing for the insert and using parameters and then doing the wrong thing for the update and using string concatenation? Why are you also calling ExecuteReader for the...
  38. Replies
    1
    Views
    150

    VS 2013 Re: Combobox and Tables.

    What is the relationship between the data fro one option and that for another? Is there any? Is the data all in one table and there's a column that corresponds to the option or are they completely...
  39. Re: My app needs to start automatically on a server....

    I just followed Niya's link and, while it might be relevant, it's not the first thing that would have come to my mind. Firstly, there are actually two Startup folders, the combined contents of which...
  40. VS 2012 Re: Help with using datetimepicker to search database with linq

    Does your date column in the database contain date and time or just date? The DateTimePicker is going to default to the current date and time so, if you change the date in the UI, the time will...
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.