Questions tagged [selectedtext]

93 questions
0
votes
2 answers

Get selected text from combox to a variable

I want to select a school year from a Combobox and then use it to search the classes letter from the year selected. But I need to put the selected text into a variable. $yeardb = "SELECT DISTINCT `year` FROM `class`"; $do_year =…
0
votes
4 answers

How to read selected text on richTextBox?

There is a richTextBox that has string. I want to select a few characters on the richTexBox by mouse and save them in a variable. I use this method: richTextBox1.SelectedRtf; It shows me selected characters but is has some additional string and i…
Parsa Soroori
  • 63
  • 3
  • 12
0
votes
1 answer

Red Underline selected text in richtextbox

while ((indice = TextBox_stampa_contenuto.Text.IndexOf(parola, inizioParola)) != -1) { TextBox_stampa_contenuto.Select(indice, parola.Length); TextBox_stampa_contenuto.SelectionFont = new Font(TextBox_stampa_contenuto.SelectionFont,…
RedFerrari96
  • 55
  • 1
  • 1
  • 9
0
votes
1 answer

Changing text color upon selection of a specific cell/row in a UITableView on Iphone?

I have a simple grouped UITableView fed from a couple of arrays. Changing the selected text color is no issue, using the cell.selectedTextColor method. But this results in the same color being applied no matter which cell I select. I would, for…
0
votes
1 answer

Find the "Greatest Common Div" of user selection

Hello all you ridiculously genius people! So I'm creating a basic word processor, and I need to have an option to clear formatting in a certain section. The place the user is typing is split up into several different divs, and whenever they hit…
Isaiah Taylor
  • 615
  • 1
  • 4
  • 17
0
votes
0 answers

how to insert a link to selected text

I am trying to write a function to add links , so that my users can select a text and attach a link to the text. ( I am trying to imitate how gmail easily lets us to add,delete or edit link to a selected text inside the email) Here is the code what…
JINSOUL
  • 35
  • 3
  • 10
0
votes
2 answers

ListBox1.SelectedItem.Text gives other Text

I have a listbox : MAS Meeting Smart…
Shanna
  • 753
  • 4
  • 14
  • 34
0
votes
1 answer

IE TextRange.HtmlText returns unexpected line breaks

In an empty Asp.Net project I have the following code: I am using TextRange.HtmlText in IE 8 to retrieve a user's text selection in a DIV element. However, for some reason the selected html contains \r\n even though there are no line break…
TGH
  • 38,769
  • 12
  • 102
  • 135
0
votes
1 answer

VB.Net Highlighted Text Event Handler

I'm working with a Rich Textbox and want to get the text that the user will be highlighting with the mouse. Is there an event handler in VB.net that does this?
jbeverid
  • 291
  • 7
  • 23
0
votes
1 answer

Getting selected text (python-gtk)

I want to get selected text automatically in python, using gtk module. There is a code to get selected text from anywhere: #!/usr/bin/env python import pygtk pygtk.require('2.0') import gtk class GetSelectionExample: # Signal handler invoked…
J3y4Nf3R
  • 25
  • 2
  • 5
0
votes
1 answer

Autocomplete in Silverlight5

I Have One Issue With Silverlight Autocompletebox For Client Requirement I Want To Use Autocompletebox with Selected Text Property Because client want Select From List Or Input Text Also.... And Also I Want To Set Selected Record From Grid But When…
Jignesh.Raj
  • 5,776
  • 4
  • 27
  • 56
0
votes
1 answer

Get selected words from Rich-Text box from Add-in

I have a VSTO add-in which has a menu and button. In my infopath form, i have multiple rich-text box which would be edited by user. While editing, if user select a word or sentence in any of the rich-text box and click the button from add-in, i need…
Karthik
  • 1
  • 1
-1
votes
1 answer

How can i remove the side lines when selecting a text in IOS in react-native?

As you can see in the above image I want to remove both the sidelines in ios in react- native, I have tried every prop available in the text-input but nothing is working. Is there any solution for this?
-1
votes
2 answers

Android: get other app's selected text

Is it possible to get "other app's" selected text? Want to created an translation service. When called, the service will automatically translate the selected text in the front app. If not possible for non-rooted devices, is it possible for rooted…
WeiHung
  • 109
  • 2
  • 10
-1
votes
2 answers

position in javascript

hello i have a problem with my code.. why it doesn't work..?? is there fault with my code? function selectWord() { var select = window.getSelection(); if (select.getBoundingClientRect) { var rect =…
user495688
  • 973
  • 2
  • 15
  • 25