Click here to Skip to main content
15,920,031 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: wildcard search Pin
Luc Pattyn21-Dec-07 15:34
sitebuilderLuc Pattyn21-Dec-07 15:34 
GeneralRe: wildcard search Pin
Dave Kreskowiak21-Dec-07 15:52
mveDave Kreskowiak21-Dec-07 15:52 
GeneralRe: wildcard search Pin
Luc Pattyn22-Dec-07 4:18
sitebuilderLuc Pattyn22-Dec-07 4:18 
GeneralRe: wildcard search Pin
ChandraRam23-Dec-07 22:31
ChandraRam23-Dec-07 22:31 
QuestionHow to add shape controls to pictuirebox in vb.net Pin
VB 8.021-Dec-07 0:36
VB 8.021-Dec-07 0:36 
AnswerRe: How to add shape controls to pictuirebox in vb.net Pin
Dave Kreskowiak21-Dec-07 1:56
mveDave Kreskowiak21-Dec-07 1:56 
GeneralRe: How to add shape controls to pictuirebox in vb.net Pin
VB 8.021-Dec-07 3:01
VB 8.021-Dec-07 3:01 
GeneralRe: How to add shape controls to pictuirebox in vb.net Pin
Dave Kreskowiak21-Dec-07 3:32
mveDave Kreskowiak21-Dec-07 3:32 
dvsriram wrote:
But presently , i am creating controls like TB,RB,PBox,Grid labels ,etc on the picturebox at runtime


So what?? A PictureBox is used for displaying an image. You're not showing an Image, are you?

A Panel control is a container specifically designed to hold other controls.

OK. I looked into how the PowerPack shapes work. When you drop a shape on a form, there is a container control that is automatically created, called, oddly enough, ShapeContainer and is named, by default, ShapeContainer1. You have to add your shape controls to this container, or if you don't drop an initial shape on the form, you have to create the ShapeContainer instance yourself.

Example:
Imports Microsoft.VisualBasic.PowerPacks
.
.
.
    Friend WithEvents myContainer As ShapeContainer
 
    Private Sub Form1_Load(blah, blah) Handles Form1.Load
        myContainer = New ShapeContainer()
        With myContainer
            .Location = New Point(0, 0)
            .Dock = DockStyle.Fill
        End With
        Me.Controls.Add(myContainer)
 
        Dim newShape As New LineShape(130, 5, 5, 150)
        newShape.Parnet = myContainer
    End Sub
...



A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007




GeneralRe: How to add shape controls to panel in vb.net Pin
VB 8.021-Dec-07 20:47
VB 8.021-Dec-07 20:47 
QuestionRegarding multithreading Pin
praveenkumar palla20-Dec-07 22:45
praveenkumar palla20-Dec-07 22:45 
GeneralRe: Regarding multithreading Pin
Dave Kreskowiak21-Dec-07 3:33
mveDave Kreskowiak21-Dec-07 3:33 
GeneralRe: Regarding multithreading Pin
praveenkumar palla21-Dec-07 19:14
praveenkumar palla21-Dec-07 19:14 
Question"No to all" dialog result in Vb.net Pin
Member 203794320-Dec-07 22:19
Member 203794320-Dec-07 22:19 
GeneralRe: "No to all" dialog result in Vb.net Pin
Nilesh Hapse20-Dec-07 23:01
Nilesh Hapse20-Dec-07 23:01 
GeneralProblem in generating report in .NET Pin
Member 305788720-Dec-07 20:50
Member 305788720-Dec-07 20:50 
GeneralRe: Problem in generating report in .NET Pin
CKnig20-Dec-07 21:21
CKnig20-Dec-07 21:21 
GeneralRe: Problem in generating report in .NET Pin
Member 305788721-Dec-07 2:08
Member 305788721-Dec-07 2:08 
GeneralProblem with previleges with fileInfo/directoryInfo objects for moving a file Pin
SB 20-Dec-07 20:38
SB 20-Dec-07 20:38 
GeneralRe: Problem with previleges with fileInfo/directoryInfo objects for moving a file Pin
Dave Kreskowiak21-Dec-07 1:52
mveDave Kreskowiak21-Dec-07 1:52 
QuestionVB.NET P2P application? Pin
Benny_Lava20-Dec-07 20:16
Benny_Lava20-Dec-07 20:16 
AnswerRe: VB.NET P2P application? Pin
CKnig20-Dec-07 21:28
CKnig20-Dec-07 21:28 
QuestionWindow Form application's user access control Pin
tellytub20-Dec-07 16:06
tellytub20-Dec-07 16:06 
QuestionFind DLL without specifying file path of Lib Pin
bj9308120-Dec-07 13:47
bj9308120-Dec-07 13:47 
GeneralRe: Find DLL without specifying file path of Lib Pin
Christian Graus20-Dec-07 14:18
protectorChristian Graus20-Dec-07 14:18 
QuestionRe: Find DLL without specifying file path of Lib Pin
bj9308120-Dec-07 18:03
bj9308120-Dec-07 18:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.