Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 3.06 seconds.

  1. Re: How to make label read text from a text file after publishing?

    If you want to use a type in code without specifying the namespace then you need to import that namespace. In your original code, you were using IO.File and you were able to do that because the...
  2. Re: How to make label read text from a text file after publishing?

    You should absolutely avoid using hard-coded paths like that. .NET has various options for getting various standard paths for the current environment. In your case, I assume that what you actually...
  3. Re: Creating a windows installer for our programs

    Are you developing your application in Visual Studio? If so, you can create a Windows Installer package right there. Old versions of VS had Setup projects built right in, then they were removed, then...
  4. Replies
    10
    Views
    186

    Re: Invoke Event Call Backs

    Show us the actual code you have now and indicate exactly where the exception is thrown. You have no idea the number of times that people have indicated that they have done as instructed but it still...
  5. Re: user enters % sign in search form. wildcard.

    The code already does that. I'm done here.
  6. Re: user enters % sign in search form. wildcard.

    The code, which I provided at Stack Overflow, already does what you describe. If the user includes a wildcard anywhere then no changes are made to the search text and if they don't include a wildcard...
  7. Replies
    10
    Views
    186

    Re: Invoke Event Call Backs

    So as suggested in post #6, the auto-generated comment explicitly states that you should put your initialisation code after the call to InitializeComponent and yet you have ignored that and put it...
  8. Replies
    1
    Views
    60

    Re: adding objects to listbox

    Firstly, let's fix the silliness with the code you have. Firstly, why would you have one field called Name and another called cost rather than Cost? Why would you be inconsistent with the casing of...
  9. Re: Textbox1.text value not showing in Textbox3.text until it exceeds $200, HELPP!!

    First things first, debug your code. VS has a debugger for a reason. Set a breakpoint and step through your code, examining the state at each step and comparing it to your expectations. When the two...
  10. VS 2019 Re: VB.Net - Connecting to Dynamics 365 tables and feed DataGridView

    This seems like a good place to start:

    https://www.microsoft.com/en-us/download/details.aspx?id=50032
  11. Replies
    10
    Views
    186

    Re: Invoke Event Call Backs

    The parts that you think are relevant to the problem.
  12. Re: VBA Get Internet Connection Status Problem

    Is this a VBA question or a VB.NET question? If it's the former, why is it posted in the VB.NET forum? If it's the latter, why does it say VBA in the title?
  13. Replies
    1
    Views
    93

    Re: Conversion Error

    You're not getting that exception on that line of code, unless there's something in that GetValue method that you're not telling us about. Where is the exception actually thrown? The stack trace will...
  14. Replies
    3
    Views
    110

    Re: Passing PointF as Optional Parameter

    PointF is a value type so, just like any other value type, a variable of that type will always have a value. For all value types, Nothing maps to the default value for that type, e.g. 0 for Integer,...
  15. Replies
    2
    Views
    140

    Re: Simple DB connection question

    No you don't. You get that MESSAGE because that's the message you wrote but that's not the error. As suggested above, you ignore the actual error. As the developer, you should be looking at the...
  16. VS 2017 Re: Correctly Sort Date Values in DataGridView

    Indeed. The bit about the Object array was really just an aside - an indication that this was a problem of the OP's own making because there was no reason to use a String array there in the first...
  17. VS 2017 Re: Correctly Sort Date Values in DataGridView

    Yes it does do the same thing so, given that what I posted demonstrably works (did you test it to see for yourself), what you did must work too. That means that if you're not seeing what you expect...
  18. Replies
    6
    Views
    136

    Re: Update event of a checkbox

    If one was really keen, one could make it part of the control. You could add a Boolean property, override the OnCheckedChanged method and then only call the base method, which is what raises the...
  19. Replies
    6
    Views
    136

    Re: Update event of a checkbox

    You posted three minutes after I did. How much effort did you really put into trying to understand it. There's really not much there. Declare a field, set its value, check its value. What's not to...
  20. Replies
    6
    Views
    136

    Re: Update event of a checkbox

    The CheckedChanged event of the CheckBox will be raised if you set the Checked property so there's nothing you can do about that. There are two ways this is usually handled. One option is to not...
  21. Replies
    3
    Views
    165

    Re: TCPListener maybe thread issue??

    This issue or something like it is bound to come up again so I'd suggest learning how to do things properly now to avoid more headaches later. I would suggest that you show us what you did and we can...
  22. VS 2017 Re: Correctly Sort Date Values in DataGridView

    Except it does, so if what you did didn't work then you obviously didn't do what I told you. Of course, you didn't bother to show what you did do, so we can't tell you what's wrong with it. Why make...
  23. VS 2017 Re: Correctly Sort Date Values in DataGridView

    I've already told you what to do. You just need to do it. Bind your DataTable to your grid. JobSheetDataSet.JobNo is your DataTable.
  24. Replies
    5
    Views
    195

    Re: [RESOLVED] Rogue line on form.

    Who told you that? I'm always interested in people's mistakes. Makes me feel better about all the ones I've made over time; some more recent than I'd care to admit.
  25. Replies
    5
    Views
    195

    Re: [RESOLVED] Rogue line on form.

    Don't worry, no one was interested to know what the cause was anyway, so it doesn't matter that you didn't tell us!
  26. VS 2017 Re: Correctly Sort Date Values in DataGridView

    As suggested, typed DataSets work just fine. The problem is that you're not using one. You should need to be transferring data from the DataTable to the DataGridView at all, so there should be a...
  27. Re: Using CsvHelper to speed up inserting from .csv to database

    As suggested, a DataTable doesn't implement the IEnumerable interface. You might try its Rows property, or you can call the AsEnumerable extension method.
  28. Replies
    7
    Views
    279

    Re: CSV Helper

    Yes you should. If the advice I provided fixed the problem you asked about then this issue is resolved and you should use the Thread Tools menu to mark this thread Resolved. If you have a new issue...
  29. Replies
    3
    Views
    165

    Re: TCPListener maybe thread issue??

    You haven't provided enough information to know for sure but this is almost certainly a case of default instances strike again. You should follow the Blog link in my signature below and read my post...
  30. Replies
    7
    Views
    279

    Re: CSV Helper

    BTW, you should also be using the Path.Combine method to construct a file/folder path from parts, not concatenating strings. Doing so means that you can never accidentally include too many or too few...
  31. Replies
    7
    Views
    279

    Re: CSV Helper

    The CsvReader.Configuration property is type IReaderConfiguration and the IReaderConfiguration.BadDataFound property is indeed read-only, so you cannot set it the way you're trying to. What is not...
  32. VS 2015 Re: Application Crash with no Exception Thrown

    Are you handling the UnhandledException event of your application? If not, you should be. That's where you catch exceptions that you didn't specifically predict, log them and then shut down...
  33. VS 2017 Re: Correctly Sort Date Values in DataGridView

    How EXACTLY are you populating that the grid? Is your DataTable bound to the grid or are you manually moving the data? If bound, is it done in code or in the designer? Via a BindingSource or...
  34. Re: Add column width to DataTable

    But nothing, really. If you want to write software then you should be able to use software and that means reading the documentation that it's developers provide. Wouldn't you expect users of your...
  35. Replies
    6
    Views
    338

    Re: Image retrieve from SQL DB

    The first error message tells you that the index you used was outside the valid range. What was the index and what was the valid range? Did you look? If not, why not? If so, why didn't you pass that...
  36. Re: Add column width to DataTable

    What you're asking for doesn't make any sense. A DataTable is a data structure for the storage of data. A DataGridView is a control, for the display of data. The Width that you're setting in that...
  37. VS 2019 Re: Vb.net - Split large text file by number of lines

    So what specific problems did you have while converting? Did you make any effort at all? That first code snippet has two using statements and two while loops, two declarations, a property setting and...
  38. Re: ITextSharp - Different performance between file reading and TIFF page reading

    You should use the Stopwatch class to time various aspects of your code to see if you can identify where the difference is. For instance, use the principles of the second code but for only one page...
  39. Replies
    3
    Views
    105

    VS 2019 Re: Bug in DataGridView ?!

    Apart from anything else, this is bad:

    Private Sub dgvMainProp_CellValueChanged(sender As Object, e As DataGridViewCellEventArgs) Handles dgvMainProp.CellValueChanged

    ...
  40. Replies
    3
    Views
    105

    VS 2019 Re: Bug in DataGridView ?!

    Debug your code, which you should have done before posting. Place a breakpoint at the top of each event handler and then, when execution breaks, step through the code line by line. You can examine...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width