VB School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become a VB Expert!

Join 307,157 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,532 people online right now. Registration is fast and FREE... Join Now!




RichTextbox Problem

 

RichTextbox Problem, After I find...

k.johnny

27 Feb, 2009 - 03:50 AM
Post #1

New D.I.C Head
*

Joined: 27 Feb, 2009
Posts: 1

After finding a certain text in a RichTextBox, I want to move the found text (line of text) to the topmost of the RichTextBox. How can I do? Help me please.

My codes like this:

CODE

Private Sub List1_Click()
    Dim flag, position
    rText.SelStart = 0
    rText.SelLength = 0
    flag = rtfWholeWord
    position = rText.Find(list1.Text, , , flag)
        If position = -1 Then
        'for now do nothing
        Else
        'for now do nothing
        End If
End sub

K.Johnny

This post has been edited by k.johnny: 27 Feb, 2009 - 02:08 PM

User is offlineProfile CardPM
+Quote Post


Posts in this topic
k.johnny   RichTextbox Problem   27 Feb, 2009 - 03:50 AM
PsychoCoder   [rules][/rules]   27 Feb, 2009 - 02:01 PM
thava   hi johnny go to vb.net and how to select a whole l...   27 Feb, 2009 - 09:59 PM
chetan_hemant   After finding a certain text in a RichTextBox, I ...   27 Feb, 2009 - 11:50 PM

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 05:38PM

Live VB Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month