الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

multi forms in one c# project

مغلق
بدأه hindayyad في 10 يونيو 2005 · 2 رد · 889 مشاهدة · في Microsoft Visual C#.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

hi

please....... could any one help me in this

in my project i have a multi forms

each are public but in the same namespace

what i face is i need to set a value in my setting form

and then use this value in other one

for mor explination

i use a open file dialog to get the path of some file

which i wana to load in the other form in the loading form operation

i try to set the string as apublic variable but that work in the same class even though i try to make the other form as an internal class also it dosent work

i thing i need some interface or may be structs but realy i never use them befor if you have any idea to help me or an

answer to my question please reply

and if the answer is using a structs please explain to my how to use it

since throw all my searching about this topic i was faced with data grid

but i dont understand how its related to

another i dea im working throw know tell i see your reply is trying to use a data set for those values and use sql query in setting the values and getting it

please would any one help me on this!!!!!! and

accept my respect

#2

al salamo aleko

the general way to pass ariables between two forms is :-

1-make the variable as private ( you know about encapsulation

2-make a properity to deal with that variable

3-set values to that properity only when the desired form is hidden

only when it is HIDDEN

OK ?

حكمتي الدائمة.....................................................

ان ما عند الله لا يطلب الا بطاعته

.....................................................................

?who is Ingm

Name: Hasan Adel Hasan

Education: BCs in IS from Faculty of computers & information systems

Mansoura University- 2003

E-mail: hsn_3004@yahoo.com

#3

thanks for replying at first

but can u be more clear

please

a small code will help me alot

with respect any way

هذا الموضوع مغلق.

مواضيع مشابهة