473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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:
http://i.stack.imgur.com/lbtNf.png

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:

http://www.4shared.com/get/GsXJMSGz/Project1.html

this is my code so far:

Declarations:

Expand|Select|Wrap|Line Numbers
  1. <DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
  2. Private Shared Function FindWindow( _
  3.  ByVal lpClassName As String, _
  4.  ByVal lpWindowName As String) As IntPtr
  5. End Function
  6. <DllImport("user32.dll", SetLastError:=True, CharSet:=CharSet.Auto)> _
  7. Private Shared Function FindWindowEx(ByVal parentHandle As IntPtr, _
  8.                   ByVal childAfter As IntPtr, _
  9.                   ByVal lclassName As String, _
  10.                   ByVal windowTitle As String) As IntPtr
  11. End Function
  12.  
  13. The Code:
  14.  
  15.         Dim TheMainForm As Integer = FindWindow("TCells", "Cells")
  16.         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.
Dec 30 '12 #1
0 1561

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Quan Nguyen | last post by:
How can I obtain the textbox (editing field) control of the combobox? I tried combobox.Controls to obtain the collection of controls that the combobox contains but it turned out to be empty. Thanks.
0
by: DotNetJunkies User | last post by:
Hi All I am developing a site using ASP.Net I want to develop a site that generates forms ( textbox,check boxes etc) automatically ie is from database itself depending on the no of rows in the...
2
by: Joe Au | last post by:
I follow the Walkthrough documented on Visual Studio to create an editable data grid but it does not work on getting the value of the textbox in the data grid. The code is copied here. I mark...
4
by: dchillman | last post by:
string ctrlname = page.Request.Params.Get("__EVENTTARGET"); if (ctrlname != null && ctrlname != string.Empty) { return this.Page.FindControl(ctrlname); } I have a form on which I was trying...
5
by: sck10 | last post by:
Hello, I am using the code below to set the values of a DetailsView template field using FindControl. My question is how would you find a control if its a Boundfield control? For example,...
0
by: Greg | last post by:
Hi, I'm trying to use the TreeView control in .NET 2.0 along with master pages and have encountered a problem. I have a master page for my site... pretty standard... on that page I have my...
1
by: evro | last post by:
Hi, i'm writing a simple minesweeper game in Borland 2006 C++ Builder. I'm using TStringGrid for the board. When it finds a bomb the cell has to be red. How can i change the color of a particular...
2
by: DC | last post by:
Hi, I am doing something like this in the ItemCreated event (ASP.Net 1.1): DataGridItem pagerRow = e.Item; TableCell pagerCell = pagerRow.Cells; Control addedControl = new Control();...
0
by: =?Utf-8?B?QW5nZWw=?= | last post by:
I seem to understand how the control works as long as I mated to SqlDataSource or ObjDataSource it works fine. But I do not want to flatten my design in this manner. I am interested in how I can...
3
by: =?Utf-8?B?QW5nZWw=?= | last post by:
I seem to understand how the control works as long as I mated to SqlDataSource or ObjDataSource it works fine. But I do not want to flatten my design in this manner. I am interested in how I can...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.