Problem trying to set combo's AutoCompleteMode and AutoCompleteSource in Browse Dialog


Problem trying to set combo's AutoCompleteMode and AutoCompleteSource...
Author
Message
Marcia G Akins
Marcia G Akins
StrataFrame User (492 reputation)StrataFrame User (492 reputation)StrataFrame User (492 reputation)StrataFrame User (492 reputation)StrataFrame User (492 reputation)StrataFrame User (492 reputation)StrataFrame User (492 reputation)StrataFrame User (492 reputation)StrataFrame User (492 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
Hi all.

I think I found the method in the framework to set the combo boxes properties in the browse dialog to the above. However, these properties do not show up in IntelliSense when I try to set loCombo.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest and loCombo.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems. Am I trying to do this in the wrong place or are they hidden by default?

TIA

Marcia


Edhy Rijo
E
StrataFrame VIP (4.5K reputation)StrataFrame VIP (4.5K reputation)StrataFrame VIP (4.5K reputation)StrataFrame VIP (4.5K reputation)StrataFrame VIP (4.5K reputation)StrataFrame VIP (4.5K reputation)StrataFrame VIP (4.5K reputation)StrataFrame VIP (4.5K reputation)StrataFrame VIP (4.5K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Marcia G Akins (11/3/2011)
Am I trying to do this in the wrong place or are they hidden by default?

I have not seen the BD source code, but I know the controls are basically created on the fly, so you would not have access to their properties via code unless some sort of Reflection is used.

What I would like to see is a way where you could tell the BD the class of the controls to be used, that would allow us to create subclassed controls that the BD would end up using at runtime.

Edhy Rijo

Marcia G Akins
Marcia G Akins
StrataFrame User (492 reputation)StrataFrame User (492 reputation)StrataFrame User (492 reputation)StrataFrame User (492 reputation)StrataFrame User (492 reputation)StrataFrame User (492 reputation)StrataFrame User (492 reputation)StrataFrame User (492 reputation)StrataFrame User (492 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
Edhy Rijo (11/3/2011)I have not seen the BD source code, but I know the controls are basically created on the fly, so you would not have access to their properties via code unless some sort of Reflection is used.


Really? I found this code in the CreateBOCombo() method in BrowseDialogwindow.vb:

loReturn = New MicroFour.StrataFrame.UI.Windows.Forms.ComboBox()

Typing loReturn. after this line of code causes IntelliSense to kick in with many properties and methods, just not the ones I am interested in. What's up with that?
Edhy Rijo
E
StrataFrame VIP (4.5K reputation)StrataFrame VIP (4.5K reputation)StrataFrame VIP (4.5K reputation)StrataFrame VIP (4.5K reputation)StrataFrame VIP (4.5K reputation)StrataFrame VIP (4.5K reputation)StrataFrame VIP (4.5K reputation)StrataFrame VIP (4.5K reputation)StrataFrame VIP (4.5K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Marcia G Akins (11/3/2011)

Really? I found this code in the CreateBOCombo() method in BrowseDialogwindow.vb:
loReturn = New MicroFour.StrataFrame.UI.Windows.Forms.ComboBox()
Typing loReturn. after this line of code causes IntelliSense to kick in with many properties and methods, just not the ones I am interested in. What's up with that?


Well, that is in the source code which means you will need to keep track of those changes before any SF update.
Also you cannot see the properties you want because their Modifiers are set by default to Friendly, if you can change it in the base class "MicroFour.StrataFrame.UI.Windows.Forms.ComboBox" to Public, then you will see them in any subclass.

Edhy Rijo

Marcia G Akins
Marcia G Akins
StrataFrame User (492 reputation)StrataFrame User (492 reputation)StrataFrame User (492 reputation)StrataFrame User (492 reputation)StrataFrame User (492 reputation)StrataFrame User (492 reputation)StrataFrame User (492 reputation)StrataFrame User (492 reputation)StrataFrame User (492 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
Well, that is in the source code which means you will need to keep track of those changes before any SF update.
Also you cannot see the properties you want because their Modifiers are set by default to Friendly, if you can change it in the base class "MicroFour.StrataFrame.UI.Windows.Forms.ComboBox" to Public, then you will see them in any subclass.


Did I take my stupid pills today Smile ?

If I can see these properties in the property sheet when designing a form, why can't I see them when writing code in the BD?

Just curious and trying to learn something.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search