Code:
Error 2
Argument 1: cannot convert from 'ref System.Windows.Controls.RichTextBox' to 'ref System.Windows.Forms.RichTextBox' C:\Users\Admin\Desktop\Documents\Visual Studio 2010\Projects\WpfApplication1\MainWindow.xaml.cs 36 37 WpfApplication1
Error 2
Argument 1: cannot convert from 'ref System.Windows.Controls.RichTextBox' to 'ref System.Windows.Forms.RichTextBox' C:\Users\Admin\Desktop\Documents\Visual Studio 2010\Projects\WpfApplication1\MainWindow.xaml.cs 36 37 WpfApplication1
i ima jos jedna greska
Code:
Error 1 The best overloaded method match for 'dll_RTF.FormatedText.FormatRichTextBox(ref System.Windows.Forms.RichTextBox)' has some invalid arguments C:\Users\Admin\Desktop\Documents\Visual Studio 2010\Projects\WpfApplication1\MainWindow.xaml.cs 36 13 WpfApplication1
Error 1 The best overloaded method match for 'dll_RTF.FormatedText.FormatRichTextBox(ref System.Windows.Forms.RichTextBox)' has some invalid arguments C:\Users\Admin\Desktop\Documents\Visual Studio 2010\Projects\WpfApplication1\MainWindow.xaml.cs 36 13 WpfApplication1
'ref System.Windows.Controls.RichTextBox' to 'ref System.Windows.Forms.RichTextBox' nisu kompatibilne ali nikako nisam uspeo da postavim referencu ka System.Windows.Controls pri kreiranju ClassLibrary (DLL) zato sto u listi ne postoji.
Evo i slike...

Pokusao sam i da dodam referencu na lokaciju te kontrole koja se nalazi u sledecem direktorijumu

ali ni ovo nije pomoglo kao sto se vidi na sledecoj slici...

Pokusavam sebe da ubedim da nesto nisam uradio kako treba i da zbog toga nece. Da li je uopste moguce pri kreiranju DLL postaviti referencu na WPF controlu RichTextBox??????