|
Are you a programmer?
No offense, but I just looked through the posts you've made, and I don't get it - winforms are much harder than this simple problem, in fact this problem is so simple that I don't see how you could be a professional programmer, so are you just doing it as a hobby?
|
|
|
|
|
Ok my friend we all start from somewhere to get to a
level where everything becomes simple like you put it.
No am not a professional programmer but yes I'm getting
there, slowly.
Besides professional programmers also provide 'HELP'
than just comment badly.
|
|
|
|
|
Well ok, I'm not a professional programmer either (does that mean I do get to comment badly?)
Seriously though, no offense, but you could have found out how to do this in at most 5 minutes with google - even if you are a beginner (but how could you be a beginner? you've been here for over a year and you've worked with WinForms already)
|
|
|
|
|
That sounds like homework.
|
|
|
|
|
anything simpler than calculating the first 100 prime numbers cannot possibly be homework. Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that. All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.
|
|
|
|
|
thanks morgan..
this problem reminds my school days......ha ha ha ha...
public static void PrintOddNo()
{
int sum = 0;
for (int i = 0; i < 100; i++)
{
if (i % 2 != 0)
{
sum += i;
Console.WriteLine((i).ToString());
}
}
Console.WriteLine((sum).ToString());
Console.ReadLine();
}
but still i confuse with numbers which one is odd and which one is even...
thanks
|
|
|
|
|
I can not agree with this way of solving the problem, not because of the performance (WriteLine pwns the rest anyway) but looping over all numbers only to skip the even ones is just silly - and if you were to do it like this anyway, I'd really prefer (i & 1) == 1 , that's probably a very personal preference but IMO that expression makes it easier to see that it's testing for "i is odd"
|
|
|
|
|
foreach ( int i in new int [] { 1 , 3 , 5 , 7 , 9 ... } ) ...
|
|
|
|
|
hey hey thanks every body I did not mean no fight eh,
all the help you guys gave me has all worked, well done.
Now ready to submit my homework tomorrow morning.....first thing!!!!
Next time I will be safe...peace out
|
|
|
|
|
Dear All,
I am looking for a method where I can capture windows services messages and show them in Windows Form as Sql Server Synchronization Agent does.
I am logging windows services messsages in my own Event Log.
Any Idea how should I capture all those outputs.Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
Message Closed
modified 23-Nov-14 7:10am.
|
|
|
|
|
thanks for the reply, but do you think SQL Server Synchronization Agent uses the same mechanism.
If you exactly see, SQL SERVER Agent is a Services which messages can be captured by Replication Properties which is a Win Form.Abdul Rahaman Hamidy
Database Developer
Kabul, Afghanistan
|
|
|
|
|
Hi,
What is the code to make a 10 by 10 matrix with random doubles in each element in the matrix? I would want to display the matrix as a messagebox in a windows form. No experience in C#
|
|
|
|
|
You were given the answer to this question here[^].
Iman Mohtashemi wrote: No experience in C#
Then you really need to study the basics and work on some samples before asking more of the same questions. Take a look at .NET Book Zero[^], an excellent free tutorial on C#.txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
in VS 3.5 version WPF & Silverlight has been introduce. still i am working with VS 2.0 version. so just i want know.
1) Silverlight is for windows application or for web application.
2) WPF is for windows application or for web application.
please answer.
thankstbhattacharjee
|
|
|
|
|
Even the most cursory google search would have turned up the answer for you. If you want to be a developer then you have to learn to think for yourself and be able to find out details without expecting others to spoonfeed you.
1. Web. 2. Windows."WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
May I borrow your spoon, please? txtspeak is the realm of 9 year old children, not developers. Christian Graus
|
|
|
|
|
No, but I do have an extremely large hammer you can use."WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
There was no VS 3.5; there was VS 97 then VS 6.0.
|
|
|
|
|
i need a help about no-wait flowshop gantt algorithms, if anybody can help, send source and program abdullahguclu@yahoo.com. thanks a lot
|
|
|
|
|
Couple of things:
1) Don't post your email in any forum, unless you really like spam.
2) Isn't it rather rude to just demand source and program? Why should we do all the work for you?
3) Try Google. "no-wait flowshop gantt algorithms" gives quite a few hits on algorithms. Have a look!You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace
C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
|
|
|
|
|
Nobody provides complete samples for you in the forums; that's not what they are there for. The forums are to provide specific help to problems you have. If you need source code, the articles section of Code Project is a good place to start; if you can't find a relevant article, search Google; if you still can't find what you want, consider something like rentacoder."WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Hi,
I want to convert the below string to DateTime object . I am unable to do this using Convert.ToDateTime()
Wed Feb 24 04:56:30 2010
Please suggest. Please provide regular expression if required.
Thanks,
|
|
|
|
|
If it is always going to be in that format, then you could use String.Split to break it on the spaces, and then re-assemble for conversion, or use Convert.ToInt repeatedly in a DateTime constructor. You should never use standby on an elephant. It always crashes when you lift the ears. - Mark Wallace
C/C++ (I dont see a huge difference between them, and the 'benefits' of C++ are questionable, who needs inheritance when you have copy and paste) - fat_boy
|
|
|
|
|