Shapecontainer - scrollbars

How to display and use scrollbars on a shapecontainer

Page 1 of 1

5 Replies - 3805 Views - Last Post: 14 October 2008 - 01:28 AM Rate Topic: -----

#1 hdrakakis  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 14-July 08

Shapecontainer - scrollbars

Posted 12 October 2008 - 12:23 AM

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
Is This A Good Question/Topic? 0
  • +

Replies To: Shapecontainer - scrollbars

#2 RodgerB  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 66
  • View blog
  • Posts: 2,284
  • Joined: 21-September 07

Re: Shapecontainer - scrollbars

Posted 12 October 2008 - 02:58 AM

Please show the code you are using to create the shapes.
Was This Post Helpful? 0
  • +
  • -

#3 gbertoli3  Icon User is offline

  • DIC at Heart + Code
  • member icon

Reputation: 40
  • View blog
  • Posts: 1,162
  • Joined: 23-June 08

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

Was This Post Helpful? 0
  • +
  • -

#4 hdrakakis  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 14-July 08

Re: Shapecontainer - scrollbars

Posted 12 October 2008 - 11:39 PM

Hello i again.
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
Was This Post Helpful? 0
  • +
  • -

#5 WayneSpangler  Icon User is offline

  • D.I.C Head

Reputation: 22
  • View blog
  • Posts: 106
  • Joined: 22-March 08

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?
Was This Post Helpful? 0
  • +
  • -

#6 hdrakakis  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 7
  • Joined: 14-July 08

Re: Shapecontainer - scrollbars

Posted 14 October 2008 - 01:28 AM

View PostWayneSpangler, on 13 Oct, 2008 - 02:01 AM, said:

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?

Thank you very match. i use a label (without content) .
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1