Solved

Handle Property

Posted on 2013-11-25
6
273 Views
Last Modified: 2013-11-26
Why my form has no handle property?

Thanks in advance.

Leonel
0
Comment
Question by:leorocha
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 11

Expert Comment

by:Deepak Lakkad
ID: 39676616
Hi,

Handle is a read only property and will be available in code.

It does not appears in Property Window

- Deepak Lakkad
0
 
LVL 25

Expert Comment

by:chaau
ID: 39676646
I must add to the previous comment that the property is changing every time the form loads. You can't rely on it as a constant value. You need to get the handle in the code every time you need to use it (e.g. for some API calls)
0
 

Author Comment

by:leorocha
ID: 39676940
I'know that , the fact is that when I type in code Me.handle, this property is unavailable
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 25

Expert Comment

by:chaau
ID: 39677178
I think the proper property is hwnd
me.hwnd

Open in new window

0
 
LVL 11

Accepted Solution

by:
Deepak Lakkad earned 500 total points
ID: 39677308
Hi,

The property name is Handle and you can access it in following way

Me.Handle
or
FormName.Handle

- Deepak Lakkad
0
 

Author Closing Comment

by:leorocha
ID: 39677407
yes, thanks Deepak. I'm confused, so tired...

thks
0

Featured Post

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question