|
-
Apr 4th, 2009, 06:38 AM
#1
Thread Starter
PowerPoster
tabstrip dinamicly
I don know if is possible:-)
I have in form a tabstrip with one element with a teeview.
Now in access table have:
100
200
354
...
999
I dont know how many record can have in filed table (is dinamic the number of record)
Now:
1) in event load of form is possible to add a new tabstrip based the number of record in filed and named each new tabstrip with the name of rset, similar:
tabstrip 1 name 100, tabstrip 2 name 200 tabstrip 3 name 354... tabstrip N name 999?
2) naturally, is possible to use the same treeview for each tabstrip and assign automaticlyy the refrence to the new tabstrip?
I hope i am clear...
tks.
-
Apr 4th, 2009, 09:13 AM
#2
Re: tabstrip dinamicly
1) yes, it's possible, you need to loop recodaset creating new TabStrips, but you can't use just numbers as tabstrips names, at least use something like: "a200", "a300", etc.. this controls would be added dinamically by code.
2) yes, using TreeView.Container = Tabstripname.
It's not very common creating one Tabstrip for each record, creating tabs in a TabStrip per record sounds more logical, but if that is your need you would need to assign new coordinates in the Form for each new Tabstrip, so they don't overlap each other.
-
Apr 4th, 2009, 11:34 AM
#3
Thread Starter
PowerPoster
Re: tabstrip dinamicly
 Originally Posted by jcis
1) yes, it's possible, you need to loop recodaset creating new TabStrips, but you can't use just numbers as tabstrips names, at least use something like: "a200", "a300", etc.. this controls would be added dinamically by code.
2) yes, using TreeView.Container = Tabstripname.
It's not very common creating one Tabstrip for each record, creating tabs in a TabStrip per record sounds more logical, but if that is your need you would need to assign new coordinates in the Form for each new Tabstrip, so they don't overlap each other.
tks for reply...
but the records in field are max from 1 to 5
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|