I am writing an application that needs to create an object relative to the position of the carrot(EDIT: caret) when a user selects a text field in a different application on Windows (i.e. Firefox search box, etc...).
Do you have any suggestions or tutorials where I could read about this?
Thank you
I just found a great article on Code Project which answers my question.
http://www.codeproject.com/Articles/34520/Getting-Caret-Position-Inside-Any-Application Great code, thanks Saurabh Singh Gangwar
Related
My asp.net web application is written in C#.
On many websites, I have seen small hyperlinks next to a form field that says "what's this?"
When you click it, a small help dialogue box pops up and continues to be visible so long as you hold your mouse over the link. It's usually a dialogue explaining what that part of the form is asking for.
How do I do this?
I think you are looking for a tooltip plugIn. have a look at
30 stylish jQuery Tooltip plugins or
take a look at dr. Google
Personally I've been using qTip. There are some nice examples at qTip which should help you out!
As #uwe Keim pointed out, some of the links above are outdated. So here we are with some current links
QTip2
SimpleTip
30 cool jQuery ToolTip Plugins (14.July 2012)
Tipped
You can do this either asp.net way or using jquery
http://weblogs.asp.net/sukumarraju/archive/2009/12/22/user-friendly-tooltip-using-ajax-hover-menu-extender-control.aspx
http://weblogs.asp.net/cjdevos/archive/2008/03/29/asp-net-ajax-tooltipextender.aspx
You can use jquery to accomplish this .
http://speckyboy.com/2009/09/16/25-useful-jquery-tooltip-plugins-and-tutorials/
Also have a look at the Ajac control toolkit ballon popup:
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/BalloonPopup/BalloonPopupExtender.aspx
In my Windows phone7 application I load some data from a XML feed. Some of them are links to Web pages. I used textblocks to display data. In my previous LINK I found how to open web page in HyperlinkButton.
But I cant use that way because HyperLinkButton doesn't have TextWrapping property and those links are lengthy. I need to show entire link and once user click the link, need to access the corresponding web page.
It would be great if someone can Suggest a way to achieve this. Thanks inadvance
While there could be a way around showing the entire link, lemme ask you this .. do you want to? How about just saying "Click 'here' ..." or something & let the user tap on it for navigation?
Please see some of the design guidelines for using the HyperLinkButton here.
Hope this helps!
I have program that is used by 4000 users to search a large database based on a large number of search scenarios. The current application is a System Tray application and when the user clicks application icon, it opens a winform window and allows the user to enter some text and then returns the search results. I’ve been asked by my CIO if I can just put a textbox and button in the task bars so it always there for the user. I’ve googled everything and can’t find anything on this. I have Window 7 and Vista OS’s some 32 bit and some 64 bit. Does anyone know of an example on how to do this?
Take a look at this CodeProject article that does something similar.
http://www.codeproject.com/KB/shell/dotnetbandobjects.aspx
Also take a look at a similar question asked here on SO.
And also there's an MSDN article posted in the question. See the references section in the article for more information.
You can register your own Protocol Handler. Then you can add the address toolbar to the taskbar. Then a user can just type "search:steak".
I am developing an c# application.
Whenever my window gets activated, I want to get the highlighted/selected text on any windows applications (like word, excel, sharepoint portal, web browser, etc.,).
How to do this with C#?
I will really appreciate if someone comes up with a small sample instead of suggesting the links.
Thanks in Advance !
Let me explain it again in detail
I have to create a search application in c#.
Suppose if i select a text "vimal" in internet explorer (or word or excel or any application) and open the Search application then word "vimal" should be displayed in the search application.
Hope the requirement is clear now.
This is impossible for any application. Every application handles text differently.
They may have multiple (rich or not) text boxes that keep the text selected, etc.
Some other applications might use custom controls with custom selection logic...
This is impossible. Correct me if I am wrong (but it won't be the case).
Edit: Read the second answer in your own link.
I mean, an add-in that allows me to associate image and sound files with a comment in the middle of the code. Does this exist already?
That would be great to help people to understand other's code. As the wise said: An image is worth a thousand words...
I'm not aware of this, but the code window has support for hyperlinks. You can click them when holding the Ctrl key to follow a link.
You might use this to link to images or videos hosted on your network...