Click here to Skip to main content
15,891,529 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionPrint (VB6) vs .WriteLine (VB.NET) Pin
Marcus J. Smith12-Apr-07 11:50
professionalMarcus J. Smith12-Apr-07 11:50 
AnswerRe: Print (VB6) vs .WriteLine (VB.NET) Pin
Dave Kreskowiak12-Apr-07 14:26
mveDave Kreskowiak12-Apr-07 14:26 
GeneralRe: Print (VB6) vs .WriteLine (VB.NET) Pin
Marcus J. Smith13-Apr-07 0:21
professionalMarcus J. Smith13-Apr-07 0:21 
QuestionConvert Html file to Jpeg Image Pin
hemrk12-Apr-07 10:13
hemrk12-Apr-07 10:13 
QuestionReading HTML table Pin
krk101112-Apr-07 8:40
krk101112-Apr-07 8:40 
AnswerRe: Reading HTML table Pin
Dave Kreskowiak12-Apr-07 14:23
mveDave Kreskowiak12-Apr-07 14:23 
GeneralRe: Reading HTML table Pin
krk101112-Apr-07 17:03
krk101112-Apr-07 17:03 
QuestionAdding controls to a tab control at runtime Pin
steve_rm12-Apr-07 7:21
steve_rm12-Apr-07 7:21 
Hello,

VS 2005

This works but i am wondering is there a better way to do this. I will be having combo boxes, text boxes, buttons and list boxes and labels.

The layout of each tab will be the same. As the user click add task it will add a new tab the controls will be added and some controls will be bounded by tables in a database.

The user will then add some data into some of the text boxes and click save. The contents will be saved to the database.

My code is below and this is just a start. If anyone know of a better more efficient then I will be happy to learn from them.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
        Me.TabControl1.TabPages.Add("Index1", "Task 123")<br />
    End Sub<br />
<br />
    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click<br />
        Dim cboClients As New ComboBox<br />
        cboClients.Top = 30<br />
        cboClients.Left = 30<br />
        AddHandler cboClients.SelectionChangeCommitted, AddressOf ComboBox_selectionChangeCommitted<br />
<br />
        cboClients.Parent = Me.TabControl1.TabPages(1) 'Add the combo box the specified tab<br />
    End Sub<br />
<br />
    Private Sub ComboBox_selectionChangeCommitted(ByVal sender As System.Object, ByVal e As System.EventArgs)<br />
        'Fill the combo box<br />
    End Sub


Many thanks in advance,

Steve
AnswerRe: Adding controls to a tab control at runtime Pin
MatrixCoder12-Apr-07 8:43
MatrixCoder12-Apr-07 8:43 
QuestionPopulating Child controls of a Tabcontrol Pin
DXDAVIES12-Apr-07 5:39
DXDAVIES12-Apr-07 5:39 
QuestionAdding new rows to Typed DataSet Pin
Steven J Jowett12-Apr-07 5:08
Steven J Jowett12-Apr-07 5:08 
AnswerRe: Adding new rows to Typed DataSet Pin
kubben12-Apr-07 5:29
kubben12-Apr-07 5:29 
Questionconnect to password-protected access-file Pin
Smithers-Jones12-Apr-07 4:18
Smithers-Jones12-Apr-07 4:18 
AnswerRe: connect to password-protected access-file Pin
H@is@here12-Apr-07 4:40
H@is@here12-Apr-07 4:40 
GeneralRe: connect to password-protected access-file Pin
Smithers-Jones12-Apr-07 21:53
Smithers-Jones12-Apr-07 21:53 
Questionretrieve arabic field Pin
charchabil0312-Apr-07 2:03
charchabil0312-Apr-07 2:03 
Questionsetup project in 2003 Pin
Kirtibangalore12-Apr-07 0:46
Kirtibangalore12-Apr-07 0:46 
AnswerRe: setup project in 2003 Pin
amaneet12-Apr-07 1:40
amaneet12-Apr-07 1:40 
AnswerRe: setup project in 2003 Pin
kubben12-Apr-07 2:30
kubben12-Apr-07 2:30 
QuestionFile Transfer in Desktop application Pin
nitin_ion11-Apr-07 23:45
nitin_ion11-Apr-07 23:45 
AnswerRe: File Transfer in Desktop application Pin
Dave Kreskowiak12-Apr-07 4:17
mveDave Kreskowiak12-Apr-07 4:17 
QuestionCapture windows shutdown event Pin
ravihd11-Apr-07 23:43
ravihd11-Apr-07 23:43 
AnswerRe: Capture windows shutdown event Pin
amaneet12-Apr-07 1:46
amaneet12-Apr-07 1:46 
AnswerRe: Capture windows shutdown event Pin
Dave Kreskowiak12-Apr-07 4:15
mveDave Kreskowiak12-Apr-07 4:15 
Questioncount of file in a directory Pin
aphei11-Apr-07 22:01
aphei11-Apr-07 22:01 

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.