Results 1 to 16 of 16

Thread: using a Left;Top value includes .

  1. #1

    Thread Starter
    Hyperactive Member gaouser's Avatar
    Join Date
    Mar 2022
    Location
    Near the User32.dll
    Posts
    386

    using a Left;Top value includes .

    using a Left;Top value includes . or , (like 129,15)
    Last edited by gaouser; Apr 13th, 2022 at 11:30 AM.

  2. #2
    PowerPoster
    Join Date
    Nov 2017
    Posts
    3,140

    Re: using a Left;Top value includes . or ,

    Quote Originally Posted by gaouser View Post
    using a Left;Top value includes . or ,
    Do you need an ambulance?

  3. #3

    Thread Starter
    Hyperactive Member gaouser's Avatar
    Join Date
    Mar 2022
    Location
    Near the User32.dll
    Posts
    386

    Re: using a Left;Top value includes . or ,

    no (im laughing and i cant stop it)

  4. #4

    Thread Starter
    Hyperactive Member gaouser's Avatar
    Join Date
    Mar 2022
    Location
    Near the User32.dll
    Posts
    386

    Re: using a Left;Top value includes .

    (i need help because i cant develop my app

  5. #5
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,541

    Re: using a Left;Top value includes .

    Then you need to do a better job of articulating your problems. If you haven't seen it before, there's a link in my signature - the one about eels and hovercrafts - that will help you to form a better question than just:
    using a Left;Top value includes . or , (like 129,15)
    Because that just makes it look like you're having a stroke. OR maybe your fingers fell off while typing. Either way, it might be cause for concern. None of us have psychic abilities (that I know of) and none of us are sitting your lap (I hope not!) so we don't see what you're seeing. So... paint us a picture...

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  6. #6

    Thread Starter
    Hyperactive Member gaouser's Avatar
    Join Date
    Mar 2022
    Location
    Near the User32.dll
    Posts
    386

    Re: using a Left;Top value includes .


  7. #7
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    39,044

    Re: using a Left;Top value includes .

    Attachments added in Quick Reply are having issues, and have been for a time. My understanding is that you need to hit Go Advanced and add attachments there, for them to work.
    My usual boring signature: Nothing

  8. #8
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    39,044

    Re: using a Left;Top value includes .

    You don't set Left,Top at once. You set Left, then you set Top, or you set Position, but even if you set Position it isn't quite as simple as that. You can set it to a point.
    My usual boring signature: Nothing

  9. #9
    Fanatic Member Peter Porter's Avatar
    Join Date
    Jul 2013
    Location
    Germany
    Posts
    538

    Re: using a Left;Top value includes .

    Quote Originally Posted by gaouser View Post
    using a Left;Top value includes . or , (like 129,15)
    What'chu talkin' bout, Willis?

    Name:  gary.jpg
Views: 167
Size:  76.0 KB

  10. #10
    Fanatic Member Delaney's Avatar
    Join Date
    Nov 2019
    Location
    Paris, France
    Posts
    845

    Re: using a Left;Top value includes .

    Are you speaking of the separation of numbers or the decimal symbol ? For position the numbers are integer so no . or ,
    The best friend of any programmer is a search engine
    "Don't wish it was easier, wish you were better. Don't wish for less problems, wish for more skills. Don't wish for less challenges, wish for more wisdom" (J. Rohn)
    “They did not know it was impossible so they did it” (Mark Twain)

  11. #11

    Thread Starter
    Hyperactive Member gaouser's Avatar
    Join Date
    Mar 2022
    Location
    Near the User32.dll
    Posts
    386

    Re: using a Left;Top value includes .

    (i think im going back to vb6)

  12. #12

    Thread Starter
    Hyperactive Member gaouser's Avatar
    Join Date
    Mar 2022
    Location
    Near the User32.dll
    Posts
    386

    Re: using a Left;Top value includes .

    is there a way to use single or decimal values on positions ???

  13. #13
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,474

    Re: using a Left;Top value includes .

    Quote Originally Posted by gaouser View Post
    is there a way to use single or decimal values on positions ???
    So how do you expect to position something on a fraction of a pixel? Do you know what a pixel is and how displays work?

  14. #14
    Fanatic Member Delaney's Avatar
    Join Date
    Nov 2019
    Location
    Paris, France
    Posts
    845

    Re: using a Left;Top value includes .

    No he doesn't. I think all this is just a Big Joke and a Big Troll...
    The best friend of any programmer is a search engine
    "Don't wish it was easier, wish you were better. Don't wish for less problems, wish for more skills. Don't wish for less challenges, wish for more wisdom" (J. Rohn)
    “They did not know it was impossible so they did it” (Mark Twain)

  15. #15
    PowerPoster ChrisE's Avatar
    Join Date
    Jun 2017
    Location
    Frankfurt
    Posts
    3,048

    Re: using a Left;Top value includes .

    Quote Originally Posted by gaouser View Post
    using a Left;Top value includes . or , (like 129,15)
    is it this you want??
    Code:
    Public Class Form1
    
        Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
            ' group box trainee
            With Me.GrpBoxLvw
                .Left = CInt(10)
                .Top = CInt(10)
                .Width = Me.Width / CInt(2)
                .Height = CInt(Me.Height / CInt(2) - .Top)
            End With
    
            ' listview
            With ListView1
                .Left = CInt(15)
                .Top = CInt(15)
                .Width = GrpBoxLvw.Width - CInt(2) * .Left
                .Height = GrpBoxLvw.Height - CInt(2) * .Top
            End With
    
            ' buttons
            With Button1
                .Top = GrpBoxLvw.Top + GrpBoxLvw.Height + CInt(10)
            End With
            With Button2
                .Top = Button1.Top
                .Left = Button1.Left + Button1.Width + CInt(10)
            End With
            With Button3
                .Top = Button1.Top
                .Left = Button2.Left + Button2.Width + CInt(10)
            End With
        End Sub
    
        Private Sub Form1_Resize(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Resize
            ' group box trainee
            With Me.GrpBoxLvw
                .Left = CInt(15)
                .Top = CInt(10)
                .Width = Me.Width / CInt(2) '* .Left
                .Height = CInt(Me.Height / CInt(2) - .Top)
            End With
    
            ' listview
            With ListView1
                .Left = CInt(20)
                .Top = CInt(20)
                .Width = GrpBoxLvw.Width - CInt(2) * .Left
                .Height = GrpBoxLvw.Height - CInt(2) * .Top
            End With
    
            ' buttons
            With Button1
                .Top = GrpBoxLvw.Top + GrpBoxLvw.Height + CInt(10)
            End With
            With Button2
                .Top = Button1.Top
                .Left = Button1.Left + Button1.Width + CInt(10)
            End With
            With Button3
                .Top = Button1.Top
                .Left = Button2.Left + Button2.Width + CInt(10)
            End With
        End Sub
    
    End Class
    EDIT:
    just seen that you have some strange questions all over the place, so think first before you ask.
    to hunt a species to extinction is not logical !
    since 2010 the number of Tigers are rising again in 2016 - 3900 were counted. with Baby Callas it's 3901, my wife and I had 2-3 months the privilege of raising a Baby Tiger.

  16. #16
    Fanatic Member Peter Porter's Avatar
    Join Date
    Jul 2013
    Location
    Germany
    Posts
    538

    Re: using a Left;Top value includes .

    Quote Originally Posted by ChrisE View Post
    Just seen that you have some strange questions all over the place, so think first before you ask.
    Not gonna happen.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width