hi ,
My Project is VB6.0 , My Requirement is Tab 0 , i have one grid , the grid and Tab has to be generated at run time and placed in appropriate Tabs. In that i created tabs and Grid at run time , but i could not place the Grid in appropriate Tab. It's Urgent.........
Thanx in Adv
Ganesh
7 7091
Can u explain it properly. If possible add code for how u created tab & grid but couldn't place in right tab.
How to add controls(Grid,labelbox,textbox ) in multible Tabs(Tab 0,Tab 1,Tab 2 ) of SSTab at run time.
Can u explain it properly. If possible add code for how u created tab & grid but couldn't place in right tab.
hi
How to add controls(Grid,labelbox,textbox ) in multible Tabs(Tab 0,Tab 1,Tab 2 ) of SSTab at run time.
Can u explain it properly. If possible add code for how u created tab & grid but couldn't place in right tab.
How to add controls(Grid,labelbox,textbox ) in multible Tabs(Tab 0,Tab 1,Tab 2 ) of SSTab at run time.
Can u explain it properly. If possible add code for how u created tab & grid but couldn't place in right tab.
How to add controls(Grid,labelbox,textbox ) in multible Tabs(Tab 0,Tab 1,Tab 2 ) of SSTab at run time.
SSTabDia.TabsPerRow = 3
SSTabDia.Tabs = 3
For i = 1 To 3
Load lbl_Dia(i)
Set lbl_Dia(i).Container = SSTabDia
lbl_Dia(i).Move 160 + (i * 1100), 720
With lbl_Dia(i)
.Visible = True
.ZOrder
End With
Load txt_wgt(i)
Set txt_wgt(i).Container = SSTabDia
txt_wgt(i).Move 160 + (i * 1100), 1200
txt_wgt(i).Visible = True
txt_wgt(i).ZOrder
Next
Hi,
Well.. Its quite Tricky...
What you have to do is In Form'Load event write : -
SSTab1.Tabs = 5
-
SSTab1.TabsPerRow = 5
-
And in Form's Activate Event Load the Controls...: -
Dim i As Integer
-
For i = 1 To 4
-
SSTab1.Tab = i
-
Load Text1(i)
-
Text1(i).Visible = True
-
Text1(i).Left = 400
-
Text1(i).Top = 500
-
Text1(i).Text = i
-
Set Text1(i).Container = SSTab1
-
Next
-
Note : In above code, Line Number 3 is very Important..
Before setting the Container of Control, Tab need to be changed..
I guess, after Changing the SSTab's Number of tabs,
Some time is required to Re-Paint itself...
Regards
Veena
Hi,
Well.. Its quite Tricky...
What you have to do is In Form'Load event write : -
SSTab1.Tabs = 5
-
SSTab1.TabsPerRow = 5
-
And in Form's Activate Event Load the Controls...: -
Dim i As Integer
-
For i = 1 To 4
-
SSTab1.Tab = i
-
Load Text1(i)
-
Text1(i).Visible = True
-
Text1(i).Left = 400
-
Text1(i).Top = 500
-
Text1(i).Text = i
-
Set Text1(i).Container = SSTab1
-
Next
-
Note : In above code, Line Number 3 is very Important..
Before setting the Container of Control, Tab need to be changed..
I guess, after Changing the SSTab's Number of tabs,
Some time is required to Re-Paint itself...
Regards
Veena
hi veena
its working fine thanks a lot
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Geert-Pieter Hof |
last post by:
Hi,
If have a SSTab control MySSTab with several textboxes and I want to disable
all textboxes. If was thinking of something like
Dim MyControl As Control
For Each MyControl In MySSTab
...
|
by: T. Wintershoven |
last post by:
Hello,
In one of my projects i use a SSTAB object with a view controls on it
(textboxes and a checkbox).
I want to set the enable property for all the controls on the SSTAB object
to FALSE....
|
by: Oleksandr Shteyner |
last post by:
Hi,
Is there any way to paint different TABs of SSTab control (Tabbed dialog
control) to different colors?
Or is there any other control which looks / works like SSTAB but has this
|
by: David C. Barber |
last post by:
When I set a custom background color on the ssTab control in VB6, it colors
the panel, but not the tabs themselves. How can I get the control to color
everything the same color?
And I can't put...
|
by: Joanny |
last post by:
Hi, there,
When I open a VB6 application on VB.net, it automatically
upgrade to VB.net. But I got the error message said:
"Upgrade failed: Exception occurred:
The referenced components...
|
by: kk |
last post by:
I have 2 issues, please help !
1st issue :
--------------------------------------------------------
Loading Grid
------------
1) creating new rows in a datatable and adding data a
array...
|
by: bindurajeesh |
last post by:
I need sstab works in vb.net in same way works in vb6
|
by: Carlos Lozano |
last post by:
Hello Folks!
I have a grid that populates from a table on SQL Server. All datetime with
DBNull value show 1/1/1900 12:00AM ... Instead of just blank ("").
I found a document with the following...
|
by: Shined |
last post by:
Hi,
I am new to this group. i hv a problem with SSTAB in vb6.0. In my SStab there are 8 tabs. i want to activate them via ALT 1( tab1), ALT 2(tab2) etc. It is possible if we are using &1,&2 etc with...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |