|
-
Sep 17th, 2000, 04:31 PM
#1
Thread Starter
Fanatic Member
Yo, i'm trying to make my app make a combo box change it's size as you maximize or restore or resize your app. For example, The combo box should be as wide as the form when the form is maximized, it should be as wide as the form when restored, and as you resize the form to your own width, the combo box should be the same in width!
Visual Basic 6.0
Visual C++ 5
Delphi 5

-
Sep 17th, 2000, 04:37 PM
#2
_______
<?>
Private Sub Form_Load()
Combo1.Width = Form1.Width - 80
Combo1.Left = 0
End Sub
Private Sub Form_Resize()
Combo1.Width = Form1.Width - 80
Combo1.Left = 0
End Sub
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Sep 17th, 2000, 07:15 PM
#3
Thread Starter
Fanatic Member
It's not working try it with your compiler
Visual Basic 6.0
Visual C++ 5
Delphi 5

-
Sep 17th, 2000, 07:31 PM
#4
_______
<?>
I do before I post.
What seems to be the problem?
Is your combo box called Combo1 and did you copy and paste the code..I will test it again just to be certain.
Back in a min. or two
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Sep 17th, 2000, 07:33 PM
#5
_______
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Sep 17th, 2000, 07:42 PM
#6
Thread Starter
Fanatic Member
not for me. I resize the window and I even add a message box that pops up when u resize. When I resize the msgbox pops up, but it doesn't resize the combo
Visual Basic 6.0
Visual C++ 5
Delphi 5

-
Sep 17th, 2000, 07:44 PM
#7
_______
<?>
Can you post your code
Are you using vb6
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Sep 17th, 2000, 08:00 PM
#8
_______
<?>
I sent you my version in your email.ZIP file.
Maybe what I am doing is not what you are expecting.
Let me know..
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|