Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change Form size ,DataGridview size also change?
Message
De
13/05/2011 03:49:24
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Change Form size ,DataGridview size also change?
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01510542
Message ID:
01510542
Vues:
129
HI, all
I want to change the Form size then include it 's DataGridview size also change, this method is ok , but i don't know why the
DataGridview 's ScrollBars disappear,QuodtlDataGridView include Tabcontrol1 , how can i do , thank you .....
Public Class Quotation_Add
     Private OldFormSize As Size
End Class

    Private Sub Quotation_Add_SizeChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.SizeChanged
        TabControl1.Size = New Size(TabControl1.Width + Me.Width - OldFormSize.Width, TabControl1.Height + Me.Height - OldFormSize.Height)
        QuodtlDataGridView.Size = New Size(QuodtlDataGridView.Width + Me.Width - OldFormSize.Width, QuodtlDataGridView.Height + Me.Height - OldFormSize.Height)
        OldFormSize = QuodtlDataGridView.Size

    End Sub
Répondre
Fil
Voir

Click here to load this message in the networking platform