B
Brano
Hi I am using vb.net 2005 this is a windows application
I am using this functionality in another project I have created this
simple project to show the problem
Basically I have two forms:
Form1 - contains a panel (System.Windows.Forms.Panel)
Form2 - contains two textboxes with some sample text in them
If the Form2 is executed on its own the textboxes work fine you can
use your mouse to select a portion of the text and copy paste it
However if I run the Form2 in a panel in Form1 the functionality of
the textboxes is gone you can no longer use the mouse to select parts
of the text you can only souble click to select the whole contents of
the textbox.
this is the code I am using:
Code:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim frmToDisplay As New Form2
frmToDisplay.TopLevel = False
Panel1.Controls.Clear()
Panel1.Controls.Add(frmToDisplay)
frmToDisplay.Show()
frmToDisplay.Activate()
End Sub
End Class
Does anyone know id this is a bug with VB 2005 or am I doing
something
wrong?
THANKS
I am using this functionality in another project I have created this
simple project to show the problem
Basically I have two forms:
Form1 - contains a panel (System.Windows.Forms.Panel)
Form2 - contains two textboxes with some sample text in them
If the Form2 is executed on its own the textboxes work fine you can
use your mouse to select a portion of the text and copy paste it
However if I run the Form2 in a panel in Form1 the functionality of
the textboxes is gone you can no longer use the mouse to select parts
of the text you can only souble click to select the whole contents of
the textbox.
this is the code I am using:
Code:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim frmToDisplay As New Form2
frmToDisplay.TopLevel = False
Panel1.Controls.Clear()
Panel1.Controls.Add(frmToDisplay)
frmToDisplay.Show()
frmToDisplay.Activate()
End Sub
End Class
Does anyone know id this is a bug with VB 2005 or am I doing
something
wrong?
THANKS