Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 2.67 seconds.

  1. Re: need help for multi display picturebox when selecting datagridview in vb.net

    Private Sub PopulateDataGridView()
    Try
    Dim dt = New DataTable()

    Dim query = "select ITM,ITC,QOH,PRS,FILENAME1,FILENAME2,FILENAME3,FILENAME4 FROM ITEM"

    Using...
  2. Thread: Bug Taste

    by .paul.
    Replies
    7
    Views
    243

    VS 2015 Re: Bug Taste

    It's posted as a dummy bug, but what it could be is malicious. Why is it allowed here for discussion in the forum?
  3. Re: Why is my PictureBox image not found ?

    Are you sure PictureBox1 is a child of your TLP?
  4. Re: Treeview control Microsoft example performing oddly upon node click...

    Don’t use the TreeView1_MouseClick event. Use the TreeView1_AfterSelect event instead
  5. Re: Filter Lines of Text File based on Value AND Date

    Try this. I found 13 distinct badges over 3 different dates...



    Dim lines() As String = IO.File.ReadAllLines("C:\Users\Paul\Desktop\esd - Copy.txt")
    Dim distinctBadges() As String =...
  6. Re: Filter Lines of Text File based on Value AND Date

    Can you give an example of the text file? Do you want to take just the latest last line for each badge number, or the last line for each date for each badge number?

    Edit... I see the multiple...
  7. Re: Filter Lines of Text File based on Value AND Date

    Try this. Tested now...


    Dim lines() As String = IO.File.ReadAllLines(path)
    Dim distinctBadges() As String = lines.Select(Function(l) l.Substring(0, 13)).Distinct.ToArray

    Dim lastLines As New...
  8. Re: [RESOLVED] visual studio 2017 trying to delete rows by loop getting an error

    For the benefit of anyone wondering how to resolve this issue; you have to loop backwards through your rows, or removing rows messes up your subsequent row indices...
  9. Thread: Bug Taste

    by .paul.
    Replies
    7
    Views
    243

    VS 2015 Re: Bug Taste

    I was thinking it’s in the wrong forum too?
  10. Thread: Bug Taste

    by .paul.
    Replies
    7
    Views
    243

    VS 2015 Re: Bug Taste

    If this is allowed on this site, the vb general forum isn’t the place to post it. You should post it in the codebank…
  11. Replies
    3
    Views
    856

    VS 2017 Re: Simple Calculator

    I’m not at my workstation st the moment, so I haven’t checked your code, but have a look at my calculator…

    www.scProject.biz/calc2.php
  12. VS 2017 Re: Connection between VB.net and access database

    But check for misspelled field names too
  13. VS 2017 Re: Connection between VB.net and access database

    You need to inspect this line..

    stroledb = "SELECT ID, Letter_Number, Letter_Date, Letter_Subject, Letter_PDF_File, Letter_Reference, Letter_Attachment, Letter_Reply_Requirement, Replied_Letter,...
  14. Re: Filter Lines of Text File based on Value AND Date

    Change line 2 to…


    Dim distinctBadges() As String = lines.Select(Function(l) l.SubString(0, 13)).Distinct.ToArray

    Then you can delete the next line…


    distinctBadges =...
  15. Re: Can someone help answer this 4 questions? I'm using MS Visual Basic 2010

    You can lead a horse to water... :D
  16. Re: Filter Lines of Text File based on Value AND Date

    Try this…


    Dim lines() As String = IO.File.ReadAllLines(path)
    Dim distinctBadges() As String = lines.Distinct(Function(l) l.SubString(0, 13)).ToArray
    distinctBadges =...
  17. Re: Filter Lines of Text File based on Value AND Date

    So you want to extract the last line for each distinct badge number?
  18. Re: Can someone help answer this 4 questions? I'm using MS Visual Basic 2010

    1.


    Dim intSum As Integer = 0
    For intCounter as integer = 5 to 500
    If intCounter Mod 5 = 0 and intCounter Mod 6 = 0 Then intSum += intCounter
    Next

    2.
  19. Replies
    5
    Views
    257

    Re: Dictionary, more than one item

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

    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...
  21. 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…
  22. 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...
  23. 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
  24. 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...
  25. Replies
    3
    Views
    160

    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
  26. Replies
    3
    Views
    160

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

    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...
  28. Replies
    12
    Views
    399

    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...
  29. 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
  30. VS 2019 Re: Why NumericUpDown control allows more than one decimal separators?

    There are loads of numeric textboxes in the vb.net codebank
  31. 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.
  32. 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
  33. Thread: Adding new font

    by .paul.
    Replies
    4
    Views
    201

    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/
  34. Thread: Adding new font

    by .paul.
    Replies
    4
    Views
    201

    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)
  35. Thread: Adding new font

    by .paul.
    Replies
    4
    Views
    201

    Re: Adding new font

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

    VS 2019 Re: ARRAY summing issue

    Tax rebate??? :D
  37. Replies
    22
    Views
    417

    VS 2019 Re: ARRAY summing issue

    Remove the currency symbols from the textboxes and remove allowcurrencysymbol
  38. Replies
    22
    Views
    417

    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
  39. Replies
    22
    Views
    417

    VS 2019 Re: ARRAY summing issue

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

    VS 2019 Re: ARRAY summing issue

    @jm…
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width