|
-
Aug 25th, 2006, 09:02 AM
#1
Thread Starter
New Member
[RESOLVED] Help retrieving properties
Hi,
I would like to know if there is any way to retrieve a windows'(a form/control) properties
Thanks in Advance,
Dark Link
-
Aug 25th, 2006, 12:02 PM
#2
Frenzied Member
Re: Help retrieving properties
not sure, but I think you could use GetWindowLong().
-
Aug 25th, 2006, 12:26 PM
#3
Thread Starter
New Member
Re: Help retrieving properties
i think I didn't made myself clear
what i need is a function that will give me the windows properties (Ex:TextBox.Enabled, TextBox.PasswordChar, etc)
-
Aug 25th, 2006, 12:33 PM
#4
Re: Help retrieving properties
this code by jcis will probably point in you the right direction.
-
Aug 25th, 2006, 12:54 PM
#5
Thread Starter
New Member
Re: Help retrieving properties
what i need is a piece of code that will change or retrieve the properties from some other window
Ex: I have two programs, one with a textbox
I want to know if t is possible from the other program to change the enabled state, the passwordchar, etc to the textbox in the first program
-
Aug 25th, 2006, 01:02 PM
#6
Re: Help retrieving properties
so this is an app you don't have source code to?
'properties' in the VB IDE sense don't exist in compiled applications.
to enable / disable a window (be it a form / textbox / command button) use the Enable Window API
to set the password character, you'd have to send a EM_SETPASSWORDCHAR message to the textbox
-
Aug 25th, 2006, 06:50 PM
#7
Thread Starter
New Member
Re: Help retrieving properties
Thanks
I'll try it ASAP and then I'll say if it worked or not
-
Aug 27th, 2006, 06:09 PM
#8
Thread Starter
New Member
Re: Help retrieving properties
The EnableWindow function worked OK but EM_SETPASSWORDCHAR isn't working with SendMessage
Should I try with PostMessage?
How can I do the same with the vb6 locked state?
EDIT: EM_SETPASSWORDCHAR was actually working, but I did a simple mistake
-
Aug 27th, 2006, 06:55 PM
#9
Re: Help retrieving properties
you'd need to use EM_SETREADONLY
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|