Results 1 to 2 of 2

Thread: CENTER in the form caption

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Posts
    208

    Cool

    1) How can I CENTER a text in a form caption ?
    2) How can I wait for my form will be completly loaded
    before start to do anything ??
    -------------------Already asked---------------------
    3) How can I find the URL of a web site whit a INET ctrl
    Ex.: procretion.cjb.net = procreation.citeglobe.com
    4) What is the state deffinition in a INET control
    Ex.: 11= Error
    8 = Connected ...

  2. #2
    Lively Member
    Join Date
    Aug 2000
    Posts
    125
    VB Code:
    1. Private Sub Form_Activate()
    2.     Dim startwdth!, Msg$
    3.     Msg = "Visual Basic"
    4.     startwdth = TextWidth(Msg) / 2
    5.     Do Until TextWidth(Msg) >= ScaleWidth / 2 - startwdth
    6.         Msg = " " & Msg
    7.     Loop
    8.     Form1.Caption = Msg
    9. End Sub

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