|
I was wondering if anybody knew how this dll works?
http://www.deskperience.com/textcapture/index.html
Basically I need to get text information from another application's data grid. I could use api calls to get text from a textbox or list or just about anything but the data grid. Any ideas? Thanks.
P.s. I really want to avoid OCR if at all possible.
|
|
|
|
|
MrWhite340 wrote: I could use api calls to get text from a textbox or list or just about anything but the data grid.
You could do this, but unfortunately I can't remember which APIs you'd need to call, also it'd be fairly specific to your application.
|
|
|
|
|
It doesn't matter how specific it has to be per application, I just need to be pointed in the right direction. Does anybody know the API calls?
|
|
|
|
|
The basic strategy would be to use the Win32 API to get a handle to the required control and then look for functions which can extract text from that handle. I'm not sure which APIs you need to call but I think that if you look through the MSDN documentation the names of the functions are fairly self-explanatory.
|
|
|
|
|
I am getting as far as getting the handle to the control but there aren't any api calls for getting datagrid information. Only listboxes/text boxes, etc... This is where I am stuck! I searched msdn and didn't find a thing.
|
|
|
|
|
Is there a handle for the individual cells of the datagrid?
Are you trying to access a .NET datagrid or is it a "classic" Win32 control?
|
|
|
|
|
.net, and I can't seem to get individual handle to a cell... the handle is for the datagrid itself.
|
|
|
|
|
Are you always going to be dealing with a .NET control or do you also have to interop with "classic" components? If it's just a .NET control then I seem to remember that there's a way which you can deal with getting a reference to the .NET object.
Of course if you're dealing with both then you could just put something like: if(classicComponent) { do Win32 stuff } else { do .NET stuff }
|
|
|
|
|
May not always be .net... If I could get an example of either though, I'm sure I could figure out the other once I have sort of idea of a direction to go in. Do individual cells of data grids have handles?
|
|
|
|
|
MrWhite340 wrote: Do individual cells of data grids have handles?
I have no idea and I'm afraid at the moment I don't have too much time to investigate, I might have some time later in the evening but unlikely.
Formula 1 - Short for "F1 Racing" - named after the standard "help" key in Windows, it's a sport where participants desperately search through software help files trying to find actual documentation. It's tedious and somewhat cruel, most matches ending in a draw as no participant is able to find anything helpful. - Shog9
Ed
|
|
|
|
|
Hello,
I've read the following article:
http://support.microsoft.com/kb/319401[^]
It actually worked very nicely with my project but when I grouped listView items (using Group property) it stopped working completely.
Can you please tell me how can I fix that?
Your help would be greatly appreciated.
|
|
|
|
|
Hi,
Can abstract class implement any interface, if not, Why?
Anyone can help?
Thanks..
|
|
|
|
|
Abstract classes can implement interfaces.
|
|
|
|
|
Hello,
I am trying to set background image to listview, but when I load image it doesn't get adjusted to listview size (stretch - auto size adj.)
I using following code to load image
mListViewUI.BackgroundImage = Image.FromFile(@"c:\jpeg\image1.jpg");
Any help is appreciated.
Thanks in advance.
|
|
|
|
|
Isn't there a BackgroundStyle (or something similarly named) property which handles this, it's an enumeration with Stretch, None, Fixed, etc as values.
|
|
|
|
|
Bitmap bmp = new Bitmap(mListViewUI.BackgroundImage, mListViewUI.Width, mListViewUI.Height);
mListViewUI.BackgroundImage = bmp;
Mark
|
|
|
|
|
hi guys...
i'm having a hard time on how to convert a user-defined data types in vb6 to c#. Here's my user-defined data types code in vb6. I hope u can help me of this guys...
Private Type udtEmployee
strIdno as String * 12
strFName as String * 30
strLName as String * 30
...
....
End Type
Private mudtEmployee as udtEmployee
dickhead
|
|
|
|
|
class udtEmployee {
public string strIdno;
public string strFName;
public string strLName;
}
or
struct udtEmployee {
public string strIdno;
public string strFName;
public string strLName;
}
or
class udtEmployee {
public char[] strIdno = new char[12];
public char[] strFName = new char[30];
public char[] strLName = new char[30];
}
I don't like the last one, though.
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
|
Hi,
I am developing a MDI application. In this application on click of some menu items I have to display some forms(say MenuForm1, MenuForm2, MenuForm3) with some data. But at the same time I want one form(say BackGroundForm) which is a child form of my MDI application should be active in the background of the form which gets displayed on click of some menu items.
If I declare those forms(MenuForm1, MenuForm2, MenuForm3) as child & if I pop them up using ‘show’ then for 1st time they are visible in my application but next time if I click that menu item then they are not visible. Same problem I’m facing if I don’t make them as child of my MDI & pop them up using ‘ShowDialog’. I am hiding forms(MenuForm1, MenuForm2, MenuForm3) on click of a button which i placed on same forms(MenuForm1, MenuForm2, MenuForm3).
I want that ‘BackGroundForm’ in my application because I want to put some button controls on one form & that form should be active all the time until the application is running. So I had put some buttons in this BackGroundForm & I cant put buttons on MDI parent form .
How I can solve this problem in my MDI application…?
Thanks in advance,
Vinay
|
|
|
|
|
I'm new to using the Visual C# 2005 Express - is the console window
supposed to just flash up and disappear when displaying output from
a console program? The book examples I'm using seem to assume so.
I've found a code snippet: System.Console.ReadLine();
which does the job, but is it usually necessary to include this line
or something similiar to keep the output window from disappearing please?
-- modified at 22:31 Saturday 18th November, 2006
|
|
|
|
|
Well, usually you'd execute a console app in a command prompt window, so the app would execute and return to the command prompt.
If you double click it in explorer, it will open a command prompt window, execute, and when your program is done, it closes the window.
ReadLine is waiting for user input, so the app hasn't ended yet, which keeps the window from closing.
In other words, it's a hack to keep the window open.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
No this is supposed to run under the MS Visual C# IDE. I have two "step-by-step" type books
and both expect the programs to run using the IDE environement; neither seem to consider this
problem...
|
|
|
|
|
But that's exactly what's happening! You app starts, the console window appears, and when your app is done, the console window closes and you're returned to VIsual Studio. The only way to keep the window open is to put the ReadLine statemnet in there.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
So the fault is the books I'm using then? It just seemed strange to me
that two books could have missed the apparent need for such a statement.
(I used to use Getchar() in C, but it's not in C#.)
|
|
|
|