PavelTorgashov / FastColoredTextBox

Fast Colored TextBox for Syntax Highlighting. The text editor component for .NET.
Other
1.21k stars 464 forks source link

Is there a way how to make AutocompleteMenu wider? #152

Closed HSyr closed 5 years ago

HSyr commented 5 years ago

Unfortunately the default width (150 pixels) is not enough for a lot of .NET members. See example below. I tried subclassing but without a success as the "AutocompleteListView listView" is private.

AutocompleteMenu

PavelTorgashov commented 5 years ago

You can adjust size of autocomplete menu by following way:

            //size of popupmenu
            popupMenu.Items.MaximumSize = new System.Drawing.Size(200, 300);
            popupMenu.Items.Width = 200;

See example AutocompleteSample.cs

HSyr commented 5 years ago

Thanks a lot!