can any one help me in changing text in vb.net2003

Dani AI

Generated

Following 's question and the clarification attempts by and , the following short primer covers common meanings of "change text" in VB.NET 2003 (.NET 1.1) and gives small, ready-to-use patterns for UI updates, file writes, and search/replace. All examples use .NET 1.1-compatible APIs.

' WinForms - set control text at runtime
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Label1.Text = "New text"
End Sub

' ASP.NET 1.1 - set a label in Page_Load
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
If Not IsPostBack Then
Label1.Text = "Initial text"
End If
End Sub

' Write text to a file (StreamWriter is available in .NET 1.1)
Using sw As New System.IO.StreamWriter("C:\temp\out.txt", False, System.Text.Encoding.UTF8)
sw.Write("Text to save")
End Using

' Replace text using Regex
Dim result As String = System.Text.RegularExpressions.Regex.Replace(source, "pattern", "replacement")

Note: VS.NET 2003 targets .NET Framework 1.1, so many convenience methods added later (for example File.WriteAllText) are not available; use StreamReader/StreamWriter or FileStream. For hashing/encryption, prefer modern algorithms (avoid MD5 for security; use Rijndael/AES where possible). If a UI change does not appear on an ASP.NET page, check Page.IsPostBack logic, control IDs, and caching/viewstate. This summary addresses the scenarios implied by and and gives practical snippets suitable for legacy .NET 1.1 projects.

Recommended Answers

All 3 Replies

What kind of changing are you doing?

i have not actually started but i was asked if i could change text. can you help me?

change your text into what? into encrypted format or numbers?.. Or you want to change the font of the text?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.