It's incredible how many people don't even bother with the simplest of things when posting a question.
First thing they should always do is google for an answer.
The second (rule of fight club) thing is they should google again for the answer, and again and again with different keywords until they are sure theres nothing obvious about. Twenty minutes research should not be an unreasonable burden upon someone who is seeking free help.
There there is the problem of txtspk, if you have a limitation of 160 characters because your using SM its ndrstndbl tat u mgt nt use whle wrds. But when typing online you don't have that limitation, the more expressive the language you use the more information you can convey to those your asking for help.
Theres the problem of not providing enough information. Sometimes someone will give you they're interpretation of the error message, which is almost useless for searching with. Another twist is sometimes (and most developers are bad for this) someone will ask about what they think the solution is rather than describing the problem. This means you can spend ages helping with something which actually has nothing to do with the actual issue.
Some people think that it is their right to receive help and demand that you give an answer or give an in depth essay rather than a link to google. They can seem to grasp the fact that you're helping off your own back, your not getting paid to think for them.
How can I determine "day size" of a specific month using a MonthCalender or a DateTimePicker?
--- For example, I put a MonthCalender to my form and it shows the 2007-April month. How can I manage my software that shows me the "April 2007 has totally 30 days"
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
I have a TableLayoutPanel on a form, this form is inherited a number of times by others. This works fine but some of these forms do not need all the rows that are on the default table. I can't see any way of removing a particular row from the layout (ie row 3) on the new forms load. Can this actually be done at run time? It just seems wrong if you can't...
I was struggling with the same problem today.
In the first column of my TableLayoutPanel, I'm showing a checkbox.
When the user is checking it, a new row needs to be created.
When the user is unchecking it, the row containing the checkbox should be
Logically to remove a row in the TableLayoutPanel, I would think to do
something like this:
But I found out this is not enough.
You need to clear the controls for that given row as well!
Once the controls in the Controls-collection are gone, the Event that
redraws your tableLayoutPanel doesn't draw them again.
Hopes thisis working for you as well...
I have the following problem: I have created my own TextBox class (valid inputs are only numbers => NumericTextBox). It's naturally derived from the .NET TextBox control. It works fine. In the next step I tried to create a control, which can be inserted into a ToolStrip with the designer of VS2005. So I derived from ToolStripControlHost and delivered in the constructor my NumericTextBox. In the abstract it works. Only numbers can be inserted, but the property MaxLength (inherited from the original TextBox) is not supported. For example I set MaxLength to 5 but I can input more than 5 characters (numbers). Has anybody an idea, why this doesn't work?
Alternate: I can derive my ToolStripNumericTextBox from ToolStripTextBox. This works fine, but now I have to maintain the code twice. Once for the normal NumericTextBox and once for the ToolStripNumericTextBox. Can I avoid this?
You could try to limit the length yourself in exactly the same spot as where you limit the input to numbers only. I know this is a work around, but at least it's better then having to maintain two sets of the same code.
What about weapons of mass-construction? "What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson
Hi everyone ,
I have a problem here, my program can automatic display 12 files when the button is click.I use timer to let the 12 files to display orderly.
But my question is " How to allow the 12 files to display randomly everytime when i click the button"
The 12 files is the 12 waveform to be display one by one automatically when i click the button.My program can only allow the 12 waveform to display in order when i run the program( everytime when i run the program, the 12 waveform will display from 1 to 12).
Therefore my problem is " how to allow the 12 waveform to display randomly."
for example when i run the program, the third waveform will run first. And when i run the program the second time, the tenth waveform will run first.
staticvoid Main(string args)
staticvoid RunRandomly(int amount)
ArrayList alreadyused = new ArrayList();
Random rnd = new Random();
while (amount > 0)
int rndint = Convert.ToInt32(rnd.Next(12));
staticvoid Run(int number)
// do whatever you need to do, number will be a random number between 0 and 11
if it doesn't make sense, then neither did your question I'm afraid
No need to call Convert.ToInt32 here since Random.Next returns an integer.
"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." - Rick Cook
I am very new to C#.net, now I have problem to enhance my codes below so that program can upload all the *.txt from the folder to remote server. Right now my code below is only cater for 1 specific file name "text.txt". But I need your advice how can i use *.txt in c#.net. Appreciate for all the respond to my questions.
private void Page_Load(object sender, System.EventArgs e)
// Put user code to initialize the page here
if (Request.Files.Count > 0)