06-12-13, 12:05 PM
(آخر تعديل لهذه المشاركة : 06-12-13, 12:25 PM {2} بواسطة Genius Live.)
The first question:
I think this code will do the job
Mark property "Visible" is equal to "False" for all buttons except button 1
(In screen design)
In the Click event code, type in the following manner



I understand that you want something like that



I think this code will do the job
Mark property "Visible" is equal to "False" for all buttons except button 1
(In screen design)
In the Click event code, type in the following manner
كود :
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Me.Button1.Visible = False
Me.Button2.Visible = True
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Me.Button2.Visible = False
Me.Button3.Visible = True
End Sub
'And so on ...


(05-12-13, 11:40 PM)بنت ماما كتب : سوال اخر ..
اريد ان اضع منيو ستريب .. يحتوي ع فايل و داخل الفايل يوجد Exit ..
كيف افعل االـ Exit بأنه بالضغط عليه يقفل البرنامج ككل ؟
وكذلك اذا اردت وضع تعليمات مثلا
و شكرا
I understand that you want something like that
كود :
Private Sub ExitToolStripMenuItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitToolStripMenuItem.Click
'SAVE SETTINGS IF FOUNDED
My.Settings.Save()
'CLOSE PRO.
End
End Sub


{ يَرْفَعِ اللَّهُ الَّذِينَ آمَنُوا مِنكُمْ وَالَّذِينَ أُوتُوا الْعِلْمَ دَرَجَاتٍ }
" Mohamed M. Bedair - " Abu Anas
Genius Live , Egypt

