• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Forms.AutoCompleteStringCollection类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Forms.AutoCompleteStringCollection的典型用法代码示例。如果您正苦于以下问题:C# AutoCompleteStringCollection类的具体用法?C# AutoCompleteStringCollection怎么用?C# AutoCompleteStringCollection使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



AutoCompleteStringCollection类属于System.Windows.Forms命名空间,在下文中一共展示了AutoCompleteStringCollection类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: autoComplete

 public AutoCompleteStringCollection autoComplete()
 {
     AutoCompleteStringCollection collection = new AutoCompleteStringCollection();
     try
     {
         SqlConnectionObj.Open();
         string query = "select * from tbl_room";
         SqlCommandObj.CommandText = query;
         SqlDataReader reader = SqlCommandObj.ExecuteReader();
         while (reader.Read())
         {
             string roomNo = reader["roomNo"].ToString();
             collection.Add(roomNo);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
     finally
     {
         if (SqlConnectionObj != null && SqlConnectionObj.State == ConnectionState.Open)
         {
             SqlConnectionObj.Close();
         }
     }
     return collection;
 }
开发者ID:asm-morshed,项目名称:Hall-Management-System,代码行数:28,代码来源:StudentGateway.cs


示例2: EDDiscoveryForm

        public EDDiscoveryForm()
        {
            InitializeComponent();

            EDDConfig = new EDDConfig();

            //_fileTgcSystems = Path.Combine(Tools.GetAppDataDirectory(), "tgcsystems.json");
            _fileEDSMDistances = Path.Combine(Tools.GetAppDataDirectory(), "EDSMDistances.json");

            string logpath="";
            try
            {
                logpath = Path.Combine(Tools.GetAppDataDirectory(), "Log");
                if (!Directory.Exists(logpath))
                {
                    Directory.CreateDirectory(logpath);
                }

            }
            catch (Exception ex)
            {
                Trace.WriteLine($"Unable to create the folder '{logpath}'");
                Trace.WriteLine($"Exception: {ex.Message}");
            }
            _edsmSync = new EDSMSync(this);

            trilaterationControl.InitControl(this);
            travelHistoryControl1.InitControl(this);
            imageHandler1.InitControl(this);

            SystemNames = new AutoCompleteStringCollection();
            Map = new EDDiscovery2._3DMap.MapManager();
        }
开发者ID:Udomyr,项目名称:EDDiscovery,代码行数:33,代码来源:EDDiscoveryForm.cs


示例3: Reload

        /// <summary>Reloads the repo's objects tree.</summary>
        public void Reload()
        {
            // todo: task exception handling
            Cancel();
            _cancelledTokenSource = new CancellationTokenSource();
            var token = _cancelledTokenSource.Token;
            var tasks = rootNodes.Select(r => r.ReloadTask(token)).ToArray();
            Task.Factory.ContinueWhenAll(tasks,
                (t) =>
                {
                    if (!t.All(r => r.Status == TaskStatus.RanToCompletion))
                    {
                        return;
                    }
                    if (token.IsCancellationRequested)
                    {
                        return;
                    }
                    BeginInvoke(new Action(() =>
                    {
                        var autoCompletionSrc = new AutoCompleteStringCollection();
                        autoCompletionSrc.AddRange(
                            _branchFilterAutoCompletionSrc.ToArray());

                        txtBranchFilter.AutoCompleteCustomSource = autoCompletionSrc;
                    }));
                }, _cancelledTokenSource.Token);
            tasks.ToList().ForEach(t => t.Start());
        }
开发者ID:Yasami,项目名称:gitextensions,代码行数:30,代码来源:RepoObjectsTree.cs


示例4: initGui

        public void initGui()
        {
            clg = new dataHandler.catalog(timeout: gpExtension.timeout);
            keyWords = new AutoCompleteStringCollection();
            keyWords.AddRange(  clg.getKeyWords().ToArray() );
            keywordTxt.AutoCompleteSource = AutoCompleteSource.CustomSource;
            keywordTxt.AutoCompleteCustomSource = keyWords;
            gdiThemes = clg.getGDIthemes();
            gdiThemes.Insert(0, "");
            GDIthemeCbx.DataSource = gdiThemes;

            orgNames = clg.getOrganisations();
            orgNames.Insert(0, "");
            orgNameCbx.DataSource = orgNames;

            dataBronnen = clg.getSources();
            List<string> bronnen = dataBronnen.Select(c => c.Key).ToList();
            bronnen.Insert(0, "");
            bronCatCbx.DataSource = bronnen;

            dataTypes = clg.dataTypes;
            List<string> dtypes = dataTypes.Select(c => c.Key).ToList();
            dtypes.Insert(0, "");
            typeCbx.DataSource = dtypes;

            inspKeyw = clg.inspireKeywords();
            inspKeyw.Insert(0, "");
            INSPIREthemeCbx.DataSource = inspKeyw;

            INSPIREannexCbx.DataSource = clg.inpireAnnex;

            INSPIREserviceCbx.DataSource = clg.inspireServiceTypes;

            filterResultsCbx.SelectedIndex = 0;
        }
开发者ID:geopunt,项目名称:geopunt4arcgis,代码行数:35,代码来源:catalogForm.cs


示例5: EnableFaytAndDropDownList

		public static void EnableFaytAndDropDownList(ComboBox comboBox, AutoCompleteStringCollection dataSource)
		{
			comboBox.AutoCompleteCustomSource = dataSource;
			comboBox.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
			comboBox.AutoCompleteSource = AutoCompleteSource.CustomSource;
			comboBox.DataSource = new BindingSource(dataSource, null);	//HACK: Stop combo boxes from staying in sync with one another
		}
开发者ID:BeigeBadger,项目名称:WTadministration,代码行数:7,代码来源:Helpers.cs


示例6: MainWindow

        public MainWindow()
        {
            InitializeComponent();

            using (var db = new MySqlContext())
            {
                var permissions = from a in db.Permissions
                                  select a.Name;
                this.checkedListBox_permissions.Items.AddRange(permissions.ToArray());
                this.checkedListBox_modificar_permissions.Items.AddRange(permissions.ToArray());

                var users = from b in db.LoginModels
                            select b.User;
                this.checkedListBox_users.Items.AddRange(users.ToArray());
                this.checkedListBox_modificar_users.Items.AddRange(users.ToArray());

                var roles = from r in db.Roles
                            select r.Name;
                AutoCompleteStringCollection accl = new AutoCompleteStringCollection();
                accl.AddRange(roles.ToArray());

                txt_rol_nombre.AutoCompleteMode = AutoCompleteMode.Suggest;
                txt_rol_nombre.AutoCompleteCustomSource = accl;
                txt_rol_nombre.AutoCompleteSource = AutoCompleteSource.CustomSource;

                txt_modificar_nombre.AutoCompleteMode = AutoCompleteMode.Suggest;
                txt_modificar_nombre.AutoCompleteCustomSource = accl;
                txt_modificar_nombre.AutoCompleteSource = AutoCompleteSource.CustomSource;

            }
        }
开发者ID:rafareyes7,项目名称:UnifyWS,代码行数:31,代码来源:MainWindow.cs


示例7: AutoComplete_Init

        //オートコンプリートの初期化
        public void AutoComplete_Init(TextBox tbx, string filename)
        {
            //オートコンプリート用インスタンス生成
            AutoCompleteStringCollection auto_scs = new AutoCompleteStringCollection();
            tbx.AutoCompleteCustomSource = auto_scs;

            string directory = Environment.GetEnvironmentVariable("LOCALAPPDATA") + "\\SCV";

            //iniファイル用ディレクトリの確認
            if (Directory.Exists(directory) == false)
            {
                DirectoryInfo di = Directory.CreateDirectory(directory);
            }

            //保存用 ini ファイルの読込/作成
            if (File.Exists(filename) == false)
            {
                FileStream fs = File.Create(filename);
                fs.Close();
            }

            //読み込んだファイル内容の反映
            foreach (string row in File.ReadLines(filename, SJIS))
            {
                auto_scs.Add(row);
            }
        }
开发者ID:OkaMisato,项目名称:test,代码行数:28,代码来源:cls_scv.cs


示例8: AutoComplete_Init

        //オートコンプリートの初期化
        public void AutoComplete_Init(TextBox tbx, string filename)
        {
            //オートコンプリート用インスタンス生成
            AutoCompleteStringCollection auto_scs = new AutoCompleteStringCollection();
            tbx.AutoCompleteCustomSource = auto_scs;

            string directory = Environment.GetEnvironmentVariable("LOCALAPPDATA") + "\\SCV";

            //保存用 ini ファイルの読込/作成
            if (File.Exists(filename) == false)
            {
                FileStream fs = File.Create(filename);
                fs.Close();
            }

            //読み込んだファイル内容をパスワードを復号化し反映
            foreach (string row in File.ReadLines(filename, SJIS))
            {
                auto_scs.Add(Decrypt(row));
            }


            //ファイルのサイズを取得
            System.IO.FileInfo fi = new System.IO.FileInfo(filename);
            long filesize = fi.Length;
            //ファイルの中身が空ではない場合、テキストボックスに初期値を追記
            if (filesize != 0)
            {
                //テキストファイルからすべての行を読み込む
                string[] lines = System.IO.File.ReadAllLines(filename);
                //最終行の値を追記                
                tbx.Text = (Decrypt(lines[lines.Length - 1]));
            }

        }
开发者ID:OkaTest,项目名称:J-s-Communication-Co.-Ltd.,代码行数:36,代码来源:PassClass.cs


示例9: FillTheCustomerInfo

        public void FillTheCustomerInfo(custVendor.CustVendorManager.custvendorinfo custInfo)
        {
            AutoCompleteStringCollection contactSource = new AutoCompleteStringCollection();
            if (custInfo.contact1.Length!=0)
            {
                tbContact.Text = custInfo.contact1;
                contactSource.Add(custInfo.contact1);
            }
            if (custInfo.contact2.Length!=0)
            {
                contactSource.Add(custInfo.contact2);
            }
            tbContact.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
            tbContact.AutoCompleteSource = AutoCompleteSource.CustomSource;
            tbContact.AutoCompleteCustomSource = contactSource;

            tbCustomerAccount.Text = custInfo.cvnumber;
            tbFreightTerm.Text = custInfo.shippingTerm;
            tbPaymentTerm.Text = custInfo.paymentTerm;
            tbBillto.Text = custInfo.billTo;

            List<custVendor.CustVendorManager.custvendorinfoshipto> shipToList = custVendor.CustVendorManager.CustVenInfoManager.GetShipTo(custInfo.cvId);
            List<string> shipToListString = new List<string>();
            foreach (custVendor.CustVendorManager.custvendorinfoshipto shipto in shipToList)
            {
                shipToListString.Add(shipto.shipTo);
            }
               SetShipToList(shipToListString);
        }
开发者ID:phox,项目名称:AmbleSystem,代码行数:29,代码来源:SoViewControl.cs


示例10: searchDepartmentalHeads

        // Search departmental heads
        public void searchDepartmentalHeads()
        {
            searchDepartmentalHeadStaffIdTextBox.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
            searchDepartmentalHeadStaffIdTextBox.AutoCompleteSource = AutoCompleteSource.CustomSource;
            AutoCompleteStringCollection collection = new AutoCompleteStringCollection();

            sqlConnection = new MySqlConnection(databaseConnection);

            try
            {
                sqlConnection.Open();

                MySqlCommand sqlCommand = new MySqlCommand("SELECT * FROM departmental_heads", sqlConnection);
                MySqlDataReader reader = sqlCommand.ExecuteReader();
                while (reader.Read())
                {
                    String name = reader.GetInt64("pfno").ToString();
                    collection.Add(name);
                }
            }
            catch (Exception exception)
            {
                MessageBox.Show("Error has occured while seraching departmental head, : " + exception.Message);
            }

            searchDepartmentalHeadStaffIdTextBox.AutoCompleteCustomSource = collection;
        }
开发者ID:sammir,项目名称:Human-Resource-Information-Management-System,代码行数:28,代码来源:DepartmentalHead.cs


示例11: SetupElements

		private void SetupElements(NationSelectForm nationSelectForm, Nation selectedNation, int numberOfCrewSlots)
		{
			_nationSelectForm = nationSelectForm;
			_selectedNation = selectedNation;
			_numberOfCrewSlots = numberOfCrewSlots;
			_vehicleType = new VehicleType();	// Crappy default value
			_crewSlotData = Helpers.LoadCrewSlotDataFromFile(CrewSlotDataFileName) ?? new List<CrewSlotData>();	// Load from file, if null is returned, creates a new (empty) list

			if (_crewSlotData.Count < 1) // Happens only when nothing comes from reading the file with data.
			{
				_crewSlotData.Add(new CrewSlotData(_selectedNation));
			}

			#region Setup fields for form controls
			List<string> vehicleNames = Helpers.LoadVehicleDataFromJson(Helpers.GetVehicleJsonDataForNation(_selectedNation)).OrderBy(v => v.VehicleName).Select(v => v.VehicleName).ToList();
			_faytVehicleSource = new AutoCompleteStringCollection();
			_faytVehicleSource.AddRange(vehicleNames.ToArray());

			List<string> vehicleTypes = Helpers.LoadVehicleTypesDataFromJson(Helpers.GetVehicleTypesJsonData()).OrderBy(t => t.VehicleTypeLongName).Select(t => t.VehicleTypeLongName).ToList();
			_faytVehicleTypeSource = new AutoCompleteStringCollection();
			_faytVehicleTypeSource.AddRange(vehicleTypes.ToArray());

			_crewSlotConfigurations = new List<CrewSlotConfiguration>();
			_crewSlotGroupBoxes = new Dictionary<int, GroupBox>();
			_crewNameComboBoxes = new Dictionary<int, ComboBox>();
			_crewTrainedMembersNumericScrollers = new Dictionary<int, NumericUpDown>();
			_crewVehicleTypeComboBoxes = new Dictionary<int, ComboBox>();
			#endregion

			SetFormHeight();
			Helpers.ChangeBackground(this, selectedNation);
			PopulateFormControls();
		}
开发者ID:BeigeBadger,项目名称:WTadministration,代码行数:33,代码来源:ConfigureCrewSlotsForm.cs


示例12: AutoCompleteAnimalSerial

        private void AutoCompleteAnimalSerial()
        {
            //auto completes Employee name in check out page.
            textBoxTreatmentSerial.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
            textBoxTreatmentSerial.AutoCompleteSource = AutoCompleteSource.CustomSource;
            AutoCompleteStringCollection collection1 = new AutoCompleteStringCollection();

            textBoxFoodAnimalSerial.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
            textBoxFoodAnimalSerial.AutoCompleteSource = AutoCompleteSource.CustomSource;
            AutoCompleteStringCollection collection2 = new AutoCompleteStringCollection();

            SqlConnection connection = new SqlConnection(connectionString);
            string commandString = "SELECT aserial FROM animal";
            SqlCommand command = new SqlCommand(commandString, connection);
            SqlDataReader myReader;
            try
            {
                connection.Open();
                myReader = command.ExecuteReader();
                while (myReader.Read())
                {
                    string value = myReader["aserial"].ToString();
                    collection1.Add(value);
                    collection2.Add(value);
                }
                connection.Close();
            }
            catch (SqlException ex)
            {
                MessageBox.Show(ex.Message);
            }
            textBoxTreatmentSerial.AutoCompleteCustomSource = collection1;
            textBoxFoodAnimalSerial.AutoCompleteCustomSource = collection2;
            NameShadeShow();
        }
开发者ID:kanizkoly,项目名称:ZooManagementSystem,代码行数:35,代码来源:AdminWork.cs


示例13: FindObjectForm_Shown

        /// <summary>The find object form_ shown.</summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The e.</param>
        private void FindObjectForm_Shown(object sender, EventArgs e)
        {
            var collection = new AutoCompleteStringCollection();

            try
            {
                UseWaitCursor = true;

                if (_databaseInspector.DbSchema == null)
                {
                    _databaseInspector.LoadDatabaseDetails();
                }

                foreach (DbModelTable table in _databaseInspector.DbSchema.Tables)
                {
                    collection.Add(table.FullName);
                }

                foreach (DbModelView view in _databaseInspector.DbSchema.Views)
                {
                    collection.Add(view.FullName);
                }
            }
            finally
            {
                UseWaitCursor = false;
            }

            cboObjects.AutoCompleteCustomSource = collection;
        }
开发者ID:SyedMdKamruzzaman,项目名称:sap_interface,代码行数:33,代码来源:FindObjectForm.cs


示例14: Initialize

 public void Initialize()
 {
     SetFormHeader();
     AutoCompleteStringCollection cmbstrName = new AutoCompleteStringCollection();
     AutoCompleteStringCollection cmbstrJer = new AutoCompleteStringCollection();
     DataRow drTeam = ObjUdtprovider.CurrentDataSet.Tables[2].Select("Name = '" + Team+"'").FirstOrDefault();
     if (drTeam != null)
     {
         DataRow[] drPlayers = ObjUdtprovider.CurrentDataSet.Tables[3].Select("T24_ID = '" + drTeam["T24_ID"] + "' AND Playing=true");
         cmbPlayerJer.Items.Clear();
         cmbPlayerName.Items.Clear();
         foreach (DataRow item in drPlayers)
         {
             cmbPlayerName.Items.Add(item["First Name"]);
             cmbstrName.Add(item["First Name"].ToString());
             cmbPlayerJer.Items.Add(item["Jersey No"]);
             cmbstrJer.Add(item["Jersey No"].ToString());
         }
         cmbPlayerName.SelectedIndex = 1;
         cmbPlayerJer.SelectedIndex = 1;
         cmbPlayerName.AutoCompleteMode = AutoCompleteMode.Suggest;
         cmbPlayerName.AutoCompleteSource = AutoCompleteSource.CustomSource;
         cmbPlayerName.AutoCompleteCustomSource = cmbstrName;
         cmbPlayerJer.AutoCompleteMode = AutoCompleteMode.Suggest;
         cmbPlayerJer.AutoCompleteSource = AutoCompleteSource.CustomSource;
         cmbPlayerJer.AutoCompleteCustomSource = cmbstrJer;
     }
 }
开发者ID:WASP3D,项目名称:Soccer-App,代码行数:28,代码来源:PlayerDetails.cs


示例15: textBox1_TextChanged_1

        private void textBox1_TextChanged_1(object sender, EventArgs e)
        {
            AutoCompleteStringCollection names = new AutoCompleteStringCollection();
            textBox1.AutoCompleteMode = AutoCompleteMode.Suggest;
            textBox1.AutoCompleteSource = AutoCompleteSource.CustomSource;
            string server = "MYSQL5009.HostBuddy.com";
            string database = "db_9cf135_hawk";
            string uid = "9cf135_hawk";
            string password = "ticcttmosfet";
            string connectionString;
            connectionString = "SERVER=" + server + ";" + "DATABASE=" +
            database + ";" + "UID=" + uid + ";" + "PASSWORD=" + password + ";";
            MySqlConnection con = new MySqlConnection(connectionString);
            con.Open();
            MySqlCommand cms = new MySqlCommand("select * from user", con);
            MySqlDataReader dr = cms.ExecuteReader();
            while (dr.Read())
            {
                names.Add(dr[1].ToString());
            }

            dr.Close();
            con.Close();
            textBox1.AutoCompleteCustomSource = names;
        }
开发者ID:prab409069,项目名称:vision,代码行数:25,代码来源:name.cs


示例16: AutoComplte

        void AutoComplte()
        {
            searchTextBox.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
            searchTextBox.AutoCompleteSource = AutoCompleteSource.CustomSource;
            AutoCompleteStringCollection coll=new AutoCompleteStringCollection();

              string  url = @"server=faruk\SQLEXPRESS; database=library; integrated security=true";
              SqlConnection  connection = new SqlConnection(url);

            connection.Open();

            string query = "select * from book_table";
            SqlCommand command = new SqlCommand(query, connection);
            SqlDataReader aReader = command.ExecuteReader();

            if (aReader.HasRows)
            {
                while (aReader.Read())
                {
                    string sname = aReader[1].ToString();
                    coll.Add(sname);
                }

            }

            searchTextBox.AutoCompleteCustomSource= coll;
            connection.Close();
        }
开发者ID:faruk111,项目名称:MyProjectWork,代码行数:28,代码来源:SearchUI.cs


示例17: searchJobCategory

        // Search department
        public void searchJobCategory()
        {
            searchJobCategoryName.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
            searchJobCategoryName.AutoCompleteSource = AutoCompleteSource.CustomSource;
            AutoCompleteStringCollection collection = new AutoCompleteStringCollection();

            sqlConnection = new MySqlConnection(databaseConnection);

            try
            {
                sqlConnection.Open();

                MySqlCommand sqlCommand = new MySqlCommand("SELECT * FROM job_category", sqlConnection);
                MySqlDataReader reader = sqlCommand.ExecuteReader();
                while (reader.Read())
                {
                    String name = reader.GetString("name");
                    collection.Add(name);
                }
            }
            catch (Exception exception)
            {
                MessageBox.Show("Error has occured while seraching department, : " + exception.Message);
            }

            searchJobCategoryName.AutoCompleteCustomSource = collection;
        }
开发者ID:sammir,项目名称:Human-Resource-Information-Management-System,代码行数:28,代码来源:JobCategory.cs


示例18: frmContacts

        public frmContacts()
        {
            InitializeComponent();

            Icon = Properties.Resources.logo;

            DataSet ds = Program.DB.SelectAll("SELECT ID,Name FROM Companies;");
            if (ds.Tables.Count > 0)
            {
                AutoCompleteStringCollection asCompanies = new AutoCompleteStringCollection();
                foreach (DataRow r in ds.Tables[0].Rows)
                {
                    string sName = r["Name"].ToString();
                    asCompanies.Add(sName);
                }
                txtCompanies.AutoCompleteCustomSource = asCompanies;
            }

            ds = Program.DB.SelectAll("SELECT ID,NameFirst,NameLast FROM Contacts;");
            if (ds.Tables.Count > 0)
            {
                foreach (DataRow r in ds.Tables[0].Rows)
                {
                    DevComponents.Editors.ComboItem i = new DevComponents.Editors.ComboItem();
                    i.Tag = r["ID"];
                    i.Text = r["NameFirst"].ToString() + " " + r["NameLast"].ToString();
                    cbxContact.Items.Add(i);
                }
            }
        }
开发者ID:etechuk,项目名称:hcfcpc,代码行数:30,代码来源:frmContacts.cs


示例19: frmDodjelaPrava_Load

        private void frmDodjelaPrava_Load(object sender, EventArgs e)
        {
            // key/value for combobox source
            List<KeyValuePair<string, string>> data = new List<KeyValuePair<string, string>>();
            // autocomplete for user's combobox
            AutoCompleteStringCollection autocomplete = new AutoCompleteStringCollection();

            // text inside combobox: Name Surname (username)
            // value: username
            foreach (iUser korisnik in piLogin.GetUser())
            {
                data.Add(new KeyValuePair<string, string> (korisnik.UserName, korisnik.Name + " " + korisnik.Surname + " (" + korisnik.UserName + ")"));
                autocomplete.Add(korisnik.Name + " " + korisnik.Surname + " (" + korisnik.UserName + ")");
            }

            // set datasource for user's combobox
            cmbKorisnik.DataSource = new BindingSource(data, null);
            cmbKorisnik.DisplayMember = "Value";
            cmbKorisnik.ValueMember = "Key";

            // set autocomplete source and mode
            cmbKorisnik.AutoCompleteSource = AutoCompleteSource.CustomSource;
            cmbKorisnik.AutoCompleteMode = AutoCompleteMode.SuggestAppend;
            cmbKorisnik.AutoCompleteCustomSource = autocomplete;

            // set role items
            cmbUloga.Items.Add("Odobravanje");
            cmbUloga.Items.Add("Likvidatura");

            // if user is set, select it from combobox
            if (this.korisnik != null)
            {
                cmbKorisnik.SelectedValue = this.korisnik.UserName;
            }
        }
开发者ID:djelic,项目名称:PutniNalozi.NET,代码行数:35,代码来源:frmDodjelaPrava.cs


示例20: addCarnets

 private void addCarnets(AutoCompleteStringCollection DataCollection)
 {
     foreach (Alumnos Alumno in Alumnos)
     {
         DataCollection.Add(Alumno.carnet + " - " + Alumno.nombres );
     }
 }
开发者ID:sancas,项目名称:ProgramacionIV,代码行数:7,代码来源:Form1.cs



注:本文中的System.Windows.Forms.AutoCompleteStringCollection类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Forms.Binding类代码示例发布时间:2022-05-26
下一篇:
C# Forms.ApplicationContext类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap