By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,035 Members | 1,555 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,035 IT Pros & Developers. It's quick & easy.

Adding a Form in Panel in

P: 25
I am using following code to add a form in Panel.

Dim ChildForm As New UserSetting
ChildForm.TopLevel = False : ChildForm.AutoScroll = True
ChildForm.Parent = Me.Panel1

This code add the form and give all access but when I want to edit text in the text box, it does does not get clicked in the middle of text (cursor for wring in not enabled). But it does so if i move cursor from via keyboard.

I am going to make my question clear here.
If i click on textbox having some text in it to edit whole text gets selected. If i double click cursor remains in initial position instead of place i click. By no means it does not get in position by mouse. But it does if i move cursor from the keyboard. This problem is not only for particular textbox but for all textbox that are in the added form.

If I just use form.showdialog, it gives all access but form does not get fit inside the panel.

textbox property is also fine i.e. readonly false
for panel form property is also isMdicontainer true

Please help
Thanking you in advance.
Apr 24 '18 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.