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 7761015
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T14:02:38+00:00 2026-06-01T14:02:38+00:00

I have a program app1 which launches another application using: app2Server := CreateOleObject(‘app2.Server’); On

  • 0

I have a program app1 which launches another application using:

app2Server := CreateOleObject('app2.Server');
  1. On ocassion it passes data and control to app2 by calling a procedure app2Server.SendData and then call app2Server.TopMost and sets a variable dataSent = True

  2. When the user returns to app1 the Form1.OnPaint event checks if dataSent = True and then retreives some data from app2.

Basically on Windows7 step 2 is not working. It seems to me that two things are not working in Window7 – the app2 OleObject is not being set to TopMost and the app1 Form is not being painted (after the initial creation).

Is this a known issue with Win7 and if so can anyone suggest a way to

  1. Set my app2 as TopMost and
  2. Get my app1 form to recognise when it’s back in in real time.

Thanks alot

Edit: To change the Z-order of the app1 and app2 I use the following:

SetWindowPos(Form1.Handle,HWND_BOTTOM,0,0,0,0,swp_NOMOVE or swp_NOSIZE);
app2Server.TopMost;

It doesn’t appear as if either are working.

ps I inherited this code I just need to make it work 🙂

  • 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-01T14:02:38+00:00Added an answer on June 1, 2026 at 2:02 pm

    My solution is pretty much this

    1. I used a timer within app1 to continually check for payment in app 2 as OnPaint doesn’t seem to be working in Win7.

    2. Form1.TopMost is infact working on Win7 but only if the application is minimised. Any suggestions welcome.

    thanks

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ClickOnce application (app1) that calls DLL files from another solution (app2).
I have program which reads MSMQ using GetAllMessages but it does not remove messages
I have program which loads an assembly using Asssembly.LoadFrom method. Some time later I
I have program which has servers interacting with each other using Twisted's remote procedure
I have a ClickOnce environment like this: \\Fileserver\ClickOnceApps\App1.application C:\Documents and Settings\user\Start Menu\Programs\publisher\app1.appref-ms My understanding
I have a program that creates a Windows user account using the NetUserAdd() API
I have a program which needs to behave slightly differently on Tiger than on
I have program which writes to database which folders are full or empty. Now
i have program which prints all char from char_min to char_max here is code
Here is my situation: I have program A which looks like this: Fmfile IF

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.