473,385 Members | 1,764 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

help with the .hWnd

i am using visual basic 2005 ex. ed. and im doing a little bit of translation from vb6. i am working with graphics and such. my current problem is this.


lWindowHandle = form1.hWnd

and it gives error 'hWnd is not a member of application.form1'


this worked in vb6 so i need some help translating please.
May 2 '07 #1
2 1334
RedSon
5,000 Expert 4TB
i am using visual basic 2005 ex. ed. and im doing a little bit of translation from vb6. i am working with graphics and such. my current problem is this.


lWindowHandle = form1.hWnd

and it gives error 'hWnd is not a member of application.form1'


this worked in vb6 so i need some help translating please.
The error is telling you that form1 does not have a property called hWnd. Do you have a field or variable named hWnd in your form1?
May 2 '07 #2
'vb 6 version
Field.hWnd


i'm using directx and from what i was told, hWnd is a property that is set by either windows itself or VB that directx needs to access, it's a property that's set outside the code that i type.

i need to know what the vb 2005 equivalent is to this, it is essential to my prog.
May 3 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Ray | last post by:
I'm using VB6, I am a little more then a novice but not much.. and my question is - Is there a way to detect and possibly notify (me/mycomputer) if someone is using a Web Cam mainly MSN on my LAN...
7
by: savage | last post by:
hey all i need to convert an unmanaged c++ dll and header to c#, ive done the header structures but having problems with pinvoke signatures method 1: typedef int (_stdcall *pOmniConnect) (char...
3
by: Jazzkt | last post by:
Hello, Folks, I am new to VC++ and I just added a form to my application. The GUI has a group of checkboxes, a combo box, a text box and two buttons. Will someone please walk me through...
1
by: Michael D. Reed | last post by:
I am using the help class to display a simple help file. I generated the help file using Word and saving it as a single page Web page (.mht extension). I show the help file with the following...
13
by: Challenger | last post by:
Hi I am creating a program in C++ using visual studios 2003, and for a project I am required to create a application. In this application for testing purposes I am outputing a number to show that a...
1
by: tmarkovski | last post by:
Hello, I found this little code which basicly writes any keystroke to the app window, however, it only works for the app window. I wanted to modify it to work when any window is focused, just...
2
by: mmacrobert | last post by:
We have an MFC application mixed with a few .NET controls. I would like to be able to render the content of a .NET control to an MFC device context - specifically a printing device context. We...
22
by: SQACSharp | last post by:
I'm trying to get the control name of an editbox in another window. The following code set the value "MyPassword" in the password EditBox but it fail to return the control name of the EditBox. ...
9
by: Kodiak | last post by:
I am passing in a reference to a window handle, followed by the height and width as well into my method. I am then creating a Device Context using the window handle and converting the window in a...
1
by: Kodiak | last post by:
I have this code snippet below and what I am trying to due is return the sum of the byte returned from the GetDIBits() method. What I am trying to due is if you open up notepad and leave the text...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.