Solved

VB.net recreating a User Control

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

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

707 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