Click here to Skip to main content
15,892,768 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Resizing Form Having Many Controls Pin
J. Dunlap25-Jul-03 21:05
J. Dunlap25-Jul-03 21:05 
GeneralRe: Resizing Form Having Many Controls Pin
Nick Seng27-Jul-03 16:19
Nick Seng27-Jul-03 16:19 
GeneralRe: Resizing Form Having Many Controls Pin
Dave Kreskowiak28-Jul-03 8:06
mveDave Kreskowiak28-Jul-03 8:06 
GeneralVisual Inheritance Issues Pin
Andrew Bromfield25-Jul-03 15:21
Andrew Bromfield25-Jul-03 15:21 
QuestionDynamically calling Webservices? Pin
DudleyDoorite25-Jul-03 11:19
DudleyDoorite25-Jul-03 11:19 
GeneralAuto hiding/docking windows Pin
RJay25-Jul-03 9:20
RJay25-Jul-03 9:20 
GeneralRe: Auto hiding/docking windows Pin
Wayne Phipps28-Jul-03 8:03
Wayne Phipps28-Jul-03 8:03 
GeneralRise! (those controls) - vb.net 2003 Pin
omega2325-Jul-03 6:20
omega2325-Jul-03 6:20 
I had the idea to copy the controls of a panel to a new Form. It works if I use the copyTo method of the control collection of the panel.

The problem is, the controls aren't copied, there moved!? Confused | :confused: Is this a bug or ...? Anyone an idea?

Test it yourself. On a simple Windows Form with a panel1, a button1 and a textbox1:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

' rise!
Dim form2 As New Form
Dim c(Panel1.Controls.Count - 1) As Control
Panel1.Controls.CopyTo(c, 0)
form2.Controls.AddRange(c)
form2.Size = Panel1.Size
form2.Show()

End Sub

As you will see, the controls are moved to the new form2, instead of copied there.
GeneralRe: Rise! (those controls) - vb.net 2003 Pin
J. Dunlap25-Jul-03 8:37
J. Dunlap25-Jul-03 8:37 
GeneralVB6 Question and problem. Pin
igor196025-Jul-03 6:18
igor196025-Jul-03 6:18 
GeneralOutlook Bar Pin
Emile Jacobs25-Jul-03 1:48
Emile Jacobs25-Jul-03 1:48 
GeneralRe: Outlook Bar Pin
J. Dunlap25-Jul-03 8:42
J. Dunlap25-Jul-03 8:42 
GeneralRe: Outlook Bar Pin
Grégory1-Aug-03 3:11
Grégory1-Aug-03 3:11 
GeneralRe: Outlook Bar Pin
Grégory1-Aug-03 3:11
Grégory1-Aug-03 3:11 
Generalvb and vba Pin
Cristian_Dior24-Jul-03 22:38
Cristian_Dior24-Jul-03 22:38 
GeneralRe: vb and vba Pin
pxw16-Aug-03 7:09
pxw16-Aug-03 7:09 
GeneralData Structure Pin
iti24-Jul-03 16:35
iti24-Jul-03 16:35 
Generalvb6.0 Pin
cypresspalace24-Jul-03 13:54
cypresspalace24-Jul-03 13:54 
GeneralRe: vb6.0 Pin
Hesham Amin24-Jul-03 22:37
Hesham Amin24-Jul-03 22:37 
GeneralRTF convert to postscript Pin
jjpaquin24-Jul-03 9:28
jjpaquin24-Jul-03 9:28 
General(407) Proxy Authentication Required Pin
Bernhard Hofmann24-Jul-03 5:08
Bernhard Hofmann24-Jul-03 5:08 
GeneralPrinting Graphics Pin
S Guruprasad24-Jul-03 2:25
S Guruprasad24-Jul-03 2:25 
Generalvb resource file Pin
r i s h a b h s23-Jul-03 21:42
r i s h a b h s23-Jul-03 21:42 
Generalicon for vb non gui application Pin
r i s h a b h s23-Jul-03 23:04
r i s h a b h s23-Jul-03 23:04 
GeneralFinding .BMP's and .JPEG's after deployment Pin
Jm6k23-Jul-03 6:47
Jm6k23-Jul-03 6:47 

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.