krishna2010
New member
- Joined
- Jul 24, 2010
- Messages
- 2
- Programming Experience
- Beginner
hi frnds,
Please help me in this query,my code looks as below,
when i click save button data is saved succefully in oracle datbase with '???',when i click get button also the text is coming with '???' in my textbox.
my question is how can i get the same font data into my textbox.please help me asap.
note:my textbox data is in 'Gautami font' such as indian lanuage 'telugu'.
Thanks
in advance.
Please help me in this query,my code looks as below,
when i click save button data is saved succefully in oracle datbase with '???',when i click get button also the text is coming with '???' in my textbox.
my question is how can i get the same font data into my textbox.please help me asap.
note:my textbox data is in 'Gautami font' such as indian lanuage 'telugu'.
VB.NET:
Imports System.Data
Imports System.Data.OleDb
Public Class Form2
Dim con As New OleDbConnection("provider=msdaora.1;user id=scott;password=tiger")
Dim cmd As New OleDbCommand
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
cmd.Connection = con
End Sub
Private Sub save_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
cmd.CommandText = "insert into tel values(N'" & TextBox1.Text & "',N'" & TextBox2.Text & "')"
con.Open()
cmd.ExecuteNonQuery()
con.Close()
MsgBox("Record saved successfully")
End Sub
Private Sub get_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
cmd.CommandText = "select fname from tel"
con.Open()
TextBox1.Text = cmd.ExecuteScalar
con.Close()
End Sub
End Class
in advance.
Last edited by a moderator: