473,785 Members | 2,423 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Designing Menus To Change Control Properties

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.

Feb 13 '07 #1
2 1156
"onionman07 " <od**********@y ahoo.comschrieb :
>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.PictureBox 1.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/>

Feb 13 '07 #2
On Feb 13, 1:04 pm, "Herfried K. Wagner [MVP]" <hirf-spam-me-
h...@gmx.atwrot e:
"onionman07 " <odonaldso...@y ahoo.comschrieb :
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.PictureBox 1.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.

Feb 14 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
370
by: Raj Singh Sisodia | last post by:
Hello Sir/Madam, I am tring to create Menu and toolbar controls that looks like the one used in Office Xp. I have trird using the Menu class to create my own myMainMenu and MyMenuItem but in Ide after I put myMainMenu and try to create the subitems it creates MenuItem rather than myMenuItem how do i solve this problem. Also what would be the right way to achive my target create from scratch or use these base classes. If you could frovide any...
1
1092
by: GMHK | last post by:
Hi, Can any one help me in creating the menus using the html. the type of menus that i am looking are shown in the following website http://www.adobe.com/ In the home page there are some option like support,product,company,purchase,solutions. when we move the mouse pointer over that, the drop down list we will come.
1
11322
by: cefrancke | last post by:
I have set the Startup properties to the following... All menus, toolbars, etc are turned off plus these are unchecked Allow Full Menus Allow Built-in Toolbars Allow Default Shortcut Menus Allow Toolbar/Menu Changes Use Access Special Keys
3
11524
by: cefrancke | last post by:
The only reason I ask is that no one has made this subject clear or given a definitive answer. What I would like to do is, after turning off all the menus/tbars/etc using the startup options. Upon restarting Access, when an admin is detected (I use a GetSystemUser() function) I want to restore everything so that Access behaves like normal, ie. all menus/tbars/etc show up (only where they are supposed to show up).
2
1415
by: Sky Sigal | last post by:
Hello: I'm currently messing around, and need as much feedback/help as I can get, trying to find the most economical/graceful way to build usercontrols that rely on styling to look any good... It's the last part that has got me all frazzled (the 'rely on...to look good')... Let me explain -- and please bear with me as it's a bit longer than my usual questions:
1
3222
by: paulakeijzers | last post by:
I've got a problem with asp.net i am trying to make a menu control. and have searched the web for serveral controls but they don't work correctly. I am pretty new to asp.net building. What am i looking for. i am looking for code to make a dynamical menu with submenus The menu items are stored in a MS SQL Table and when by loading the page the items will be created. i have made a asp table. i want my menu on the left cell, in the middle cell i...
11
1419
by: Manmeet Mittal | last post by:
> Hi all this is Manmeet Mittal,
2
1360
by: £ukasz Ledóchowski | last post by:
Hi! I want to develop database web application. It will consist of many similar webpages with grid and ability to edit, insert or delete rows. All of these webpages will have grids with the same properties, ability to export data to excel or pdf, the same buttons (edit, insert, delete, export, print). What I want is to write code only once and use it in every page. In Delphi, where I usually code, I would create base class with all of...
6
3511
by: dbuchanan | last post by:
There are three parts to this 1.) How do I cascade menus? 2.) And, how do I cascade menus with a multi-select CheckBoxList?
0
9483
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10346
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10096
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9956
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8982
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7504
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6742
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5386
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3658
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.