Click here to Skip to main content
16,011,626 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Combo box event firing on form close... but why? Pin
Payrok8-Feb-08 8:57
Payrok8-Feb-08 8:57 
QuestionHow do i get the coordinates of selected text in a webbrowser control? Pin
Ahmad Zaidi8-Feb-08 4:12
Ahmad Zaidi8-Feb-08 4:12 
QuestionCan I modiy any windows application by using Windows API? Pin
Syed Ali Raza8-Feb-08 2:24
Syed Ali Raza8-Feb-08 2:24 
AnswerRe: Can I modiy any windows application by using Windows API? Pin
Colin Angus Mackay8-Feb-08 3:36
Colin Angus Mackay8-Feb-08 3:36 
AnswerCan I modiy any windows application by using Windows API? Pin
Syed Ali Raza8-Feb-08 4:11
Syed Ali Raza8-Feb-08 4:11 
GeneralRe: Can I modiy any windows application by using Windows API? Pin
Colin Angus Mackay8-Feb-08 5:27
Colin Angus Mackay8-Feb-08 5:27 
QuestionHow can I automatically scroll the richtexbox? Pin
JUNEYT8-Feb-08 0:49
JUNEYT8-Feb-08 0:49 
AnswerRe: How can I automatically scroll the richtexbox? Pin
John_Adams29-Apr-08 23:46
John_Adams29-Apr-08 23:46 
Hi,

You can do this by using the Find Method of RichTextBox. Below is the code snippet for the same.

BEGIN CODE

PrivateSub btnFind_Click(ByVal sender AsObject, ByVal e As EventArgs)

Dim startindex AsInteger = 0

If txtSearch.Text.Length > 0 Then
startindex = FindMyText(txtSearch.Text.Trim(), start, rtb.Text.Length)

EndIf

' If string was found in the RichTextBox, highlight it

If startindex >= 0 Then

' Set the highlight color as red

rtb.SelectionColor = Color.Red

' Find the end index. End Index = number of characters in textbox

Dim endindex AsInteger = txtSearch.Text.Length

' Highlight the search string

rtb.Select(startindex, endindex)

' mark the start position after the position of
' last search string

start = startindex + endindex
EndIf

End Sub

END CODE

Hope this helps Smile | :) .

Regards,
John Adams
ComponentOne LLC

GeneralTextBox selection criteria Pin
soniasan8-Feb-08 0:21
soniasan8-Feb-08 0:21 
GeneralRe: TextBox selection criteria Pin
nishkarsh_k8-Feb-08 0:27
nishkarsh_k8-Feb-08 0:27 
GeneralRe: TextBox selection criteria Pin
Sabarinathan T8-Feb-08 22:38
Sabarinathan T8-Feb-08 22:38 
GeneralTextBox Issue Pin
soniasan8-Feb-08 0:21
soniasan8-Feb-08 0:21 
GeneralRe: TextBox Issue Pin
Syed Ali Raza8-Feb-08 3:01
Syed Ali Raza8-Feb-08 3:01 
GeneralExport Data In excel and do wrap text[modified] Pin
nishkarsh_k7-Feb-08 23:10
nishkarsh_k7-Feb-08 23:10 
GeneralObject and Threading Pin
splater7-Feb-08 23:07
splater7-Feb-08 23:07 
GeneralRe: Object and Threading Pin
super_kitten3-May-08 19:32
super_kitten3-May-08 19:32 
GeneralI wrote code to convert html to pdf by using iTextsharper.dll, but it is .pdf file is not opening.Any one please help me. Pin
sudhakar797-Feb-08 22:07
sudhakar797-Feb-08 22:07 
GeneralRe: I wrote code to convert html to pdf by using iTextsharper.dll, but it is .pdf file is not opening.Any one please help me. Pin
LloydA1119-Feb-08 2:19
LloydA1119-Feb-08 2:19 
QuestionAlways asking parameters in crystal report Pin
robinsimon_m7-Feb-08 19:48
robinsimon_m7-Feb-08 19:48 
GeneralFTP Problem Pin
Michael1017-Feb-08 17:53
Michael1017-Feb-08 17:53 
GeneralRe: FTP Problem Pin
_Fandango_8-Feb-08 1:23
_Fandango_8-Feb-08 1:23 
Questionvariable issue Pin
Tauseef A7-Feb-08 16:31
Tauseef A7-Feb-08 16:31 
AnswerRe: variable issue Pin
Guffa7-Feb-08 19:50
Guffa7-Feb-08 19:50 
QuestionRe: variable issue Pin
Tauseef A7-Feb-08 20:08
Tauseef A7-Feb-08 20:08 
GeneralRe: variable issue Pin
Guffa7-Feb-08 23:46
Guffa7-Feb-08 23:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.