Well Chris it is indeed in our own program.
We have to use SendKeys on a TX TextControl v11.0.
The problem is TextControl can not programmatically remove a Paragraph.
The only way to acchieve this is by using SendKeys (though not recommended :-)
TextControl can thus 'Clear' the content of a line, but it can not remove
that line as a whole. It is like you're in Word and you have three lines:
Line One with text
Line Two with text
Line Three with text
You then want to remove line 2.
This can be done in code, but it results in:
Line One with text
Line Three with text
So what we then HAVE to do is select Line2, Col1 and perform:
SendKeys.SendWait("{BACKSPACE}")
SendKeys.SendWait("{DELETE}")
This results in:
Line One with text
Line Three with text
as desired.
TX TextControl will fix this in the next SP but that will be in 6 to 12
months?
Wel release our final candidate in a couple of days!
So we're really in trouble here.
SendKeys.SendWait "does" the job (as a workarround), even if it has to
delete 50 lines in a loop, BUT it triggers the Beep and that's real bad :-(
I was thinking about setting Mute On/Off (with checks and so on) but that's:
A: A bit drastic
B: Probably makes "the" mute-notification appear
Regards,
Michael
"Chris" wrote:
Michael Maes wrote: Hello,
I'm invoking successive
SendKeys.SendWait("{BACKSPACE}")
SendKeys.SendWait("{DELETE}")
in a loop.
The issue is that it causes a Beep on every Pass.
Setting the 'Handled = True' on the Control does prevent the Beep, but
messes-up the Backspace-Delete Sequence.
Is there another way to prevent the Beep to occur?
TIA,
Michael
Well if possible don't use sendkeys. Are you doing sendkeys to your own
program? Can you explain a little why your doing, there may be a better
solution.
Chris