Click here to Skip to main content
16,011,482 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
i have a windows application . i want to use FarsiLibrary to have a persian DateTime control in form.
but i can't use it, because i has error:
error CS0246: The type or namespace name 'FarsiLibrary' could not be found (are you missing a using directive or an assembly reference?)


i just add the 'FarsiLibrary.Win.dll' to References and add this code:
using FarsiLibrary;
namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
         private FarsiLibrary.Win.Controls.FADatePickerConverter faDatePickerConverter;

        // other code
     }
}


i use this link:
Farsi Library - Working with Dates, Calendars, and DatePickers[^]

please help me.
Posted
Comments
[no name] 23-Sep-14 7:27am    
Try using FarsiLibrary.Win.Controls and see what happens.
Sergey Alexandrovich Kryukov 23-Sep-14 14:32pm    
...and then please learn type naming with namespaces. This is one of the basic and simple things you need to know to do any development.
—SA

1. When you have a question regarding an article you'll generally get a better response posting to the article itself since the author will be notified.
2. The namespace should be FarsiLibrary.Win.Controls
 
Share this answer
 
it's solved:
i change 'Target framework' of solution Properties: from '.NET Framework 3.5 client profile' ,that is selected in default, to '.NET Framework 4' then it worked.

thank you all,
 
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