Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

Search Results for "WinForm" in [All]

user32

.

Method for getting WinForm Control associated with the focused window:

.

System.Windows.Forms.MessageBox (WinForms)

.

An example of this that I have encountered is using the FarPoint Spread 3.0/6.0 ActiveX controls. These controls will throw a Runtime protected memory violation exception if they are hosted in a WinForms Form, instantiated and then the Form.MDIParent property is set to an MDI container Form but using the SetParent(childForm.Handle, Me.Handle) call works.

.

static extern TODO WinForm(TODO);

.

Declare Function WinForm Lib "user32.dll" (TODO) As TODO

.
Documentation
[WinForm] on MSDN

kernel32

.
  • In WinForms: [System.Windows.Forms.PowerStatus]

shell32

.

Consider a Winform application with a OpenFileDialog that helps pick some file. This is then passed to the ExtractAssociatedIcon method to get the icon and display in a picture box.

.

For a whole winform sample of Displayname see http://Dzaebel.NET/ShGetFileInfo.htm

shlwapi

.

Sample Code (VB winform):

.

Sample Code (VB winform):

Enums

.
Summary
The return value of the DefWindowProc function, indicating the position of the cursor hot spot. These values can also be used within WndProc(ref Message) implementations when authoring classes that inherit from Control or Form objects in .NET WinForms applications.
.

/// The return value of the DefWindowProc function, or the Message.Result value used in a WndProc(ref Message) method of a .NET WinForms Form object, is one of the following values, indicating the position of the cursor hot spot.

ntdll

.

    ProcessWindowInformation            = 0x32,

.

    SystemSessionMappedViewInformation            = 0x44,

.

    SystemEntropyInterruptTimingRawInformation        = 0x92,

.

    SystemKernelVaShadowInformation               = 0xC4,


 
Access PInvoke.net directly from VS: