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

ظهور واختفاء الفورم زي ال toolbox الي موجود في الفجول ستوديو

مغلق
بدأه akrm في 19 فبراير 2007 · 9 رد · 901 مشاهدة · في Microsoft Visual C#.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم ورحمه الله وبركاته

كيف يمكن جعل الفرورم تظهر وتختفي زي ال toolbox الي مجود في الفجول ستوديو اي عندما يكون الموس فوق ال toolbox فأنها تظهر وعندما يبعد الموس فأنها تختفي

#2
akrm كتب:
السلام عليكم ورحمه الله وبركاته

كيف يمكن جعل الفرورم تظهر وتختفي زي ال toolbox الي مجود في الفجول ستوديو اي عندما يكون الموس فوق ال toolbox فأنها تظهر وعندما يبعد الموس فأنها تختفي

assalamu 3alaykum. I don't know if this would be an answr of ur question but try this:

private void Form1_Load(object sender, EventArgs e)

{

this.MouseEnter += new EventHandler(Form1_MouseEnter);

this.MouseLeave += new EventHandler(Form1_MouseLeave);

}

void Form1_MouseLeave(object sender, EventArgs e)

{

this.Opacity = 0.004;

}

void Form1_MouseEnter(object sender, EventArgs e)

{

this.Opacity = 1;

}
#3
lionx99 كتب:
assalamu 3alaykum. I don't know if this would be an answr of ur question but try this:

private void Form1_Load(object sender, EventArgs e)

{

this.MouseEnter += new EventHandler(Form1_MouseEnter);

this.MouseLeave += new EventHandler(Form1_MouseLeave);

}

void Form1_MouseLeave(object sender, EventArgs e)

{

this.Opacity = 0.004;

}

void Form1_MouseEnter(object sender, EventArgs e)

{

this.Opacity = 1;

}

اولا شكرا علي الاهتمام

انا جربت هذا الكود قبل ذلك بس الي انا عوزه ان ال tollbox بيظهر ويختفي بتدريج زي الفجول استدوديو بالظبط

#4

do u want to make this show and hide for a toolbox or a form so i can help u more.

تم تعديل هذه المشاركة بواسطة lionx99 في 19 فبراير 2007 في 23:58

#5
lionx99 كتب:
do u want to make this show and hide for a toolbox or a form so i can help u more.

toolbox

i have tool box and i can not make it show and hide

#6
akrm كتب:
toolbox

i have tool box and i can not make it show and hide

ok the thing u want is not found clearly in the .net framework. but there is a solution for this. u can make a panel and put all the controls u want in it and set the size of the panel to the width of the form and put it in the top sid the form. now when u want to show the panel by time use a timer "drag and drop timer into form" and then u can have what you want. i'll give another example i made for u:

private bool show = false;

private int h=8;

private void Form1_Load(object sender, EventArgs e)

{

timer1.Interval = 10;

timer1.Enabled = true;

panel1.MouseEnter += new EventHandler(panel1_MouseEnter);

panel1.MouseLeave += new EventHandler(panel1_MouseLeave);

panel1.Size = new Size(this.Width, h);

}

void panel1_MouseLeave(object sender, EventArgs e)

{

show = false;

}

void panel1_MouseEnter(object sender, EventArgs e)

{

show = true;

}

private void timer1_Tick(object sender, EventArgs e)

{

h = panel1.Size.Height;

if (show)

{

if (h < 38)

{

h += 1;

}

else

{

//show all buttons in the panel after full show of the toolbox "panel"

}

}

else

{

if (h> 8)

{

//u must hide all buttons in here

h -= 2;

}

}

panel1.Size = new Size(panel1.Size.Width, h);

}

also u can switch the height into width in order to make it in the left side if u know what i mean.

تم تعديل هذه المشاركة بواسطة lionx99 في 20 فبراير 2007 في 05:56

#7

السلام عليكم

انا جربت الكود ده بس مش شغال معايه انا ارفقت الكود

ياريت حضرتك تبص عليه

WindowsApplication2.rar

تم تعديل هذه المشاركة بواسطة akrm في 20 فبراير 2007 في 08:03

#8
http://www.codeproject.com/cs/miscctrl/csslideform.asp

"خيركم من تعلم العلم وعلمه". ..........استغفر الله. ........ اللهم صلي وسلم على سيدنا محمد

احمد عبد الحميد ابوغرارة

CodeGuru CodeProject CGTalk

#9

ken 3endak khata2 bl code: awwalan i said if u wanna change the menu from top to left switch the h and height to width and there is no timer_tick event listener i'll giv u back ur code fixed. enshallah ye3ejbak

WindowsApplication2.rar

#10

جزاك الله كل خير

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

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

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…