Results 1 to 4 of 4

Thread: Form's maximum size [Resolved]

  1. #1

    Thread Starter
    Addicted Member haihems's Avatar
    Join Date
    Oct 2004
    Posts
    150

    Resolved 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.

  2. #2
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036
    Hi

    The maximum size of form is limited to current display resolution

    VB Code:
    1. Dim ResolutionWidth As Short = CShort(System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width)
    2. 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."

  3. #3
    Fanatic Member brown monkey's Avatar
    Join Date
    Jun 2004
    Location
    Cebu
    Posts
    552
    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:
    1. Dim index As Integer = Integer.Parse(TextBox1.Text)
    2.         Dim i As Integer
    3.  
    4.         Dim dt As New DataTable()
    5.         dt.Columns.Add(New DataColumn())
    6.         For i = 0 To index - 1
    7.             Dim r As DataRow = dt.NewRow
    8.             dt.Rows.Add(r)
    9.         Next
    10.  
    11.         DataGrid1.DataSource = dt

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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
  •  



Click Here to Expand Forum to Full Width