473,508 Members | 2,312 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Hwnd property

What type is it?
How do I set it to that of a form?
Nov 21 '05 #1
2 3547
"=?Utf-8?B?VkIgVXNlcg==?=" <VB****@discussions.microsoft.com> wrote in
news:2C**********************************@microsof t.com:
What type is it?
How do I set it to that of a form?

I think it's an IntPtr or a Long.

Nov 21 '05 #2
"VB User" <VB****@discussions.microsoft.com> schrieb:
What type is it?
How do I set it to that of a form?


Are you referring to the 'Handle' property?

\\\
Dim hWnd As IntPtr = Me.Handle
///

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2095
by: WayneD | last post by:
Hi All, I'm writing a class that implements a COM interface. Unfortunately, one of the methods passes in an HWND and I'm supposed to create a control with that HWND as the parent. The idea is to...
1
4168
by: Tamir Khason | last post by:
I need to fetch hWnd IntPtr of the form, which hold user control from inside the user control. How to do this. this.Handle returns wrong results. Another question form the same field: I want to...
3
11025
by: Andrew Moore | last post by:
Hi All, I have a managed C++ class that makes calls into the Win32 API. I specifically am trying to take a Handle from a .NET form and convert it to a HWND to pass to a Win32 functions. The...
0
1267
by: josh1234 | last post by:
Hi, I'm trying to create a Tooltip control to display tooltip without specifying the hwnd property. Is this possible? I tried to add a tool to the Tooltip control by specifying the .hwnd property...
2
4122
by: Susan Baker | last post by:
I need to pass the handle of my window (WinForm in C#) to a C library. The WinForm does not apear to expose this property - how may I access it ? MTIA
5
3429
by: Paul Aspinall | last post by:
Hi I am trying to find the application from a hWnd handle. ie. if the hWnd is to Internet explorer, I want to try to return iexplore.exe (as per processes in Task Manager), or some other...
1
2432
by: mierzej | last post by:
Hi everybody. My problem is - I want to take control over an ActiveX control of another running process. All I can obtain is a hwnd of the mentioned control. I can explore the control (coclass?)...
11
4607
by: =?ISO-8859-15?Q?Kolja_M=E4rtens?= | last post by:
Hello! I've been professionally working on java projects for several years, but have done extremely little C/C++ coding and just a few little things in VB.Net. Right now I'm trying to write a...
8
12215
mshmyob
by: mshmyob | last post by:
Is it possible to get the hwnd property (ie: long number) of a control on a form. For instance I would like to get the hwnd property of a text box that has focus. I can get the form hwnd property...
0
7233
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7342
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7410
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7067
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5650
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5060
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3215
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1570
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
774
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.