Solved

VB.net recreating a User Control

Posted on 2012-03-19
3
270 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
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
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…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

786 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