Hello everybody again.
I am using powerpacks 3 with vb 2005.
I have a shapecontainer and i create shapes on runtime.
I want to display scrollbars when a shape moves outside the visible area.
Thank you in advance for your help
Shapecontainer - scrollbarsHow to display and use scrollbars on a shapecontainer
Page 1 of 1
5 Replies - 3124 Views - Last Post: 14 October 2008 - 01:28 AM
Replies To: Shapecontainer - scrollbars
#2
Re: Shapecontainer - scrollbars
Posted 12 October 2008 - 02:58 AM
Please show the code you are using to create the shapes.
#3
Re: Shapecontainer - scrollbars
Posted 12 October 2008 - 06:16 PM
There should be a Setting in the Properties Window called ScrollBars. Set that to Horizontal, Vertical, or Both.
This post has been edited by gbertoli3: 12 October 2008 - 06:16 PM
#4
Re: Shapecontainer - scrollbars
Posted 12 October 2008 - 11:39 PM
Hello i again.
First i declare a class that inherits rectangle shape
I have s shape container
And i create new shapes and assign them to canvas
I have tried everything to display or make scrollbars visible.
if i move the shape to a position outside the visible area nothing happens.
So is there any suggestion ?
Thanks
First i declare a class that inherits rectangle shape
Public Class decNode Inherits Microsoft.VisualBasic.PowerPacks.RectangleShape
I have s shape container
Friend WithEvents myCanvas As New Microsoft.VisualBasic.PowerPacks.ShapeContainer myCanvas.Parent = Me myCanvas.AutoScroll = True myCanvas.AutoSize = True myCanvas.SetAutoScrollMargin(3, 3)
And i create new shapes and assign them to canvas
Dim myRect As New decNode myRect.Parent = myCanvas
I have tried everything to display or make scrollbars visible.
if i move the shape to a position outside the visible area nothing happens.
So is there any suggestion ?
Thanks
#5
Re: Shapecontainer - scrollbars
Posted 13 October 2008 - 02:01 AM
You can't. It is a light weight control. Can you not use a label or picturebox with the border set to single and no content?
#6
Re: Shapecontainer - scrollbars
Posted 14 October 2008 - 01:28 AM
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote






|