Allow developer to drag controls onto user control with panel [duplicate] - vb.net

This question already has an answer here:
UserControl with header and content - Allow dropping controls in content panel and Prevent dropping controls in header at design time
(1 answer)
Closed 3 years ago.
I have a vb winforms user control which has on it a panel (docked-full). I want a coder who drops my user control onto a form to then be able to drag other control onto the panel of that user control. I've seen several custom designer examples, but none seem to work for me.
Image shows user control and concept

You just need to make the modifiers property of Panel in your UserControl set public

Related

How to Resize/Change position of custom created user control in VB.Net?

Currently I need a solution in my coding.
I already create custom user control with add, edit, delete function using 3 buttons.
The problem is, when I add my user control to windows form, I cannot change the position, or resizing the button. I only can do moving for all buttons in my control.
Please help me related to this .
Thank you indeed.

Is there a way to hide all panels in windows forms using vb.net?

i was wondering if it was possible to hide everything at once in windows forms, i was planning to use a drop down which made things appear and disappear but i wanted everything hidden at the beginning for simplicity.
Thanks!
On the form, add a Panel control (found in the Containers section of the toolbox).
Set the Visible value of the Panel to be False.
Add all controls inside this panel. You can then make the panel visible and hidden via code. (no need to cycle through all controls on the form)

ComboBox is not closing after selecting an item (Using Customer Layout Editor)

I am having problems with the closing of ComboBox when item is selected, the control is still staying opened.
Because I am using custom Layout Editor, I can not fix the issue with assigning events to the control neither coding at all. All that I have as an option are the properties of the ComboBox control which are inherited from Visual Studio. (it's the same as redacting a winform screen in VB)
So my question is : What do I have to change from the properties so my ComboBox gets closed after selecting an item?
You can force combobox closing.
The question was answered here:
How can I programmatically close a ComboBox drop down in VB.NET?

VB.NET Win. Form - Showing a custom control outside of the container control

I have a created a custom user control which consists of 2 controls:-
Textbox
Listbox
The function of this control is to act as a dropdown list. Below is the image of the control:-
Problem
Now the problem i am facing is that if i insert this user control into a container control like a panel then the list gets hidden inside that container control.
and if i just create the user control outside the container control then it would interfere with the Tab Order (focus order) of the form.
Is there any work around where the user control exists in the container control and still shows the complete list without being hidden in the panel?
Edit i wrongly added c# instead of VB.NET
It can be achieved by having the list as ToolStripDropDown. Similar customization have been done in the following discussion,
Show control inside user control outside the boundaries of its parent
Hope this suits you.

Show form without losing focus [duplicate]

This question already has answers here:
Show a Form without stealing focus?
(19 answers)
Closed 6 years ago.
I've created a small form that acts like the office notifications (fades in\out above the notification icon tray)
I'm having problems showing this form, I want to display it without the focus being taken from my main application (or any other form), I've managed to get the attached code doing roughly this, (using Me.Activate to take back focus) But this isn't great - focus switches for an instant plus I want to show the form from various areas in my application...
Dim frm2 As New frmNotification()
frm2.TopMost = True
frm2.Show()
Me.Activate()
Any Ideas?
A similar question has been answered here.
Show a Form without stealing focus?
The code is in c#, let me know if you need help in converting it to vb.net. Sorry for the delay.