|
Simple, this will add a ToolStripLabel label1 by default.
using System.Windows.Forms;
namespace MyControls
{
public class MyToolStrip :ToolStrip
{
ToolStripLabel label1;
public MyToolStrip()
{
InitializeComponent();
}
private void InitializeComponent()
{
label1 = new ToolStripLabel();
label1.Text = "Tool Strip Label";
Items.Add(label1);
}
}
}
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
|
|
This would be better if the event were passed to the form that has the toolstrip. 2 Options:
1. Make the button public public ToolStripButton button1; then it can be accessed in the form
myToolStrip1.button1.Click += new EventHandler(button1_Click);
2. Better I think, raise your own ButtonClick event.
public event EventHandler ButtonClick;
ToolStripButton button1;
public MyToolStrip2()
{
InitializeComponent();
}
private void InitializeComponent()
{
button1 = new ToolStripButton();
button1.Click += new EventHandler(button1_Click);
button1.Text = "Open another Form";
Items.Add(button1);
}
void button1_Click(object sender, EventArgs e)
{
EventHandler eh = ButtonClick;
if (eh != null)
eh(sender, e);
} then access the ButtonClick event of your toolstrip in the normal way
myToolStrip1.ButtonClick += new EventHandler(myToolStrip1_ButtonClick);
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Thank you very much for the helpful input.
Kind regards,
The only programmers that are better those C# programmers are those who code in 1's and 0's |
Programm3r
My Blog: ^_^
|
|
|
|
|
You're welcome
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
An article that I wrote for the CodeProject might help: Custom ToolStrip Renderers[^]
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
I have developed a client/server model and the text messaging works fine. now i want to add audio conferencing to it but have no idea from where to start. can you tell me from where to start and which classes i will need. i am open for any further reading
thanks
Zain
|
|
|
|
|
There's an <b>amazing</b> web site called google that may be of use. It requires a working web-browser, but as you can access codeproject, I'm sure you can navigate there.
Failong that, in answer to your second part:
coasphantom wrote: which classes i will need
MacDonalds do all the training on site, there's no need for extra classes.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Do you mean McDonalds? (I used 'Google' for correct spelling) - and they dont do all training on site
|
|
|
|
|
I was thinking of the other lot...
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
How much training do you need to say "Do you want fries with that?"
|
|
|
|
|
You would not get trained to say that at all.
Suggestive selling in the event of a single burger, for example, being ordered would be something along the lines of 'Would you like to make that a meal?'
at least in the UK anyway
P.S to say the line you quoted would actually take a fair bit of training, but thats what school is for :P
|
|
|
|
|
I suspect they have changed what they say precisely because everyone jokes about the old 'do you want fries with that' line.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
It was always "sell up once" in my day:
Customer: Big Mac n fries
Dunce: Is that a large fries?
Customer: Just gimme the fokin mac'n'fries yer motha!
- or -
Customer: Big Mac, fries ana coke
Dunce: Is that a large coke?
Customer: If I wanna large coke I'l ask fer a large coke! Get me ma food! C___!
I miss it, really I do.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Spot on their mate.
As you have described - some customers just dont have the intelligence to handle placing a simple food order
|
|
|
|
|
Speaks a man of experience (20+ years ago, but experience non the less)
The guys on the tills, known as dunces in the trade, are generally the day1 dudes who haven't yet learnt how to press the button on the frier.
After that they move onto be a junior fry guy, or Muckfit. By this point they have been through the first six week training program which entails pouring frozen chips into a basket, placing basket in frier and pressing the button. The senior fry guy is allowed to take them out when the beeper goes beep and deposit them in the fry bin.
A few months will have past before they are elevated to the back of the store to prepare the buns for the burgers. This rather senior position goes by the name Bap Stacker. You don't want to know what the front of house call him.
A year or so down the line, you may get to actualling putting the burgers on the grill. This is not easy as it may seem. From memory they have to press the button THREE times during the process; highly stressful.
I did this to get a bit of extra cash when I was at Uni. When I left to get a real job, the store manager offered me a perminent position and was perplexed that I wanted to work 9-5 in an office without smelling of grease. Actually, I think he just said "Duh?". To this day I cannot stand McD's and I think it's close to 15 years since I last went into one.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Then you should try again. So much has changed (for the better)
|
|
|
|
|
I just walk past one and I get a reflex choking in my throat from the smell. I'll give it a miss for now.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
I love the way that a question about audio conferencing sparks such an in depth discussion about McDonalds.
Speaking of which, why is it that you always get hungry again about 30 mins after eating a McD's meal???
If you notice this notice, you will notice that this notice is not worth noticing...
|
|
|
|
|
Cuz it tastes so good that your body makes you think your still hungry in the hope you will eat more great McDonalds food :P
|
|
|
|
|
|
|
Anybody Help me.
I am new in c# developing. now i have one exception
The exception is
"Cross-thread operation not valid: Control 'panel 9' accessed from a thread other than the thread it was created on."
This exception was occur when i was run the proiect. Otherwise The exception
not occur if run the corresponding project exe.
Why this type of error came and how can handle this error.
Thankyou
|
|
|
|
|