Results 1 to 5 of 5

Thread: enable

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 1999
    Posts
    204
    how do you enable a windows with a sertine title can some one help me
    WHat would we do with out Microsoft.
    A lot more.

  2. #2
    Lively Member
    Join Date
    Oct 2000
    Location
    Scotland
    Posts
    96
    If you think what I think you mean....

    me.caption = "window title"

    or you can set the caption in the property box at the LHS.

    (me is used instead of the form name - aids reuse!)

    Hope it helps

    H.

  3. #3
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    If you are talking windows within your own app.
    If you mean, you have 2 forms and you want to to
    form form1 to form 2.

    Form1.visisble = false
    Form2.visible = true

    Forms also have an enabled property
    Form1.enabled = true
    or
    Form1.enabled = false

    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jan 1999
    Posts
    204
    no i mean like a windows window you know what i mean like a dir windows or somthing like that explore or somtthing
    WHat would we do with out Microsoft.
    A lot more.

  5. #5
    Guest
    Use the FindWindow and SetForegroundWindow api functions.

    Code:
    Declare Function FindWindow Lib "user32" _
    Alias "FindWindowA" (ByVal lpClassName As String, ByVal _
    lpWindowName As String) As Long
    
    Public Declare Function SetForegroundWindow Lib "user32" _
    (ByVal hwnd As Long) As Long
    
    Private Sub Command1_Click()
         hWin = FindWindow(vbNullString, "Folder caption")
         If hWin <> 0 Then
              SetForegroundWindow hWin
         End If
    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