|
Didn't know that. Thank you very much for that.
|
|
|
|
|
|
You have some options:
1. Search Google.
2. Write on your own.
3. Try RentACoder and pay someone to do your work.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
You missed an option:
4. Fail.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
That is the "result" regardless of the option chosen. If not in this course, somewhere later on.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
unfortunately I have seen interns (in their last year) who've proven that statement wrong .
|
|
|
|
|
Asking for source code is considered rude in CP. Read the guidelines first before posting questions.
What have you tried so far? Try something on your own first.
|
|
|
|
|
How about you quit your pathetic attempt at being a student and do something you actually have a chance at!
I assume you are following this career choice because you think its easy money? Well, 1 - it's not easy, and 2 - because of mass amounts of idiots, it's becoming harder for the deserved people to find a job, and even then, one that will pay well!
Now, go quit your course!
End
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Although I agree with your sentiment, please read
HOW-TO-ANSWER-A-QUESTION[^]
No insults welcome
Kind of takes the fun out of some answers tho.
|
|
|
|
|
Maybe we should have a standard 'students please do your own homework' page we can all link to whenever a post like this comes up.
|
|
|
|
|
|
Yeah, I have read that.
There is also How to get an answer to your question[^], if the OP disregards that then I reserve the right to do the same for the answer one.
I think that is fair, is it not?
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Sure I won't complain
But look at it this way, the 'how to answer a question' thingy might restrict you somewhat but doesn't stop you from being creative in your answers
|
|
|
|
|
Sometimes I prefer to be destructive.
Anyhows, I was merely giving career advice and, in my opinion, have not insulted the OP at all
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Alas, the 'how to answer' item was added because some people[1] were getting more and more agressive in the answers to retards, nitwits and the ESN[2]. As a reault Dad said we have to play nice or we won't be allowed to come over any more.
[1] I reserve the right to pretend it was not me never.
[2] Not 'Educational Special Needs' but the older meaning. The new one is just a backronym.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
The worst thing...
I got the answer to what he wanted with a simple google search.
Saying you can only find the solution indicates you aren't trying hard enough...
|
|
|
|
|
Hello
I need help with this
string b1c;
b1c = "bla bla1\n";
b1c += "bla bla2\n";
now is it posible to some how to compare comboBox1.SelectedItem.ToString() where of course i have b1a b1b b1c as objects with the multiline strings i have , the problem is that i need a return only b1c so i can compare in a if(return that results(b1c) == comboBox1.SelectedItem.ToString())
Thank u in advance ppl , hope i make sense )
|
|
|
|
|
The easiest way is to use String.Split() method to split the string by '\n', but that would waste lot of CPU time and memory if you are going to use only one of those items in the array, try String.IndexOf() instead.
|
|
|
|
|
Would you mind rephrasing your question?
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
|
|
|
|
|
Hi i have come across a problem using combo box events
private void comboBox1_KeyPress(object sender, KeyPressEventArgs e)
{
if (Control.ModifierKeys == Keys.Delete)
{
imageViewer1.DeleteSelectedShape();
}
}
private void comboBox1_MouseDoubleClick(object sender, MouseEventArgs e)
{
comboBox1.Text = "hello";
}
For some reason the above code is not fired, it is probably a simple constraint i do not know about but can anyone see why this is would not fire.
Thanx in advance
|
|
|
|
|
I suggest you read the documentation on Control.ModifierKeys , your code is not OK.
Luc Pattyn [Forum Guidelines] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
Ah thanx that was a silly mistake.
Modifier keys (SHIFT, CTRL, and ALT) not Del
The problem is that when run it doesn't make it that far as the events are never fired
|
|
|
|
|
Just found a solution so thought i would post it :
Most controls don,t fire delete on key press so override command key pressed and check value in keypress
protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
if (keyData == Keys.Delete)
OnKeyPress(new KeyPressEventArgs((Char)Keys.Delete));
return base.ProcessCmdKey(ref msg, keyData);
}
private void Form1_KeyPress(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == (Char)Keys.Delete)
{
imageViewer1.DeleteSelectedShape();
}
}
Thanx for the help
George
|
|
|
|
|
sounds fair. Some keys are used to support editing, unless you tell the control otherwise.
Luc Pattyn [Forum Guidelines] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
try this:
private void textBoxSize_KeyPress(object sender, KeyPressEventArgs e)
{
if ((e.KeyChar > 47 && e.KeyChar < 58) || e.KeyChar == 8 || e.KeyChar == 13)
{
/*do something*/
}
}
modified 27-May-14 5:12am.
|
|
|
|