Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 3.46 seconds.

  1. Replies
    3
    Views
    102

    VS 2019 Re: Separateing strings

    Dim newString as String = oldString.SubString(0, oldString.indexOf(“-“))
  2. Replies
    2
    Views
    145

    VS 2019 Re: ContextMenuStrip stay displayed

    Are you opening a new or existing text file? You can create or edit text files in code without opening a notepad window and pasting...
  3. Replies
    18
    Views
    401

    VS 2019 Re: Create a List for multiple entries

    Yes. That sounds like a better plan. A Dictionary(of String, List(of String))
  4. Replies
    18
    Views
    401

    VS 2019 Re: Create a List for multiple entries

    But the OP wants a List(of String) as the key...
  5. Replies
    4
    Views
    151

    VS 2019 Re: DrawToBitmap not right

    Working any better?
  6. Replies
    4
    Views
    151

    VS 2019 Re: DrawToBitmap not right

    This is also wrong...

    Control.DrawToBitmap(Screenshot, New Rectangle(20, ListBox1.Top, 1100, 800))

    Left and top should both be zero
  7. Replies
    4
    Views
    151

    VS 2019 Re: DrawToBitmap not right

    Try...

    Dim Screenshot As New Bitmap(1100, 800)
  8. Replies
    18
    Views
    401

    VS 2019 Re: Create a List for multiple entries

    Try this...



    Dim values As New Dictionary(Of List(Of String), List(Of String))
    Dim keywords() As String = {"beautiful", "next"}
    Dim lines() As String = {"this is a beautiful filename.doc", _...
  9. Re: .NET visual form designer, only 50 lines of code!!!

    This is not a question. The place for your code example is the C# codebank, not the vbgeneral forum...
  10. Replies
    2
    Views
    127

    VS 2013 Re: Get activate application name and details

    For the WebBrowser current tab url...

    https://stackoverflow.com/questions/37449378/get-current-url-from-active-tab-chrome-vb-net
  11. Re: Getting the selected item in a ListView control

    I'd use Details View. If you just want one column, don't add SubItems...
  12. Replies
    13
    Views
    339

    Re: Editing a text file

    You can read from My.Resources at runtime, but you can't write to it. For filesystem files, i'd use IO.File.ReadAllLines and IO.File.WriteAllLines
  13. Re: Get Pixel from window and click if that pixel (or in range of that pixels) exists

    As Shaggy Hiker told you... It's unlikely you'll find a block of rgb(55, 80, 120) colored pixels. Actual colors are vague.
  14. Re: Get Pixel from window and click if that pixel (or in range of that pixels) exists

    So what's the problem???
  15. Re: Making 'cut' menu items for specific places in a text box - Windows Form Applicat

    All 3 of the Button_Click handlers i posted there, just use the 4 character spaces " "
    How do you mean by asking how many characters across? If, for example, you have "123456" do you mean a...
  16. Re: How do I code pointers in Visual Basic? (Relating to Cheat Engine) I'm so confuse

    Write up a tutorial article in the codebank...
    probably be interesting to a lot of people, but the vbgeneral forum isn’t the place for it.
  17. Re: Making 'cut' menu items for specific places in a text box - Windows Form Applicat

    Try this...

    181301


    Public Class Form1

    Private leftParts As New List(Of String)
    Private middleParts As New List(Of String)
    Private rightParts As New List(Of String)
  18. Replies
    8
    Views
    240

    VS 2012 Re: Best way to multi page report on VB?

    I can’t see your attachment. There’s an known error on the site. I’m not the best person to ask with the way you’re set up with stored procedures and design time data components. When I use ADO.Net,...
  19. Replies
    8
    Views
    240

    VS 2012 Re: Best way to multi page report on VB?

    Your report viewer has a datasource... you just need to ensure you provide the right table. How are you getting your initial table?
  20. Replies
    8
    Views
    240

    VS 2012 Re: Best way to multi page report on VB?

    You could use your original DataTable, along with a combobox for filtering. So you'd just need the one DGV. You can hide any columns you don't want in your reports...
  21. VS 2013 Re: Detect keyboard keydown event anywhere on screen, inside or outside project

    Look into Hooking inputs
  22. Replies
    5
    Views
    206

    VS 2019 Re: display label relative to textbox

    You should note, when setting label locations you can use...

    TxtSearch.Left
    TxtSearch.Right
    TxtSearch.Top
    TxtSearch.Bottom
  23. Replies
    5
    Views
    206

    VS 2019 Re: display label relative to textbox

    It was just an example. 😁
  24. Replies
    9
    Views
    409

    VS 2019 Re: Apply text to PictureBoxes

    https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/types/casting-and-type-conversions
  25. Replies
    9
    Views
    409

    VS 2019 Re: Apply text to PictureBoxes

    As PBox Is already a PictureBox, there is no need for the DirectCast in the AddHandler line. You can just use...

    PBox.Paint, as you did PBox.Click for the click Addhandler line
  26. Replies
    5
    Views
    206

    VS 2019 Re: display label relative to textbox

    Label1.Location = New Point(TextBox1.Right - 10, TextBox1.Bittom + 6)

    Use the code in the Form_Resize event handler
  27. Replies
    9
    Views
    409

    VS 2019 Re: Apply text to PictureBoxes

    It's drawing on the form - behind the controls
  28. Replies
    9
    Views
    409

    VS 2019 Re: Apply text to PictureBoxes

    Handles Me.Paint ???


    For Each Control As Control In Me.Controls 'Loop through all controls in Form1
    If TypeOf Control Is GroupBox Then 'If control is GroupBox
    For Each ChildControl...
  29. Replies
    12
    Views
    649

    VS 2017 Re: Details shown always first

    As far as I’ve seen, Shaggy has answered your question.., your SQL query was wrong. Those if statements do nothing. Both contain the same code...
  30. Replies
    9
    Views
    409

    VS 2019 Re: Apply text to PictureBoxes

    You need to write the text using e.graphics in the picturebox’ paint event, if you really are drawing text on a PictureBox. Looks to me that you’re using textboxes above pictureboxes
  31. VS 2019 Re: Original DataTable columns after LINQ query

    Here's a custom extension to create a datatable from an anonymous query. I added sort order...


    Dim query2 = From r As DataRow In dtLessons.AsEnumerable
    Group By id = r.Field(Of...
  32. Replies
    7
    Views
    335

    Re: Print Dialog box remove copies.

    I don't know how you can disable the copies textbox, but i do know you could make it work as your user expects it to work. That's what i'd do...
  33. Replies
    5
    Views
    271

    Re: Fill a Data Table

    Have a look at the LINQ .Skip and .Take methods, to see how you can take a subset of 10 values from your array
  34. Replies
    7
    Views
    335

    Re: Print Dialog box remove copies.

    Changing the copies textbox doesn't change anything about your print run. It won't print multiple pages. It's a setting for you to make use of yourself...
  35. Replies
    10
    Views
    416

    Re: Why is mouse up ignored ?

    Using beep, is a poor choice for debugging. Use your immediate window - Debug.Print(“a unique useful identifying message”)
  36. Re: How to remove internet marks on a project item

    This is like, so, the VB.Net forum... There's a specialized forum for c# :D
  37. Re: Arrays- Sorting and initialization

    No need for redimensioning with Lists. You declare a new List, then it’s ready to use. Note the ‘New’ list
  38. Replies
    24
    Views
    597

    VS 2013 Re: Issue with registry editing

    Well there is one way... But that way is worth $$$ :D
  39. Re: Making 'cut' menu items for specific places in a text box - Windows Form Applicat

    Ok, so you want to take, for example, the left part of all lines. What do you plan to do with those parts? Then, do you want to take the middle parts, or right parts, at different times? So for...
  40. Replies
    24
    Views
    597

    VS 2013 Re: Issue with registry editing

    :D:D:D:thumb:
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width