Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
MIBS20195 Absent Member.
Absent Member.
2905 views

Autocomplete entry-field like Google

Hello,


I would like to be able to use a TextBox/Entry-Field with autocomplete like Google.

So when you start typing a list box appears with suggestions.

Does anyone know how to get this done. I tried using .NET but cannot get it to work

Andre,

0 Likes
7 Replies
Micro Focus Expert
Micro Focus Expert

RE: Autocomplete entry-field like Google

There is a discussion in the forum on this .. using .Net I believe ... community.microfocus.com/.../6863.aspx

0 Likes
Micro Focus Expert
Micro Focus Expert

RE: Autocomplete entry-field like Google

You may be interested in ths as well ... community.microfocus.com/.../307.aspx

0 Likes
MIBS20195 Absent Member.
Absent Member.

RE: Autocomplete entry-field like Google

Yes I have seen all the posts about this subject but I want the .NET solution where I can use

Autocomplete CustomSource and I can't seem to translate this to cobol.

The options are AllSystemSources, AllUrl, FileSystem, HistoryList, RecentlyUsedList, CustomSource

With CustomSource I want the listbox to be filled with data from my vision files.

 

Help please

0 Likes
MIBS20195 Absent Member.
Absent Member.

RE: Autocomplete entry-field like Google

THIS IS WHAT I WANT

private void Form1_Load(object sender, EventArgs e)

{

   // Create the list to use as the custom source.  

   var source = new AutoCompleteStringCollection();

   source.AddRange(new string[]

                   {

                       "January",

                       "February",

                       "March",

                       "April",

                       "May",

                       "June",

                       "July",

                       "August",

                       "September",

                       "October",

                       "November",

                       "December"

                   });

   // Create and initialize the text box.

   var textBox = new TextBox

                 {

                     AutoCompleteCustomSource = source,

                     AutoCompleteMode =

                         AutoCompleteMode.SuggestAppend,

                     AutoCompleteSource =

                         AutoCompleteSource.CustomSource,

                     Location = new Point(20, 20),

                     Width = ClientRectangle.Width - 40,

                     Visible = true

                 };

   // Add the text box to the form.

   Controls.Add(textBox);

0 Likes
Micro Focus Expert
Micro Focus Expert

RE: Autocomplete entry-field like Google

I saw this C# code as well and the VB code on the Internet as well. For whatever reason I cannot find a Framework 4.0 Listbox or Textbox when using NetDefGen. The process would be to use our utility NetDefGen and create a copybook that contains the methods and properties from a Framework 4.0 Listbox or Textbox. In COBOL you would use CREATE to create the control and then use Modify and or Inquire on the appropriate properties and methods

0 Likes
MIBS20195 Absent Member.
Absent Member.

RE: Autocomplete entry-field like Google

I have created the copybook using NetDefGen, thats not the problem.

My problem is translating the above to cobol.

Or if there is another way to incorporate the Auto-complete function in my programs I would like to know how.

0 Likes
MIBS20195 Absent Member.
Absent Member.

RE: Autocomplete entry-field like Google

CAN ANYBODY HELP ME WITH THIS??????????????????????????????????????

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.