Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27517

VS 2012 VB 2012 - Position of toolstrip textbox to load dialog form underneath like dropdown

$
0
0
Can you get a position text box that is in a toolstrip and load a small for below it to act as a drop downbox?


Code:

Private _owningControl As Control

Public Sub New()

' This call is required by the designer.
InitializeComponent()
' Add any initialization after the InitializeComponent() call.
End Sub

Public Sub New(owningControl As Control)
Me.New()
Me.OwningControl = owningControl
End Sub
Public Property OwningControl() As Control
Get
Return Me._owningControl
End Get
Set(value As Control)
Me._owningControl = value
If Me._owningControl Is Nothing Then
Me.StartPosition = FormStartPosition.WindowsDefaultLocation
Else

Me.StartPosition = FormStartPosition.Manual
End If
End Set
End Property
Protected Overrides Sub OnLoad(e As EventArgs)
If Me._owningControl IsNot Nothing Then
Me.Location = New Point(Me._owningControl.Left, Me._owningControl.Bottom)
End If
MyBase.OnLoad(e)
End Sub

[/HIGHLIGHT]


Viewing all articles
Browse latest Browse all 27517

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>