Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 5.77 seconds.

  1. Replies
    2
    Views
    84

    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!
  2. 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...
  3. 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.
  4. Replies
    7
    Views
    258

    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...
  5. Replies
    1
    Views
    92

    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...
  6. Replies
    7
    Views
    258

    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...
  7. Replies
    7
    Views
    258

    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...
  8. 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...
  9. 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...
  10. 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...
  11. Replies
    5
    Views
    210

    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...
  12. 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...
  13. 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...
  14. 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...
  15. Replies
    3
    Views
    95

    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

    ...
  16. Replies
    3
    Views
    95

    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...
  17. VS 2019 Re: Access DB and Timer not running tasks when its time - Conversion from string too

    Don't EVER convert anything that is not a String into a String unless you specifically need a String, e.g. for display. If you have DateTime values and you want to use the time portion, there's a...
  18. Replies
    6
    Views
    173

    Re: Not Getting Data From WebAPI

    Are you absolutely sure it's on that line? What does the stack trace say?
  19. Replies
    6
    Views
    173

    Re: Not Getting Data From WebAPI

    I doubt that you should have single quotes in your URL when you call GetStringAsync.
  20. Re: [RESOLVED] How to find control by tag property

    There's no need to call Where and then First. The First and similar methods allow you to specify a filter:
    Dim Thiscontrol As ComboBox = MyPanel.Controls.OfType(Of ComboBox).First(Function(cb)...
  21. VS 2019 Re: Access DB and Timer not running tasks when its time - Conversion from string too

    There's a lot of code there and you've given us no indication of where we should be looking. That suggests that you have made no attempt to debug your code for yourself, which you should always do...
  22. Re: Deleting a row from the data source (datatable) of a datagridview

    You should not be touching the grid in code. The BindingSource is supposed to be the one and only place that you access the bound data. When the user selects a row in the grid, you delete that row by...
  23. Replies
    6
    Views
    219

    VS 2019 Re: Printing Arrays in Listbox

    InputBox is a function that, internally, creates a form with a TextBox and a couple of Buttons and then returns a String based on what's in the TextBox and what Button was clicked. You should just...
  24. Re: vb.ner remove first char from text

    Like I said, KeyDown and KeyUp are about keys on the keyboard while KeyPress is about characters. If you want an upper-case B character then you you need to depress and release both the Shift key and...
  25. Re: vb.ner remove first char from text

    The only thing about VB 2005 that is more like VB6 than VB.NET 2003 is the fact that default form instances allow you to use a form without explicitly creating an object and passing a reference to it...
  26. Re: vb.ner remove first char from text

    That's complete rubbish. If you press and hold a key then you get multiple KeyDown and KeyPress events. You can see it for yourself if you bother to test. Try this code:

    Private Sub...
  27. Re: vb.ner remove first char from text

    No it isn't. I don't know whether you're referring to the fact that default form instances were added to VB 2005 but that's a language thing, not a Framework thing.
  28. Re: vb.ner remove first char from text

    I just checked and it was .NET Framework 2.0 in which that KeyChar property was made read/write so you definitely should not have an issue with that.
  29. Re: vb.ner remove first char from text

    Don't use KeyDown in the first place. Use KeyPress and you can just replace the character:

    Private Sub TextBox1_KeyPress(sender As Object, e As KeyPressEventArgs) Handles TextBox1.KeyPress
    If...
  30. Replies
    1
    Views
    171

    Re: sum listbox items

    Firstly, set the DataSource last when binding.

    As for the issue, when you bind a DataTable, the data comes from its DefaultView, which is type DataView, which contains DataRowView objects. That's...
  31. VS 2019 Re: Faster Bitmap SetPixel & Memory Management

    Yes, you are wrong. Setting a variable to Nothing does just that, i.e. it sets the variable to Nothing. The object that was previously assigned to the variable still exists and still occupies memory....
  32. VS 2015 Re: Break while running code inb debug mode

    Was any code actually being executed at the time? If this is a WinForms application that was waiting for user input then what exactly are you expecting to happen?
  33. VS 2015 Re: Break while running code inb debug mode

    The paws are in a hammock that's suction-cupped onto the window beside my desk, specifically to keep them off my keyboard.
  34. Replies
    4
    Views
    228

    VS 2010 Re: Check if F7 key is pressed

    Actually, it occurs to me that it is usually the GetAsyncKeyState function that I've seen used. Not sure what the specific differences or whether you'd notice any difference in practice.
  35. Re: VS security warning for WinForms component (dll downloaded from a network locatio

    This happens when you download a ZIP file from an untrusted source and then extract the data immediately. In File Explorer, you can open the file properties and unblock the file to mark it as trusted...
  36. Re: adding data to a combobox.list.controlset

    The BindingSource is added to the form in the designer, just like the controls (step 2 in post #9). It is a component, which is all that's required for the designer. Controls are specialised...
  37. VS 2015 Re: Break while running code inb debug mode

    I have Pause on my keyboard too. They were probably concerned that gamers rage-quitting would press the Break key and expect their keyboard to explode.
  38. VS 2015 Re: Break while running code inb debug mode

    There's a button on the VS toolbar while debugging that with the tooltip "Break All (Ctrl+Alt+Break)". You can click that or use that key combo in VS to break all threads. Not sure why you didn't see...
  39. VS 2019 Re: Faster Bitmap SetPixel & Memory Management

    An Interval of 10 ms means 100 times per second you are creating that Byte array and the BitmapData object. Not sure about the latter but the former is going to use some memory, don't you think?

    I...
  40. Replies
    4
    Views
    228

    VS 2010 Re: Check if F7 key is pressed

    I would imagine that your best bet would be the GetKeyState Windows API function. There should be plenty of examples around, probably even on this very site. Just be sure that any examples you use...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width