Controlling text withing a text box control

Visual Basic

    Next

  • 1. Persist properties in ActiveX controls as Design Time?
    I've written an ActiveX control in VB6 that I intend to place on some of my other VB Forms. There will be more than one of these controls on each form. I've defined public properties in the control using get/let properties and methods. When I draw the control on the form and enter a value in its properties, for example a property named "Caption", it displays properly in the caption of the control. However, when I run the program in VB, the caption (property) is gone!... when I return to the design view, it's no longer there either. None of the other public properties of the control are there either. I looked at the propertybag section but it doesn't appear to give me what I'm looking for. There will be many instances of this control in a single form and I won't know the specific instantiation of an individual control. Can anyone shed some light on what is happening and how to fix it? Thanks for any guideance you can provide, Steve
  • 2. Need help: send mail from VB6 using CDO
    I need to call CDO in a thread. (thread is from api CreateThread) My codes are like: 1. in parameter myClass.cls Option Explicit Public iMsg as CDO.Message 2. in my form1.frm Public stParam As myClass Private Sub Form_Load() Set stParam = New Class1 Set stParam.iMsg = New CDO.Message End Sub Private Sub Command1_Click() Dim lRet As Long Dim lThreadID As Long lThreadID = 0 lRet = CreateThread(0,0,AddressOf ThreadFunc, stParam,0, lThreadID) end sub After I started the the thread, I got "Run-time error '-2147221008' CoInitialize has not been called". (Stop at iMsg.Configuration.Fields which is in my .bas file) It must be something wrong when I pass CDO to the thread. What should I do? Please help. Penny
  • 3. reportviewer control?
    I have installed sql express edition along with vb 2005 exp edition. I have also installed reportviwer and sql toolkit. Now, how do I go about creating a report from VB 2005 (IDE)window? Toolbox, data group doesn't list reportviewer. How can I fix it?
  • 4. how can I get/set the checkbox state in the treeview?
    Hi everyone, I am a rookie about the treeview control.Now I have created one with checkboxes, how can I get/set the checkbox state? I will appreciate any idea about this!
  • 5. Run Unix command from Visual Basic
    Goodmorning, I must build a Windows application usign Visual Basic to run commands on a remote Unix Server. On Internet I have found a component (wodSSH) to do this operation. It is an OCX that has following properties: Login = <myLogin> Password = <myPassword> Hostname = <serverUnix> Protocol = SSH1 Command = "ls -laF" it has the method Connect() that provide to establish a connection to the remote Unix Server and execute the command specified. In the event "Received" I can get the response from the server. For Example if the command is "ls" in the event "Received" I can get the server files list. THIS COMPONENT IS NOT FREE!!! I'm lookin for a similar components, easy to use, usable by Visual Basic and FREE! Thanks.

Controlling text withing a text box control

Postby Bill » Wed, 20 Aug 2003 01:47:39 GMT

I am looking for a text box control that will allow me to 
manipulate the look of individual words as they are typed 
into the text box.  The application calls for the word to 
be looked up, and checked against a list of keywords.  
Does anyone know of a control that will do this?

Thanks,

B

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



Return to Visual Basic

 

Who is online

Users browsing this forum: No registered users and 58 guest