Hi,
I would like to know if there is any way to retrieve a windows'(a form/control) properties
Thanks in Advance,
Dark Link
Printable View
Hi,
I would like to know if there is any way to retrieve a windows'(a form/control) properties
Thanks in Advance,
Dark Link
not sure, but I think you could use GetWindowLong().
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)
this code by jcis will probably point in you the right direction.
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
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
Thanks
I'll try it ASAP and then I'll say if it worked or not
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
you'd need to use EM_SETREADONLY