Solved

VB.net recreating a User Control

Posted on 2012-03-19
3
275 Views
Last Modified: 2012-03-19
Hi

I am trying to recreate a UserControl that is in a C# project in VB.net as shown in the images below.
The first image shows the control and the second my attempt so far. I added a RichTextBox first but it took up the whole area. The same happened with a button that I tried to add.
How do I design it neatly like the first image?

1
2
0
Comment
Question by:murbro
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 11

Accepted Solution

by:
Deepak Lakkad earned 250 total points
ID: 37737129
Add a split container to your control.

Set Orientation = Horizontal for the split container

On Upper Panel, add your RichTextbox.

Set value of Dock Proerty to Fill for the RichTextBox

Add two buttons on the Lower Panel

for first button, set Dock= Left
and for second button, set Doc = Right.

This is give your desired result

- Deepak Lakkad
0
 
LVL 85

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 250 total points
ID: 37737478
"I added a RichTextBox first but it took up the whole area. The same happened with a button that I tried to add."

It sounds like the Dock() property was set to Fill.  Turn that off.  Also, check the Anchor() properties to make sure they aren't all on.

Why recreate the control though?  If it is in C# you can just add it to your VB project and use it...
0
 

Author Closing Comment

by:murbro
ID: 37738476
Thanks very much
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question