Click here to Skip to main content
16,006,378 members
Home / Discussions / C#
   

C#

 
QuestionWhich Row/Col When Mouse Hovers/Moves over DataGrid? Pin
Khang Nguyen13-Sep-04 11:18
Khang Nguyen13-Sep-04 11:18 
AnswerRe: Which Row/Col When Mouse Hovers/Moves over DataGrid? Pin
Nick Parker13-Sep-04 11:27
protectorNick Parker13-Sep-04 11:27 
GeneralRe: Which Row/Col When Mouse Hovers/Moves over DataGrid? Pin
Khang Nguyen14-Sep-04 4:09
Khang Nguyen14-Sep-04 4:09 
GeneralAccessing form controls Pin
13-Sep-04 11:10
suss13-Sep-04 11:10 
GeneralRe: Accessing form controls Pin
Christian Graus13-Sep-04 11:24
protectorChristian Graus13-Sep-04 11:24 
GeneralRe: Accessing form controls Pin
Heath Stewart13-Sep-04 11:48
protectorHeath Stewart13-Sep-04 11:48 
GeneralRe: Accessing form controls Pin
Member 132528214-Sep-04 13:49
Member 132528214-Sep-04 13:49 
GeneralRe: Accessing form controls Pin
Heath Stewart15-Sep-04 5:58
protectorHeath Stewart15-Sep-04 5:58 
You should start by reading the Visual C# Language[^] reference in the Visual Studio product documentation. Just fumbling around won't give you the building blocks you need. I'm all for self-discovery, but a basic amount of knowledge has to be acquired (like a language), not so much learned. Even just browsing the keywords (like foreach I'll use in a moment) can help immensly.

Enumeration in C# is rather easy:
int[] nums = new int[] {1, 2, 3};
foreach (int num in nums)
  Console.WriteLine(num);
This is compiled to this similar code:
int[] nums = new int[] {1, 2, 3};
IEnumerator e = nums.GetEnumerator();
int num;
while (e.MoveNext())
{
  num = (int)e.Current;
  Console.WriteLine(num);
}
This code is universal to any managed language, since it uses classes defined by the CLI. You can enumerate anything that implements IEnumerable (this includes ICollection and IList implementations, since ICollection inherits IEnumerable and IList inherits ICollection) this way.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles]
GeneralRe: DateTime Pin
Nick Parker13-Sep-04 9:47
protectorNick Parker13-Sep-04 9:47 
GeneralRe: DateTime Pin
Heath Stewart13-Sep-04 11:33
protectorHeath Stewart13-Sep-04 11:33 
Generalneed help in the Process class Pin
bora3ee13-Sep-04 9:38
bora3ee13-Sep-04 9:38 
GeneralRe: need help in the Process class Pin
Nick Parker13-Sep-04 10:32
protectorNick Parker13-Sep-04 10:32 
GeneralRe: need help in the Process class Pin
Heath Stewart13-Sep-04 11:40
protectorHeath Stewart13-Sep-04 11:40 
GeneralWinForms - popup config windows in a specified area Pin
TheBlindWatchmaker13-Sep-04 9:23
TheBlindWatchmaker13-Sep-04 9:23 
GeneralRelease memory - newbie doubt Pin
ee9903513-Sep-04 6:55
ee9903513-Sep-04 6:55 
GeneralRe: Release memory - newbie doubt Pin
Nick Parker13-Sep-04 7:30
protectorNick Parker13-Sep-04 7:30 
GeneralRe: Release memory - newbie doubt Pin
ee9903513-Sep-04 7:53
ee9903513-Sep-04 7:53 
GeneralRe: Release memory - newbie doubt Pin
Nick Parker13-Sep-04 8:40
protectorNick Parker13-Sep-04 8:40 
GeneralRe: Release memory - newbie doubt Pin
Heath Stewart13-Sep-04 11:07
protectorHeath Stewart13-Sep-04 11:07 
QuestionHow to wrap the string.Format method? Pin
matthias s.13-Sep-04 6:37
matthias s.13-Sep-04 6:37 
AnswerRe: How to wrap the string.Format method? Pin
Nick Parker13-Sep-04 7:33
protectorNick Parker13-Sep-04 7:33 
QuestionDirectx -- D3DX.Mesh.Box Samples ? Pin
jlabbe13-Sep-04 6:35
jlabbe13-Sep-04 6:35 
AnswerRe: Directx -- D3DX.Mesh.Box Samples ? Pin
Heath Stewart13-Sep-04 11:01
protectorHeath Stewart13-Sep-04 11:01 
Questionint -> byte[] Howto? Pin
Ariadne13-Sep-04 5:18
Ariadne13-Sep-04 5:18 
AnswerRe: int -> byte[] Howto? Pin
Colin Angus Mackay13-Sep-04 5:43
Colin Angus Mackay13-Sep-04 5:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.