Link to home
Create AccountLog in
Visual Basic Classic

Visual Basic Classic

--

Questions

--

Followers

Top Experts

Avatar of isnoend2001
isnoend2001🇺🇸

close windows explorer window from vb
How can i close a windows explorer window from vb

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of Mike TomlinsonMike Tomlinson🇺🇸

What version VB?..

Avatar of isnoend2001isnoend2001🇺🇸

ASKER

vb6 sp6

Project -> References -> "Microsoft Internet Controls"

Private Sub Command1_Click()
    Dim sw As New ShellWindows
    Dim s As InternetExplorer
    For Each s In sw
        If (s.LocationName = "Control Panel") Then
            s.Quit
        End If
    Next
End Sub

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


ASKER CERTIFIED SOLUTION
Avatar of ema20ema20🇵🇭

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of isnoend2001isnoend2001🇺🇸

ASKER

zzzzzooc: not internet explorer, windows explorer

ema20:
I will check your solutation in the AM, gotta sleep

>>not internet explorer, windows explorer
They are both shell-windows.

Avatar of isnoend2001isnoend2001🇺🇸

ASKER

thanks that works

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.

Visual Basic Classic

Visual Basic Classic

--

Questions

--

Followers

Top Experts

Visual Basic is Microsoft’s event-driven programming language and integrated development environment (IDE) for its Component Object Model (COM) programming model. It is relatively easy to learn and use because of its graphical development features and BASIC heritage. It has been replaced with VB.NET, and is very similar to VBA (Visual Basic for Applications), the programming language for the Microsoft Office product line.