Autocompletion on multiple words in a text box - winforms

I'd like to create a simple winforms application, that enables simple&fast text input on a given topic.
My plan is to have a small db with frequently used words by the user on a given topic (e.g. some technical terms of his job) and when he is typing, an autocomlete feature advises word completion from a drop down list, like in an intellisense editor. As I know .net winforms autcompletion can be used only for a word, not 'dynamically'. It would be like predictive SMS typing in a mobile phone.
I know there are some open source intellisense controls, but as I see they does not fit my requirements, they are specifically for programming languages, not for any type of text.
Do you have any suggestions about open-source projects on this topic?
Thanks in advance!
.net4/c#/vs2010/winforms

This tutorial is for a text file auto completion but it's a good starting point if you want to create your own control for it.
http://www.dreamincode.net/forums/topic/34785-create-an-autocomplete-textbox-control-in-c%23/

Related

Basic text formatting during text input with Codename One

I know that is possible to programmatically format a text in Codename One using something like "Rich Text View". But in my use case the user can do basic formatting of the text.
For example, see the following two screenshots of the Protonmail app. How can I do something similar with Codename One?
In the first screenshot, "Taglia" means "Cut" and "Copia" means "Copy".
In the second screenshot, "Grassetto" means "Bold" and "Corsivo" means "Italic".
We don't support that. This behavior is very inconsistent between platforms and pretty limited in all native platforms so implementing it in a cross platform way isn't practical.
However, since all platforms have good HTML5 support it's pretty easy to implement it with a WebView by embedding a web based rich edit widget. Since these consistently work with HTML the results are cross platform and should be easy to work with. In the past we had a CKEditor cn1lib but I think it's out of date by now. The core concept should work though and should be much easier to implement as we now support the html package for deploying web resources. So you can take any HTML based text editor and just place the files under the src/html directory then open that hierarchy for editing.

Need info on how wpf schematics design software can be accomplished

Hi to all and thanks for reading this.. :) Im noob in wpf and want to create some sort of electronics schematics design software. Actually its more visual programming by blocks rather than electronics schematics software. here is the description what is needed:
imagine an object which has input output pins. in software pins must be defined as input or outputs.
objects are drag and drop able on canvas
possibility to draw wires between objects
when objects are connected to each other a specified C code must be generated on text box
do you have any idea how it can be accomplished ?
tHANKS
Try out this excellent Code Project tutorial and example code on a WPF Diagram Designer. It provides a good foundation for doing other types of diagrams.
In a commercial scenario you can of course look at the (few) commercial general diagramming libraries out there.
E.g. one of the alternatives is the yFiles library. It has built-in support for first class port objects (pins in your nomenclature) and provides sophisticated edge routing algorithms so that whenever your user connects two pins the route in between the objects ("nodes") can be recalculated to minimize the number of crossings and bends. Of course there are a great number of events that you can register to when the user has done an edit (or even while the user is doing an edit to get a more direct feedback) that can be used to update the business objects, which in your case would mean generating the C code for the text box.
Full disclosure: I work for yWorks, however on Stackoverflow I do not represent my employer.

Is there a tool for helping the extraction of localizable text from Xaml?

I am tasked with the localization of a Windows Phone 7 application. The first step is to replace the actual visible text with an ID and put the ID and the text in a resource file.
This is a very tedious work and I was wondering if there are tools for this to automate?
I am thinking along the lines of the gettext package and .po files used in the linux world.
Here is a codeplex project that may help you some. http://xlocalization.codeplex.com/. To use this method, each control that is to be localized must have the name property assigned.
I tried it with my existing project, and got results that were mixed, but in the long run, I decided to do it by hand. I don't remember specifically what the problems were that I had, but if you want to try it on a copy of your project, it won't take much time. If it works for you (and if your controls to be localized all have names), it could save you time.
Also, I don't know how familiar you are with localizing, but I wrote a blog on the subject that takes you from start to finish. It's at http://www.hopnet.mobi, click Blogs.
Hope this helps.
I know this will get a lot of traditional answers, but I would also like to put forward something completely original we tried (and succeeded) doing ourselves for more efficient localisation of Silverlight using Attached Properties instead of binding:
Localisation of Silverlight projects after completion
To pre-populate the database we wrote a XML parser to find our markers in all our project's XAML files (XAML is just a subset of XML after all). We could not find any existing tools to do what you suggested, but our requirements were simplified by our new method of localisation (no resource files and no horrid bindings).
(yes, this is almost the same answer as a previous one of mine today, but it seems to fit again).
Also for future reference keep an eye out for this tool: http://www.neovelop.com/ This tool will go in private beta soon and looks very promising. Judging from their preview movie this will do exactly what you asked for.

Improving WPF RichTextBox Language Support?

After a bit of digging it would appear that the WPF built in spell checker only supports English, Spanish, French, and German - which beggars belief somewhat. I can understand they can't really ship comprehensive spell checkers for every language with WPF, but I'd at least expect it to be able to use the Office ones if they are installed.
Rant aside, has anyone had any success in replacing the current dictionary with one with wider language support, either by rolling your own or using a 3rd party component? A quick search throws up a few possibilities, but I'd appreciate any advice from anyone with first hand experience. This particular product has an international audience, so language support needs to be pretty comprehensive.
The first thing to say is that, from my understanding, .NET 4 WPF spell checking has support for alternate dictionaries, so waiting or building on the betas may very well be the most cost-effective option for you.
I worked on a WPF project that had a requirement for a medical-grade spell check dictionary, which of course is not supported in the built-in spell checking of .NET 3.x. What we ended up doing was integrating with a 3rd party COM spell checking component, and basically overriding the spell check behavior logic to re-implement it ourselves -- running each word through the dictionary and adding a "red underline" adorner to misspelled words, and adding a mouse-over popup control to show and allow selection of alternate spellings.
This is non-trivial, as you need to modify the xml of the flow document to be able to add adorners, and you need to be smart about filtering out punctuation, etc., as well as when and how often to check the spelling of words/paragraphs.
There may now be 3rd party WPF 3.x spell-checkable text areas, I know there were not any available at the time we developed our product.
Good luck, and I hope this helps.
For those that care we ended up "rolling our own" using NHunspell. We lose the red squiggleys, which is a shame, but the F7 Word style spellcheck dialog does the job.

Neodynamic Barcode Professional for SSRS

Our application needs to be able to render barcodes to PDF documents that will be accessible over the internet. Our technology stack includes SQL Server Reporting Services so we would like to leverage it and its ability to render to PDF; however, we are not able to get it to embed the FREE3OF9.ttf barcode font in any consistent manner.
I have reviewed this question, but would like to know any if any one has used Neodynamic products, particularly their SSRS product and whether or not they were satisfied with it. If anyone has any other solutions besides Neodynamic for rendering barcodes to a PDF via SSRS I would also like to hear those.
I haven't used SRSS before, but I have written barcode generating software. If you are looking for alternatives, writing your own is not too difficult.
You can find all of the information regarding barcode encoding online. I used Code 128, and simply created a table of values in my source code. Rendering the barcode is just a matter of drawing solid black and white bars based on the information in the table, so you don't need to worry about embedding fonts.
It looks like you want to use Reporting Services, so maybe this doesn't help. Either way, good luck with it!
I use it at work and like it, it is very easy to use and has many different bar code options. I recently created a bar code our of an image outline, it was pretty cool. The Tool is easy to use its pretty much like adding an image to the report, you choose which field to populate the bar code, choose the bar code style and boom you're done.

Resources