Handle Property

Why my form has no handle property?

Thanks in advance.

Leonel
leorochaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 
Deepak LakkadCommented:
Hi,

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

It does not appears in Property Window

- Deepak Lakkad
0
 
chaauCommented:
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
 
leorochaAuthor Commented:
I'know that , the fact is that when I type in code Me.handle, this property is unavailable
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
chaauCommented:
I think the proper property is hwnd
me.hwnd

Open in new window

0
 
Deepak LakkadCommented:
Hi,

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

Me.Handle
or
FormName.Handle

- Deepak Lakkad
0

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
 
leorochaAuthor Commented:
yes, thanks Deepak. I'm confused, so tired...

thks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.