Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
GeneralWSE Client Pin
qur10-Feb-05 21:13
qur10-Feb-05 21:13 
GeneralLose data on a TextBox Pin
sasan5610-Feb-05 20:48
sasan5610-Feb-05 20:48 
Generalget current row Pin
sasan5610-Feb-05 20:36
sasan5610-Feb-05 20:36 
GeneralKeyPress .... Pin
mitreviper10-Feb-05 20:36
mitreviper10-Feb-05 20:36 
GeneralRe: KeyPress .... Pin
Stefan Troschuetz10-Feb-05 21:14
Stefan Troschuetz10-Feb-05 21:14 
GeneralWin32_Process Pin
skrishnasarma10-Feb-05 17:08
skrishnasarma10-Feb-05 17:08 
GeneralRe: Win32_Process Pin
Dave Kreskowiak11-Feb-05 4:13
mveDave Kreskowiak11-Feb-05 4:13 
GeneralRe: Win32_Process Pin
skrishnasarma13-Feb-05 16:49
skrishnasarma13-Feb-05 16:49 
GeneralRe: Win32_Process Pin
Dave Kreskowiak13-Feb-05 17:08
mveDave Kreskowiak13-Feb-05 17:08 
GeneralRe: Win32_Process Pin
skrishnasarma13-Feb-05 17:29
skrishnasarma13-Feb-05 17:29 
GeneralRe: Win32_Process Pin
Dave Kreskowiak13-Feb-05 17:51
mveDave Kreskowiak13-Feb-05 17:51 
GeneralRe: Win32_Process Pin
skrishnasarma13-Feb-05 22:39
skrishnasarma13-Feb-05 22:39 
GeneralC# solution compiler Pin
mikker_12310-Feb-05 15:30
mikker_12310-Feb-05 15:30 
GeneralRe: C# solution compiler Pin
Andy Brummer10-Feb-05 16:23
sitebuilderAndy Brummer10-Feb-05 16:23 
GeneralPassing window handle from 'Form' class to a winapi function (WTOpen of wintab32.dll) Pin
Muhammad Nadir Khan10-Feb-05 15:30
Muhammad Nadir Khan10-Feb-05 15:30 
I used the 'Handle' property of Form class to pass the window handle of my form to a winapi function, namely, 'WTOpen' used for opening a tablet context (present in wintab32.dll). This function returns a handle to the opened context. The problem is that this function is not opening a context (returning 0). I have imported the unmanaged function in the following way:

[DllImport("wintab32.dll")] public static extern HCTX WTOpen(IntPtr hWnd, ref LOGCONTEXT lpLogCtx, bool fEnable);
where HCTX is of type IntPtr.

The function prototype is as follows:

HCTX WTOpen(hWnd, lpLogCtx, fEnable)
where hWnd -- HWND Identifies the window that owns the tablet context, and receives messages from the context.
lpLogCtx -- LPLOGCONTEXT Points to an application-provided LOGCONTEXT data structure describing the context to be opened.
fEnable -- BOOL Specifies whether the new context will immediately begin processing input data.

It will be highly appreciated if someone could point out where i've made a mistake.... Thanku.

Nadir Khan
GeneralRe: Passing window handle from 'Form' class to a winapi function (WTOpen of wintab32.dll) Pin
Dave Kreskowiak11-Feb-05 4:11
mveDave Kreskowiak11-Feb-05 4:11 
GeneralRe: Passing window handle from 'Form' class to a winapi function (WTOpen of wintab32.dll) Pin
Muhammad Nadir Khan14-Feb-05 5:24
Muhammad Nadir Khan14-Feb-05 5:24 
GeneralRe: Passing window handle from 'Form' class to a winapi function (WTOpen of wintab32.dll) Pin
Dave Kreskowiak14-Feb-05 11:10
mveDave Kreskowiak14-Feb-05 11:10 
GeneralRe: Passing window handle from 'Form' class to a winapi function (WTOpen of wintab32.dll) Pin
Muhammad Nadir Khan16-Feb-05 8:36
Muhammad Nadir Khan16-Feb-05 8:36 
GeneralRe: Passing window handle from 'Form' class to a winapi function (WTOpen of wintab32.dll) Pin
Dave Kreskowiak16-Feb-05 10:01
mveDave Kreskowiak16-Feb-05 10:01 
GeneralOctal numbers in C# Pin
S. Senthil Kumar10-Feb-05 14:49
S. Senthil Kumar10-Feb-05 14:49 
GeneralRe: Octal numbers in C# Pin
Dave Kreskowiak11-Feb-05 4:06
mveDave Kreskowiak11-Feb-05 4:06 
GeneralRe: Octal numbers in C# Pin
S. Senthil Kumar11-Feb-05 7:12
S. Senthil Kumar11-Feb-05 7:12 
GeneralRe: Octal numbers in C# Pin
Dave Kreskowiak11-Feb-05 9:09
mveDave Kreskowiak11-Feb-05 9:09 
GeneralScroll To Caret For exterior TextBox Scrolling Pin
SubterII10-Feb-05 13:35
SubterII10-Feb-05 13:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.