Extract Cells From TStringGrid Control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Easytoon
    New Member
    • Dec 2012
    • 1

    Extract Cells From TStringGrid Control

    2 applications.
    my vb.net(**or c#**) project and external application

    the external application is developed by delphi.
    i want to extract information from this application (extract cells from the `TStringGrid` control).
    image:


    extract the `1 2 str str` into my Vb.net project.

    To make it more convenient to solve the question this is the download of the `external` application:

    4shared is a perfect place to store your pictures, documents, videos and files, so you can share them with friends, family, and the world. Claim your free 15GB now!


    this is my code so far:

    Declarations:

    Code:
    <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
    
    The Code:
    
            Dim TheMainForm As Integer = FindWindow("TCells", "Cells")
            Dim GV As Integer = FindWindowEx(TheMainForm, 0, "TStringGrid", "")
    I'm sure that there is a answer to this question.
    It is very important to resolve this question because without it my project will not move forward.
    Last edited by PsychoCoder; Dec 31 '12, 06:03 AM. Reason: Added code tags
Working...