|
I see your point, but unlike other forums, the majority of users here want to improve the abilities of the people who ask the questions (Providing they are willing to learn). Nobody is going to get better if all they have to do is ask somebody else for the answer then go and copy/paste the code.
People who are not willing to attempt something themselves are people who quite frankly shouldn't even consider being programmers. Too many people think it's easy money and thus cause problems for the whole industry.
It gets very annoying when a question appears where the first result of a google search for their subject line provides all the information they could possibly need. That's how you know when you have a lazy unwilling 'Programmer' and they're the type who need to be shot down (not literally).
I actually spend a fair bit of time on here trying to help people, and am more than happy to help someone who is struggling with a new concept but has actually tried to do it for themselves first.
Anyway, that's my opinion, and I am sure it's not to everyone's liking, but who would complain? A willing learner? I think not
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Ya, I agree with you. Too many people want the quick & easy and not have to work for it.
Everything makes sense in someone's mind
|
|
|
|
|
Yea I know, but the experience has been that they really haven't googled it and that giving the first link from google makes them say "omg thanks man!"
Which is just a waste of everyone's time really..
And then there is also Liquid Nitrogen[^]
|
|
|
|
|
Agreed
Everything makes sense in someone's mind
|
|
|
|
|
And also LMGTFY which is both helpful and annoying!
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
|
|
|
|
|
KMAROIS wrote: I use a few different forums, and here on CodeProject ppls seems to be more anal about style and format
than other places.
True, but it even says in the FAQs/Stickies to place code in the relevant tags, otherwise most people won't even bother to read it.
KMAROIS wrote: One common response you see here alot is, "Did you Google it???". I'm thinking, either Yes they did Google it
and were led here, or No they didn't and don't wanna spend alot of time search through Google results. This is
an answer forum and when you ask a question you're hoping for a direct answer. Know what I mean?
From some of the posts, it is pretty obvious the OP hasn't even been bothered to Google it (in whcih case why should we? Or, often, they just want a peice of code they can copy and paste (in which case I want commision ).
Generally I want to help people improve their knowledge, but poor posts take up time and effort to read, and put people off helping.
CCC solved so far: 2 (including a Hard One!)
|
|
|
|
|
Have you tried here[^]
only two letters away from being an asset
|
|
|
|
|
Giving you the answer is not going to help you in the long run. Have you attempted anything yourself, do you even know what a 'COX' algorithm is? I don't by the way, so don't expect an answer from me
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
i just want d working ........of cox algorithm and how it can be used to encrypt file and perform compression
|
|
|
|
|
From what I know about it, it doesn't do either. It's for steganography.
|
|
|
|
|
FIRST!
how can i setup my SQL server 2008 data base in computer that does not have SQL server?
|
|
|
|
|
REPLY!
Install SQL Server!
CCC solved so far: 2 (including a Hard One!)
|
|
|
|
|
i make a setup file that include the date base and my program,so how can i make the setup file works?
|
|
|
|
|
You need to install SQL Server to deploy the database to.
You could install SQL Server 2008 Compact, but I'm not sure what the licensing is.
CCC solved so far: 2 (including a Hard One!)
|
|
|
|
|
Try here[^]
only two letters away from being an asset
|
|
|
|
|
|
I am using a richText box to display (output) messages to the users of my application. The box fills up from top down. When messages accumulate they do not get pushed up. Here is some of my code.
<pre><code>private void btnPowerOn_Click(object sender, EventArgs e)
{
// init equipment set current limits etc
richTextBox1.Focus();
richTextBox1.Text = richTextBox1.Text + "Initializing Equipment.. \n";
InitEquipment(); // initialize Equipment
richTextBox1.Focus();
richTextBox1.Text = richTextBox1.Text + "Turning Power Supply and Current Source on.. \n";
TE.PowerSupply.TurnOutputOn(strPowerSupplyName);
TE.CurrentSource.TurnOutputOn(strCurrentSourceName);
// checking to find which UUT's are enabled
WhichUUTChecked();
}</code></pre>
The richTextBox gets called a few times. The richTextBox1.Focus() command does not seem to work they way I expect it.
Any hints appreciated.
Sophronis Mantoles<pre></pre>
|
|
|
|
|
Use richTextBox1.AppendText("Your text here") instead of richTextBox1.Text = richTextBox1.Text + "Your text here"
|
|
|
|
|
This works very well. Thank you for all your help.
Sophronis
modified on Friday, September 25, 2009 11:26 AM
|
|
|
|
|
Hi,
I think you want the textbox to scroll to the bottom line after adding new text. Make a zero length selection at the end of the text and then use the ScrollToCaret method.
e.g.
this.ResultTextBox.SelectionStart = this.ResultTextBox.TextLength;
this.ResultTextBox.SelectionLength = 0;
this.ResultTextBox.ScrollToCaret();
That's for a normal TextBox but I assume it's ok for the RichTextBox too.
Alan.
|
|
|
|
|
The RichTextBox has several methods that might help you.
Specifically: LineUp, LineDown, ScrollToHome and ScrollToEnd.
You could add a ScrollToEnd() call after adding each line, which 'should' have the desired effect, although there may be a more elegant solution.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hello,
In a professional view, which one of the below does the least cycling?
Assume these two lines of code in a button's click event and i want blabla control's enabled property to be set true at the click of the button:
1) blabla.Enabled=true;
2) if(!blabla.Enabled) blabla.Enabled=true;
First one will force an Enabled=true at every button click even if it was already true. (Or maybe there is a logic beneath that I don't know, like the framework checks it and does the work, in this case, the question is irrelevant)
Second one will first check if it is false and then set true. This one will not always run the code but instead it will do an IF check.
So the question again, is: Which one is better for CPU? (Or in another sentence: Does IF or Enabled property uses more cycle?)
Thanks in advance.
Best regards,
Anıl Yıldız.
|
|
|
|
|
hi,
the second one is better coding i would say.
but first you have to clarify whether the property does set the new value if the value changed or not.
the code below demonstrates working with no if-clause because it will be checked before setting the new value..
private bool _enabled = false;
public new bool Enabled {
get { return __enabled; }
set {
if(enabled != value)
{
enabled = value;
this.Invalidate();
}
}
}
in this case the code below shows a check if button is enabled would be a right way, because every time the value will be set the button would redraw although nothing changed.
private bool _enabled = false;
public new bool Enabled {
get { return __enabled; }
set {
enabled = value;
this.Invalidate();
}
}
hope i could help you..
bless
|
|
|
|
|
Thanks, you had a great demonstration there. I have never thought of the redrawing when setting a property that causes invalidation before.
Thank you again, that answered my question perfectly.
Best regards,
Anıl Yıldız.
|
|
|
|
|
Why would you invalidate the control? 
|
|
|
|