Solved

VB.net recreating a User Control

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now