Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » General

Post new topic   Reply to topic
Multiline doesn't work...
View previous topic :: View next topic  
Author Message
wezel
Freshman


Joined: 09 Oct 2003
Posts: 30

PostPosted: Oct 22nd, 2003 06:40 PM    Post subject: Multiline doesn't work... Reply with quote

Hi,
I added an SSTab and a textbox to a form...

When I set the textbox property Multiline to True, it doesn't work (doesn't do ANYTHING if you press the enter button, not even a beep like it does when you press enter if it's not multiline)

However, when I delete the SSTab, multiline does work...

Has anyone got any idea how this is possible ??
(this is really irritating)
Thanx at advance!
Wezel
_________________
Real Programmers don't comment their code - it's hard to write, it should be hard to read
Back to top
View user's profile Send private message Send e-mail Visit poster's website
wezel
Freshman


Joined: 09 Oct 2003
Posts: 30

PostPosted: Oct 23rd, 2003 04:45 AM    Post subject: Reply with quote

hi
Ow, when i try a normal Tabstrip it doesn't work either, when i click the other tabs,, the controls on the 1st tab don't dissapear or anything
This is getting very very freaking irritating, please some advice ?
_________________
Real Programmers don't comment their code - it's hard to write, it should be hard to read
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ritchieroo
Newbie


Joined: 27 Oct 2003
Posts: 8

PostPosted: Oct 27th, 2003 08:12 AM    Post subject: Reply with quote

The normal TabStrip (MSComctllib.TabStrip) is not a control container. You need to use the TabStrip_Click event to hide or show controls.

I usually create a control-array of VB.PictureBox (one for each tab), and place my child controls within these.

The PictureBoxes can be moved in order to hide them...

Code:

Private Sub TabStrip1_Click()
    Dim intIndex as Integer

    Dim objBox as VB.PictureBox

    intIndex = TabStrip1.SelectedItem.Index

    For Each objBox In picBoxes
        With objBox
            If .Index = lngIndex - 1 Then
                objBox.Left = 0
            Else
                objBox.Left = 32000   'Really big number
            End If
        End With
    Next
   
End Sub
Back to top
View user's profile Send private message
wezel
Freshman


Joined: 09 Oct 2003
Posts: 30

PostPosted: Oct 29th, 2003 11:28 AM    Post subject: Reply with quote

Thanx for your reply.
I've solved it with a Tabstrip & frames. Have you got any idea why multiline doesn't work with an SSTab ?
_________________
Real Programmers don't comment their code - it's hard to write, it should be hard to read
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » General All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic