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

البحث فى كومبوس اى من داخل كومبوكس

بدأه Ahmed29 في 7 أكتوبر 2009 · 5 رد · 761 مشاهدة · في Microsoft Visual C#.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

اسلام عليكم ورحمة الله وبركاتة كيف يتم البحث من خلال كومبوس اى كتابة بداخلة مثل اكسيس لحصول على اسم الموظف اى كتابة اول حرف لظهور باقى الحروف او اسم المراد البحث علية

حتى يتم تصحيح عنوان بريدكم الالكتروني

<span style="font-family: courier new" ,="" courier,="" monospace'="">فيصل الحربي - إدارة الموقع

#2

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

يمكنك استخدام الخاصيتين AutoCompleteSource , AutoCompleteMode

إن قلت قال الله قال رسولـه همزوك همز المنكر المتعالي
أو قلت قد قال الصحابة والألـى تبعاً لهم بالقول والأعمال
أو قلت قـال الشافعي وأحمد و أبو حنيفة والإمام الغالي
صدوا عن وحي الإله ودينـه واحتالوا على حرام الله بالإحلال
يا أمةً لعبت بدين نبيها كتلاعب الصبيان في الأوحال
حاشا رسول الله يحكم بالهوى تلك إذاً حكومة الضلال

feed.1.gif

#3

انا مش لقة هذة خاصية انا باستخدام ويب ابلكشن

حتى يتم تصحيح عنوان بريدكم الالكتروني

<span style="font-family: courier new" ,="" courier,="" monospace'="">فيصل الحربي - إدارة الموقع

#4

How to Use the Sample Code

Create a new Windows Application project in Visual C#. Form1 is created automatically.

Add a ComboBox control to Form1.

Add the following code to the Load event of the form:

// Add some items to the ComboBox list.

this.comboBox1.Text = "";

this.comboBox1.Items.Add("a");

this.comboBox1.Items.Add("aaa");

this.comboBox1.Items.Add("combo");

this.comboBox1.Items.Add("combobox");

this.comboBox1.Items.Add("combobox test");

this.comboBox1.Items.Add("common");

this.comboBox1.Items.Add("common dialog");

Add the following code to the KeyUp event of the ComboBox control:

int index;

string actual;

string found;

// Do nothing for certain keys, such as navigation keys.

if ((e.KeyCode == Keys.Back) ||

(e.KeyCode == Keys.Left) ||

(e.KeyCode == Keys.Right) ||

(e.KeyCode == Keys.Up) ||

(e.KeyCode == Keys.Down) ||

(e.KeyCode == Keys.Delete) ||

(e.KeyCode == Keys.PageUp) ||

(e.KeyCode == Keys.PageDown) ||

(e.KeyCode == Keys.Home) ||

(e.KeyCode == Keys.End))

{

return;

}

// Store the actual text that has been typed.

actual = this.comboBox1.Text;

// Find the first match for the typed value.

index = this.comboBox1.FindString(actual);

// Get the text of the first match.

if (index > -1)

{

found = this.comboBox1.Items[index].ToString();

// Select this item from the list.

this.comboBox1.SelectedIndex = index;

// Select the portion of the text that was automatically

// added so that additional typing replaces it.

this.comboBox1.SelectionStart = actual.Length;

this.comboBox1.SelectionLength = found.Length;

}

Note The code should be changed in Visual Studio 2005. When you create a Windows Forms project, Visual C# adds one form to the project by default. This form is named Form1. The two files that represent the form are named Form1.cs and Form1.designer.cs. You write your code in Form1.cs. The Designer.cs file is where the Windows Forms Designer writes the code that implements all the actions that you performed by adding controls. For more information about the Windows Forms Designer in Visual C# 2005, visit the following Microsoft Web site:

http://msdn2.microsoft.com/en-us/library/ms173077.aspx

Save and then run the sample.

تم تعديل هذه المشاركة بواسطة _- محمد نور -_ في 12 أكتوبر 2009 في 13:32

#5

معذرة

ما علاقة المشاركة الأخيرة بالسؤال !

لا إله إلا الله محمد رسول الله

アッラー以外に神はなし。ムハンマドはアッラーの使徒である

#6

علاقتة يا استاذي الفاضل هو خاصية البحث و الاكمال التلقائي و هذا بعد البحث في LOCAL HELP

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

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

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

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

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