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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T08:41:24+00:00 2026-06-16T08:41:24+00:00

How can I extract items from other application’s gridview? The class name of the

  • 0

How can I extract items from other application’s gridview? The class name of the control is TStringGrid.

I can get the handle of the TStringGrid window with FindWindowEx using these declarations:

<DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
Private Shared Function FindWindow( _
 ByVal lpClassName As String, _
 ByVal lpWindowName As String) As IntPtr
End Function
<DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
Private Shared Function FindWindowEx(ByVal parentHandle As IntPtr, _
                  ByVal childAfter As IntPtr, _
                  ByVal lclassName As String, _
                  ByVal windowTitle As String) As IntPtr
End Function

code:

    Dim TheMainForm As Integer = FindWindow("form", "fname")
    Dim GV As Integer = FindWindowEx(TheMainForm, 0, "TStringGrid", "")

How can I extract the items from GV (TStringGrid handle)?

(I have to finish this project by tomorrow.)

  • 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-16T08:41:25+00:00Added an answer on June 16, 2026 at 8:41 am

    A Delphi string grid is not a windows control. It’s a custom Delphi control. As such it doesn’t respond to windows messages asking for its content. Without the source of the app you would need to reverse engineer the app to work out where the content is stored.

    Realistically the most effective way to do this will be to inject a thread into the target application. That thread can then do the work of reading the information and can then use some IPC to get the data back to your VB process.

    In order to do this you will, ideally, need:

    1. Knowledge of the exact version of Delphi used to build the app.
    2. A deep understanding of the Delphi compiler and RTL.
    3. The Delphi VCL source code for TStringGrid.

    I’ve no idea how you’ll be able to synchronize your reading thread with the Delphi app.

    Anyway, whilst what you ask for is, in theory possible, in reality it is completely impractical. The sensible solution is to ask the authors of the Delphi program to provide an automation interface.

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

Sidebar

Related Questions

I know that set:extract can get one item from an array like this Set::extract('/myArray/item',$items);
I'm looking for a parser that can extract methods from a java class (static
I have some path c:\server\folderName1\another name\something\another folder\ . How i can extract from there
When using PowerShell to extract information from TFS, I find that I can get
We can extract the mimetype from byte array, e.g., by using Apache Tika. Is
Is there any way by which i can extract a private key from a
How can we extract a line from a multiLine EditText ? I tried this
How can I extract 456 from xxx_456 where xxx is of indefinite length?
I have a list of 50 items and I want to extract some other
Is it possible to extract items from an RSS feed, such as the following:

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.