Browse DevX
Sign up for e-mail newsletters from DevX

Tip of the Day
Language: Visual Basic
Expertise: Beginner
Oct 1, 1996



Building the Right Environment to Support AI, Machine Learning and Deep Learning

Putting Buttons on PictureBox

My question is that I'm trying to put a command buttons in a picture box on MDI form (it's a text editor). But it always keeps on givin' me this error "Controls without the aligned property cannot be be placed directly on MDI form". Could you please help me with this one. I have been askin' this question from a lot of my friends and professors but haven't yet really got the answer.

It sounds like you're double-clicking to create the command button. This won't work. As long as you have focus on your picture control you can single click the command button in your toolbox and then draw it on the picture box by clicking and holding the left mouse button and then just dragging it out to the required size. VB4.0 adds a ToolBar and StatusBar control to your "arsenal" which makes the creation of these things a lot simpler (I'm assuming here that this is what you're doing with the command buttons and the picture box).

DevX Pro
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



Thanks for your registration, follow us on our social networks to keep up-to-date