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

لماذا تكون ناتج التكست بوكس دائما cancle

مغلق
بدأه ok_freee في 23 يوليو 2007 · 2 رد · 573 مشاهدة · في Microsoft Visual Basic.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

انا جديد على الدوت نت معذرة لو كان السؤال ضعيف

لماذا تكون الاجابة واحدة مهما كان اختيارى yes or no or cnancle

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

MsgBox("yes no cancle", MsgBoxStyle.YesNoCancel)

If MsgBoxResult.No Then TextBox1.Text = "no"

If MsgBoxResult.Yes Then TextBox1.Text = "yes"

If MsgBoxResult.Yes Then TextBox1.Text = "cancle"

End Sub

لماذا تكون ناتج التكست بوكس دائما cancle

#2
Private Sub btnHighTech_Click(ByVal sender As System.Object, _
	ByVal e As System.EventArgs) Handles btnHighTech.Click
		Dim msg As String
		Dim title As String
		Dim style As MsgBoxStyle
		Dim response As MsgBoxResult

		msg = "الموقع العربي للبرمجة"

		style = MsgBoxStyle.DefaultButton2 Or _
		   MsgBoxStyle.Exclamation Or MsgBoxStyle.YesNo _
		 Or MsgBoxStyle.MsgBoxRight
		title = "رسائل اللغة العربية"
		response = MsgBox(msg, style, title)
		If response = MsgBoxResult.Yes Then
			MessageBox.Show("You clicked on Yes button", "Yes Message", _
			 MessageBoxButtons.OK, MessageBoxIcon.Information)
		Else
			MessageBox.Show("You clicked on No button", "No Message", _
			 MessageBoxButtons.OK, MessageBoxIcon.Asterisk)
		End If

	End Sub

بالتوفيق إن شاء الله.

في المثال يتضح المقال

#3

الف مليون شكر

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

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