If you want to know the key that is pressed but just inside a form, it is easy: Set the KeyPreview property to True, and then in the Form_KeyPress event to have the parameter Keyascii with the code of the key that was pressed.
If you need keys like cursor keys and function keys and all the non...
Hi:
Change the declaration to:
Sub mySub (txt as Variant)
txt(1).Text = "Somenting..."
txt(2).Text = "Somenting else..."
etc
End Sub
.............
Javier
www.visual-basic.com.ar
Hi, I am writing a custom MsgBox and InputBox with a Form, now what I need is to retrieve the proper captions for the buttons Ok, Cancel, Retry, etc from the system in the proper language of the user. Any idea about how to locate that resource strings?
Thanks in advance,
Javier
For MichaelRed:
I have read your comments again (with more time) and I understood now what you meant with your comments.
Yes, you are right, if I make changes to the product and a customer want to upgrade to the new version, he has to re-compile his program(s).
But I am working in a new...
I have been doing some research with the object browser.
Forms is a member of Global.
Global is a class of the library VB.
So this code:
Dim a
Set a = VB.Global.Forms
is the same that
Dim a
Set a = Forms
Now, can I get a reference to the Global class of the...
I think we are talking about different things.
What I am asking has nothing to do with publishing, documentation, registering and so.
I know very well the Parent property, it gives a reference to the form where the UserControl is located.
But I need all the forms, not only this one.
I will be...
Hello:
I did not undestand what you mean with
"I think the more common approach is to have OCXs registered and use the regisrty version be checked. When the control is updated, the registry version value changes and changes are triggered from here."
About your suggestion, there is...
Well, I see that what I said was not understood.
I will explain it better now.
Every VB program has a Forms collection, this collection is called Forms.
For example, you can do something with one or all the forms with it.
A sample code for changing the BackColor of all the forms (all the forms...
Hi, what I need is to get the Forms collection of the client application that uses my Usercontrol ActiveX (OCX).
I mean, when a program uses my OCX, I want to get the reference to the Forms collection of that program from the UserControl.
I developed an ActiveX that doesn't require code, but...
Hello,
I have an ActiveX control that I am selling and I have a customer from Greece that told me that he can't display greek text in a label (a label contained in my usercontrol).
How can I add this support?
Thanks in advance,
Javier
Yes strongm, when you go to your development machine please send me the code please. If you want to send it by email my addess is javierbalk@hotmail.com. Thanks,
Javier
Hi all:
I am making an ActiveX control and I need to be notified when a new form is created in the client application. Now I am subclassing the form where my ActiveX control is placed and I found that the WM_WINDOWPOSCHANGING message fires every time a new form appear, and then I look in the...
Hi all:
I am making an ActiveX control and I need to be notified when a new form is created in the client application. Now I am subclassing the form where my ActiveX control is placed and I found that the WM_WINDOWPOSCHANGING message fires every time a new form appear, and then I look in the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.