|
What about trying to take a course or something
that would help
|
|
|
|
|
I think the OP needs to take the next step and do his own homework in the course he's signed up for.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
I would recommend getting yourself to a good bookshop and seeing what books they have on C#. I have Microsoft's 'Visual C# 2005, Step by Step , Microsoft Press 2006 (isbn-10: 0-7356-2129-2, isbn-13: 978-0-7356-2129-9) and found it very helpful, unlike C# 2005 For Dummies, Wiley Publishing, 2006, it's CRAP!
|
|
|
|
|
There are plenty of books. You will also need to determine which way you want to go: Winforms or WebForms.
I recommend Wrox beginner books. Pretty well laid out.
|
|
|
|
|
zidan911 wrote: from a to z
(char)65
...
(char)90
|
|
|
|
|
at least give him a for loop. Don't make him do each line item.
|
|
|
|
|
Buy a book. There is no easier way.
Christian Graus - C++ MVP
'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
|
|
|
|
|
Get a job where you are required to program in it, that's how I am, ummm, learning. Of course, buy book 3 days before with a trial visual studio version included and try out a couple of examples first
ok, so I'm not being useful, sorry.
Actually, when I was looking for books, they all seemed to be entirely about GUI stuff, or entirely NOT about GUI stuff, there wasn't really anything that seemed to talk about both. This was from a limited selection though. Plus, the books that talked about the basics were WAY too simplistic. Yes, I wanted to know the basics, but I didn't want to spend a whole chapter on each item. I got it after the first paragraph, thanks. But the harder books didn't include any basics so I had no idea what they were talking about.
Of course, if you are new IN PROGRAMMING rather than just new to C#, maybe you won't have that last problem; maybe the basics will require more than a paragraph to get.
Get a book, try some stuff from it and work through it. Then try and do something harder, and you will soon discover what you don't know and the real learning will start as you try to find the answer.
"Your typical day is full of moments where you ask for a cup of coffee and someone hands you a bag of nails." - Scott Adams
|
|
|
|
|
Currently I have a datarow that I need to itterate through, of which I have decided to use a foreach loop to retrieve my values. The trick is, I need to get the next row of values from the current row.
Any help would be appreciatied.
Thanks
|
|
|
|
|
int numRows = myDataTable.Rows.Count;
for(int i=0; i<numRows-1;i++)
{
DataRow currentRow = myDataTable.Rows[i];
DataRow nextRow = myDataTable.Rows[i+1];
}
|
|
|
|
|
Had it working that way, just curious if there was a way to do it with the foreach loop.
Thanks
|
|
|
|
|
avanwieren wrote: just curious if there was a way to do it with the foreach loop.
Yes, but it is more complex
|
|
|
|
|
how about:
foreach (DataRow row in myDataTable.Rows) {...}
Luc Pattyn
|
|
|
|
|
Luc Pattyn wrote: foreach (DataRow row in myDataTable.Rows) {...}
No, because he wants to access the current row and NEXT row as the same time.
|
|
|
|
|
Three ways to have access at two rows at once:
DataRow previousRow=null;
foreach (DataRow row in myDataTable.Rows) {
previousRow=row;
}
or (problem here is to get an appropriate dummy data row outside the data set)
DataRow previousRow=aDummyDataRow;
foreach (DataRow row in myDataTable.Rows) {
previousRow=row;
}
or (only when DataSet extended with a dummy head row):
DataRow previousRow=null;
foreach (DataRow row in myDataTable.Rows) {
if (previousRow!=null) {
}
previousRow=row;
}
Luc Pattyn
|
|
|
|
|
True, but all of these require slightly more complex logic that the simple for(int i=0....) style that I gave here[^]. I'd rather have something that had simpler logic and was easier to read and understand.
|
|
|
|
|
Colin Angus Mackay wrote: I'd rather have something that had simpler logic and was easier to read and understand.
I agree completely, I tried to give a solution to the foreach question anyway.
Luc Pattyn
|
|
|
|
|
Hello All,
I was just wondering if anyone knew how to disable the sorting on data grid columns. I don't want my end users to click the column headers and sort the data. Is there a proerty to set? Any help would be greatly appreciated.
|
|
|
|
|
Set the SortMode property to DataGridViewColumnSortMode.NotSortable.
|
|
|
|
|
Thanks but where is this sort mode propery? I can't find on datagridview control.
|
|
|
|
|
DataGridViewColumn.SortMode
Note: This property is new in the .NET Framework version 2.0.
Luc Pattyn
|
|
|
|
|
hi
how to doing setup project my application in c# to use or inistiler in any computer dont have .net
and sorry for bad english eriting.
thank you for help me
|
|
|
|
|
|
hi all,
I need to develop a service application that runs on a server. This application is used to get some data from the database and according to this data sends mails to clients and to the administrator. This service application is needed to run every morning at 9:00 A.M. and only once per day.
It it the first time that i deal with service application. So i have no experience in it. I made some search on the codeproject and i came up with some good result that helped me get some idea.
one of the problems i faced is that i can not add a data source to it.
can any body help me
thanks
|
|
|
|
|
Hi,
Need a simple create table script for SQL server 2007.
Here's the structure:
Column1: primary key, integer, auto increment
Column2: Name, char, length 100, not null
Column3: address, char length 200, not null
Please help
ASP - AJAX is SEXY. PERIOD.
|
|
|
|