A Splitter WIndow Control For VB

Environment VB6

This is a simple User-Control for easily creating a "splitter-window-like" outfit with any two controls on your VB-form.

screenshot

Steps to generate this:

  1. Place the ctlSplitterEx on your form an size it.
  2. Place two other control on your form which you want to be splitted. The size & position on these controls doesn't matter. They will be resized and placed at runtime so they will hide the cltSplitterEx at runtime nearly completely.
  3. Attach the two controls to the ctlSplitterEx by invoking ctlSplitterEx.AttachObject
  4. Define the TileMode to horizontally/vertically by setting ctlSplitterEx.TileMode - Property. [default: horizontally]
  5. Define the position of the tilebar by setting the ctlSplitterEx.TilePercenze - Property. [default: 30%]

Example to generate a splitter window with a textbox on the right an a button on the left:


'
'
private Sub Form_Load()
	me.ctlSplitterEx1.AttachObjects me.Text1, me.Command1, true
	me.ctlSplitterEx1.TileMode = TILE_VERTICALLY
End Sub
'
'


If you enjoy this control send me an email.

Download zipped source and demo project (3k)

IT Offers

Comments

  • There are no comments yet. Be the first to comment!

Leave a Comment
  • Your email address will not be published. All fields are required.

Go Deeper

  • Off the rack CRM doesn't fit every business. Are you better off with a customized solution that addresses your unique business challenges? …
  • When the economy is stable, a company's IT organization may view Finance as just one of many internal customers competing for attention. But …
  • The number, complexity, and diversity of cyber threats are soaring. Businesses are increasingly concerned about the risks they face and 91% …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds