Click here to Skip to main content
15,914,399 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all


in my project i have textbox in that textbox i may have values like "A1 A2 A3 A4 A5", i want remove the A3 value from that textbox please help me how to do or give me sample code
Posted

1 solution

Use String.Replace.

http://msdn.microsoft.com/en-us/library/system.string.replace.aspx[^]

[Update]
---------

In response to your comment asking for sample code, here's the coede snippet from the MSDN documentation I linked to above:

VB
Imports System

Public Class ReplaceTest

    Public Shared Sub Main()
        Dim errString As String = "This docment uses 3 other docments to docment the docmentation"

        Console.WriteLine("The original string is:{0}'{1}'{0}", Environment.NewLine, errString)

        ' Correct the spelling of "document".
        Dim correctString As String = errString.Replace("docment", "document")

        Console.WriteLine("After correcting the string, the result is:{0}'{1}'", Environment.NewLine, correctString)
    End Sub
End Class
 
Share this answer
 
v2
Comments
sameertm 23-Apr-11 15:07pm    
can u give me sample code for this to do ?
Nish Nishant 23-Apr-11 15:20pm    
I've updated my answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900