Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 3.20 seconds.

  1. Re: [RESOLVED] How to find control by tag property

    Actually, you can change that…

    Dim Thiscontrol As ComboBox = ‘etc…
  2. Re: How to find control by tag property

    Dim Thiscontrol As Control = MyPanel.Controls.OfType(Of ComboBox).Where(Function(cb) cb.Tag = yourTagVariable).First
  3. Re: How to find control by tag property

    What exactly does the tag contain? Why mention the name of the textbox if you want to find by tag?
  4. Re: How to find control by tag property

    Thiscontrol As Control =MyPanel.Controls("TXTbox_CaseID")
  5. Re: vb.ner remove first char from text

    Try…



    if e.keycode = keys.A then
    e.Handled = True
    My.Computer.Keyboard.SendKeys("B")
    end if
  6. Replies
    37
    Views
    18,201

    Re: [RESOLVED] Remove trailing NewLines from string

    You wasted two pence there. That doesn't remove trailing newline characters
  7. Re: Would like to convert Few VBA-Excel subroutines to VB.Net19

    The DGV is ideal for displaying data. The ListView is not as versatile. You’re barking up the wrong tree…
  8. Replies
    37
    Views
    18,201

    Re: Remove trailing NewLines from string

    @jm… I know this is old but…

    myString = myString.TrimEnd(vbCr, vbLf)

    :D:D:D
  9. VS 2015 Re: working with multiple worksheets in an EXCEL workbook at one time

    I agree. There’s no way to change formatting on all of your sheets simultaneously in one line. OptionBase’s for loop with an array of sheet names is the best option…
  10. VS 2019 Re: Prepending text to multiple lines in i .txt file (vb.net 2019)

    FYI the EndsWith function is only for querying whether a string ends with a specified string. There’s also a StartsWith function for querying the start of the string.
  11. Re: VB.net + ASP.net dropdownlist selection the first item per default

    https://www.vbforums.com/forumdisplay.php?31-ASP-NET-And-ASP-NET-Core
  12. VS 2019 Re: Prepending text to multiple lines in i .txt file (vb.net 2019)

    Dim fcontent As String() = IO.File.ReadAllLines(filename)
    Dim counter As Integer = 1

    For x As Integer = 0 to fcontent.length - 1 Step 2
    fcontent(x) = "whatever " & counter.ToString &...
  13. Thread: position cursor

    by .paul.
    Replies
    4
    Views
    230

    VS 2010 Re: position cursor

    If it locks up your computer, it could be some kind of recursion happening. Where are you using that code?
  14. Replies
    8
    Views
    219

    VS 2010 Re: [RESOLVED] there is no end if why

    I’d agree with Shaggy’s last coding suggestion…
    Keep your code as concise and simple as you can. That’s my best advice.
  15. Replies
    11
    Views
    306

    Re: Using an sql statement in my datagridview

    A few questions about the database reveal whether it’s going to be OLEDB, SQLDB, or even MySQLDB. But as you say, all of the methods are the same, but I might’ve saved us some work later
  16. Replies
    11
    Views
    306

    Re: Using an sql statement in my datagridview

    https://stackoverflow.com/questions/10844358/read-from-database-and-fill-datatable
  17. Replies
    11
    Views
    306

    Re: Using an sql statement in my datagridview

    You need to post your code that runs the query if you have any. If you don’t, any advice depends on the type of database. It’s just a case of filling a DataTable, then binding to your dgv. Slightly...
  18. Replies
    11
    Views
    306

    Re: Using an sql statement in my datagridview

    What type of database is it?
  19. Replies
    8
    Views
    315

    Re: Handler for multiple Comboboxes in VB2010

    Simples…


    AddHandler c.MouseWheel, AddressOf CmbDienst_MouseWheel
  20. Replies
    8
    Views
    317

    Re: Display all the class name / objects

    Reflection is what you're looking for, but i don't know how you'd differentiate which folder your classes are in...
  21. Re: [RESOLVED] Can Someone help me to correct the following code for SelectedItems an

    Private Sub CmdAddFruits_Click(sender As Object, e As EventArgs) Handles CmdAddFruits.Click

    For i As Integer = ListView1.Items.Count - 1 to 0 Step -1
    If Not ListView1.Items(i).Checked...
  22. Re: [RESOLVED] Can Someone help me to correct the following code for SelectedItems an

    I still don’t know why you didn’t just loop through your ListView items and simply remove those that aren’t checked???
  23. Replies
    13
    Views
    470

    Re: How to hide cursor?

    You use one event to handle the mousemove event of multiple controls...
  24. Re: Can Someone help me to correct the following code for SelectedItems and its Subit

    Private Sub CmdAddFruits_Click(sender As Object, e As EventArgs) Handles CmdAddFruits.Click

    Dim items as New List(of ListViewItem)

    For selItemsCount As Integer = 0 To...
  25. Re: Can Someone help me to correct the following code for SelectedItems and its Subit

    see post #3

    If you want to clear your listview, you'll have to keep track of which rows to delete, then delete them AFTER querying your listview items...
  26. Replies
    1
    Views
    178

    Re: Extract value from ListBox to TextBox

    You can use the SelectedIndexChanged event, like this...


    Private Sub WijnListBox_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles...
  27. Re: Can Someone help me to correct the following code for SelectedItems and its Subit

    ListView1.Items.Add(New ListViewItem(ListView1.Items(selItemsCount).SubItems().Cast(Of ListViewItem.ListViewSubItem).Select(Function(s) s.Text).ToArray))
  28. Re: Can Someone help me to correct the following code for SelectedItems and its Subit

    ListView1.Items.Add(ListView1.Items(selItemsCount).SubItems().Cast(Of ListViewItem.ListViewSubItem).Select(Function(s) s.Text).ToArray)
  29. Re: Can Someone help me to correct the following code for SelectedItems and its Subit

    ListView1.Items.Clear()

    You’re removing your items, and then querying your items. As you have no items, you’re getting no results
  30. Re: Can Someone help me to correct the following code for SelectedItems and its Subit

    Private Sub CmdAddFruits_Click(sender As Object, e As EventArgs) Handles CmdAddFruits.Click

    For selItemsCount As Integer = 0 To ListView1.Items.Count - 1
    If...
  31. Re: In need of help with drawing gauge controls with GDI+ vb.net 2017

    https://www.vbforums.com/showthread.php?644478-GDI-gauge
  32. Replies
    10
    Views
    459

    Re: Payroll System Help

    TxtTotal.Text… a TextBox’s Text property is not a number. Doesn’t matter if it looks like a number, it is not a number
  33. VS 2019 Re: Just a visual thing (names in Properties Window(Box))

    Here’s an example of expandable properties…

    www.scProject.biz/household_budgets.php
  34. Replies
    14
    Views
    418

    Re: Oddity with mouseleave event....

    That's what i meant... check whether your panel’s bounds contains the mousepointer when the mouse_leave event fires

    If the mouse really has left the panel, and not just entered the bounds of a...
  35. Replies
    14
    Views
    418

    Re: Oddity with mouseleave event....

    I wrote an expanding/collapsing panel that had the same problem you were having. You just need to check whether your panel’s bounds contains the mousepointer when the mouse_leave event fires…
  36. Replies
    2
    Views
    214

    VS 2010 Re: Drawing an Border to PrintDocument

    Remove this part...


    If Not Me.PrintDocument1.PrintController.IsPreview Then
    Me.PrintDocument1.OriginAtMargins = True
    End If
  37. Replies
    19
    Views
    431

    VS 2017 Re: Pull data from DataGridView on open form

    Why does it have to be global if you’re just using it in your main form?
  38. Replies
    19
    Views
    431

    VS 2017 Re: Pull data from DataGridView on open form

    In my example frm is AN instance of frmSchedule. FrmSchedule in the last code snippet, refers to the default instance…
  39. Replies
    19
    Views
    431

    VS 2017 Re: Pull data from DataGridView on open form

    Where are you trying to display the MsgBox? You could make frm a class level variable in your main form, then use the same variable both when instanciating frmScedule, and when pulling values from...
  40. Replies
    19
    Views
    431

    VS 2017 Re: Pull data from DataGridView on open form

    Dim frm as new frmSchedule
    frm.Show


    frm.dgv.Rows.Count

    Is not equal to…


    frmSchedule.dgv.Rows.Count
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width