Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hey community!
In work my current task is to update outdated GUI elements. It says the following:
"Some Winform-Controls like StatusBar, ContextMenu and ToolBar are outdated and should be replaced by their descendants StatusStrip, ContextMenuStrip and ToolStrip".

Does anybody know if there are more controls which could be replaced by newer ones? Is there an official list?

Thanks in advance,
Markus
Posted
Comments
Sergey Alexandrovich Kryukov 4-Jun-13 9:27am    
I only heard about it in comments you can see in documentation. Such as:
"The DataGridView control replaces and adds functionality to the DataGrid control; however, the DataGrid control is retained for both backward compatibility and future use, if you choose." in
http://msdn.microsoft.com/en-us/library/system.windows.forms.datagrid.aspx

I would think this would be enough.

—SA

http://msdn.microsoft.com/en-us/library/3beka3sf.aspx[^]

There is no official list that I can find, however as Microsoft says in the above link, the controls are "retained for both backward compatibility and future use, if you choose." Which means that they have new controls that add functionality, but MS isn't saying they are obsoleted and doesn't have a plan to remove them from the framework.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 4-Jun-13 9:42am    
That's the point: they are not really obsolete, in a strict sense. (Voted 5.)
Please see also my answer.
—SA
Please see my comment to the question. Even though anyone is free to create such a list, I don't think it could even be "official". The controls are not deprecated or claimed obsolete formally, even if some control is fully or completely superseded by a newer one. (I refer to ObsoleteAttribute, please see: http://msdn.microsoft.com/en-us/library/system.obsoleteattribute.aspx[^].)

I think such list just wouldn't make much sense. Look at it in this way: when you choose some available controls for your application, you need to consider its applicability to your design first, not being "cool" or "trendy". You are the ultimate decision maker, not the trend. And you always need to spend good time at it, much more then it would be required to check the comments about some newer control superseding the one you are reading about. All controls are more or less compatible with each other and can be combined in one design.

For a record, your assumption that the newer control superseding another one should be its descendant is not correct. It shouldn't. For example, System.Windows.Forms.ContextMenuStrip is not derived from System.Windows.Forms.ContextMenu, directly or indirectly:
http://msdn.microsoft.com/en-us/library/system.windows.forms.contextmenustrip.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.forms.contextmenu.aspx[^].

—SA
 
Share this answer
 
v2
Comments
Prasad Khandekar 4-Jun-13 10:01am    
really nice answer (+5)
Sergey Alexandrovich Kryukov 4-Jun-13 10:07am    
Thank you, Prasad.
—SA
NeonMika 4-Jun-13 10:26am    
Thanks, great answer! Made it very clear.
Sergey Alexandrovich Kryukov 4-Jun-13 11:38am    
You are very welcome.
Good luck, call again.
—SA
It's not a list - official or otherwise - but if you go to MSDN[^] and type
Quote:
obsolete retained backward compatibility
as the search expresson with Library ticked as the source then you can get the information you're after (along with some other stuff - get inventive with the search expression!)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900