Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 0.45 seconds.

  1. Replies
    3
    Views
    122

    VS 2017 Re: OpenFileDialog Question

    Please use the Thread Tools menu to mark your thread Resolved. That way, we can see that you don't need further help without opening the thread and reading the whole thing.
  2. Re: conversion from string to integer is not valid

    As for the issue, where is the exception thrown? You need to provide ALL the relevant information and where an exception is thrown is obviously relevant. We shouldn't have to guess or work out stuff...
  3. Re: conversion from string to integer is not valid

    Please don't post unformatted code snippets. They are much harder to read, especially as they get longer.

    Try

    SqlQuery = "Update tb_login set FullName = @FullName,...
  4. VS 2005 Re: [RESOLVED] Passing Either A ComboBox Or A ListBox As A Parameter

    As we're here though, I can't really say that I like the stated solution much either.

    The first thing that comes to mind is that both ComboBox and ListBox inherit ListControl, so you could use...
  5. Replies
    4
    Views
    144

    VS 2017 Re: PDF Preview on VB.NET Form

    Do you have Adobe Reader installed on your machine?
  6. Replies
    2
    Views
    114

    VS 2022 Re: How to make your own media player

    You've heard about MediaElement. Have you made any effort to research it to find out whether and how it might help you? If you want to write an application then you need to make some effort and do...
  7. Replies
    5
    Views
    169

    Re: Getting a list of random numbers.

    On a different note, it is VERY bad that you have a Random object being created inside a loop. I'm sure that you've been told before to only create one Random object and reuse it rather than creating...
  8. Replies
    5
    Views
    169

    Re: Getting a list of random numbers.

    You do realise that this:
    Dim place(), myths() As List(Of Integer)
    is declaring your variables as arrays of Lists, right? If you put the parentheses on the type rather than the variable, as...
  9. VS 2022 Re: Newtonsoft 13.0.01 - Invalid Cast Exception

    No, I posted those as I noticed them but, when I got to the end, I was unable to address the actual issue. Don't manipulate much JSON myself.
  10. VS 2022 Re: Newtonsoft 13.0.01 - Invalid Cast Exception

    This is not wrong:

    Public Event DomainChanged(sender As Object, e As EventArgs)

    Public Event PasswordChanged(sender As Object, e As EventArgs)

    Public Event UsernameChanged(sender As Object,...
  11. VS 2022 Re: Newtonsoft 13.0.01 - Invalid Cast Exception

    Not sure whether this is your real code but there seems to be a mistake here:


    Private _domain As String
    Public Property Domain As String
    Get
    Return _password
    ...
  12. VS 2022 Re: Newtonsoft 13.0.01 - Invalid Cast Exception

    I think you mean "redacted" rather than "retracted". :)
  13. Replies
    2
    Views
    150

    VS 2022 Re: Resource Odd Behavior

    I've not tried to do that before but yes, I'm seeing similar behaviour with the menu. Seems to be just one of the things that hasn't been reimplemented properly yet. Probably ought to log the issue...
  14. Re: Object reference not set to an instance of an object.

    It seems that I was incorrect. Apparently, if you don't specify a type for each variable individually, they each use the first type subsequently specified. I didn't realise that, as I never declare...
  15. Replies
    4
    Views
    218

    Re: make more beautiful

    How about you explain what you're trying to achieve, instead of making us all work it out from the code?
  16. Re: "Cannot access a disposed object" When Closing Form

    Calling both Close and Dispose is pointless. Here's the implementation of SerialPort.Close:

    // Calls internal Serial Stream's Close() method on the internal Serial Stream.
    public void Close()
    {...
  17. Re: Object reference not set to an instance of an object.

    I think that this is the most important information here:

    That seems to suggest what I suspected was the case - what is often the case when NullReferenceExceptions are thrown on creation of a...
  18. Re: Object reference not set to an instance of an object.

    This is a disaster:


    ReadOnly group(5), Lyst(5) As List(Of String), img(12) As Image, Alpha(), Target() As TextBox
    Dim Word As String, chrs() As Char
    Dim choice, max, Number, siz(5)...
  19. Re: Object reference not set to an instance of an object.

    That's the stack trace for the exception. It shows the call stack at the time the exception was thrown. If you look at what it says, you'll see that those line numbers are all from different files....
  20. Re: How to get a Control cell row and column in TableLayoutPanel?

    It would probably be a less tricky control if you bothered to read the documentation. If you'd done that then you have already seen that it has a GetCellPosition method.

    Just like every control, a...
  21. Re: Why can't I add to a list of string ?

    This line:
    Dim Lyst(5) As List(Of String)
    creates an array with six elements and, as with ALL arrays, each of those elements is Nothing until you actually assign something to it. Are you doing that...
  22. Replies
    10
    Views
    340

    Re: What is happening here ?

    The code you posted will not compile with Option Strict On, so you must either have it Off at the project level or the file level. Your 'sender' parameter is type Object, as is the case for all event...
  23. Replies
    10
    Views
    340

    Re: What is happening here ?

    You need to turn Option Strict On. You're trying to fix issues that shouldn't even exist in the first place. Just do the right thing from the start and there will be fewer issues to fix.
  24. Re: "Cannot access a disposed object" When Closing Form

    Read this.

    Both Invoke and BeginInvoke will execute a method on the thread that owns the control it is called on. Invoke is synchronous, which means that it will not return until the invoked...
  25. Re: "Cannot access a disposed object" When Closing Form

    Big opportunity missed to say "here's one I prepared earlier". ;)
  26. Re: "Cannot access a disposed object" When Closing Form

    So your SerialPort is still receiving data, even after the form is closed, and it tries do something with a disposed control. You should handle the FormClosing event and close the SerialPort there,...
  27. Replies
    15
    Views
    547

    Re: Partial function in VB6?

    I'm no expert so I might be missing something but I suspect that that's because it's an attempt to implement a functional programming concept in other than a functional programming language, so it...
  28. Replies
    7
    Views
    339

    Re: Charts from Datagridview

    I was going to post a LINQ solution but I actually don't think that's a good idea. You should use a solution that you understand and you should actually apply some logic yourself to come up with a...
  29. Replies
    7
    Views
    339

    Re: Charts from Datagridview

    Is you grid bound to anything, e.g. a DataTable?
  30. Replies
    7
    Views
    339

    Re: Charts from Datagridview

    Converting the data from what you have to what you want and then displaying it in a chart are two completely separate issues.

    If you're targeting .NET Framework then the Chart control is in the...
  31. Re: "Cannot access a disposed object" When Closing Form

    Why are you calling Close in the Closed event handler? That event is raised when the form has been closed, so you can do something specific at that point. Why would you think that closing a form that...
  32. Re: how to place MessageBox when proper condition is met

    I think that it's safe to say that you don't know how to debug or even what it is. You seem to think that debugging is running the project in the debugger and then interacting with it like any other...
  33. Re: how to place MessageBox when proper condition is met

    The answer here should be obvious anyway. If you want to do something under some circumstances and not others then you use an If statement. Is your call to MessageBox.Show inside an If block? No it...
  34. Re: how to place MessageBox when proper condition is met

    Then you must know exactly what the code does and how that differs from what you expect, so why do you still refuse to describe that to us? I'm not sure I believe that you have debugged it. Running...
  35. Re: how to place MessageBox when proper condition is met

    Use the debugger. You will see exactly what the code does and where it doesn't do what you expect. I think I may have already recommended that and you have clearly ignored that advice if that is the...
  36. Replies
    10
    Views
    507

    Re: [RESOLVED] Where are my dots ?

    You can do that with String.Format too:
    Opener.Label2.Text = String.Format("{0:###,###}: Words checked in.", i)
    I tend to use string interpolation as a first choice these days but there are times...
  37. Replies
    3
    Views
    295

    Re: Stuck in a loop.

    There's a Break button in VS that allows you to break any time in the same way a break point would so just wait for the hang and click that button.
  38. Replies
    15
    Views
    547

    Re: Partial function in VB6?

    I think that you made the same misinterpretation that I did initially. This is nothing to do with partial classes and partial methods. This is a functional programming concept.
  39. Replies
    15
    Views
    547

    Re: Partial function in VB6?

    You had me very confused at first as I was thinking "partial methods" and thought that this had nothing to do with that. It does indeed have nothing to do with that, because you're talking about...
  40. VS 2015 Re: My record is not saving on ms sql table

    There's no "refreshing" required. You already have the data - you just added it - so why would you need to get it from the database again?

    If you have a typed DataSet then use it. No...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width