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

  • Home
  • SEARCH
  • 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 8286215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:39:39+00:00 2026-06-08T11:39:39+00:00

Suppose a user minimize my visual basic application to the taskbar notification icon. Now

  • 0

Suppose a user minimize my visual basic application to the taskbar notification icon. Now I want when user open a new instance, the old one should restore.

  • 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-06-08T11:39:41+00:00Added an answer on June 8, 2026 at 11:39 am

    You can often do this fairly simply using DDE in a degenerate way:

    Form1.frm

    Option Explicit
    'This is Form1.  To use as DDE source at design time we set:
    '   Form1.LinkMode = 1 (Source, i.e. vbLinkSource).
    '   Form1.LinkTopic = "Form1" (default).
    '
    'Note we use (hidden) Label1 on this Form as a DDE destination.
    
    Private PrevState As Integer
    
    Private Sub Form_LinkExecute(CmdStr As String, Cancel As Integer)
        'Got a "command" so restore Form1 and accept the command.
        WindowState = PrevState
        Caption = "I am awake!"
        Cancel = False
    End Sub
    
    Private Sub Form_Load()
        PrevState = WindowState
    End Sub
    
    Private Sub Form_Resize()
        If WindowState <> vbMinimized Then PrevState = WindowState
    End Sub
    

    Module1.bas

    Option Explicit
    
    Private Sub Main()
        Load Form1
        'After Form1 is loaded (hidden), try DDE link to possible prior copy.
        With Form1.Label1
            .LinkTopic = App.EXEName & "|Form1"
            On Error Resume Next
            .LinkMode = vbLinkManual
            If Err.Number = 0 Then
                On Error GoTo 0
                'Link succeeded.  Wake up prior copy via pushback to
                'the DDE source, then unload Form1 and terminate.
                .LinkExecute "Wake up!"
                Unload Form1
            Else
                On Error GoTo 0
                'Link failed, so we're 1st.  Show Form1.
                Form1.Show vbModal
            End If
        End With
    End Sub
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose user taps on a button and video begins to play. Now when video
I want to create sub-domains using PHP on the fly. Suppose a user registers
Suppose I ask the user do you want to run in 32bit mode or
I am developing one application. Suppose user save question with 4 option and one
In my application suppose user selects 4 cities to vist with S as starting
Suppose user has opened my web application in many different browser windows. After sometime
I am providing non-consumable item in my application. suppose user purchases that item and
I want to add a language parameter. Suppose the user clicks on English, he
Suppose a user selects a file in a dialogue box, and the app then
I have a list of foods (e.g. apple, pear, banana, etc.). Suppose a user

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.