Results 1 to 10 of 10

Thread: Form Methods

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2001
    Location
    Belgium
    Posts
    25

    Form Methods

    Hi,

    In VB6 you can see all the methods in a combobox like form load, unload, resize. Is this possible in VB.NET because i want to do something on the form resize method.

    Like if the user resized the form the datagrid is also the same as the form with.

    Another question in vb6 their was also a function like datagrid1.width = me.scalewidth but in vb.net i don't the scalewidth anymore

    Regards
    Kris

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Dec 2001
    Location
    Belgium
    Posts
    25

    Datagrid Editting

    Another question is it possible to edit a datagrid in design mode like in vb6 because i want to change my column names.

  3. #3
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083

    Re: Form Methods

    Originally posted by wizzard
    Hi,

    In VB6 you can see all the methods in a combobox like form load, unload, resize. Is this possible in VB.NET because i want to do something on the form resize method.
    Do you mean Events of the form ?

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Dec 2001
    Location
    Belgium
    Posts
    25
    yes i mean event sorry.

  5. #5
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by wizzard
    yes i mean event sorry.
    OK , to get all form events , select from the upper left combobox which called "Class Name" Form Events (this is in VS.NET 2003) in VS.NET 2002 it's something like base class ) . Then on the right you can find all the events of that form .
    Last edited by Pirate; Jun 11th, 2003 at 07:10 AM.

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Dec 2001
    Location
    Belgium
    Posts
    25
    Thanks,

    Can you help me with this:

    In VB6 you can see all the methods in a combobox like form load, unload, resize. Is this possible in VB.NET because i want to do something on the form resize method.

    Like if the user resized the form the datagrid is also the same as the form with.

    Another question in vb6 their was also a function like datagrid1.width = me.scalewidth but in vb.net i don't the scalewidth anymore

    ----------------------------------------------------------------------------

    I have Visual Studio 2002. Is their already a newer version out?

  7. #7
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by Pirate
    OK , to get all form events , select from the upper left combobox which called "Class Name" Form Events (this is in VS.NET 2003) in VS.NET 2002 it's something like base class ) . Then on the right you can find all the events of that form .
    First did this help you with the first problem ? and I guess they are not methods , they are events . lol

  8. #8
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Another question in vb6 their was also a function like datagrid1.width = me.scalewidth but in vb.net i don't the scalewidth anymore
    Use instead , Dock property of the DataGrid . Set it to Fill if you want it to be resized as the form resizes (and you have mulitple options there too).

  9. #9

    Thread Starter
    Junior Member
    Join Date
    Dec 2001
    Location
    Belgium
    Posts
    25
    yes thanks with the base class events i see them all.

    But to edit a datagrid or changing the column names in design time is this no longer possible?

  10. #10
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by wizzard
    yes thanks with the base class events i see them all.

    But to edit a datagrid or changing the column names in design time is this no longer possible?
    Sure ,

    In design time , I don't think it's possible . But you can do it with code anyways .

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