pouria_bayat
شنبه 19 مرداد 1392, 10:40 صبح
سلام دوستان
سوالی داشتم که مدتی هست فکر منرو به خودش مشغول کرده و مطمئنم همه شما حداقل یکبار درگیراین مسئله بودید.
مشگل من از اینجا شروع میشه که نمیتونم داخل متد static مربوط به تردم که از Threadstart استفاده میکنم بتونم متن داخل یکی از label های فرم برنامه رو تغییر بدم چرا که متد مربوطه static باید باشه چون threadstart از اون استفاده میکنه و در حالی که label من استاتیک نیست و توی اون متد شناخته شده نیست و وقتی یک نمونه از فرم میگیرم داخل متد تا از طریق همون نمونه بتونم متن label رو تغییر بدم هیچ تغییری باز اعمال نمیشه.
سوالی داشتم که مدتی هست فکر منرو به خودش مشغول کرده و مطمئنم همه شما حداقل یکبار درگیراین مسئله بودید.
مشگل من از اینجا شروع میشه که نمیتونم داخل متد static مربوط به تردم که از Threadstart استفاده میکنم بتونم متن داخل یکی از label های فرم برنامه رو تغییر بدم چرا که متد مربوطه static باید باشه چون threadstart از اون استفاده میکنه و در حالی که label من استاتیک نیست و توی اون متد شناخته شده نیست و وقتی یک نمونه از فرم میگیرم داخل متد تا از طریق همون نمونه بتونم متن label رو تغییر بدم هیچ تغییری باز اعمال نمیشه.