473,385 Members | 1,830 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

letter highlight

hi, how to highlight a particular letter in a word....for example i want to get highlighted the letter "a" in the word "eat". and this word will be added to the listbox item. I am using C#.Net 2 Win Apps....pls help me....
Jul 4 '07 #1
2 984
dip_developer
648 Expert 512MB
hi, how to highlight a particular letter in a word....for example i want to get highlighted the letter "a" in the word "eat". and this word will be added to the listbox item. I am using C#.Net 2 Win Apps....pls help me....
do u want to highlight by some colour??? then i dont know the answer.....i have to search for that...

otherwise by highlight if you mean to just select the specified letter then i have some solution........

if you store your word in a TextBox then you can use SelectionStart ans SelectionLength property of a textbox to highlight (not by colour)your text.....

SelectionStart Gets or sets a character index for the beginning of the current selection.

SelectionLength Gets or sets a value indicating the number of characters in the current selection in the TextBox
Jul 4 '07 #2
Hi, Thanks for the reply. But I want to get that selection (or Highlighting) in a ListBox.....How is that possible..............



do u want to highlight by some colour??? then i dont know the answer.....i have to search for that...

otherwise by highlight if you mean to just select the specified letter then i have some solution........

if you store your word in a TextBox then you can use SelectionStart ans SelectionLength property of a textbox to highlight (not by colour)your text.....

SelectionStart Gets or sets a character index for the beginning of the current selection.

SelectionLength Gets or sets a value indicating the number of characters in the current selection in the TextBox
Jul 5 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

13
by: David Morgan | last post by:
Hello I have a little function to highlight text if it exists. Function Highlight(vFind, vSearch) Dim RegEx Set RegEx = New RegExp RegEx.Pattern = vFind RegEx.IgnoreCase = True Highlight =...
9
by: Devron Blatchford | last post by:
Hi there, Just wondering if I change the back and fore colour of a listview item when the mouse hovers over it? I want to overide the default windows colour. Can someone please tell me how to...
5
by: Atara | last post by:
I am trying to convert the following code to VB .Net, I still have some gaps (the lines that are marked with (*)) and also I need an ending condition for the while loop. any help would be...
2
by: laredotornado | last post by:
Hello, Using PHP 4, how would I do the following? I want to do a case insensitive search on a string and replace it with "<span>" tags opening and following the string in question. However,...
4
by: michael.boucher | last post by:
I have an address field of 60000+ that I am trying to clean. One thing I am trying to do is take every apartment number and make it more standard. Here is my question: How do I take a record...
2
by: Number 11950 - GPEMC! Replace number with 11950 | last post by:
When you highlight a selection of text represented in an object on a form, somewhere in the Framework or alternatively in the Windows API there exists an array of variables that either contain as a...
2
by: Celeste | last post by:
Hello, I'm trying to parse the referring url for google search terms so that when this page loads it will scroll to and highlight the search term(s). Should i be using document.referrer? ...
0
Merlin1857
by: Merlin1857 | last post by:
A thing I have been asked for on a number of occasions is the ability to highlight text after its been searched for in a record return page. The following does this perfectly. Use this function...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.