PC Review


Reply
Thread Tools Rate Thread

Designing Menus To Change Control Properties

 
 
onionman07
Guest
Posts: n/a
 
      13th Feb 2007
I am having a problem with a program i am trying to develop that uses
menus to modify and track current properties of controls on a form. I
have 2 PictureBox controls where I can choose how to change their
properties. What I have to do is change colors, increase or decrease
the size by 5 pixels or move them in any direction 10 pixels. I also
have a Menu Item that you can choose whether you want to see 1 or 2
picture boxes.

 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      13th Feb 2007
"onionman07" <(E-Mail Removed)> schrieb:
>I am having a problem with a program i am trying to develop that uses
> menus to modify and track current properties of controls on a form. I
> have 2 PictureBox controls where I can choose how to change their
> properties. What I have to do is change colors, increase or decrease
> the size by 5 pixels or move them in any direction 10 pixels. I also
> have a Menu Item that you can choose whether you want to see 1 or 2
> picture boxes.


What's the exact problem? You can simply access the controls
('Me.PictureBox1.Width = ...') in the menu item's 'Click' event handler.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

 
Reply With Quote
 
onionman07
Guest
Posts: n/a
 
      14th Feb 2007
On Feb 13, 1:04 pm, "Herfried K. Wagner [MVP]" <hirf-spam-me-
h...@gmx.at> wrote:
> "onionman07" <odonaldso...@yahoo.com> schrieb:
>
> >I am having a problem with a program i am trying to develop that uses
> > menus to modify and track current properties of controls on a form. I
> > have 2 PictureBox controls where I can choose how to change their
> > properties. What I have to do is change colors, increase or decrease
> > the size by 5 pixels or move them in any direction 10 pixels. I also
> > have a Menu Item that you can choose whether you want to see 1 or 2
> > picture boxes.

>
> What's the exact problem? You can simply access the controls
> ('Me.PictureBox1.Width = ...') in the menu item's 'Click' event handler.
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


The exact problem is I have to increase or decrease the size of a
picture box by using a menu. I also have to move it as well.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How do I set up drop down menus in a fomr I am designing? Roady [MVP] Microsoft Outlook Discussion 0 22nd Jan 2007 02:55 PM
Is it possible to change a control properties from within VB =?Utf-8?B?UmF5Qw==?= Microsoft Access Getting Started 3 13th Oct 2006 07:59 PM
Change Properties of Control Lloyd Microsoft Access Form Coding 8 13th Oct 2004 02:45 PM
Can I change more than one control's properties at the same time? Mike Chan Microsoft VB .NET 15 3rd Feb 2004 01:49 AM
Re: Change Control properties in VBE Sandy V Microsoft Excel Programming 2 30th Jul 2003 09:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:22 AM.