Building a windows forms "spy"

  • Thread starter Thread starter Jonas Bergman
  • Start date Start date
J

Jonas Bergman

Hi

I am about to develop a program that scans the text properties of a number
of text boxes in another program and copies them to the clipboard. The
software that I want to scan has no function for printing on a printer, and
therefore I am building this extension to enable simple printouts.

The program I am scanning is built in C#. My program should be built in C#
too.

I do not know the names of the textboxes, so to begin with I need to be able
to get the names of the textboxes to scan. These names will probably not
change, so when have gotten these names I can add them to the code. I know
the name of the form (or at least the caption of the form) that the
textboxes are in. I have no need for changing the properties of the
textboxes either.

Does anyone have some simple code that can help me getting started?

Thanks

Jonas Bergman
 
Hi

I am about to develop a program that scans the text properties of a
number of text boxes in another program and copies them to the
clipboard. The software that I want to scan has no function for
printing on a printer, and therefore I am building this extension to
enable simple printouts.

The program I am scanning is built in C#. My program should be built
in C# too.

I do not know the names of the textboxes, so to begin with I need to
be able to get the names of the textboxes to scan. These names will
probably not change, so when have gotten these names I can add them
to the code. I know the name of the form (or at least the caption of
the form) that the textboxes are in. I have no need for changing the
properties of the textboxes either.

Does anyone have some simple code that can help me getting started?

Thanks

Jonas Bergman

Jonas

I have written a 'Spy' program in C# (NET 2003) and am happy to mail it
to you - it would be about 60Kb or so when zipped. You'd need to follow
the source through and pull out the bits you want once you've seen how
it works.
 
Jonas Bergman said:
I am about to develop a program that scans the text properties of a number
of text boxes in another program and copies them to the clipboard. The
software that I want to scan has no function for printing on a printer,
and
therefore I am building this extension to enable simple printouts.

A simple Windows forms properties spy
<URL:http://www.codeproject.com/dotnet/wfspy.asp>

ControlInspector - monitor Windows Forms events as they are fired (like
Spy++ for .net)
<URL:http://www.codeproject.com/csharp/controlinspector.asp>
 
Thanks Jeff, I would be very greatful if you could mail me your project.

/Jonas Bergman
 
Back
Top