.CTL

CTL File

Visual Basic UserControl Object File
Ask a question
QUICK ANSWER

A CTL file is a plain-text source code file created by Microsoft Visual Basic 6 to define a reusable ActiveX control (UserControl). Open it with the VB6 IDE (vb6.exe) as part of a project, or with any text editor to read the code. The format is a legacy from 1998 - VB.NET replaced it with .vb files.

Developer: Microsoft Category: Developer Files MIME: text/plain
OPENS ON Windows
Related: .DO · .MD · .HEX · .XSD

On this page

19k+ extensions indexed
Last reviewed Sep 8, 2026

Not sure what your file is?

Drop any file into our identifier - we read just the first bytes to name the format.

Identify a file

What is the CTL file format?

.ctl is the source file for a VB6 UserControl - a reusable ActiveX control component authored in Visual Basic 6.0, released in October 1998. Each .ctl file defines one UserControl class: its Visual Basic source code, property declarations, event handlers, and an Attribute block that records the control's name, class GUID, and version information.

The file is plain text, opening with the line VERSION 5.00, which identifies it as a VB5/VB6 format. Following the version header are Attribute declarations, then BeginProperty/EndProperty blocks for design-time property values, and finally the event procedures and subroutines written in Visual Basic syntax. Binary form-layout resources - embedded bitmaps and icon data - are stored separately in a paired .CTX file rather than within the .ctl itself.

The VB6 IDE (vb6.exe) is the intended authoring environment. .ctl files belong to a .VBP project file, which also references .frm (forms), .bas (standard modules), and .cls (class modules). Any plain text editor can open a .ctl file for reading, but only the VB6 IDE can compile and test the control.

Visual Basic 6.0 reached end-of-life in 2008, yet its runtime ships with Windows 10 and Windows 11, keeping legacy VB6 controls functional. In modern .NET development, UserControls are defined as .vb source files inside Windows Forms or WPF projects.

Security & safety

RISK: LOW

CTL files are plain text source code. They cannot execute directly - a VB6 IDE must compile them. Treat like any source code: review before including in a project.

Format details

in a nutshell
FULL NAMEVisual Basic UserControl Object Fileaka VB UserControl File, ActiveX Control Source File
DEVELOPERMicrosoftsince 1998 (Visual Basic 5/6)
MIME TYPEtext/plain
TYPEText-based source code (VB6 UserControl definition)
This extension is also used by…
  • dBASE IV Aldus Setup Control File - Legacy dBASE IV used .ctl for database setup/control data files; extremely rare today.

Programs that open CTL files

Windows4 apps
Microsoft Visual Basic 6.0 IDE Paid Open VBP project file; CTL appears in Project Explorer. Or drag CTL onto an open project.
Microsoft Visual Studio (VB6 component) Paid Visual Studio 6.0 ships VB6; later VS versions do NOT open CTL natively. Use VB6 IDE.
Notepad / any text editor Free Open in any text editor to read VB6 source code (binary sections will appear garbled).
Visual Studio Code Open-source Open as text; install 'VB6' syntax extension for highlighting.

Technical details

deep spec
EncodingPlain text, ASCII (ANSI code page on legacy Windows systems)
First line signatureVERSION 5.00 (VB5/VB6 UserControl header)
Attribute blockDeclares control name, class GUID, and versioning metadata
Property sectionsBeginProperty / EndProperty blocks holding design-time property values
Binary resourcesStored in a paired .CTX file - not embedded in the .ctl text file
Typical file size1 KB - 500 KB
Authoring IDEVisual Basic 6.0 IDE (vb6.exe)
Project associationReferenced by a .VBP project file alongside .frm (forms), .bas (modules), .cls (classes)
Runtime supportVB6 runtime included with Windows 10 and Windows 11
IDE end-of-lifeVisual Basic 6.0 IDE reached EOL in 2008; runtime support continues on modern Windows
.NET successorVB.NET UserControl in .vb files within Windows Forms or WPF projects
Control outputCompiles to an ActiveX OCX component usable by VB6, VBA, and Internet Explorer
Released1998 (Visual Basic 5/6)
Latest versionVB6 (final release 1998); format unchanged, VB6 IDE still runs on Windows 10/11

CTL conversions

Community Q&A

asked by users
Ask a quick question
Get help from people who work with CTL files. Be specific - include your system and software version.
No account needed · answers usually within a day

No questions yet - be the first to ask about CTL files.

Frequently asked questions

What is a CTL file?
A Visual Basic 6 UserControl source file - plain text containing the VB6 source code and property definitions for a reusable ActiveX control component.
How do I open a CTL file?
With the VB6 IDE (vb6.exe) as part of a VB6 project, or with any text editor to read the source code.
Can Visual Studio 2019/2022 open CTL files?
Not natively as a VB6 project. Modern Visual Studio supports VB.NET, not VB6. Use the VB6 IDE or a text editor.
Is VB6 still supported on Windows 11?
The VB6 runtime is supported on Windows 10 and 11 (Microsoft committed to this through the Windows 11 lifecycle). The VB6 IDE itself is not officially supported but still runs.
What replaced CTL files?
In VB.NET/Windows Forms, UserControls are stored as .vb files (code) + .Designer.vb (generated layout) inside a .NET solution.

References

1Microsoft - Visual Basic 6.0 documentation (archived)learn.microsoft.com
2GitHub - VB6 CTL file example (badcodes/vb6)github.com

Keep exploring

across the database

Top extensions this week

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.PARTPartial Download File
4.DATProgram Data File (generic)
5.EXEWindows Executable (Portable Executable)
6.BINCD/DVD Disc Image (BIN/CUE)
7.NOMEDIAAndroid No-Media Marker File
8.MDMarkdown Document
9.TMPTemporary File
10.RPMSGRestricted Permission Message

Related extensions

.DOStata Do-File
.MDMarkdown Document
.HEXIntel HEX File
.XSDXML Schema Definition
.MAPSource Map (JavaScript / CSS)
.CONFIGConfiguration File

Free file tools

An in-browser file identifier and image converter - everything runs on your device.

Open the toolbox

Browse file extensions A-Z