Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change Form size ,DataGridview size also change?
Message
From
13/05/2011 03:49:24
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
Change Form size ,DataGridview size also change?
Environment versions
Environment:
VB 9.0
OS:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01510542
Message ID:
01510542
Views:
128
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
Reply
Map
View

Click here to load this message in the networking platform