# How to find HWND of vruby VRForm

**URL:** <https://www.ruby-forum.com/t/how-to-find-hwnd-of-vruby-vrform/143210>\
**Category:** Ruby\
**Created:** [July 16, 2008, 12:16pm UTC](https://www.ruby-forum.com/t/how-to-find-hwnd-of-vruby-vrform/143210 "2008-07-16T12:16:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sweatje](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/ad7895/32.png) [@sweatje](https://www.ruby-forum.com/u/sweatje)\
**Post date:** [July 16, 2008, 12:16pm UTC](https://www.ruby-forum.com/t/how-to-find-hwnd-of-vruby-vrform/143210/1 "2008-07-16T12:16:59Z")

</div>

This is most likely down to my lack of experience with Ruby but I am  
struggling to obtain the microsoft windows HWND relating to a VRForm  
object when using VRuby.

The class hierarchy  
[404 Page Not Found. - GMOインターネット](http://www.osk.3web.ne.jp/~nyasu/vruby/referer/vr/VRForm.html) indicates  
that VRForm inherits from SWin::Window which has the property hWnd.

However, attempting to refer to this property using the following;

puts MyForm.hWnd

gives the error;

undefined method `hWnd’ for MyForm:Class (NoMethodError)

If I create an SWin::Window I can successfully refer to the hWnd  
property.

Since VRForm derives SWin::Window why can’t I refer to that property?
