Auto Generated Properties Order Needs to Change
-
Thursday, April 19, 2012 8:35 PM
Please change Visual Studios automated listing order of these properties to be in the order shown below:
this.cmbStoreAttribute.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
this.cmbStoreAttribute.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
ListItems must be specified before SuggestAppend. When they are in the reverse order I get errors trying to run the application. Visual Studio always list them in the reverse order, SuggestAppend before ListItems.
I manually changed this order and the app runs fine. But Rebuilding the app will sometime cause these properties to be regenerated and thus reordered. Is this a bug? Is there something I can do keep the order from changing, short of writing the code outside of the designer?
Victor Stuart
All Replies
-
Monday, April 23, 2012 3:35 AMModerator
Hi VicStuart,
Here is a good sample for you:
http://www.codeproject.com/Articles/243368/AutoComplete-Textbox
Sincerely,
Jason Wang
Jason Wang [MSFT]
MSDN Community Support | Feedback to us
-
Wednesday, April 25, 2012 3:09 PMJason I appreciate your sample project but I was NOT asking how to make autocomplete work. I was really trying to make a SUGGESTION to the Visual Studio team to take a look at how they populate the InitializeComponent() method. Is there some reason they can't change the order of these properties when the user chooses to use them?
Victor Stuart
-
Tuesday, May 01, 2012 2:06 AMModerator
Hi VicStuart,
I am sorry I have misunderstand your meaning. Based on your description,you can also post the suggestions to this portal.
http://visualstudio.uservoice.com/forums/121579-visual-studio
Improving the quality of our products and services is a never ending process for Microsoft .
Sincerely,
Jason Wang
Jason Wang [MSFT]
MSDN Community Support | Feedback to us
- Edited by Jason Dot WangMicrosoft Contingent Staff, Moderator Tuesday, May 01, 2012 2:07 AM
- Edited by Jason Dot WangMicrosoft Contingent Staff, Moderator Tuesday, May 01, 2012 2:12 AM
-
Monday, May 07, 2012 8:42 PMLooking back at what I originally said I can no longer substantiate it. I did have a problem but in my test application I find just the opposite. The properties are listed in the correct order and works just fine. I am sorry for wasting everyone's time. If I figure out what the real problem was I will post it in the future. Sorry for the confusion.
Victor Stuart
-
Wednesday, May 30, 2012 3:03 PM
Hi Victor,
By any chance, if it happens again, then you can set both these properties in your constructor or form load event. So, if VS put them in reverse order, even then also, it will get override with your own order.
Regards, http://shwetamannjain.blogspot.com or https://shwetalodha.wordpress.com/
- Proposed As Answer by Shweta Jain Wednesday, May 30, 2012 3:03 PM


