If you are a developer, than I guess Property Grid isn’t a stranger to you. Property grid has been used in win form designer to manipulate the properties of the selected object in the designer. Property Grid can also be used as control to use on your own form , to give user a compact way to manipulate properties( It is not available in the tool box , you will need to add it by using choose item option in Visual Studio). Property Grid has an interesting feature , it can show Type specific editor if one is available . e.g editing a color value will result in opening a color box, similarly for font and other types. If you want to have an editor for your custom data type , then you can implement a UITypeEditor and bind it to the target type using attirbute.
Some times you don’t use the whole Property Grid , but only want to display a certain type editor on your form, e.g you want to give user , option to edit a font , and want to utilize the font editor . How this can be achieved? Well, its simple , all you need to do is implement the IWindowFormsEditorService interface and provide a form or control to host the uitype editor. 😀
I came across a very insightful article on DevX about implementing these requirements. Emmanuel Tissandier has not only explained the underlying architecture of UITypeEditor but also impelement a control which can be used to host any UITypeEditor, and so you can have a generice type editor.
Article can be accessed here: Build A Property Editor That Can Edit Any .Net Type
I am back after a loooonnnng vacation. :D. I have been really busy during that period (if activity of wasting time is cosidered as a task 😛
Just to start with something, here are some of articles that I have read during my so called vacations.
Have you ever noticed , how Windows XP Explorer sorts files in a directory by file name. It does an intelligent sorting by considering the file names and also take into account if there is digit in the file name. e.g file1.txt , file2.txt and file10.txt . Ordinary string sorting places these 2 strings as file1.txt ,file10.txt, file2.txt, which isn’t the right order. XP sees these strings differently and sort them in almost correct orderi.i.e file1.txt, file2.txt and file10.txt.
This type of sorting might be required in other applications as well. Pascal Ganaye has written an execellent article on Natural Number Comprarer .
Nice article on Manipulating Colors in .Net by Guillaume Leparmentier in which he discussed the different color models and their inter-conversion. Very informtive!!!
Often you need good compression and archiving APIs, so why not use the Microsoft’s own cab file implementation. Thats exactly what Elmue has done and explained in his article Cabinet File : Compression and Extraction.
Well after a long time, once again, Demonoid is back, the user accounts are still there, and our upload /download statistics are still intact. enjoy !!
Computer usage in one’s own native language is getting popular these days, and many Softwares now include several languages to overcome the language barrier of the users. It has its own joy of interacting with computers in mother tongue.
Urdu is also one of the languages which is gaining popularity in computer usage. Efforts have been conducted by Pakistani Universities and other professionals to enhance the presence of urdu in general computing activities. These efforts are often supported by Govt. of Pakistan. NUCES Lahore Campus has contributed significantly to the cause with their CRULP ( Center for Research in Urdu Language Processing) initiative.
Following is a list of few good utilities for using urdu on PC from CRULP.
Just to let you know about the complexity of fonts for languages in arabic script is that the actual appearance of character /alphabet is dependent on the context. e.g م is meem, in محمود there are 2 positions for meem, initial and middle,and in علم meem is in final position:)
Now urdu uses alphabets from arabic language, but it follows persian script “Nastaleeq”, which may be a bit difficult for computers, as each new character is connected at a lower level and the whole word follows a slanting path.
So use these utilities, and send your suggestion to the developers, so that they may come up with a better and enhanced version.
Posted in Blogroll, Entertainment, Linux, Pakistan, PC, Personal, Programming, Windows
Tagged software, tips, tricks, urdu, windows