Results 1 to 3 of 3

Thread: How Can I Do The Following Things

  1. #1

    Thread Starter
    Member Black Wolf's Avatar
    Join Date
    Apr 2006
    Location
    Visual Basic
    Posts
    61

    Question How Can I Do The Following Things

    Hello Everybody :
    I am a new member here and I really found many important codes and DLL(s) here but I have some questions that I hope I can find the answers of it Here :

    Note : I ve searched before writing my topic so please forgive me if I couldnt
    find the answers while I was searching :

    1 - How can I Insert a PNG Image in VB 6 ? Is there any ocx , code , dll allows me that because
    We are all knows that the PNG Image is not available to add in VB 6 ?

    2 - Is there any .DLL that allows me to save with all images extensions ?

    3 - How can I search for a word in the text in the RichTextFile and make a replace ?


    Soooorry for the long questions but i really need the answers

    Regards
    Black Wolf

  2. #2
    Hyperactive Member
    Join Date
    Jun 2004
    Posts
    468

    Lightbulb Re: How Can I Do The Following Things

    #3) This should be of some help:
    VB Code:
    1. Const SEARCH_TEXT As String = "hello"
    2. Const REPLACE_TEXT As String = "goodbye"
    3.  
    4. Dim i As Long
    5. With RichTextBox1
    6.   i = .Find(SEARCH_TEXT)
    7.   If i <> -1 Then
    8.     .SelStart = i
    9.     .SelLength = Len(SEARCH_TEXT)
    10.     .SelText = REPLACE_TEXT
    11.   End If
    12. End With

  3. #3

    Thread Starter
    Member Black Wolf's Avatar
    Join Date
    Apr 2006
    Location
    Visual Basic
    Posts
    61

    Re: How Can I Do The Following Things

    Thank you very much dear ...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width