Re: Textbox autocomplete working only if multiline is set to false

Tech-Archive recommends: Fix windows errors by optimizing your registry



Thanks Linda. That makes sense. I used multiline with a custom control
I created in .NET 1.1. I think I'll move mack to one line control
using the .NET 2.0 autocomplete native function of the textbox
control.
Thanks
Andrea

On Fri, 29 Jun 2007 09:52:53 GMT, v-lliu@xxxxxxxxxxxxxxxxxxxx (Linda
Liu [MSFT]) wrote:

Hi Andrea,

Yes, you're right. The auto complete feature for TextBox works only if the
TextBox's Mulitline property is set to false. The following MSDN document
has stated this explicitly:

http://msdn2.microsoft.com/en-us/library/system.windows.forms.textbox.autoco
mpletesource.aspx

In my opinion, auto complete feature makes sense for one line of text,
rather than multiline text. This is maybe why the auto complete feature
doesn't work on multiline TextBox contols.

However, if you do need to support the auto complete feature for multiline
TextBox controls, you may implement it by yourself. I search and find a
auto complete sample for you. Although in this sample the auto complete
function doesn't work when the custom TextBox's Multiline property is set
to true, you can learn the thinking of implementing the auto complete
feature form it.

'Autocomplete Textbox Control'
http://www.codeproject.com/cs/miscctrl/AutoCompleteControl.asp

Hope this helps.
If you have any question, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
.



Relevant Pages

  • ANN: JfControls Standard (New version: 06.04.01)
    ... now with support for Delphi 2005 Update 2 ... JfControls is much than just a set of components here and there. ... By means of this program you could see the images contained in a package ... to control the destruction of windows, embedded forms, ... ...
    (borland.public.delphi.thirdpartytools.general)
  • ANN: JfControls Standard v.07.03.03
    ... JfControls Standard, now with support for Delphi 2006. ... By means of this program you could see the images contained in a package ... to control the destruction of windows, embedded forms, ... ...
    (borland.public.delphi.thirdpartytools.general)
  • ANN: JfControls Standard (06.01.24) Delphi 2005 (Win32)
    ... JfControls Standard, now with support for Delphi 2005. ... By means of this program you could see the images contained in a package ... to control the destruction of windows, embedded forms, ... ...
    (borland.public.delphi.thirdpartytools.general)
  • HINT: Comparison VB6/VB.NET Error Codes
    ... This list compares the error codes used in VB.NET 2003 with those used ... Class does not support Automation or does not support expected ... 294: Invalid DDE Link format ... PasteLink already performed on this control ...
    (microsoft.public.dotnet.languages.vb)
  • Re: It all comes full-circle ... WMDs found in Iraq
    ... Then you say that support for the ... Everything I've read seems to say that his control over the countryside ... you're playing fast and loose with their lives, ... Your argument was that they would ignore their constitution. ...
    (talk.origins)