Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 18011
Number of posts: 55384

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Scroll Bars Posted by tcf4 on 18 Aug 2005 at 10:33 AM
I'm trying to use a MSH FlexGrid to write information to the screen. I want it to have scroll bars because there is a lot of information for the cell. When I run it, though, no scroll bars appear and I can't see all the information. Any suggestions or different ideas on how to do this would be greatly appreciated.
Report
Re: Scroll Bars Posted by infidel on 18 Aug 2005 at 11:28 AM
: I'm trying to use a MSH FlexGrid to write information to the screen. I want it to have scroll bars because there is a lot of information for the cell. When I run it, though, no scroll bars appear and I can't see all the information. Any suggestions or different ideas on how to do this would be greatly appreciated.

Me.MSHFlexGrid1.ScrollBars = flexScrollBarBoth




infidel

$ select * from users where clue > 0
no rows returned


Report
Re: Scroll Bars Posted by tcf4 on 18 Aug 2005 at 11:33 AM
: : I'm trying to use a MSH FlexGrid to write information to the screen. I want it to have scroll bars because there is a lot of information for the cell. When I run it, though, no scroll bars appear and I can't see all the information. Any suggestions or different ideas on how to do this would be greatly appreciated.
:
:
Me.MSHFlexGrid1.ScrollBars = flexScrollBarBoth

:
:
:
: infidel
:
:
: $ select * from users where clue > 0
: no rows returned
: 

:
:
I tried it but it's still not working. I think I might know why though. Can you have only one cell and scroll through information in that cell?
Report
Re: Scroll Bars Posted by ranainnet on 18 Aug 2005 at 2:02 PM
This message was edited by ranainnet at 2005-8-18 14:8:40

This message was edited by ranainnet at 2005-8-18 14:6:49

: : : I'm trying to use a MSH FlexGrid to write information to the screen. I want it to have scroll bars because there is a lot of information for the cell. When I run it, though, no scroll bars appear and I can't see all the information. Any suggestions or different ideas on how to do this would be greatly appreciated.
: :
: :
Me.MSHFlexGrid1.ScrollBars = flexScrollBarBoth

: :
: :
: :
: : infidel
: :
: :
: : $ select * from users where clue > 0
: : no rows returned
: : 

: :
: :
: I tried it but it's still not working. I think I might know why though. Can you have only one cell and scroll through information in that cell?
:
MSHFlexGrid1.ScrollBars = flexScrollBarBoth works fine.

But the problem is when u r working with only one cell the MSHFlexGrid contorl will have to be resized to enable it to show the scroll bars (both horizontal and vertical. The vertical bar may become visible but you mast increase the height of the one cell grid to make the Horizontal scroll bar visible)



Report
Re: Scroll Bars Posted by tcf4 on 19 Aug 2005 at 7:01 AM
: This message was edited by ranainnet at 2005-8-18 14:8:40

: This message was edited by ranainnet at 2005-8-18 14:6:49

: : : : I'm trying to use a MSH FlexGrid to write information to the screen. I want it to have scroll bars because there is a lot of information for the cell. When I run it, though, no scroll bars appear and I can't see all the information. Any suggestions or different ideas on how to do this would be greatly appreciated.
: : :
: : :
Me.MSHFlexGrid1.ScrollBars = flexScrollBarBoth

: : :
: : :
: : :
: : : infidel
: : :
: : :
: : : $ select * from users where clue > 0
: : : no rows returned
: : : 

: : :
: : :
: : I tried it but it's still not working. I think I might know why though. Can you have only one cell and scroll through information in that cell?
: :
: MSHFlexGrid1.ScrollBars = flexScrollBarBoth works fine.
:
: But the problem is when u r working with only one cell the MSHFlexGrid contorl will have to be resized to enable it to show the scroll bars (both horizontal and vertical. The vertical bar may become visible but you mast increase the height of the one cell grid to make the Horizontal scroll bar visible)
:
:
:
:
I tried increasing the size of both the height and the width, but there's still no scroll bar. Any more suggestions or ideas on what I could be doing wrong? Also, if you know how to change it to where the words are at the top instead of centered, that would be helpful. Thanks for all the tips!
Report
Re: Scroll Bars Posted by ranainnet on 19 Aug 2005 at 10:47 AM
: : This message was edited by ranainnet at 2005-8-18 14:8:40

: : This message was edited by ranainnet at 2005-8-18 14:6:49

: : : : : I'm trying to use a MSH FlexGrid to write information to the screen. I want it to have scroll bars because there is a lot of information for the cell. When I run it, though, no scroll bars appear and I can't see all the information. Any suggestions or different ideas on how to do this would be greatly appreciated.
: : : :
: : : :
Me.MSHFlexGrid1.ScrollBars = flexScrollBarBoth

: : : :
: : : :
: : : :
: : : : infidel
: : : :
: : : :
: : : : $ select * from users where clue > 0
: : : : no rows returned
: : : : 

: : : :
: : : :
: : : I tried it but it's still not working. I think I might know why though. Can you have only one cell and scroll through information in that cell?
: : :
: : MSHFlexGrid1.ScrollBars = flexScrollBarBoth works fine.
: :
: : But the problem is when u r working with only one cell the MSHFlexGrid contorl will have to be resized to enable it to show the scroll bars (both horizontal and vertical. The vertical bar may become visible but you mast increase the height of the one cell grid to make the Horizontal scroll bar visible)
: :
: :
: :
: :
: I tried increasing the size of both the height and the width, but there's still no scroll bar. Any more suggestions or ideas on what I could be doing wrong? Also, if you know how to change it to where the words are at the top instead of centered, that would be helpful. Thanks for all the tips!
:
Are u sure that u r using MSHFlexGrid?

And I would love to help u but I didnot understand what u mean by ---
----Also, if you know how to change it to where the words are at the top instead of centered, that would be helpful. Thanks for all the tips!----?????
Report
Re: Scroll Bars Posted by tcf4 on 19 Aug 2005 at 10:54 AM
: : : This message was edited by ranainnet at 2005-8-18 14:8:40

: : : This message was edited by ranainnet at 2005-8-18 14:6:49

: : : : : : I'm trying to use a MSH FlexGrid to write information to the screen. I want it to have scroll bars because there is a lot of information for the cell. When I run it, though, no scroll bars appear and I can't see all the information. Any suggestions or different ideas on how to do this would be greatly appreciated.
: : : : :
: : : : :
Me.MSHFlexGrid1.ScrollBars = flexScrollBarBoth

: : : : :
: : : : :
: : : : :
: : : : : infidel
: : : : :
: : : : :
: : : : : $ select * from users where clue > 0
: : : : : no rows returned
: : : : : 

: : : : :
: : : : :
: : : : I tried it but it's still not working. I think I might know why though. Can you have only one cell and scroll through information in that cell?
: : : :
: : : MSHFlexGrid1.ScrollBars = flexScrollBarBoth works fine.
: : :
: : : But the problem is when u r working with only one cell the MSHFlexGrid contorl will have to be resized to enable it to show the scroll bars (both horizontal and vertical. The vertical bar may become visible but you mast increase the height of the one cell grid to make the Horizontal scroll bar visible)
: : :
: : :
: : :
: : :
: : I tried increasing the size of both the height and the width, but there's still no scroll bar. Any more suggestions or ideas on what I could be doing wrong? Also, if you know how to change it to where the words are at the top instead of centered, that would be helpful. Thanks for all the tips!
: :
: Are u sure that u r using MSHFlexGrid?
:
: And I would love to help u but I didnot understand what u mean by ---
: ----Also, if you know how to change it to where the words are at the top instead of centered, that would be helpful. Thanks for all the tips!----?????
:
Yes, I checked again. It's a MSHFlexGrid. Maybe I'm just really dense and am missing something amazingly obvious... I'll try to mess with it some more and see if I can get it to work. As for the words, in the cell it automatically centers the word in the center of the cell along the left margin instead of starting at the top and leaving a lot of blank space below the words. Kind of like
__________

words
__________

instead of
__________
words

__________
I was just wondering if I could change that in any way.
Report
Re: Scroll Bars Posted by ranainnet on 21 Aug 2005 at 11:19 AM
: : : : This message was edited by ranainnet at 2005-8-18 14:8:40

: : : : This message was edited by ranainnet at 2005-8-18 14:6:49

: : : : : : : I'm trying to use a MSH FlexGrid to write information to the screen. I want it to have scroll bars because there is a lot of information for the cell. When I run it, though, no scroll bars appear and I can't see all the information. Any suggestions or different ideas on how to do this would be greatly appreciated.
: : : : : :
: : : : : :
Me.MSHFlexGrid1.ScrollBars = flexScrollBarBoth

: : : : : :
: : : : : :
: : : : : :
: : : : : : infidel
: : : : : :
: : : : : :
: : : : : : $ select * from users where clue > 0
: : : : : : no rows returned
: : : : : : 

: : : : : :
: : : : : :
: : : : : I tried it but it's still not working. I think I might know why though. Can you have only one cell and scroll through information in that cell?
: : : : :
: : : : MSHFlexGrid1.ScrollBars = flexScrollBarBoth works fine.
: : : :
: : : : But the problem is when u r working with only one cell the MSHFlexGrid contorl will have to be resized to enable it to show the scroll bars (both horizontal and vertical. The vertical bar may become visible but you mast increase the height of the one cell grid to make the Horizontal scroll bar visible)
: : : :
: : : :
: : : :
: : : :
: : : I tried increasing the size of both the height and the width, but there's still no scroll bar. Any more suggestions or ideas on what I could be doing wrong? Also, if you know how to change it to where the words are at the top instead of centered, that would be helpful. Thanks for all the tips!
: : :
: : Are u sure that u r using MSHFlexGrid?
: :
: : And I would love to help u but I didnot understand what u mean by ---
: : ----Also, if you know how to change it to where the words are at the top instead of centered, that would be helpful. Thanks for all the tips!----?????
: :
: Yes, I checked again. It's a MSHFlexGrid. Maybe I'm just really dense and am missing something amazingly obvious... I'll try to mess with it some more and see if I can get it to work. As for the words, in the cell it automatically centers the word in the center of the cell along the left margin instead of starting at the top and leaving a lot of blank space below the words. Kind of like
: __________
:
: words
: __________
:
: instead of
: __________
: words
:
: __________
: I was just wondering if I could change that in any way.
:

Ok I got ur solution. In MSHFGrid there will be no scroll bar (not vertical or horizontal) if u have only one cell (only 1 row and 1 column) defined in the properties of the MSHFGrid control. But if there are more then one cell and u resize the MSHFGrid control to show only one cell then the scroll bars appear.

Now about the alignment problem. Ur text is coming in this way because u might have changed the "RowHeightMin" property of the MSHFGrid contorl. Don't worry the text will still show as per ur requirement. But you will have to change the "CellAlignment" or "ColAlignment(index)" property of the MSHFGrid control.

for example
MSHFGrid.ColAlignment(0)=0
or
MSHFGrid.CellAlignment=0

The CellAlignment property will be effective on the current cell only. And the ColAlignment(index) will be effective on the perticular column that is referred by the index.

Following if the full set of values that u may assigh:
__________________________________________________________________
Constant-----------------Value--------------------Description
==================================================================
flexAlignLeftTop----------0-----The column content is aligned left, top.

flexAlignLeftCenter----------1-----Default for strings. The column content is aligned left, center.

flexAlignLeftBottom----------2-----The column content is aligned left, bottom.

flexAlignCenterTop----------3-----The column content is aligned center, top.

flexAlignCenterCenter----------4-----The column content is aligned center, center.

flexAlignCenterBottom----------5-----The column content is aligned center, bottom.

flexAlignRightTop----------6-----The column content is aligned right, top.

flexAlignRightCenter----------7-----Default for numbers. The column content is aligned right, center.

flexAlignRightBottom----------8-----The column content is aligned right, bottom.

flexAlignGeneral----------9-----The column content is of general alignment. This is "left, center" for strings and "right, center" for numbers.
Report
Re: Scroll Bars Posted by tcf4 on 22 Aug 2005 at 7:20 AM
: : : : : This message was edited by ranainnet at 2005-8-18 14:8:40

: : : : : This message was edited by ranainnet at 2005-8-18 14:6:49

: : : : : : : : I'm trying to use a MSH FlexGrid to write information to the screen. I want it to have scroll bars because there is a lot of information for the cell. When I run it, though, no scroll bars appear and I can't see all the information. Any suggestions or different ideas on how to do this would be greatly appreciated.
: : : : : : :
: : : : : : :
Me.MSHFlexGrid1.ScrollBars = flexScrollBarBoth

: : : : : : :
: : : : : : :
: : : : : : :
: : : : : : : infidel
: : : : : : :
: : : : : : :
: : : : : : : $ select * from users where clue > 0
: : : : : : : no rows returned
: : : : : : : 

: : : : : : :
: : : : : : :
: : : : : : I tried it but it's still not working. I think I might know why though. Can you have only one cell and scroll through information in that cell?
: : : : : :
: : : : : MSHFlexGrid1.ScrollBars = flexScrollBarBoth works fine.
: : : : :
: : : : : But the problem is when u r working with only one cell the MSHFlexGrid contorl will have to be resized to enable it to show the scroll bars (both horizontal and vertical. The vertical bar may become visible but you mast increase the height of the one cell grid to make the Horizontal scroll bar visible)
: : : : :
: : : : :
: : : : :
: : : : :
: : : : I tried increasing the size of both the height and the width, but there's still no scroll bar. Any more suggestions or ideas on what I could be doing wrong? Also, if you know how to change it to where the words are at the top instead of centered, that would be helpful. Thanks for all the tips!
: : : :
: : : Are u sure that u r using MSHFlexGrid?
: : :
: : : And I would love to help u but I didnot understand what u mean by ---
: : : ----Also, if you know how to change it to where the words are at the top instead of centered, that would be helpful. Thanks for all the tips!----?????
: : :
: : Yes, I checked again. It's a MSHFlexGrid. Maybe I'm just really dense and am missing something amazingly obvious... I'll try to mess with it some more and see if I can get it to work. As for the words, in the cell it automatically centers the word in the center of the cell along the left margin instead of starting at the top and leaving a lot of blank space below the words. Kind of like
: : __________
: :
: : words
: : __________
: :
: : instead of
: : __________
: : words
: :
: : __________
: : I was just wondering if I could change that in any way.
: :
:
: Ok I got ur solution. In MSHFGrid there will be no scroll bar (not vertical or horizontal) if u have only one cell (only 1 row and 1 column) defined in the properties of the MSHFGrid control. But if there are more then one cell and u resize the MSHFGrid control to show only one cell then the scroll bars appear.
:
: Now about the alignment problem. Ur text is coming in this way because u might have changed the "RowHeightMin" property of the MSHFGrid contorl. Don't worry the text will still show as per ur requirement. But you will have to change the "CellAlignment" or "ColAlignment(index)" property of the MSHFGrid control.
:
: for example
: MSHFGrid.ColAlignment(0)=0
: or
: MSHFGrid.CellAlignment=0
:
: The CellAlignment property will be effective on the current cell only. And the ColAlignment(index) will be effective on the perticular column that is referred by the index.
:
: Following if the full set of values that u may assigh:
: __________________________________________________________________
: Constant-----------------Value--------------------Description
: ==================================================================
: flexAlignLeftTop----------0-----The column content is aligned left, top.
:
: flexAlignLeftCenter----------1-----Default for strings. The column content is aligned left, center.
:
: flexAlignLeftBottom----------2-----The column content is aligned left, bottom.
:
: flexAlignCenterTop----------3-----The column content is aligned center, top.
:
: flexAlignCenterCenter----------4-----The column content is aligned center, center.
:
: flexAlignCenterBottom----------5-----The column content is aligned center, bottom.
:
: flexAlignRightTop----------6-----The column content is aligned right, top.
:
: flexAlignRightCenter----------7-----Default for numbers. The column content is aligned right, center.
:
: flexAlignRightBottom----------8-----The column content is aligned right, bottom.
:
: flexAlignGeneral----------9-----The column content is of general alignment. This is "left, center" for strings and "right, center" for numbers.
:
Alright!! Thanks! I've got the alignment fixed and there are now scroll bars. I really appreciate the help!
Report
Re: Scroll Bars Posted by ranainnet on 22 Aug 2005 at 11:52 AM
: : : : : : This message was edited by ranainnet at 2005-8-18 14:8:40

: : : : : : This message was edited by ranainnet at 2005-8-18 14:6:49

: : : : : : : : : I'm trying to use a MSH FlexGrid to write information to the screen. I want it to have scroll bars because there is a lot of information for the cell. When I run it, though, no scroll bars appear and I can't see all the information. Any suggestions or different ideas on how to do this would be greatly appreciated.
: : : : : : : :
: : : : : : : :
Me.MSHFlexGrid1.ScrollBars = flexScrollBarBoth

: : : : : : : :
: : : : : : : :
: : : : : : : :
: : : : : : : : infidel
: : : : : : : :
: : : : : : : :
: : : : : : : : $ select * from users where clue > 0
: : : : : : : : no rows returned
: : : : : : : : 

: : : : : : : :
: : : : : : : :
: : : : : : : I tried it but it's still not working. I think I might know why though. Can you have only one cell and scroll through information in that cell?
: : : : : : :
: : : : : : MSHFlexGrid1.ScrollBars = flexScrollBarBoth works fine.
: : : : : :
: : : : : : But the problem is when u r working with only one cell the MSHFlexGrid contorl will have to be resized to enable it to show the scroll bars (both horizontal and vertical. The vertical bar may become visible but you mast increase the height of the one cell grid to make the Horizontal scroll bar visible)
: : : : : :
: : : : : :
: : : : : :
: : : : : :
: : : : : I tried increasing the size of both the height and the width, but there's still no scroll bar. Any more suggestions or ideas on what I could be doing wrong? Also, if you know how to change it to where the words are at the top instead of centered, that would be helpful. Thanks for all the tips!
: : : : :
: : : : Are u sure that u r using MSHFlexGrid?
: : : :
: : : : And I would love to help u but I didnot understand what u mean by ---
: : : : ----Also, if you know how to change it to where the words are at the top instead of centered, that would be helpful. Thanks for all the tips!----?????
: : : :
: : : Yes, I checked again. It's a MSHFlexGrid. Maybe I'm just really dense and am missing something amazingly obvious... I'll try to mess with it some more and see if I can get it to work. As for the words, in the cell it automatically centers the word in the center of the cell along the left margin instead of starting at the top and leaving a lot of blank space below the words. Kind of like
: : : __________
: : :
: : : words
: : : __________
: : :
: : : instead of
: : : __________
: : : words
: : :
: : : __________
: : : I was just wondering if I could change that in any way.
: : :
: :
: : Ok I got ur solution. In MSHFGrid there will be no scroll bar (not vertical or horizontal) if u have only one cell (only 1 row and 1 column) defined in the properties of the MSHFGrid control. But if there are more then one cell and u resize the MSHFGrid control to show only one cell then the scroll bars appear.
: :
: : Now about the alignment problem. Ur text is coming in this way because u might have changed the "RowHeightMin" property of the MSHFGrid contorl. Don't worry the text will still show as per ur requirement. But you will have to change the "CellAlignment" or "ColAlignment(index)" property of the MSHFGrid control.
: :
: : for example
: : MSHFGrid.ColAlignment(0)=0
: : or
: : MSHFGrid.CellAlignment=0
: :
: : The CellAlignment property will be effective on the current cell only. And the ColAlignment(index) will be effective on the perticular column that is referred by the index.
: :
: : Following if the full set of values that u may assigh:
: : __________________________________________________________________
: : Constant-----------------Value--------------------Description
: : ==================================================================
: : flexAlignLeftTop----------0-----The column content is aligned left, top.
: :
: : flexAlignLeftCenter----------1-----Default for strings. The column content is aligned left, center.
: :
: : flexAlignLeftBottom----------2-----The column content is aligned left, bottom.
: :
: : flexAlignCenterTop----------3-----The column content is aligned center, top.
: :
: : flexAlignCenterCenter----------4-----The column content is aligned center, center.
: :
: : flexAlignCenterBottom----------5-----The column content is aligned center, bottom.
: :
: : flexAlignRightTop----------6-----The column content is aligned right, top.
: :
: : flexAlignRightCenter----------7-----Default for numbers. The column content is aligned right, center.
: :
: : flexAlignRightBottom----------8-----The column content is aligned right, bottom.
: :
: : flexAlignGeneral----------9-----The column content is of general alignment. This is "left, center" for strings and "right, center" for numbers.
: :
: Alright!! Thanks! I've got the alignment fixed and there are now scroll bars. I really appreciate the help!
:
Its really nice to hear that ur problems are fixed. GoodLuck and keep in touch.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.