473,383 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

How to Add Grid in SSTAb at Runtime VB6.0 ?

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
Aug 27 '08 #1
7 7091
smartchap
236 100+
Can u explain it properly. If possible add code for how u created tab & grid but couldn't place in right tab.
Aug 27 '08 #2
How to add controls(Grid,labelbox,textbox ) in multible Tabs(Tab 0,Tab 1,Tab 2 ) of SSTab at run time.
Aug 27 '08 #3
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.
Aug 27 '08 #4
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.
Aug 27 '08 #5
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
Aug 27 '08 #6
QVeen72
1,445 Expert 1GB
Hi,


Well.. Its quite Tricky...
What you have to do is In Form'Load event write :

Expand|Select|Wrap|Line Numbers
  1. SSTab1.Tabs = 5
  2. SSTab1.TabsPerRow = 5
  3.  
And in Form's Activate Event Load the Controls...:

Expand|Select|Wrap|Line Numbers
  1.     Dim i As Integer
  2.     For i = 1 To 4
  3.         SSTab1.Tab = i
  4.         Load Text1(i)
  5.         Text1(i).Visible = True
  6.         Text1(i).Left = 400
  7.         Text1(i).Top = 500
  8.         Text1(i).Text = i
  9.         Set Text1(i).Container = SSTab1
  10.     Next
  11.  
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
Aug 28 '08 #7
Hi,


Well.. Its quite Tricky...
What you have to do is In Form'Load event write :

Expand|Select|Wrap|Line Numbers
  1. SSTab1.Tabs = 5
  2. SSTab1.TabsPerRow = 5
  3.  
And in Form's Activate Event Load the Controls...:

Expand|Select|Wrap|Line Numbers
  1.     Dim i As Integer
  2.     For i = 1 To 4
  3.         SSTab1.Tab = i
  4.         Load Text1(i)
  5.         Text1(i).Visible = True
  6.         Text1(i).Left = 400
  7.         Text1(i).Top = 500
  8.         Text1(i).Text = i
  9.         Set Text1(i).Container = SSTab1
  10.     Next
  11.  
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
Aug 28 '08 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

0
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 ...
3
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....
1
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
2
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...
3
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...
1
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...
0
by: bindurajeesh | last post by:
I need sstab works in vb.net in same way works in vb6
4
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...
2
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...
0
isladogs
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...
0
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...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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$) { } ...
0
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...
0
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.