Click here to Skip to main content
15,922,512 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalpackage and deployment wizard Pin
Salman Sheikh4-Apr-05 23:12
Salman Sheikh4-Apr-05 23:12 
GeneralSWF files Pin
Mr Dabbah4-Apr-05 22:42
Mr Dabbah4-Apr-05 22:42 
GeneralRe: SWF files Pin
Dave Kreskowiak5-Apr-05 5:52
mveDave Kreskowiak5-Apr-05 5:52 
Generalbuild trial appication Pin
samithaslk4-Apr-05 22:33
samithaslk4-Apr-05 22:33 
Generalhav an error tag for DBGrid Pin
Member 13879124-Apr-05 22:00
Member 13879124-Apr-05 22:00 
GeneralRe: hav an error tag for DBGrid Pin
Dave Kreskowiak5-Apr-05 3:45
mveDave Kreskowiak5-Apr-05 3:45 
Generaldynamically create picture control with tab Pin
shinay4-Apr-05 16:42
shinay4-Apr-05 16:42 
GeneralRe: dynamically create picture control with tab Pin
Dave Kreskowiak5-Apr-05 5:46
mveDave Kreskowiak5-Apr-05 5:46 
My VB6 is pretty rusty, but here goes...

Load only loads forms, not controls. What you have to do is create a new instance of the control you want, then add it to the Controls collection of the form/control you want to host the new control.

In your case, you want to make a new Tab, not a TabStrip, add it to the TabStrip's Tabs collection.
Dim newTab As New Tab
newTab.Name = "Tab3"
newTab.Caption = "My New Tab"
TabStrip1.Tabs.Add(newTab)

Adding the PictureBox control is done just about the same way.
Dim newPicBox As New PictureBox
newPicBox.Width = ...
newPicBox.Height = ...
newPicBox.Left = ...
newPicBox.Top = ...
newPicBox.Name = "PictureBox3"
Form1.Controls.Add(newPicBox)



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

GeneralHelp ASAP Uploading pdf files in web server or database Pin
Anonymous4-Apr-05 16:25
Anonymous4-Apr-05 16:25 
GeneralRe: Help ASAP Uploading pdf files in web server or database Pin
Dave Kreskowiak5-Apr-05 3:35
mveDave Kreskowiak5-Apr-05 3:35 
GeneralListbox Pin
rstat14-Apr-05 15:05
rstat14-Apr-05 15:05 
GeneralRe: Listbox Pin
Dave Kreskowiak5-Apr-05 3:28
mveDave Kreskowiak5-Apr-05 3:28 
GeneralRe: Listbox Pin
rstat15-Apr-05 9:46
rstat15-Apr-05 9:46 
GeneralRe: Listbox Pin
Dave Kreskowiak5-Apr-05 10:25
mveDave Kreskowiak5-Apr-05 10:25 
GeneralDetermining File Type Pin
Anonymous4-Apr-05 11:42
Anonymous4-Apr-05 11:42 
GeneralRe: Determining File Type Pin
Anonymous4-Apr-05 14:59
Anonymous4-Apr-05 14:59 
GeneralRe: Determining File Type Pin
Anonymous4-Apr-05 16:51
Anonymous4-Apr-05 16:51 
GeneralEnumerating PATH environment variable. Pin
MrRich4-Apr-05 10:56
MrRich4-Apr-05 10:56 
GeneralRe: Enumerating PATH environment variable. Pin
Anonymous4-Apr-05 16:27
Anonymous4-Apr-05 16:27 
GeneralRePost, I messed up the first one Pin
Anonymous4-Apr-05 16:30
Anonymous4-Apr-05 16:30 
GeneralDang it Pin
Anonymous4-Apr-05 16:33
Anonymous4-Apr-05 16:33 
GeneralTCP client with integers Pin
Member 8079984-Apr-05 9:27
Member 8079984-Apr-05 9:27 
GeneralTrying to understand Data Access - Never Mind! Pin
frgood4-Apr-05 9:25
frgood4-Apr-05 9:25 
GeneralHelp me ASAP. Pin
abeyphier4-Apr-05 4:05
abeyphier4-Apr-05 4:05 
GeneralRe: Help me ASAP. Pin
Christian Graus4-Apr-05 10:34
protectorChristian Graus4-Apr-05 10:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.