473,738 Members | 11,192 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

design question: how to organize your toolstrips

Hey,

I'm working on a winform app in VS 2005. I'm wondering if someone knows
some best practices on how to organize the toolstrips.

I have a menuToolStrip and some other toolstrips. As in many apps, the
functionality of the toolstrip en the menubar overlap. (e.g. cut & copy etc)

The commands I'm using for my application are more complex off course
than just a copy and a paste.

Does someone has an idea on how to organize such things without having
to write twice the same code. The fact is that I want to give the user
the choise to show or hide some of the toolstrips.

Thanks in advance,
Dries
May 10 '06 #1
1 1934
Create methods that perform the work that the menu handlers are now doing.
Use the handlers to call the functions.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Rudderius" <dr***@bestopia .be> wrote in message
news:11******** *******@seven.k ulnet.kuleuven. ac.be...
Hey,

I'm working on a winform app in VS 2005. I'm wondering if someone knows
some best practices on how to organize the toolstrips.

I have a menuToolStrip and some other toolstrips. As in many apps, the
functionality of the toolstrip en the menubar overlap. (e.g. cut & copy
etc)

The commands I'm using for my application are more complex off course than
just a copy and a paste.

Does someone has an idea on how to organize such things without having to
write twice the same code. The fact is that I want to give the user the
choise to show or hide some of the toolstrips.

Thanks in advance,
Dries

May 10 '06 #2

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

Similar topics

9
3864
by: bigoxygen | last post by:
Hi. I'm using a 3 tier FrontController Design for my web application right now. The problem is that I'm finding to have to duplicate a lot of code for similar functions; for example, listing users, and listing assignments use similar type commands. Is there a "better" way I can organize my code?
1
1313
by: Tony Johansson | last post by:
Hello! Here I have one base klass and three subklasses. I Just want to have your opinion about the design of these klasses. I don't think that my design is good. I think that I instead should not have done the base class abstract it is so now but that is wrong I think. The base class should be concrete Define then method fetchWeaponName, fetchAllowedAnimal and getPrice in the
10
2102
by: William Gill | last post by:
Being somewhat new to Python, and having a tendency to over complicate things in my class design, I was wondering if anyone can suggest a simple graphical or flowcharting tool that they use to organize their class and program design? Because of a 55 mph head-on accident a few years back, I have short term memory problems, so flipping back and forth between pages of code is next to impossible for me to keep straight. A simple graphical...
3
1580
by: Steve Barnett | last post by:
I've been struggling with C# for the last couple of months (I'm a VB6 developer) and it dawned on me this morning that it has nothing to do with C# and everything to do with application design. Case in point; I recently developed an application in C# that worked perfectly well and performed the task I required. Having finished the development, I went back and split the program in to four classes, so ending up with a program that did...
15
2052
by: xargon | last post by:
Hi everyone, I am writing a small user interface library in C++ (I know it has been done to death, but it is good for learning ). Anyways, I need some help/advice with the deisgn of the software architecture. The problem I am facing is that a control can have so many states... For example, a button could be have various shapes (rounded, square, some other custom geometry). Also, it could be bitmapped, textured, text only, text with...
1
2467
by: Joe | last post by:
I have a few ToolStripContains and ToolStrips in my app and only want certain ToolStrips to be able to be dropped on certain ToolStripContainers. Is there anyway to do this? I tried the DragEnter event of the ToolStripContainer but it didn't help. Thanks, Joe
3
1961
by: Simon | last post by:
Hi there, my question is not specifically related to C++, but rather the practice around it. I've started a big project in C++ and stumbled onto a couple problems like inter-dependency, forward declarations giving troubles later during compilation and more. All these trouble were mostly due to the design of the files making the whole project. I've read a bit on design patterns but I don't feel I've read enough. I have my project in...
1
1741
by: Mike | last post by:
I am using CFormView and CWinFormsControl in C++ to show a C# control. The control includes a toolstrip container and various toolstrips. If all the toolstrips are hidden (visible = false) on any of the container's panels, a mouse click will cause a stack overflow. The problem is in the PreTranslateMessage() function of CFormView. It calls _AfxNextControl. When that function tries to get the parent of the hidden toolstrip, it gets null...
0
1077
by: =?Utf-8?B?SnVzdGluIFJvYmVydHM=?= | last post by:
Hi I am developing a windows app. in VB using VS2005. I have multiple toolstrips (and toolstrip containers) where I want users to move buttons around (using {Alt} + drag) inside the toolstrips, and to move toolstrips across containers. However I want to prevent users dragging toolbuttons to different toolstrips. I thought MergeAction of MatchOnly would achieve this, but apparantly not. Does anyone know how I can stop this action?
0
8788
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
9476
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...
0
9208
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...
1
6751
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
6053
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
4570
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...
0
4825
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3279
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.