Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1449

[RESOLVED] What is the best way to resize only certain things on a form?

$
0
0
I'm coding a chat/server client and I'm having some issues trying to get resizing working correctly.

I have a chat form that looks like this.

Name:  dlc4x.jpg
Views: 81
Size:  26.2 KB

I'm wanting to keep the top labels, textbox, and buttons the same size and in the same exact spot. I want to adjust the chat textbox, the listbox, and the textbox at the bottom that you type the message to. The send button I want to stay the same size also and always to the right of the send textbox. I'm having a really hard time trying to figure out how to code the resizing part of the code.

I could really use some assistance I've tried many things like.

txtchat.height = me.scaleheight - 100 adding the 100 in there to try and take off some for the controls on the top of the form. Also tried

txtchat.height = me.scaleheight - txtsend.height - 100 and a ton of other things. I guess I just don't understand how this resizing works. Any help would be appreciated.
Attached Images
 

Viewing all articles
Browse latest Browse all 1449

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>