Search:

Type: Posts; User: .paul.

Page 1 of 13 1 2 3 4

Search: Search took 1.20 seconds.

  1. Replies
    3
    Views
    120

    Re: Create custom line in vb.net

    Where do you want to draw the line? On your form? If so, you just use the formís paint event. The eventargs has a graphics object. You use the graphics object drawline method...
  2. Re: [RESOLVED] Assiging Enter key to multiple buttons

    Looking at Delaney's code, you could use something like this...



    Public Class Form5

    Dim pairs As New Dictionary(Of TextBox, Button)

    Private Sub Form5_Load(ByVal sender As...
  3. Re: Assiging Enter key to multiple buttons

    button1.PerformClick

    or


    button4.PerformClick
  4. Thread: Jumping in

    by .paul.
    Replies
    26
    Views
    645

    Re: Jumping in

    I don't understand enough of the formatting used there. Ideally, you can identify which of the lines contains the coordinates, then draw a representation on your form. Was that what you're asking for?
  5. Thread: Jumping in

    by .paul.
    Replies
    26
    Views
    645

    Re: Jumping in

    Iíve never heard of Gerber... Can you post an example of the file structure?
  6. Replies
    2
    Views
    191

    VS 2019 Re: How to view 3D objects?

    For that kind of 3D capabilities, you need to look at DirectX. It's not simple. I'm sure there are other members on this forum who could go into more detail about that...
  7. VS 2013 Re: [RESOLVED] Used textbox.Refresh(). Why doesn't textbox update/refresh inside a

    @sh...

    Thereís a Refresh in the sub that changes the Text. Immediately after that sub is the DoEvents...

    Edit: As far as I know the Sleep was just an attempt to get the text changing visibly...
  8. VS 2013 Re: [RESOLVED] Used textbox.Refresh(). Why doesn't textbox update/refresh inside a

    Iím probably going to be criticised for this, but change...


    Thread.Sleep(200)

    To...


    Application.DoEvents
  9. Re: Measure the length of a string in pixels.

    You can also do columns in a TextBox, with String.Format - Control spacing

    https://docs.microsoft.com/en-us/dotnet/api/system.string.format?view=net-5.0
  10. Re: Measure the length of a string in pixels.

    Here's a ListBox with three columns...


    Imports System.Runtime.InteropServices

    Public Class Form1

    <DllImport("user32.dll")> _
    Private Shared Function SendMessage( _
    ByVal hWnd...
  11. Re: Measure the length of a string in pixels.

    Text files don't support columns, well not with good results. If you wanted to put them in a ListBox, I can show you columns. As for the textfile, you'd be better off with csv
  12. Re: Measure the length of a string in pixels.

    Try replacing a tab with four spaces
  13. Replies
    13
    Views
    416

    VS 2019 Re: How do I distribute my VB app to a friend ?

    The files your app. requires are those you create. If you create a proper Microsoft Installer application for your app. it'll check if the necessary framework is installed and install if necessary...
  14. Replies
    13
    Views
    416

    VS 2019 Re: How do I distribute my VB app to a friend ?

    You are correct. That is what i was referring to
  15. Replies
    13
    Views
    416

    VS 2019 Re: How do I distribute my VB app to a friend ?

    VB6??? You mean vbrun600.dll?
  16. Replies
    23
    Views
    646

    Re: No more drawing dots?

    Loop through the pixels. Set your PictureBox image last
  17. VS 2019 Re: VB6 Shape object. Drawing circles that can be treated as objects.

    Edit: for left, top, i mean x, y

    [Graphics].DrawEllipse takes a Pen argument and a Rectangle argument...
    [Graphics].FillEllipse takes a Color argument and a Rectangle argument...
  18. VS 2019 Re: VB6 Shape object. Drawing circles that can be treated as objects.

    The Rectangles, has left, top, width, height. Keep them in a List. You can choose which to draw when you loop through them in the Paint event. You can manipulate the x and y Properties of any...
  19. VS 2019 Re: VB6 Shape object. Drawing circles that can be treated as objects.

    An example... https://www.vbforums.com/showthread.php?881723-GDI-Abacus
  20. VS 2019 Re: VB6 Shape object. Drawing circles that can be treated as objects.

    When you say manipulate like an Object, what do you mean? You could just have a list(of Rectangle) declared at Form scope. You can change the x and y coordinates of any of them, then draw the entire...
  21. VS 2019 Re: VB6 Shape object. Drawing circles that can be treated as objects.

    There is a VB.Net Power Pack that contains a Circle object. But, it can be done with GDI+
  22. Replies
    23
    Views
    646

    Re: No more drawing dots?

    The line is better than the ellipse at these sizes...


    Private Sub Form5_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint
    ...
  23. Replies
    23
    Views
    646

    Re: No more drawing dots?

    There are a few ways to draw a point. Some more effective than others. VB.Net's GDI+ is a vast improvement over classic VB. Get over it :D
  24. Replies
    23
    Views
    646

    Re: No more drawing dots?

    You don't need dots... Just draw an ellipse with a rectangle 1 pixel wide and 1 pixel tall
  25. Replies
    8
    Views
    471

    VS 2010 Re: 2 diff blob format reading error

    Does this mean the blob field contains 2 images in one record?
  26. Replies
    17
    Views
    530

    VS 2017 Re: DataGridView Cell Specific Font Colors

    If somethingIsTrue Then
    ' True part
    Else
    ' False part
    End If
  27. VS 2019 Re: In Need of Help Checking if object is deleted

    To store and access variables from your gui thread and also your bgw thread you can use form level variables. Google variable scope to see the differences between form level and local variables...
  28. VS 2019 Re: In Need of Help Checking if object is deleted

    You could just use a Boolean variable, doesnít need to be My.Settings, which is generally used for persisting data
  29. VS 2015 Re: Connect/disconnect internet access

    Google 'VB.Net connect disconnect internet'
  30. VS 2019 Re: In Need of Help Checking if object is deleted

    Removing items from a collection while looping for, each through that collection doesn't work.
    Why would you want to report - $"Profile {profile} successfully deleted." if the object was not...
  31. VS 2019 Re: In Need of Help Checking if object is deleted

    Hold on... I got it😁
    Youíre deleting part of a collection that youíre looping through in a for each...
    Try a standard for loop, looping from the last item backwards to the first item. Then it will...
  32. VS 2019 Re: In Need of Help Checking if object is deleted

    You're probably right about the finally clause
  33. VS 2019 Re: In Need of Help Checking if object is deleted

    This might help...

    https://social.msdn.microsoft.com/Forums/ie/en-US/fcbb7b6c-ef88-4b6a-b62a-e5a02a9d7204/need-help-deleting-windows-7-user-profiles-in-visual-basic?forum=windowssecurity
  34. VS 2019 Re: In Need of Help Checking if object is deleted

    You're saying the first error ends the background thread?
  35. VS 2019 Re: In Need of Help Checking if object is deleted

    Dim resObjColl As ManagementObjectCollection
    Dim resObj As ManagementObject

    For Each profile In ListBoxProfiles.SelectedItems
    resObjColl = WmiConn.ExecWmiQuery($"SELECT * FROM...
  36. VS 2019 Re: In Need of Help Checking if object is deleted

    Use a Try, catch block inside your inner for each loop

    https://docs.microsoft.com/en-us/dotnet/visual-basic/language-reference/statements/try-catch-finally-statement
  37. Replies
    5
    Views
    307

    VS 2019 Re: Coloring Text after percentage calculation

    Dim C1, D1 as Decimal
    if Decimal.TryParse(Textbox11.text, C1) AndAlso Decimal.TryParse(Textbox1.text, D1) Then
    Dim percentage as Decimal = (D1-C1)/C1 * 100

    TextBox16.text =...
  38. Replies
    13
    Views
    517

    Re: Web Based Menu To Open Windows Applications

    You are probably looking at a webpage containing an image with an imagemap for your interface combined with clickonce applications. I donít have any experience with clickonce, so I canít advise you...
  39. Replies
    12
    Views
    408

    VS 2017 Re: Add New Entry To DataGridView

    Thatís not good OOP, adding data cross-forms that way. Ideally, youíd create a collection of arrays, which, as in my post #4 example, youíd add to the dgv when your Form2 is closed. If you want to...
  40. Replies
    12
    Views
    408

    VS 2017 Re: Add New Entry To DataGridView

    You want to keep your add form open and add multiple rows. before closing the dialog? I could rewrite my post #4 example for that scenario...
Results 1 to 40 of 500
Page 1 of 13 1 2 3 4



Click Here to Expand Forum to Full Width