No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I want to add LinkLabel-s at the end of the text in RichTextBox control.I do that with this code: int index = richTextBox1.Text.Length; Point position = richTextBox1.GetPositionFromCharIndex(index); LinkLabel label = new LinkLabel(); label.Text = "whatever"; label.AutoSize = false; label.Location = position; label.LinkBehavior = LinkBehavior.NeverUnderline; richTextBox1.Controls.Add(label); The problem here is that … |
|
When i resize image in RichTextBox control the quality of the image is drastically reduced.Does someone know why? |
|
Look at this code: [ICODE]delegate void SetBrowserContentDelegate(WebBrowser b); if (browser.InvokeRequired) { browser.Invoke(new SetBrowserContentDelegate(SetBrowserContent), browser); } else { browser.BringToFront(); browser.DocumentText = "<html><body>example</body></html>"; //this code here is executed and it gives an error saying this "Cross-thread operation..." } void SetBrowserContent(WebBrowser b) { b.BringToFront(); b.DocumentText = message_; }[/ICODE] My question is why the … |
|
I want to know how to override the mouse events of a ToolStripButton,specifically MouseEnter and MouseDown/MouseUp. I've found many examples of this in the net but i don't know how to use them.Let's say this: protected override void OnMouseEnter(EventArgs e) { base.OnMouseEnter(e); } Yeah,and then what?I really don't know how … |
|
When i search for certain words in RichTextBox i want to highlight them(if there is a match).That's ok but the problem is that i don't know how to set their default color back.I mean like the searching function in Firefox,all founded words are colored in yellow,then user can remove the … |
|
When you move the mouse cursor over hyperlink in some browser the cursor is changed and when you remove it from the hyperlink the cursor is changed to default cursor.Is it possible to have the same functionality in .Net?I'm talking about RichTextBox specifically.I mean if i move the cursor over … |
|
How to make a custom application setting?I mean i want to serialize Hashtable but AFAIK that can't be done in Settings.Designer.cs and therefore must be done in separate class.But i don't know how to access the setting in that new class from other classes where i need to use the … |
|
When i add setting with type Hashtable in project settings(Project - Properties - Settings) i cannot add anything to the Hashtable.I mean i can't add keys to the Hashtable from the small button in the "value" column,the buttons in the opened window are not active.Therefore obviosly i cannot add keys … |
|
I want to hide the caret in the RichTextBox control and do that with the win api function HideCaret(),but it doesn't work.The cursor is still visible and blinking.Where i should call the function.I tried in the Enter event of the control but doesn't work again.As far as i know i … |
|
Is it possible to get the color of the character under the mouse cursor in richtextbox? |
|
Ok,let's say that i have this code string word1 = "safdsa"; string word2 = "sdfafds"; string word3 = "asdas"; richTextBox1.AppendText(word + word2 + word3); And i want word2(just for example) to be with different cursor.I mean,when i move the mouse pointer over the word2 i want to see another cursor … |