Search:

Type: Posts; User: jmcilhinney

Page 1 of 13 1 2 3 4

Search: Search took 6.95 seconds.

  1. Re: [RESOLVED] Highlight Text on TextBox Enter

    As I mentioned in my previous post, that will behave as you want if you click into a TextBox but if you Tab in and then click to position the caret, it will select all the text on that click. You...
  2. Re: I cannot get correct encoding on xml serialization.

    Are you sure that this:
    <XmlRoot(ElementName:="http://mybank.gr/paycenter/redirection")>
    shouldn't be this:
    <XmlRoot(Namespace:="http://mybank.gr/paycenter/redirection")>
    I'm no XML expert but I...
  3. Re: Highlight Text on TextBox Enter

    I suspect that the code is working exactly as it should. Try this. Create a new WinForms App project, add three Buttons and three TextBoxes to the form, then add the following code:

    Public Class...
  4. Re: [RESOLVED] Change decimal symbol to period not comma

    That's interesting. The documentation for that property describes it thusly:

    That doesn't seem to relate you your issue so I would not have expected it to be relevant. The cells of the grid can...
  5. Re: Change decimal symbol to period not comma

    If you were working with numbers then they would be formatted as per your system settings. If that's not what you're seeing then you're almost certainly working with text. Where and how that might be...
  6. Re: [RESOLVED] Highlight Text on TextBox Enter

    Is the issue resolved or not? You marked the thread Resolved but then posted again as though the issue persists. If the issue is resolved then maybe you could provide the resolution, which could help...
  7. Re: [RESOLVED] Highlight Text on TextBox Enter

    That should generally not be used by application developers but, as this appears to be an AutoCAD plugin, that rule may not apply.
  8. Re: PrintPreviewDialog showing last page only

    In the code you posted, is _Pages a list of objects that are to be printed one to a page? If so then why do you have a loop over that list in your PrintPage event handler? As the name suggests, the...
  9. Re: PrintPreviewDialog showing last page only

    If you have a list of N items and you want to print M to a page then your code should look something like this:

    Private Const ItemsPerPage As Integer = 8

    Private items As New List(Of String)...
  10. Replies
    2
    Views
    121

    VS 2019 Re: Visual studio and Npgsql

    The error message that you kindly didn't bother to translate for us is telling you that there is a conflict between two different versions of the specified assembly. It appears that versions 4.2.0.0...
  11. Re: Delete lines between specific 2 lines in text file using vb.net

    There's no practical way to do this directly to a file. You basically need to read the file into a local data structure, modify that and then then write the data back out again. There are various...
  12. Re: How to delete my Rows in 2-D Array efficiently?

    There is no way to do it without looping. If you want to be able to actually remove rows then don't use a 2D array. Use a List<T> where T is an appropriate type, which might be a 1D array or...
  13. VS 2019 Re: Cell value of First colum & last row in datagridview

    That might explain why I said "IF" there's an error. If there's no compilation error or run-time exception then it must be the behaviour that indicates that something is wrong, so describe that...
  14. VS 2019 Re: ExecuteScalar() returns weird result

    You're ignoring the basics. Firstly, look at this line:

    TextBox2.Text = Convert.ToString(CMD_Checar_Turno)
    That is going to take the highlighted part, convert that to a String and display the...
  15. Replies
    3
    Views
    226

    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.
  16. 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...
  17. 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...
  18. 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...
  19. 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.
  20. 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...
  21. 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.
  22. 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...
  23. 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...
  24. 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...
  25. 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...
  26. Replies
    1
    Views
    145

    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...
  27. Replies
    12
    Views
    342

    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...
  28. Re: VB shortcut to open the installed software

    Is maple.exe your application? Your software would have to be running to process keyboard input.
  29. 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...
  30. 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...
  31. 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...
  32. Replies
    2
    Views
    200

    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...
  33. 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...
  34. 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...
  35. Re: Syntax error in UPDATE statement

    Try escaping all singe-word columns, just in case there's another reserved word we don't realise.
  36. 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"...
  37. 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...
  38. Replies
    27
    Views
    460

    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...
  39. Replies
    12
    Views
    342

    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...
  40. Replies
    27
    Views
    460

    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...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width