When i fetch the dat from databse and show them in textboxes on my screen the filed which has no data shows  .
How do I remove it

See if this helps.

Public Class Form1
    Private sNBSP As String = " "
    Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        With TextBox1
            .Text = "T" & sNBSP & "E" & sNBSP & "S" & sNBSP & "T"
        End With
    End Sub

    Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
        With TextBox1
            If .Text.Contains(sNBSP) Then .Text = .Text.Replace(sNBSP, "")
        End With
    End Sub
End Class
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.