Click here to Skip to main content
16,004,678 members
Home / Discussions / C#
   

C#

 
GeneralRe: accessing objects in form by index or somthing like index Pin
User 66581-Jul-08 10:31
User 66581-Jul-08 10:31 
GeneralRe: accessing objects in form by index or somthing like index Pin
Sajjad Izadi1-Jul-08 10:37
Sajjad Izadi1-Jul-08 10:37 
AnswerRe: accessing objects in form by index or somthing like index Pin
luisnike191-Jul-08 9:59
luisnike191-Jul-08 9:59 
GeneralRe: accessing objects in form by index or somthing like index Pin
Sajjad Izadi1-Jul-08 10:41
Sajjad Izadi1-Jul-08 10:41 
GeneralRe: accessing objects in form by index or somthing like index Pin
User 66581-Jul-08 10:47
User 66581-Jul-08 10:47 
GeneralRe: accessing objects in form by index or somthing like index Pin
Sajjad Izadi1-Jul-08 11:11
Sajjad Izadi1-Jul-08 11:11 
GeneralRe: accessing objects in form by index or somthing like index Pin
User 66581-Jul-08 11:17
User 66581-Jul-08 11:17 
GeneralRe: accessing objects in form by index or somthing like index Pin
Sajjad Izadi1-Jul-08 11:29
Sajjad Izadi1-Jul-08 11:29 
imagine the first control which is surveyed in foreach loop is picturebox16 (foreach is surveying the controls from picturebox16 to picturebox1 in order). then every time, the if condition fails. because picCounter is 1 and non of the name of picture boxes ends with "1" (11 is exception here). so only picturebox1 (last survey of foreach) is added to the List (because if condition does not fail). and after that, the foreach loop is finished (because there is no other control in foreach to survey) and only picturebox1 is added to the list.
so i think it is better to change the value of picCounter and then start foreach from the first. isn't it right? please guide me.
thanks
GeneralRe: accessing objects in form by index or somthing like index Pin
User 66581-Jul-08 11:35
User 66581-Jul-08 11:35 
GeneralRe: accessing objects in form by index or somthing like index Pin
Sajjad Izadi1-Jul-08 11:42
Sajjad Izadi1-Jul-08 11:42 
GeneralRe: accessing objects in form by index or somthing like index Pin
User 66581-Jul-08 11:46
User 66581-Jul-08 11:46 
GeneralRe: accessing objects in form by index or somthing like index Pin
Sajjad Izadi1-Jul-08 11:53
Sajjad Izadi1-Jul-08 11:53 
GeneralRe: accessing objects in form by index or somthing like index [MODIFIED!] Pin
User 66581-Jul-08 12:03
User 66581-Jul-08 12:03 
GeneralRe: accessing objects in form by index or somthing like index Pin
Sajjad Izadi1-Jul-08 12:05
Sajjad Izadi1-Jul-08 12:05 
GeneralRe: accessing objects in form by index or somthing like index Pin
User 66581-Jul-08 12:08
User 66581-Jul-08 12:08 
GeneralRe: accessing objects in form by index or somthing like index Pin
Sajjad Izadi1-Jul-08 12:11
Sajjad Izadi1-Jul-08 12:11 
GeneralRe: accessing objects in form by index or somthing like index Pin
User 66581-Jul-08 12:13
User 66581-Jul-08 12:13 
GeneralRe: accessing objects in form by index or somthing like index Pin
Sajjad Izadi1-Jul-08 12:18
Sajjad Izadi1-Jul-08 12:18 
GeneralRe: accessing objects in form by index or somthing like index Pin
User 66581-Jul-08 12:20
User 66581-Jul-08 12:20 
GeneralRe: accessing objects in form by index or somthing like index Pin
Sajjad Izadi1-Jul-08 12:24
Sajjad Izadi1-Jul-08 12:24 
QuestionHow to use DrawString to position text Pin
shultas1-Jul-08 9:07
shultas1-Jul-08 9:07 
AnswerRe: How to use DrawString to position text Pin
Pete O'Hanlon1-Jul-08 9:48
mvePete O'Hanlon1-Jul-08 9:48 
AnswerRe: How to use DrawString to position text Pin
luisnike191-Jul-08 9:56
luisnike191-Jul-08 9:56 
QuestionFont Format in DataGrid Pin
cidmi.dovic1-Jul-08 8:40
cidmi.dovic1-Jul-08 8:40 
AnswerRe: Font Format in DataGrid Pin
Kjetil Svendsen1-Jul-08 9:38
Kjetil Svendsen1-Jul-08 9:38 

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.