Hope some1 here knows why I am missing these properties.... If I take a look at http://msdn.microsoft.com/en-us/library/system.windows.controls.richtextbox.aspx this definitly shows a property called VerticalContenAlignment - IntelliSense doesn't propose this propert开发者_高级运维y and if I just type it, the compiler also rejects it.... The Project is runnign on .NET 4 so it should confirm to the above link where it says these are the .NET 4 characteristics... Any idea why I am missing these properties?
Thanks for any help!!!
-EDIT: Ok I guess I have the reason: The link above lists properties for System.Windows.Controls.Richtextbox, I have a System.Windows.Forms.Richtextbox ...How can I combine this now thoug? any why are there 2 different ones? Sorry if its a stupid question - I'm just not getting it right now...
The new component you would like to use is for WPF projects, the standard RichTextBox for Windows forms is another control and you cannot mix them. Either you do not use the new property and you live with what the Windows Forms component offers you or you use a third party component to achieve what you need.
精彩评论