Updating text fields on another form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • parkergirl
    New Member
    • Jan 2008
    • 4

    Updating text fields on another form

    Hello,

    I am currently working on a project that has many tabs all on one form. Since you can only have so many controls on one form, my job is to seperate these tabs into forms. One problem that I am having is updating text fields with a user's information on another form when double-clicking a MSFlexgrid row. Please help!
  • daniel aristidou
    Contributor
    • Aug 2007
    • 494

    #2
    Originally posted by parkergirl
    Since you can only have so many controls on one form, my job is to seperate these tabs into forms
    Do you mean in terms of space.......? Or is there actually a restriction as to how many controls are allowed in each form?
    Last edited by Killer42; Jan 30 '08, 09:43 PM.

    Comment

    • jamesd0142
      Contributor
      • Sep 2007
      • 471

      #3
      I think we need a little more info, but from what i understand is this helpful...

      <formName>.<tex tbox>.text = value

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by daniel aristidou
        Do you mean in terms of space.......? Or is there actually a restriction as to how many controls are allowed in each form?
        There is a section in the documentation for VB6 titled Control Limitations. Here is an excerpt...
        Total Number of Controls
        The maximum number of controls allowed on a single form depends on the type of controls used and available system resources. However, there is a fixed limit of 254 control names per form. A control array counts only once toward this limit because all the controls in the array share a single control name.

        The limit on control array indexes is 0 to 32,767 on all versions.

        If you layer controls on top of each other, such as using several frame controls within other frames, Visual Basic will generally accept no more than 25 levels of nested controls.

        Note that "all versions" most likely means "all versions up to and including VB6". Presumably this doesn't apply to later versions.

        Comment

        • shuvo2k6
          New Member
          • Jan 2008
          • 68

          #5
          Originally posted by parkergirl
          I am currently working on a project that has many tabs ...
          Hi,
          You can try by, the 'Row' Property of 'MSFlexgrid'. Row number of MSFlexgrid indicates 1 less than the Index of that data. Then you can go to that record position & update the record.

          If you get success, reply me.
          Get Better.

          Regards,
          shuvo2k6
          Last edited by Killer42; Jan 31 '08, 05:26 AM.

          Comment

          Working...