473,322 Members | 1,425 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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 1915
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.kulnet.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
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...
1
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 ...
10
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...
3
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. ...
15
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...
1
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...
3
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...
1
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...
0
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,...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.