Re: selLength and no highlight
oaksong@xxxxxxxxxxx wrote:
I'm passing a control to a subroutine in a *module* that does
spellchecking. Within the subroutine I have this line of code:
Public Sub SpellCheck(ByRef txtCtrl As TextBox)
....
txtCtrl.SelLength = lngPos - lngStart
....
I was assuming that this would automatically highlight the text, but it
doesn't and it would be very helpful if it did.
Comments/thoughts?
Thanks
Chris
Chris,
You need to set the SelStart property before setting SelLength.
Regards,
Eric
.
Relevant Pages
- Re: Is there any way to start (and later quit) an EXE file.
... the QuitApp subroutine so that it will terminate any process named "VNC.exe" ... Is there also a way to avoid the first macro trying to load the EXE a ... regain complete control of XP and lose barcode scanner control. ... You can use the Shell function to launch an executable file but you ... (microsoft.public.excel.misc) - Re: Is there any way to start (and later quit) an EXE file.
... Since I didn't have VNC.exe to test on, the subroutine ... regain complete control of XP and lose barcode scanner control. ... You can use the Shell function to launch an executable file but you don't ... (microsoft.public.excel.misc) - Re: Form instance using variable for name
... Here is the entire subroutine I have so far. ... Dim ctl As Control ... Dim lbl As Label ... (microsoft.public.access.forms) - Re: Use of subroutines
... I disagree, but that is sort of a pointless meta-argument. ... a subroutine is first and foremost a tool for organization. ... I don't think of subroutines in terms of control flow at all, ... (comp.lang.fortran) - Re: Codings not changed when a control is renamed in VS2005.
... That's true, because in .NET, subroutine names for event are not considered important. ... When I rename the button from Button1 to YesButton, ... the coding, how can he/she knows Button1_Click is for the YesButton? ... should update all references to a control name. ... (microsoft.public.dotnet.languages.vb) |
|