Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6831491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:44:37+00:00 2026-05-26T22:44:37+00:00

I have a large VB6 app with many .frm files. I want to basically

  • 0

I have a large VB6 app with many .frm files. I want to basically ‘gut’ the code from all the forms and just leave the GUI design.

What would be the best way to perform this task quickly?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T22:44:37+00:00Added an answer on May 26, 2026 at 10:44 pm

    If you really have enough forms that you can’t just open each form and Ctrl + A, Del, Ctrl + S Then you can always write a quick VB program to do it. Visual Basic puts the information needed to display the form at the beginning of the file followed by the code. Copy each .frm file to a backup, open it and write everything up to the last Attribute … line to a new file with the original file name. Pretty dirty, but should only take about 15-20 minutes to write and leaves you a backup in case of error.

    Sample .frm content

    VERSION 5.00
    Begin VB.Form Form1
        Caption = "Form1"
        ClientHeight = 3195
        ClientLeft = 60
        ClientTop = 345
        ClientWidth = 4680
        LinkTopic = "Form1"
        ScaleHeight = 3195
        ScaleWidth = 4680
        StartUpPosition = 3 'Windows Default
        Begin VB.CommandButton Command1
            Caption = "Command1"
            Height = 495
            Left = 1800
            TabIndex = 1
            Top = 1320
            Width = 1215
        End
        Begin VB.TextBox Text1
            Height = 495
            Left = 360
            TabIndex = 0
            Text = "Text1"
            Top = 240
            Width = 1215
        End
    End
    
    Attribute VB_Name = "Form1"
    Attribute VB_GlobalNameSpace = False
    Attribute VB_Creatable = False
    Attribute VB_PredeclaredId = True
    Attribute VB_Exposed = False
    
    Private Sub Command1_Click()
        Text1.Text = "Hello World"
    End Sub
    Private Sub Form_Load()
        Text1.BackColor = vbBlue
    End Sub 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have quite a large VB6 project, with many forms, classes, modules and user
I have a really large VB6 code base with a ton of 3rd party
I have a VB6 app which is used by a large number of clients.
I have some code in VB6 which creates a moderately-large tree structure (a few
I have large text files upon which all kinds of operations need to be
I have large batches of XHTML files that are manually updated. During the review
I'm developing a website in PHP and I have large JS files that I
I have a VB6 EXE project with a large amount of classes - everything
Hey all, i am trying to replace large spaces between text with just one.
is it possible to have large chunks of text stored in .txt files, then

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.