| View previous topic :: View next topic |
| Author |
Message |
wezel Freshman
Joined: 09 Oct 2003 Posts: 30
|
Posted: Oct 22nd, 2003 06:40 PM Post subject: Multiline doesn't work... |
|
|
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 |
|
wezel Freshman
Joined: 09 Oct 2003 Posts: 30
|
Posted: Oct 23rd, 2003 04:45 AM Post subject: |
|
|
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 |
|
ritchieroo Newbie
Joined: 27 Oct 2003 Posts: 8
|
Posted: Oct 27th, 2003 08:12 AM Post subject: |
|
|
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 |
|
wezel Freshman
Joined: 09 Oct 2003 Posts: 30
|
Posted: Oct 29th, 2003 11:28 AM Post subject: |
|
|
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 |
|
|