|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Announcements
Chapters
Services
Feature Zones
|
Note: This is an unedited contribution. If this article is inappropriate,
needs attention or copies someone else's work without reference then please
Report This Article
IntroductionCapturing all of the form (of a .NET desktop application) which may be useful in creating a documentation and online help. (instead of open all forms and print-screen manually). Disadvantages of this application: Application Methodology:This solution contains two project: the dll (out core application) and a windows forms program (test project) This project mainly depends on System.Reflection to collect the images of the other application’s forms. b. GetForegroundWindow : returns a handle to the foreground window (the window with which the user is currently c. ReleaseDC : function releases a device context (DC), freeing it for use by other applications. d. DeleteObject : function deletes a logical pen, brush, font, bitmap, region, or palette, freeing all system resources associated with the object. After the object is deleted, the specified handle is no longer valid. e. CreateCompatibleDC : function creates a memory device context (DC) compatible with the specified device. f. GetWindowDC : function retrieves the device context (DC) for the entire window, including title bar, menus, and scroll bars. A window device context permits painting anywhere in a window, because the origin of the device context is the upper-left corner of the window instead of the client area. g. SelectObject : selects an object into the specified device context (DC). The new object replaces the previous object of the same type. h. CreateCompatibleBitmap : creates a bitmap compatible with the device that is associated with the specified device context. What is Reflection?
Assembly Classcan be used to get the information and manipulate the assembly. This class allows us to define and load assemblies, load modules that are listed in the assembly manifest, and locate a type from this assembly and create an instance of it. Assembly.GetType or Assembly.GetTypes are the two methods that can be used to get the Type object from assemblies that have not been loaded. To these method name of the Type(s) is passed as the parameter. Type.GetType is used similarly as mentioned above only distinction is that here the assemblies are loaded. ConstructorInfo Classis used for the reflection of a constructor, and used to fetch the information about constructor also constructor can be invoked. Constructor information like name, parameters, access modifiers, and various implementation details (such as abstract or virtual) can be obtained. Class Objects are created when constructor of a ConstructorInfo is invoked this returns either the GetConstructors or GetConstructor method of a Type object. UsageThis software is released into the public domain. You are free to use it in any way you like. If you modify it or extend it, please to consider posting new code here for everyone to share. This software is provided "as is" with no expressed or implied warranty. I accept no liability for any damage or loss of business that this software may cause.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||