centering

Discussion in 'Archives' started by nipplesandlicks, May 12, 2007.

centering
  1. Unread #1 - May 12, 2007 at 3:50 PM
  2. nipplesandlicks
    Referrals:
    0

    nipplesandlicks Guest

    centering

    i am trying to center a pic that pops up on start up with my client and here is my code and know????

    Private Sub Command1_Click()

    End Sub

    Private Sub timer1_timer()

    Form1.Show
    Unload Me

    End Sub
     
  3. Unread #2 - May 12, 2007 at 5:14 PM
  4. WoW Sucks
    Joined:
    Jan 21, 2007
    Posts:
    3,708
    Referrals:
    3
    Sythe Gold:
    0

    WoW Sucks Global Moderator
    Banned

    centering

    Just make the picture smaller, center it, then drag it out to the right size?
     
  5. Unread #3 - May 12, 2007 at 6:54 PM
  6. timk777
    Joined:
    Feb 19, 2007
    Posts:
    156
    Referrals:
    0
    Sythe Gold:
    0

    timk777 Active Member

    centering

    Do you mean like a splash screen?
    If so, make a form with the picture on it. Then hold ctrl and hit P. Go down to properties select that. Then on the right side theres a dropdown box titled 'Startup Form'. Select the form with the picture on it. If thats not what you wanted, post back and I'll help.
     
  7. Unread #4 - May 13, 2007 at 3:38 AM
  8. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    centering

    Code:
    Private Sub Form_Load()
        Image1.Left = (Me.Width / 2) - (Image1.Width / 2)
        Image1.Top = (Me.Height / 2) - (Image1.Height / 2)
    End Sub
     
  9. Unread #5 - May 14, 2007 at 6:16 AM
  10. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    centering

    Set the image's stretch property to true (Not picturebox, Image control FTW) and then set the form to borderless. Use a timer for anything else you may be wanting.
     
< selling some guys | Buy Account 100+ >

Users viewing this thread
1 guest


 
 
Adblock breaks this site