Welcome to Dream.In.Code
Getting VB.NET Help is Easy!

Join 131,633 VB.NET Programmers for FREE! Get instant access to thousands of VB.NET experts, tutorials, code snippets, and more! There are 2,745 people online right now. Registration is fast and FREE... Join Now!




Shapecontainer - scrollbars

 
Reply to this topicStart new topic

Shapecontainer - scrollbars, How to display and use scrollbars on a shapecontainer

hdrakakis
post 11 Oct, 2008 - 11:23 PM
Post #1


New D.I.C Head

*
Joined: 14 Jul, 2008
Posts: 7

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
User is offlineProfile CardPM

Go to the top of the page


RodgerB
post 12 Oct, 2008 - 01:58 AM
Post #2


D.I.C Lover

Group Icon
Joined: 21 Sep, 2007
Posts: 2,126



Thanked 15 times

Dream Kudos: 2200

Expert In: Dot Net Technologies

My Contributions


Please show the code you are using to create the shapes.
User is offlineProfile CardPM

Go to the top of the page

gbertoli3
post 12 Oct, 2008 - 05:16 PM
Post #3


DIC at Heart + Code

Group Icon
Joined: 23 Jun, 2008
Posts: 1,024



Thanked 16 times

Dream Kudos: 950
My Contributions


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 Oct, 2008 - 05:16 PM
User is offlineProfile CardPM

Go to the top of the page

hdrakakis
post 12 Oct, 2008 - 10:39 PM
Post #4


New D.I.C Head

*
Joined: 14 Jul, 2008
Posts: 7

Hello i again.
First i declare a class that inherits rectangle shape
CODE
Public Class decNode Inherits Microsoft.VisualBasic.PowerPacks.RectangleShape

I have s shape container
CODE

        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
CODE

        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
User is offlineProfile CardPM

Go to the top of the page

WayneSpangler
post 13 Oct, 2008 - 01:01 AM
Post #5


D.I.C Head

**
Joined: 22 Mar, 2008
Posts: 102



Thanked 8 times
My Contributions


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?
User is offlineProfile CardPM

Go to the top of the page

hdrakakis
post 14 Oct, 2008 - 12:28 AM
Post #6


New D.I.C Head

*
Joined: 14 Jul, 2008
Posts: 7

QUOTE(WayneSpangler @ 13 Oct, 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?

Thank you very match. i use a label (without content) .
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/20/08 05:44AM

Live VB.NET Help!

VB.NET Tutorials

Reference Sheets

VB.NET Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month