Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 3.07 seconds.

  1. Replies
    2
    Views
    119

    Re: Dictionary, more than one item

    An Array as your returned item, or a List(Of T) as your returned item???
  2. Replies
    16
    Views
    386

    Re: [RESOLVED] Highlight Text on TextBox Enter

    Show us the handles clause on the _Enter handler, and list the textboxes you want it to work with...
  3. Re: PrintPreviewDialog showing last page only

    I’m not at my computer at the moment, but it looks like it’s the i2 loop you need to change as I suggested…
  4. Re: PrintPreviewDialog showing last page only

    It is overwriting your previous pages, if I’m not mistaken. You need to use a variable outside the print page to hold the current page, so instead of…


    For i = 0 To _Elements.Count - 1

    You’d...
  5. VS 2019 Re: Cell value of First colum & last row in datagridview

    That will work fine, unless you’re allowing users to add new rows, and the new row is at the last row of the dgv

    DataGridView1.Rows(DataGridView1.Rows.Count - 2).Cells(0).Value
  6. Re: BUTTON: when clicked, display 5 button underneath

    Add a Panel to your app. Add your 5 buttons to the panel, then add your code to the click eventhandlers. Then in your first button’s click event handler…


    Private Sub Button1_Click(sender As...
  7. Replies
    3
    Views
    124

    VS 2019 Re: unable to pass rich text from form to form

    vDescription = lvCode.SelectedItems(0).SubItems(1).Text
    frmMain.txtMICHS.Rtf = "\r\n" & frmMain.txtMICHS.Rtf & "\r\n" & vDescription
  8. Replies
    3
    Views
    124

    VS 2019 Re: unable to pass rich text from form to form

    SetAccessValue Is redundant. You’re just passing in a string and returning it unchanged…

    What exactly does lvCode.SelectedItems(0).SubItems(1).Text contain?
  9. Replies
    12
    Views
    347

    Re: Moving PictureBox with Timer

    To answer your original question...


    Public Class Form13

    Private WithEvents tmr As New Timer With {.Interval = 100}
    Private increment As Integer = 9

    Private Sub...
  10. Replies
    12
    Views
    347

    Re: Moving PictureBox with Timer

    I'd probably do something like this if you just want to reverse the movement when you exceed the Y position boundaries...


    Public Class Form1

    Private WithEvents tmr As New Timer With...
  11. VS 2019 Re: Why NumericUpDown control allows more than one decimal separators?

    It’s easy handling paste…

    https://www.vbforums.com/showthread.php?506748-numericTextbox
  12. VS 2019 Re: Why NumericUpDown control allows more than one decimal separators?

    There are loads of numeric textboxes in the vb.net codebank
  13. VS 2019 Re: Why NumericUpDown control allows more than one decimal separators?

    NumericupDowns will only accept the correctly formatted input, but the value doesn’t change until the input is validated. At least that’s my experience with them.
  14. VS 2019 Re: Why NumericUpDown control allows more than one decimal separators?

    The editable part of a NumericUpDown control is a TextBox. As with a TextBox, you can handle KeyDown and restrict input
  15. Thread: Adding new font

    by .paul.
    Replies
    4
    Views
    171

    Re: Adding new font

    You can add to your windows fonts collection, but it’s not done in vb…

    https://www.barcodefaq.com/knowledge-base/ttf-install/
  16. Thread: Adding new font

    by .paul.
    Replies
    4
    Views
    171

    Re: Adding new font

    Dim pfc As New PrivateFontCollection()
    pfc.AddFontFile("C:\Path To\PALETX3.ttf")
    label1.Font = New Font(pfc.Families(0), 16, FontStyle.Regular)
  17. Thread: Adding new font

    by .paul.
    Replies
    4
    Views
    171

    Re: Adding new font

    You can add a font to your application, but not to the system fonts collection
  18. Replies
    22
    Views
    357

    VS 2019 Re: ARRAY summing issue

    Tax rebate??? :D
  19. Replies
    22
    Views
    357

    VS 2019 Re: ARRAY summing issue

    Remove the currency symbols from the textboxes and remove allowcurrencysymbol
  20. Replies
    22
    Views
    357

    VS 2019 Re: ARRAY summing issue

    I tried with both allowleadingsign and allowcurrencysymbol.
    I also couldn’t get it working with both. Without the currency symbols, it’ll work
  21. Replies
    22
    Views
    357

    VS 2019 Re: ARRAY summing issue

    If Decimal.TryParse(tb.Text, Globalization.NumberStyles.AllowLeadingSign Or Globalization.NumberStyles.Number, Globalization.CultureInfo.CurrentCulture, Val) Then
  22. Replies
    22
    Views
    357

    VS 2019 Re: ARRAY summing issue

    @jm…
  23. Replies
    22
    Views
    357

    VS 2019 Re: ARRAY summing issue

    Dim Sum As Decimal = 0
    Dim Val As Decimal = 0
    For Each tb As TextBox In IFTAdue
    If Decimal.TryParse(tb.Text, Globalization.NumberStyles.Number Or...
  24. Replies
    22
    Views
    357

    VS 2019 Re: ARRAY summing issue

    Dim Sum As Decimal = 0
    Dim Val As Decimal = 0
    For Each tb As TextBox In IFTAdue
    If Decimal.TryParse(tb.Text, Val) Then
    Sum += val
    End If
    Next
  25. Replies
    2
    Views
    170

    VS 2019 Re: StreamReader not reading entire file

    Instead of splitting 20 and odd times...


    calc = saves.Split("!")(0)
    cps = saves.Split("!")(1)

    pquantity = saves.Split("!")(2)

    ... etc
  26. Thread: Adding Value

    by .paul.
    Replies
    6
    Views
    364

    VS 2010 Re: Adding Value

    The problem is, you're incrementing both *_Wins variables, regardless of which team won...


    mintFiji_Wins += 1
    mintTonga_Wins += 1
  27. Replies
    7
    Views
    286

    Re: Remove Dynamic created labels

    Also, after…


    ' Delete
    For Each lbl in _labels
    Me.Controls.Remove(lbl)
    Next


    _labels.Clear
  28. Replies
    7
    Views
    286

    Re: Remove Dynamic created labels

    Assuming you’re using…

    Private _labels = new List(Of Label)

    _labels(0).Text =“whatever”
  29. Replies
    6
    Views
    275

    Re: troubles working with double

    Why not compare all of your values as strings?
  30. Thread: Wizard Control

    by .paul.
    Replies
    14
    Views
    21,653

    Re: Wizard Control

    @Niya… Like it. I wrote something similar, but that’s not online these days since the MSDN changes
  31. Replies
    11
    Views
    417

    Re: Wizard Example Using VB,net

    You just need some panels stacked up, then assuming you have Panel1, Panel2, Panel3. and you want to bring Panel2 to the front (at run time)…


    Panel2.BringToFront

    At design time, you can right...
  32. Re: Why PrintDocument Preview and Printing Result are Difrent ?

    You’re probably looking for the PageSetupDialog…

    http://www.scproject.biz/Using%20Dialogs.php#bm8

    And the PrintDialog…

    http://www.scproject.biz/Using%20Dialogs.php#bm9
  33. Replies
    11
    Views
    417

    Re: Wizard Example Using VB,net

    http://www.scproject.biz/transformations.php
  34. Replies
    11
    Views
    417

    Re: Wizard Example Using VB,net

    You can do that with a menustrip and several panels. Just put a drop down menu that brings panels to the front
  35. VS 2019 Re: [RESOLVED] CheckBox Column Issue (code working only once).

    CBool(Chk.Value)???

    Chk.Value is a Boolean
  36. VS 2019 Re: [RESOLVED] CheckBox Column Issue (code working only once).

    What if .Rows(e.RowIndex).Cells(4).Value = "hello"???
    What if .Rows(e.RowIndex).Cells(4).Value = ""???
  37. Replies
    17
    Views
    630

    Re: printPreviewDialog - BeginPrint event

    The way i did it in my original code, was to extend the DGV, which also encapsulated the printing. I have no idea what you're doing extending the PrintDocument.
  38. VS 2019 Re: CheckBox Column Issue (code working only once).

    Which event are you using?
  39. VS 2019 Re: CheckBox Column Issue (code working only once).

    Dim v as Decimal
    Decimal.TryParse(.Rows(e.RowIndex).Cells(index).Value?.ToString, Globalization.NumberStyles.AllowCurrencySymbol, Globalization.CultureInfo.CurrentCulture, v)
  40. VS 2019 Re: CheckBox Column Issue (code working only once).

    You need to be careful when retrieving values from the DGV. If you try to cast the value object as a decimal, it must contain a decimal and that’s not a certainty. This is a safer method than CDec....
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width