|
-
Oct 20th, 2004, 02:54 AM
#1
Thread Starter
Addicted Member
Form's maximum size [Resolved]
Hi,
I want to know the froms maximum height and width.
I want to show and get more than 100 data at a time in the form. For that shall i use textboxes or a datagrid?
If data grid means, I like to control the number of rows generated according to the user's input.How can I do that?
Pls help me...urgent!!!
Regards,
Hems.
Last edited by haihems; Oct 20th, 2004 at 11:45 PM.
-
Oct 20th, 2004, 04:17 AM
#2
Hi
The maximum size of form is limited to current display resolution
VB Code:
Dim ResolutionWidth As Short = CShort(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width)
Dim ResolutionHeight As Short = CShort(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height)
Regards
Jorge
"The dark side clouds everything. Impossible to see the future is."
-
Oct 20th, 2004, 04:18 AM
#3
Fanatic Member
Dunno if this helps but if you are on to grid. You have to create a datatable to be the datasource of your grid.
VB Code:
Dim index As Integer = Integer.Parse(TextBox1.Text)
Dim i As Integer
Dim dt As New DataTable()
dt.Columns.Add(New DataColumn())
For i = 0 To index - 1
Dim r As DataRow = dt.NewRow
dt.Rows.Add(r)
Next
DataGrid1.DataSource = dt
-
Oct 20th, 2004, 05:13 AM
#4
Re: Form's maximum size
Originally posted by haihems
Hi,
I want to show and get more than 100 data at a time in the form. For that shall i use textboxes or a datagrid?
Datagrid.
If data grid means, I like to control the number of rows generated according to the user's input.How can I do that?
By modifying your SQL query.
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
|