|
|
||||||
|
#1
|
|
|
|
|
what's the equivalent to sendmessage?
i want to explicitly kill the focus of a control. tia, steve |
|
|
|
#2
|
|
|
|
|
I don't think there is one but you could try this:
If TextBox1.Focus = True Then SendKeys.Send(vbTab) ElseIf Button1.Focus = True Then SendKeys.Send(vbTab) End If As long as the control doesn't accept as Tab you'll be OK "steve" <asd> wrote in message news:cm3e [..] |
|
#3
|
|
|
|
|
"steve" <asd> scripsit:
> what's the equivalent to sendmessage? > > i want to explicitly kill the focus of a control. Call the 'Focus' method of an other control. |
|
#4
|
|
|
|
|
i have a section of a form where all of it's controls are dynamically
generated...the parent form is - and needs to be - detached from some of the activities of the class that generates/manages these controls. if there is only one managed control, then the class has no "known" control to set the focus on. if i have control.validating event code to be run in a managed control and the parent form has code behind an object's click event...and that object *can't* receive focus (like a picturebox used in liue of a button) then that code will run w/o executing the managed control's validating code. this is bad since the object's click event could call the managed class' save method. if i can just tell the control to loose focus then the validation code will execute...all i will have to create is a method to have the managing class Update...or something like that. otherwise, i'll have to get more intimate than i'd like w/ the parent form. "Herfried K. Wagner [MVP]" <hirf-spam-me-here> wrote in message news:2504 [..] |
|
#5
|
|
|
|
|
Steve,
That is what we all have once in a while, we invent the most beautiful methods, but after a while we see that to keep it complete it becomes everytime more complex. And the worse is, we have to do it all ourself then. But you will be very proud on yourself when you have fixed it than. :-) Cor |
|
|
| Similar Threads | |
| VBA or VB.net equivalent of Equivalent of WordBasic WordBasic.SelectCurWord I have a old wordbasic code that I am converting to VSTO what is equivalent of Word 97 (WordBasic) code WordBasic.SelectCurWord in VSTO Tried several... |
|
| Equivalent of GetPrivateProfileString equivalent in C#? Does C# has an equivalent of the 'C' GetPrivateProfileString? or is the only way to get similar features to read from an INI file is to do a DllImport on Kernel32.dll? Thanks |
|
| a[i] not equivalent to *(a+i)? Hello, I have a question regarding old good array and pointers. I remember reading a remark by Bjarne Stroustrup that a[i] is not equivalent to *(a+i) when it comes to... |
|
| MRU equivalent in .NET Is there an equivalent implementation of CRecentFileList (MFC) in the .NET framework, or a sample of how to do this efficiently. Right now I am just using an array of... |
|
| Are these equivalent? Are the following two statements equivalent? bitField = (bitField & (--bitField)); bitField = (bitField & (bitField-1)); Yes or no? |
|
|
All times are GMT. The time now is 05:58 PM. | Privacy Policy
|