Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 5.53 seconds.

  1. Replies
    3
    Views
    176

    Re: [RESOLVED] Code Optimsation

    Just one thing to note: use DirectCast rather than CType. It's not a big deal but it is the more correct option.
  2. VS 2019 Re: Cell value of First colum & last row in datagridview

    I see two potential issues in the code you posted. Firstly, why are you using the row count from one grid to index the Rows collection of a different grid? Maybe there's a legitimate reason for that...
  3. VS 2019 Re: Cell value of First colum & last row in datagridview

    Firstly, it's good that you provided your code but you also need to describe the actual problem. Saying that something doesn't work is generally of little value. You need to specify exactly what you...
  4. Re: SQL - Select two columns where not null - return one row

    In future, explain what you actually want. Providing an example can help but specifying a single case without specifying the general case is a great way to waste everyone's time. There are going to...
  5. VS 2019 Re: Why NumericUpDown control allows more than one decimal separators?

    There's nothing to fix. It's working as intended. If you're expecting any significant changes to Windows Forms now or in the future, I suggest that you reset your expectations.
  6. Re: SQL - Select two columns where not null - return one row

    Is this specific to those two rows or do you want to be able to handle a more general case? I would think that you would just be able to group on the first column and get the max of the other two...
  7. Re: "The call stack contains only external code" error

    Yeah, there is. You put a breakpoint at the top of each method and then step through the code line by line. That's why VS includes a debugger.
  8. Re: "The call stack contains only external code" error

    Also, there's a lot of code there but you haven't provided any indication of what was the last line you saw successfully executed. If you don't know then you haven't debugged your code, so do that...
  9. Re: "The call stack contains only external code" error

    For future reference, don't take a shot of your entire screen when only a tiny but of it is relevant. Windows 10 even has two tools for taking screenshots and both will let you you select a part of...
  10. Re: BUTTON: when clicked, display 5 button underneath

    What have you done and where are you stuck? If you've done nothing at all, that's your problem right there. There's plenty of information around about creating new controls in code. Read up, make...
  11. VS 2019 Re: unable to pass rich text from form to form

    You can't just put random bits of text together and expect it to be valid RTF. RTF has rules and you are not following them, so the resultant text is invalid. What you should do is set the...
  12. Replies
    1
    Views
    115

    Re: Right Click popup in DGV

    When you edit a cell in a DataGridView, a control is created and embedded in that cell. Most cells are DataGridViewTextBoxCells so the control is usually a TextBox. What you're seeing is the standard...
  13. Replies
    12
    Views
    305

    Re: Moving PictureBox with Timer

    There is no good reason, based on the information provided here, to use a second Timer. There's only one thing happening at a time so there's only a need for one Timer. The OP has made some changes...
  14. Re: VB shortcut to open the installed software

    Is maple.exe your application? Your software would have to be running to process keyboard input.
  15. Re: TCP Listen to Stream and Print to textbox but nothing incomming

    That's still not a proper explanation. That's looking at it from a user's perspective. You're not a user. You're a developer, so use your development tools. If you don't know how to debug code then...
  16. Re: Syntax error in UPDATE statement

    Your concern should not be whether or not you annoy me, which I'm sure it isn't. Your concern should be whether you're writing good code, which I'm not sure is the case.

    It should be fairly easy...
  17. Re: Syntax error in UPDATE statement

    It's pretty simple stuff. When using Access, you can and, in my opinion, should name your parameters but those names are ignored by the database, so you MUST add the same number of parameters to your...
  18. Replies
    2
    Views
    178

    Re: ComboBox Behaviour

    Is the DropDownStyle set to DropDown or DropDownList? Which do you want it set to? The former allows you to enter text that does not correspond to an item while the latter will only accept an in-list...
  19. Re: TCP Listen to Stream and Print to textbox but nothing incomming

    This is never an acceptable description of a problem. You need to have debugged your code before posting here and you need to explain to us exactly what does happen and where and how that differs...
  20. Re: Syntax error in UPDATE statement

    Recent VB versions support multiline String literals and VB has always supported XML literals, so there's no reason to write nasty, hard-to-read (and therefore error-prone) code like this:

    I don't...
  21. Re: Syntax error in UPDATE statement

    Try escaping all singe-word columns, just in case there's another reserved word we don't realise.
  22. Re: Syntax error in UPDATE statement

    I hate Hungarian Notation to begin with but if you're going to use the wrong prefixes then it goes from useless to downright misleading. The prefix is supposed to indicate the type but the "lbl"...
  23. Re: Syntax error in UPDATE statement

    I think that this was addressed in another of your threads but while you can use parameter names in an Access query, Access ignores them and just uses positions to match parameters. That means that...
  24. Replies
    23
    Views
    403

    Re: Windows 11 is available to some now

    It's not Earth-shattering but one feature that I definitely like is the new multi-tasking functionality. In Windows 10, I used to use the Windows+Left and Windows+Right key combinations to dock two...
  25. Replies
    12
    Views
    305

    Re: Moving PictureBox with Timer

    I think I misinterpreted your original question. I thought you meant that you wanted it to jump straight back to where it was and move down again, but now I think that you mean that you want it to...
  26. Replies
    23
    Views
    403

    Re: Windows 11 is available to some now

    Some stuff has been moved around, for sure. As far as settings go, which is what you specifically referred to, I'd say that they did so for the better. As for having hidden things, telling me that...
  27. Replies
    23
    Views
    403

    Re: Windows 11 is available to some now

    Do you have any specific examples, based on your extensive experience with Windows 11? The grouping/categorisation of settings hasn't really changed much at all from Windows 10, as far as I've...
  28. Replies
    12
    Views
    305

    Re: Moving PictureBox with Timer

    Start the Timer:

    PictureBox1.Top = 0
    Timer1.Start()

    Move the PictureBox:
    PictureBox1.Top += 9
    Stop the Timer:

    If PictureBox1.Top >= ClientSize.Height Then
  29. VS 2019 Re: Why NumericUpDown control allows more than one decimal separators?

    Firstly, any input that doesn't represent a valid number is rejected when the control loses focus and it reverts to its previous value.

    Secondly, while I don't know this for a fact, I would...
  30. Re: How can I shrink the web page for inside a Webview2 control

    Never done it myself but 30 seconds with a search engine led me here:

    https://docs.microsoft.com/en-us/dotnet/api/microsoft.web.webview2.wpf.webview2.zoomfactor?view=webview2-dotnet-1.0.992.28
    ...
  31. Replies
    23
    Views
    403

    Re: Windows 11 is available to some now

    One odd thing that makes me sure that changes/improvements will come to the Start Menu is that you get a jump list when right-clicking an app in the All Apps list but, if you then pin that app to the...
  32. Re: trying to replace function something not working

    This is a SQL question and has absolutely nothing to do with VB.NET. SQL questions belong in the Database Development forum. I have asked the mods to move this thread.

    You should also specify what...
  33. Replies
    23
    Views
    403

    Re: Windows 11 is available to some now

    The Start Menu is not a show-stopper for me but I would like it to be a bit more functional. I don't think there's much doubt that that is the most common issue people have with Windows 11. I'd be...
  34. Replies
    9
    Views
    17,845

    Re: Newbie how to auto tab text boxes?

    I assume you mean that some of the code is underlined in red. If you're not prepared to specify exactly which code that is and what the error messages are, why should we make any effort to help? We...
  35. VS 2019 Re: Download progressbar problem

    Where did I tell you to Google anything? I wrote a blog post in order to help anyone and everyone like you learn how to do something the proper way. You simply wouldn't use the information provided...
  36. Replies
    23
    Views
    403

    Re: Windows 11 is available to some now

    Why's that? Sounds a lot like "I hate Microsoft and I'm going to refuse to upgrade on principle".
  37. Replies
    22
    Views
    323

    VS 2019 Re: ARRAY summing issue

    Totally missed that.
  38. Replies
    22
    Views
    323

    VS 2019 Re: ARRAY summing issue

    That doesn't necessarily help. If the user is supposed to be entering whole dollar values, for instance, the result won't be affected by using Integer or Decimal and, in fact, using Decimal would...
  39. Replies
    22
    Views
    323

    VS 2019 Re: ARRAY summing issue

    As for the issue, nothing really jumps out as being a specific problem. You need to debug your code. That's why VS has a debugger. Set a breakpoint at the top of the code and then step through it...
  40. Replies
    22
    Views
    323

    VS 2019 Re: ARRAY summing issue

    Firstly, this part is pointless:

    Sum += Convert.ToInt32(tb.Text)
    At that point, the text has already been converted. That's what the Val variable is for in your code. If the attempt to parse the...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width