My task is to highlight selected words rendered in html in webbrowser control of C#.net. I accomplish it by using IHtmldocument2. (ref: http://www.codewrecks.com/blog/index.php/2009/02/13/highlight-words-in-webbrowser-control/).
Now, my next task is when i mouseover on the highlighted text, a custom popup will appear to show some information about that highlighted text. It serves like a tooltip. How can i do this? can you give me some sample codes?
Help Please
Thanks
I suggest jQuery here are some tutorials for popups http://speckyboy.com/2009/09/16/25-useful-jquery-tooltip-plugins-and-tutorials/. In the control/function that highlight the words you should be able to set the attributes needed for jQuery to show popups.
what i did with this is just create a div and insert it in the body section. i created a javascript that sets the position property of that div to absolute and with just simple coordinates, i set the top and left property of the div to the position of the element being hover on.
Related
is it possible to add a control to a tooltip?
What im trying to achieve is a tooltip that shows some example data in a dataGridview inside the tooltip.
What I have done so far is the following:
I have created a table with some settings (dataGridview with Name (text), Type (text), Example (image), and Setting (comboBox).
I managed to show a tooltip with the example as string onMouseOver the example image.
I'd like to embed another dataGridview in the tooltip because some examples are in table form.
Tooltips are very limited.
The solution is to create a custom tooltip. You do a form and make it look like a tooltip and you put on it what you want.
You can make it look exactly like a tooltip an you can show it and hide it with the event handlers on your datagrid.
My solution was to use a custom panel that shows up on the cursors position and fade out after a timer has reached end.
I am using WinForms (C#) along with Telerik UI controls. I have a RadPageView that has the ViewMode set to Stack. I also have the ViewElement.StackPosition set to Top and the ViewElement.ItemSelectionMode set to ContentAfterSelected.
It is a simple section-stack type control that will pop the header of the section to the top of the control when clicked, with the content of that section directly underneath the header.
The issue that I am having is that when I click on one of the sections, and the header goes to the top, this action also changes the big bold header of the parent RadPageView, but I do not want it to. I can change the text of the RadPageView by setting the ViewElement.Header.Text property on the RadPageView, but as soon as I click on one of the sections again it gets set to the section's header. Essentially, it then just has two headers right in a row that say the exact same thing.
I want to be able to set the header text of the RadPageView and not have it change when the selected page changes.
I am fairly new to this whole Telerik thing, so I am sure it is just some simple property, I am just done looking for it at this point. Any help would be greatly appreciated.
I am coding a C# forms application where I am creating some html and this is being displayed in a WebBrowser control.
My question is this: Is it possible to render some of the html tags in a different object. By this I mean, I would like to extract some html and display this html somewhere other than the main WebBrowser control.
For example:
I am displaying a jQuery slider, and I am also displaying the value of the slider in a div. If possible, I would like the jQuery slider to be displayed in the WebBrowser control, but the value of the jQuery slider to be displayed in another control.
Can this be done, and if so, what concept do I need to implement?
Thanks.
So I am trying to display HTML from a column in an access DB. I am able to do this using this below.
webBrowser1.DocumentText = dataGridView1.Rows[1].Cells[3].Value.ToString();
The problem is I want the control to be "transparent" basically show the text with html formatting but show the form background behind it... and I have not found a way to do that.
Is there another way to display this HTML while showing the form background and keep the format of the contents? The HTML is just text with li tags etc.
Have you tried applying a style to the stored HTML? You can make things transparent, or coloured using a CSS style.
I have a page with two tabs.
These tabs do not contain text but images.
now the thing is that when a tab is active, it contains different image and when it is inactive it contains different image.
So there are a total of 4 images ( 1 Active state & 1 Inactive state for each tab).
Could anyone guide me with the desired code using Asp.net with HTML controls(not server controls), Javascript and css.
Thanks in advance
If you are not going to use jQuery (or similar) for this, then you can probably write your own JavaScript code. When the onclick or onfocus event is raised for switching between tabs (however you manage it), just call a function to change the src of the image on the active/inactive tabs.
You can either use JavaScript to hide the images or use a CSS sprite so when the tabs are active the css changes and shows the different images