+ Reply to Thread
Results 1 to 11 of 11

What's the difference between Control Toolbox and Forms widgets?

  1. #1
    Joseph Geretz
    Guest

    What's the difference between Control Toolbox and Forms widgets?

    Hi,

    Can you give this layman a brief rundown on the basic difference(s) between
    these two types of widgets?

    (I say 'layman' because I'm not an Excel developer. I am a VB6 developer, 20
    years in software development, so if you want to throw some technical
    details at me, I should be able to handle them. ;-)

    Thanks!

    - Joseph Geretz -



  2. #2
    Bob Phillips
    Guest

    Re: What's the difference between Control Toolbox and Forms widgets?

    Control toolbox controls are event driven, and can respond to a number of
    events, and have more programmable properties.

    Forms controls just have a single macro assigned to them which fires when
    the control is clicked, and have fewer programmable properties.

    Control toolbox controls are more flexible, forms controls are usually
    easier for the less experienced user.

    I believe, but not absolutely sure, that control toolbox controls in excel
    2003 have serious problems, but it is a while since I have used 2003.

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Joseph Geretz" <jgeretz@nospam.com> wrote in message
    news:u6O7f4YWGHA.4768@TK2MSFTNGP05.phx.gbl...
    > Hi,
    >
    > Can you give this layman a brief rundown on the basic difference(s)

    between
    > these two types of widgets?
    >
    > (I say 'layman' because I'm not an Excel developer. I am a VB6 developer,

    20
    > years in software development, so if you want to throw some technical
    > details at me, I should be able to handle them. ;-)
    >
    > Thanks!
    >
    > - Joseph Geretz -
    >
    >




  3. #3
    Jim Thomlinson
    Guest

    RE: What's the difference between Control Toolbox and Forms widgets?

    If you are a VB6 developer then you will be much more familiar with the
    control toolbox controls. They have properties that can be accessed by right
    clicking the control and selecting properties along with all of the regular
    events. You can also code against them just like you have for the past 20
    years. The controls are embeded directly in the sheet and the code for the
    controls ends up in the sheet (very similar to a form). For example if you
    place a command button in sheet1 (code name sheet1) then you can access that
    button with Sheet1.CommandButton1.Enabled = true. These are the controls that
    I always use.

    Controls from the forms toolbar are more like pictures of controls. The
    formatting of the controls is handled through the Format menu. The contols
    are much more difficult to access through code. These controls are attached
    to code that is placed in a standard code module. I am hard pressed to think
    of an advantage to using these controls. The only time I have used them was
    when I wanted to copy a sheet out of a workbook to a new workbbok for
    distribution. By using a contol from the forms toolbar there was no code left
    in the sheet when I deleted the controls.
    --
    HTH...

    Jim Thomlinson


    "Joseph Geretz" wrote:

    > Hi,
    >
    > Can you give this layman a brief rundown on the basic difference(s) between
    > these two types of widgets?
    >
    > (I say 'layman' because I'm not an Excel developer. I am a VB6 developer, 20
    > years in software development, so if you want to throw some technical
    > details at me, I should be able to handle them. ;-)
    >
    > Thanks!
    >
    > - Joseph Geretz -
    >
    >
    >


  4. #4
    Joseph Geretz
    Guest

    Re: What's the difference between Control Toolbox and Forms widgets?

    > I believe, but not absolutely sure, that control toolbox controls in excel
    > 2003 have serious problems, but it is a while since I have used 2003.


    You are right. Our Excel Forms developers are using Form widgets for this
    very reason.

    Thanks!

    - Joe Geretz -

    "Bob Phillips" <bob.phillips@notheretiscali.co.uk> wrote in message
    news:%23B0l2IZWGHA.1564@TK2MSFTNGP03.phx.gbl...
    > Control toolbox controls are event driven, and can respond to a number of
    > events, and have more programmable properties.
    >
    > Forms controls just have a single macro assigned to them which fires when
    > the control is clicked, and have fewer programmable properties.
    >
    > Control toolbox controls are more flexible, forms controls are usually
    > easier for the less experienced user.
    >
    > I believe, but not absolutely sure, that control toolbox controls in excel
    > 2003 have serious problems, but it is a while since I have used 2003.
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > (remove nothere from email address if mailing direct)
    >
    > "Joseph Geretz" <jgeretz@nospam.com> wrote in message
    > news:u6O7f4YWGHA.4768@TK2MSFTNGP05.phx.gbl...
    >> Hi,
    >>
    >> Can you give this layman a brief rundown on the basic difference(s)

    > between
    >> these two types of widgets?
    >>
    >> (I say 'layman' because I'm not an Excel developer. I am a VB6 developer,

    > 20
    >> years in software development, so if you want to throw some technical
    >> details at me, I should be able to handle them. ;-)
    >>
    >> Thanks!
    >>
    >> - Joseph Geretz -
    >>
    >>

    >
    >




  5. #5
    Tom Ogilvy
    Guest

    RE: What's the difference between Control Toolbox and Forms widget

    Has VB been around 20 years or ActiveX or OLE? And I guess Jim assumes Joe
    has never used a control array and knows these controls are windowless and
    probably have less capability than vb6 controls. <g>

    anyway, the only caution I would add is Jim himself admits he lacks
    familiarity with forms controls. they certainly don't have the breadth of
    properties or event choices of control toolbox activeX controls, but then
    they are highly accessible and very easy to code. Handling multiple controls
    with a single event is trivial. They are much more compatible with use on
    the spreadsheet since they are intrinsic to Excel itself. (such as dealing
    with named ranges - a definite weakness with the ActiveX controls). They
    each have their own collection. My opinion would be that in many instances
    they are approriate, convenient and may be superior for a specialized
    situation. In other situations they are not.

    --
    Regards,
    Tom Ogilvy


    "Jim Thomlinson" wrote:

    > If you are a VB6 developer then you will be much more familiar with the
    > control toolbox controls. They have properties that can be accessed by right
    > clicking the control and selecting properties along with all of the regular
    > events. You can also code against them just like you have for the past 20
    > years. The controls are embeded directly in the sheet and the code for the
    > controls ends up in the sheet (very similar to a form). For example if you
    > place a command button in sheet1 (code name sheet1) then you can access that
    > button with Sheet1.CommandButton1.Enabled = true. These are the controls that
    > I always use.
    >
    > Controls from the forms toolbar are more like pictures of controls. The
    > formatting of the controls is handled through the Format menu. The contols
    > are much more difficult to access through code. These controls are attached
    > to code that is placed in a standard code module. I am hard pressed to think
    > of an advantage to using these controls. The only time I have used them was
    > when I wanted to copy a sheet out of a workbook to a new workbbok for
    > distribution. By using a contol from the forms toolbar there was no code left
    > in the sheet when I deleted the controls.
    > --
    > HTH...
    >
    > Jim Thomlinson
    >
    >
    > "Joseph Geretz" wrote:
    >
    > > Hi,
    > >
    > > Can you give this layman a brief rundown on the basic difference(s) between
    > > these two types of widgets?
    > >
    > > (I say 'layman' because I'm not an Excel developer. I am a VB6 developer, 20
    > > years in software development, so if you want to throw some technical
    > > details at me, I should be able to handle them. ;-)
    > >
    > > Thanks!
    > >
    > > - Joseph Geretz -
    > >
    > >
    > >


  6. #6
    Jim Thomlinson
    Guest

    RE: What's the difference between Control Toolbox and Forms widget

    Fair enough. I probably have probably never given forms controls enough of a
    chance. Coming from VB6, Active X just seemed to make more sense. Once I am
    old and wise like you are Tom I will probably use forms controls a bit more
    often. That being said I think the situations where forms controls would be
    more appropriate are relatively few and far between for someone with a VB6
    background. IMO the greatest impediment for most people to use the control
    toolbox controls is that you have to actually write some code from scratch
    (or at least copy and paste with some degree of understanding) which means
    that for many users these are just not an option. For Joe (who is also old
    and wise :-)...) I think he would be better of to work with the control
    toolbox.

    As always Tom I appreciate your sobering second thoughts on what I have
    posted. A little tough on my ego but I gave up on that long ago in favour of
    getting good advice... :-)
    --
    HTH...

    Jim Thomlinson


    "Tom Ogilvy" wrote:

    > Has VB been around 20 years or ActiveX or OLE? And I guess Jim assumes Joe
    > has never used a control array and knows these controls are windowless and
    > probably have less capability than vb6 controls. <g>
    >
    > anyway, the only caution I would add is Jim himself admits he lacks
    > familiarity with forms controls. they certainly don't have the breadth of
    > properties or event choices of control toolbox activeX controls, but then
    > they are highly accessible and very easy to code. Handling multiple controls
    > with a single event is trivial. They are much more compatible with use on
    > the spreadsheet since they are intrinsic to Excel itself. (such as dealing
    > with named ranges - a definite weakness with the ActiveX controls). They
    > each have their own collection. My opinion would be that in many instances
    > they are approriate, convenient and may be superior for a specialized
    > situation. In other situations they are not.
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    >
    > "Jim Thomlinson" wrote:
    >
    > > If you are a VB6 developer then you will be much more familiar with the
    > > control toolbox controls. They have properties that can be accessed by right
    > > clicking the control and selecting properties along with all of the regular
    > > events. You can also code against them just like you have for the past 20
    > > years. The controls are embeded directly in the sheet and the code for the
    > > controls ends up in the sheet (very similar to a form). For example if you
    > > place a command button in sheet1 (code name sheet1) then you can access that
    > > button with Sheet1.CommandButton1.Enabled = true. These are the controls that
    > > I always use.
    > >
    > > Controls from the forms toolbar are more like pictures of controls. The
    > > formatting of the controls is handled through the Format menu. The contols
    > > are much more difficult to access through code. These controls are attached
    > > to code that is placed in a standard code module. I am hard pressed to think
    > > of an advantage to using these controls. The only time I have used them was
    > > when I wanted to copy a sheet out of a workbook to a new workbbok for
    > > distribution. By using a contol from the forms toolbar there was no code left
    > > in the sheet when I deleted the controls.
    > > --
    > > HTH...
    > >
    > > Jim Thomlinson
    > >
    > >
    > > "Joseph Geretz" wrote:
    > >
    > > > Hi,
    > > >
    > > > Can you give this layman a brief rundown on the basic difference(s) between
    > > > these two types of widgets?
    > > >
    > > > (I say 'layman' because I'm not an Excel developer. I am a VB6 developer, 20
    > > > years in software development, so if you want to throw some technical
    > > > details at me, I should be able to handle them. ;-)
    > > >
    > > > Thanks!
    > > >
    > > > - Joseph Geretz -
    > > >
    > > >
    > > >


  7. #7
    Tom Ogilvy
    Guest

    Re: What's the difference between Control Toolbox and Forms widget

    What would those be? I haven't heard or seen any evidence of a chronic
    problem - particularly not in userforms. (use of the word "form" is very
    ambiguous here" - dialogsheet, worksheet made to look like a paper form? I
    know they are not using them on userforms unless they are using a MAC)

    --
    Regards,
    Tom Ogilvy


    "Joseph Geretz" wrote:

    > > I believe, but not absolutely sure, that control toolbox controls in excel
    > > 2003 have serious problems, but it is a while since I have used 2003.

    >
    > You are right. Our Excel Forms developers are using Form widgets for this
    > very reason.
    >
    > Thanks!
    >
    > - Joe Geretz -
    >
    > "Bob Phillips" <bob.phillips@notheretiscali.co.uk> wrote in message
    > news:%23B0l2IZWGHA.1564@TK2MSFTNGP03.phx.gbl...
    > > Control toolbox controls are event driven, and can respond to a number of
    > > events, and have more programmable properties.
    > >
    > > Forms controls just have a single macro assigned to them which fires when
    > > the control is clicked, and have fewer programmable properties.
    > >
    > > Control toolbox controls are more flexible, forms controls are usually
    > > easier for the less experienced user.
    > >
    > > I believe, but not absolutely sure, that control toolbox controls in excel
    > > 2003 have serious problems, but it is a while since I have used 2003.
    > >
    > > --
    > > HTH
    > >
    > > Bob Phillips
    > >
    > > (remove nothere from email address if mailing direct)
    > >
    > > "Joseph Geretz" <jgeretz@nospam.com> wrote in message
    > > news:u6O7f4YWGHA.4768@TK2MSFTNGP05.phx.gbl...
    > >> Hi,
    > >>
    > >> Can you give this layman a brief rundown on the basic difference(s)

    > > between
    > >> these two types of widgets?
    > >>
    > >> (I say 'layman' because I'm not an Excel developer. I am a VB6 developer,

    > > 20
    > >> years in software development, so if you want to throw some technical
    > >> details at me, I should be able to handle them. ;-)
    > >>
    > >> Thanks!
    > >>
    > >> - Joseph Geretz -
    > >>
    > >>

    > >
    > >

    >
    >
    >


  8. #8
    Joseph Geretz
    Guest

    Re: What's the difference between Control Toolbox and Forms widget

    Hi Tom,

    > Has VB been around 20 years or ActiveX or OLE?


    Um, before VB6 came out, we only had stuff like COBOL, but I guess you could
    call that software development ;-)

    > And I guess Jim assumes Joe
    > has never used a control array and knows these controls are windowless and
    > probably have less capability than vb6 controls. <g>


    Are you saying that the Controls are windowless and the Forms widgets are
    windowed (or vice versa)? This might explain why some of the Forms widgets
    are not faithfully reproduced by CopyPicture unless Bitmap format is used
    specifically. Controls show up nicely, even with the default Picture format.

    This is the issue I'm dealing with. I'm not getting involved in Excel
    development at all, other than the need to display these documents
    faithfully in a read-only context. For more detail on what I'm actually
    doing, you can check out my thread above titled: How to Find Used Range and
    Print Area.

    Thanks for your help with any and all of these issues!

    - Joe Geretz -

    > anyway, the only caution I would add is Jim himself admits he lacks
    > familiarity with forms controls. they certainly don't have the breadth of
    > properties or event choices of control toolbox activeX controls, but then
    > they are highly accessible and very easy to code. Handling multiple
    > controls
    > with a single event is trivial. They are much more compatible with use on
    > the spreadsheet since they are intrinsic to Excel itself. (such as dealing
    > with named ranges - a definite weakness with the ActiveX controls). They
    > each have their own collection. My opinion would be that in many
    > instances
    > they are approriate, convenient and may be superior for a specialized
    > situation. In other situations they are not.
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    >
    > "Jim Thomlinson" wrote:
    >
    >> If you are a VB6 developer then you will be much more familiar with the
    >> control toolbox controls. They have properties that can be accessed by
    >> right
    >> clicking the control and selecting properties along with all of the
    >> regular
    >> events. You can also code against them just like you have for the past 20
    >> years. The controls are embeded directly in the sheet and the code for
    >> the
    >> controls ends up in the sheet (very similar to a form). For example if
    >> you
    >> place a command button in sheet1 (code name sheet1) then you can access
    >> that
    >> button with Sheet1.CommandButton1.Enabled = true. These are the controls
    >> that
    >> I always use.
    >>
    >> Controls from the forms toolbar are more like pictures of controls. The
    >> formatting of the controls is handled through the Format menu. The
    >> contols
    >> are much more difficult to access through code. These controls are
    >> attached
    >> to code that is placed in a standard code module. I am hard pressed to
    >> think
    >> of an advantage to using these controls. The only time I have used them
    >> was
    >> when I wanted to copy a sheet out of a workbook to a new workbbok for
    >> distribution. By using a contol from the forms toolbar there was no code
    >> left
    >> in the sheet when I deleted the controls.
    >> --
    >> HTH...
    >>
    >> Jim Thomlinson
    >>
    >>
    >> "Joseph Geretz" wrote:
    >>
    >> > Hi,
    >> >
    >> > Can you give this layman a brief rundown on the basic difference(s)
    >> > between
    >> > these two types of widgets?
    >> >
    >> > (I say 'layman' because I'm not an Excel developer. I am a VB6
    >> > developer, 20
    >> > years in software development, so if you want to throw some technical
    >> > details at me, I should be able to handle them. ;-)
    >> >
    >> > Thanks!
    >> >
    >> > - Joseph Geretz -
    >> >
    >> >
    >> >




  9. #9
    Joseph Geretz
    Guest

    Re: What's the difference between Control Toolbox and Forms widget

    Hi Tom,

    > What would those be?


    I don't have specifics, but here's a snippet from the feedback I got from
    our Excel Forms developer:

    ----------------
    I tend to use this (Forms) checkbox due to the simple reason that:

    1. If client has an older version of Excel, sometimes the control toolbars
    checkboxes do not work correctly.
    ....
    ----------------

    But I don't have any specifics for you. If they're working well for you,
    then go with it!

    - Joseph Geretz

    "Tom Ogilvy" <TomOgilvy@discussions.microsoft.com> wrote in message
    news:6A61F1EC-C1F5-4689-9878-65C34A637850@microsoft.com...
    > What would those be? I haven't heard or seen any evidence of a chronic
    > problem - particularly not in userforms. (use of the word "form" is very
    > ambiguous here" - dialogsheet, worksheet made to look like a paper form?
    > I
    > know they are not using them on userforms unless they are using a MAC)
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    >
    > "Joseph Geretz" wrote:
    >
    >> > I believe, but not absolutely sure, that control toolbox controls in
    >> > excel
    >> > 2003 have serious problems, but it is a while since I have used 2003.

    >>
    >> You are right. Our Excel Forms developers are using Form widgets for this
    >> very reason.
    >>
    >> Thanks!
    >>
    >> - Joe Geretz -
    >>
    >> "Bob Phillips" <bob.phillips@notheretiscali.co.uk> wrote in message
    >> news:%23B0l2IZWGHA.1564@TK2MSFTNGP03.phx.gbl...
    >> > Control toolbox controls are event driven, and can respond to a number
    >> > of
    >> > events, and have more programmable properties.
    >> >
    >> > Forms controls just have a single macro assigned to them which fires
    >> > when
    >> > the control is clicked, and have fewer programmable properties.
    >> >
    >> > Control toolbox controls are more flexible, forms controls are usually
    >> > easier for the less experienced user.
    >> >
    >> > I believe, but not absolutely sure, that control toolbox controls in
    >> > excel
    >> > 2003 have serious problems, but it is a while since I have used 2003.
    >> >
    >> > --
    >> > HTH
    >> >
    >> > Bob Phillips
    >> >
    >> > (remove nothere from email address if mailing direct)
    >> >
    >> > "Joseph Geretz" <jgeretz@nospam.com> wrote in message
    >> > news:u6O7f4YWGHA.4768@TK2MSFTNGP05.phx.gbl...
    >> >> Hi,
    >> >>
    >> >> Can you give this layman a brief rundown on the basic difference(s)
    >> > between
    >> >> these two types of widgets?
    >> >>
    >> >> (I say 'layman' because I'm not an Excel developer. I am a VB6
    >> >> developer,
    >> > 20
    >> >> years in software development, so if you want to throw some technical
    >> >> details at me, I should be able to handle them. ;-)
    >> >>
    >> >> Thanks!
    >> >>
    >> >> - Joseph Geretz -
    >> >>
    >> >>
    >> >
    >> >

    >>
    >>
    >>




  10. #10
    Tom Ogilvy
    Guest

    Re: What's the difference between Control Toolbox and Forms widget

    I said control toolbox controls are windowless.

    I said forms are totally internal to excel. They are drawn and managed by
    excel - same as the drawing objects. I have no knowledge of how they are
    managed internally by Excel or if they have a window or not. Haven't really
    ever had a need to know and can't imagine why you would if you are just
    taking a picture.

    --
    Regards
    Tom Ogilvy


    "Joseph Geretz" <jgeretz@nospam.com> wrote in message
    news:ey0mLdaWGHA.1220@TK2MSFTNGP02.phx.gbl...
    > Hi Tom,
    >
    > > Has VB been around 20 years or ActiveX or OLE?

    >
    > Um, before VB6 came out, we only had stuff like COBOL, but I guess you

    could
    > call that software development ;-)
    >
    > > And I guess Jim assumes Joe
    > > has never used a control array and knows these controls are windowless

    and
    > > probably have less capability than vb6 controls. <g>

    >
    > Are you saying that the Controls are windowless and the Forms widgets are
    > windowed (or vice versa)? This might explain why some of the Forms widgets
    > are not faithfully reproduced by CopyPicture unless Bitmap format is used
    > specifically. Controls show up nicely, even with the default Picture

    format.
    >
    > This is the issue I'm dealing with. I'm not getting involved in Excel
    > development at all, other than the need to display these documents
    > faithfully in a read-only context. For more detail on what I'm actually
    > doing, you can check out my thread above titled: How to Find Used Range

    and
    > Print Area.
    >
    > Thanks for your help with any and all of these issues!
    >
    > - Joe Geretz -
    >
    > > anyway, the only caution I would add is Jim himself admits he lacks
    > > familiarity with forms controls. they certainly don't have the breadth

    of
    > > properties or event choices of control toolbox activeX controls, but

    then
    > > they are highly accessible and very easy to code. Handling multiple
    > > controls
    > > with a single event is trivial. They are much more compatible with use

    on
    > > the spreadsheet since they are intrinsic to Excel itself. (such as

    dealing
    > > with named ranges - a definite weakness with the ActiveX controls).

    They
    > > each have their own collection. My opinion would be that in many
    > > instances
    > > they are approriate, convenient and may be superior for a specialized
    > > situation. In other situations they are not.
    > >
    > > --
    > > Regards,
    > > Tom Ogilvy
    > >
    > >
    > > "Jim Thomlinson" wrote:
    > >
    > >> If you are a VB6 developer then you will be much more familiar with the
    > >> control toolbox controls. They have properties that can be accessed by
    > >> right
    > >> clicking the control and selecting properties along with all of the
    > >> regular
    > >> events. You can also code against them just like you have for the past

    20
    > >> years. The controls are embeded directly in the sheet and the code for
    > >> the
    > >> controls ends up in the sheet (very similar to a form). For example if
    > >> you
    > >> place a command button in sheet1 (code name sheet1) then you can access
    > >> that
    > >> button with Sheet1.CommandButton1.Enabled = true. These are the

    controls
    > >> that
    > >> I always use.
    > >>
    > >> Controls from the forms toolbar are more like pictures of controls. The
    > >> formatting of the controls is handled through the Format menu. The
    > >> contols
    > >> are much more difficult to access through code. These controls are
    > >> attached
    > >> to code that is placed in a standard code module. I am hard pressed to
    > >> think
    > >> of an advantage to using these controls. The only time I have used them
    > >> was
    > >> when I wanted to copy a sheet out of a workbook to a new workbbok for
    > >> distribution. By using a contol from the forms toolbar there was no

    code
    > >> left
    > >> in the sheet when I deleted the controls.
    > >> --
    > >> HTH...
    > >>
    > >> Jim Thomlinson
    > >>
    > >>
    > >> "Joseph Geretz" wrote:
    > >>
    > >> > Hi,
    > >> >
    > >> > Can you give this layman a brief rundown on the basic difference(s)
    > >> > between
    > >> > these two types of widgets?
    > >> >
    > >> > (I say 'layman' because I'm not an Excel developer. I am a VB6
    > >> > developer, 20
    > >> > years in software development, so if you want to throw some technical
    > >> > details at me, I should be able to handle them. ;-)
    > >> >
    > >> > Thanks!
    > >> >
    > >> > - Joseph Geretz -
    > >> >
    > >> >
    > >> >

    >
    >




  11. #11
    Joseph Geretz
    Guest

    Re: What's the difference between Control Toolbox and Forms widget

    Hi Tom,

    > managed internally by Excel or if they have a window or not. Haven't
    > really
    > ever had a need to know and can't imagine why you would if you are just
    > taking a picture.


    Because, we've noticed that the picture doesn't always come out correctly.
    Certain Form widgets don't show up properly in the resulting snapshot if you
    use xlPicture as opposed to xlBitmap. Basically there are three combinations
    you can use

    xlScreen : xlPicture
    xlScreen : xlBitmap
    xlPrinter

    xlScreen : xlBitmap produces the most faithful snapshot, but it is also the
    most resource intensive. Which is why I'm looking to cut down on the area of
    the sheet which I actually include in my snapshot. Thanks for your help in
    the other thread. Grabbing the defined Print Range, rather than the
    horrendous UsedRange has sped this operation up from about 5 seconds to half
    a second, enought to make this approach viable for us.

    Thanks!

    - Joe Geretz -

    "Tom Ogilvy" <twogilvy@msn.com> wrote in message
    news:OO4SencWGHA.1900@TK2MSFTNGP04.phx.gbl...
    >I said control toolbox controls are windowless.
    >
    > I said forms are totally internal to excel. They are drawn and managed by
    > excel - same as the drawing objects. I have no knowledge of how they are
    > managed internally by Excel or if they have a window or not. Haven't
    > really
    > ever had a need to know and can't imagine why you would if you are just
    > taking a picture.
    >
    > --
    > Regards
    > Tom Ogilvy
    >
    >
    > "Joseph Geretz" <jgeretz@nospam.com> wrote in message
    > news:ey0mLdaWGHA.1220@TK2MSFTNGP02.phx.gbl...
    >> Hi Tom,
    >>
    >> > Has VB been around 20 years or ActiveX or OLE?

    >>
    >> Um, before VB6 came out, we only had stuff like COBOL, but I guess you

    > could
    >> call that software development ;-)
    >>
    >> > And I guess Jim assumes Joe
    >> > has never used a control array and knows these controls are windowless

    > and
    >> > probably have less capability than vb6 controls. <g>

    >>
    >> Are you saying that the Controls are windowless and the Forms widgets are
    >> windowed (or vice versa)? This might explain why some of the Forms
    >> widgets
    >> are not faithfully reproduced by CopyPicture unless Bitmap format is used
    >> specifically. Controls show up nicely, even with the default Picture

    > format.
    >>
    >> This is the issue I'm dealing with. I'm not getting involved in Excel
    >> development at all, other than the need to display these documents
    >> faithfully in a read-only context. For more detail on what I'm actually
    >> doing, you can check out my thread above titled: How to Find Used Range

    > and
    >> Print Area.
    >>
    >> Thanks for your help with any and all of these issues!
    >>
    >> - Joe Geretz -
    >>
    >> > anyway, the only caution I would add is Jim himself admits he lacks
    >> > familiarity with forms controls. they certainly don't have the breadth

    > of
    >> > properties or event choices of control toolbox activeX controls, but

    > then
    >> > they are highly accessible and very easy to code. Handling multiple
    >> > controls
    >> > with a single event is trivial. They are much more compatible with use

    > on
    >> > the spreadsheet since they are intrinsic to Excel itself. (such as

    > dealing
    >> > with named ranges - a definite weakness with the ActiveX controls).

    > They
    >> > each have their own collection. My opinion would be that in many
    >> > instances
    >> > they are approriate, convenient and may be superior for a specialized
    >> > situation. In other situations they are not.
    >> >
    >> > --
    >> > Regards,
    >> > Tom Ogilvy
    >> >
    >> >
    >> > "Jim Thomlinson" wrote:
    >> >
    >> >> If you are a VB6 developer then you will be much more familiar with
    >> >> the
    >> >> control toolbox controls. They have properties that can be accessed by
    >> >> right
    >> >> clicking the control and selecting properties along with all of the
    >> >> regular
    >> >> events. You can also code against them just like you have for the past

    > 20
    >> >> years. The controls are embeded directly in the sheet and the code for
    >> >> the
    >> >> controls ends up in the sheet (very similar to a form). For example if
    >> >> you
    >> >> place a command button in sheet1 (code name sheet1) then you can
    >> >> access
    >> >> that
    >> >> button with Sheet1.CommandButton1.Enabled = true. These are the

    > controls
    >> >> that
    >> >> I always use.
    >> >>
    >> >> Controls from the forms toolbar are more like pictures of controls.
    >> >> The
    >> >> formatting of the controls is handled through the Format menu. The
    >> >> contols
    >> >> are much more difficult to access through code. These controls are
    >> >> attached
    >> >> to code that is placed in a standard code module. I am hard pressed to
    >> >> think
    >> >> of an advantage to using these controls. The only time I have used
    >> >> them
    >> >> was
    >> >> when I wanted to copy a sheet out of a workbook to a new workbbok for
    >> >> distribution. By using a contol from the forms toolbar there was no

    > code
    >> >> left
    >> >> in the sheet when I deleted the controls.
    >> >> --
    >> >> HTH...
    >> >>
    >> >> Jim Thomlinson
    >> >>
    >> >>
    >> >> "Joseph Geretz" wrote:
    >> >>
    >> >> > Hi,
    >> >> >
    >> >> > Can you give this layman a brief rundown on the basic difference(s)
    >> >> > between
    >> >> > these two types of widgets?
    >> >> >
    >> >> > (I say 'layman' because I'm not an Excel developer. I am a VB6
    >> >> > developer, 20
    >> >> > years in software development, so if you want to throw some
    >> >> > technical
    >> >> > details at me, I should be able to handle them. ;-)
    >> >> >
    >> >> > Thanks!
    >> >> >
    >> >> > - Joseph Geretz -
    >> >> >
    >> >> >
    >> >> >

    >>
    >>

    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1