Similar Threads:
1.Formatting Text in Rich Text Box Control
I have a rich textbox control and a long string of characters that I
will assign to it's .text property. How can I bold some characters and
apply italics to others?
2.Displaying formatted text in a text box control.
"Parul" < XXXX@XXXXX.COM > wrote in message
news:161c01c3847f$b7b8cb00$ XXXX@XXXXX.COM ...
> There is some formatted text I need to display in a text
> box. It appears very unreadable when seen in a regular
> text box control. However when copied into a word document
> it is very readable.
> Any pointers on if I need to change a setting for the text
> box control. Will using the rich text box help fix this.
>
Yes, it sounds like you need to use a RichTextBox. The standard textbox
doesn't support formatting.
Mike
3.validating text in a text box control
I'm new to this and am not finding the answers I need.
Does someone have an example of how to verify that text
entered in a text box contains only integers (zip code) or
just alpha characters and not integers (name)?
Thanks!
4.BUG: Text Box Controls Data Bound on Tab Controls
Hi,
I've noticed a bug in VB.NET (latest .NET Framework)...
- I have a TabControl on a form with several tabs.
- Each tab contains text boxes that are bound to fields in a data source
(DataBindings).
- When I display a record and then try to access the .Text property of one
of the text boxes on any tab except the current tab, the result is an Empty
string.
This occurs even though the fields that the text boxes are bound to have
data in them. If I display the tab and then try to read the contents of the
Text Boxes, then the data is there.
Anyone know if there is a work around to this? Some way to force the text
boxes to grab the data before they are displayed?
Thanks in advance,
Andrew
5.Text Box Controls Data Bound on Tab Controls
Hi Andrew,
I tried to simulate your bug, can you tell me what is different in your
situation because with this everything goes even better than I expected?
Cor
\\\a form with a tabcontrol with 2 tabpages with on each a textbox
Dim bool As Boolean
Private Sub Form1_Load(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
Dim dt As New DataTable
dt.Columns.Add("my")
Dim dr As DataRow = dt.NewRow
dr(0) = "Hello"
dt.Rows.Add(dr)
Me.TextBox1.DataBindings.Add("text", dt, "my")
Me.TextBox2.DataBindings.Add("text", dt, "my")
bool = True
End Sub
Private Sub TabControl1_SelectedIndexChanged(ByVal _
sender As Object, ByVal e As System.EventArgs) Handles _
TabControl1.SelectedIndexChanged
If bool Then
Select Case TabControl1.SelectedIndex
Case 0
MessageBox.Show("I am textbox2 and the value = " &
TextBox2.Text)
Case 1
MessageBox.Show("I am textbox1 and the value = " &
TextBox1.Text)
End Select
End If
End Sub
///
,
>
> I've noticed a bug in VB.NET (latest .NET Framework)...
>
> - I have a TabControl on a form with several tabs.
> - Each tab contains text boxes that are bound to fields in a data source
> (DataBindings).
> - When I display a record and then try to access the .Text property of one
> of the text boxes on any tab except the current tab, the result is an
Empty
> string.
>
> This occurs even though the fields that the text boxes are bound to have
> data in them. If I display the tab and then try to read the contents of
the
> Text Boxes, then the data is there.
>
> Anyone know if there is a work around to this? Some way to force the text
> boxes to grab the data before they are displayed?
>
> Thanks in advance,
>
> Andrew
>
>
>
6. Changing Text Box Control Source with VB?
7. Setting text of a control box in VB
8. Embedding file in Rich Text Box control