C#メモ

[個人メモ] [アイデア] [仕事メモ] [Ruby] [Qt] [TstLink]

2017-06-08

コンボボックスarraylist登録

// 名前空間の追加
using System.Collections;

// コード
private void button1_Click(object sender, EventArgs e)
{
  ArrayList al = new ArrayList { "NEC", "SONY", "DELL" };
  comboBox1.Items.AddRange(al.ToArray()); 
}

form間のデータのやりとり

子のフォームに親のフォームの参照を渡す。

https://www.ipentec.com/document/document.aspx?page=csharp-multi-form-data-transfer

namespace MultiFormDataTransfer
{
  public partial class FormSub : Form
  {
    private string sendData="";
    public FormMain formMain;

namespace MultiFormDataTransfer
{
  public partial class FormMain : Form
  {
    private string receiveData ="";
    FormSub fs;

    public FormMain()
    {
      InitializeComponent();
      fs = new FormSub();
      fs.formMain = this;
    }

    private void button1_Click(object sender, EventArgs e)
    {      
      fs.Show();
    }

arraylist存在するか探す

IndexOfを使用存在しないときは-1,それ以外は存在する場所indexを返す

        public void setName(string name)
        {
            WorkerName = name;
            if (ClsTextFile.lines.IndexOf(name) == -1)
            {
                ClsTextFile.lines.Add(name);
                save();
            }
        }

formを真ん中に表示

//表示させるフォームを作成する
Form2 f = new Form2();
//フォームを画面の真ん中に表示する
f.StartPosition = FormStartPosition.CenterScreen;
f.Show();

LiaCymnLiaCymn 2018/02/24 05:55 Acquistare Kamagra In Francia Nizagra Pills Vente De Tadalis Sx En France <a href=http://tadalafbuy.com>cialis buy online</a> Acquistare Kamagra In Linea Pyridium Increased Urination

HilDonoHilDono 2018/04/08 18:12 Doxycycline Buy Viagra Online In The Us Doxycycline Online Pharmacy Uk <a href=http://cheapciali.com>tadalafil cialis from india</a> Does Keflex Contain Sulfa No Prescription Amoxicillin Cheap

HilDonoHilDono 2018/04/14 14:42 Potenzmittel Viagra Gunstig Albendazole Canadian Pharmacy <a href=http://cialicheap.com>generic cialis online pharmacy reviews</a> Occasion Levitra Pharmacie Kamagra Shop Berlin

DerekbruseDerekbruse 2018/06/15 20:15 now <a href= http://buyviagramdf.com/ > buy viagra online </a> here "http://buyviagramdf.com/" - 25mg, 50mg, 100mg viagra tablets available today buyviagramdf.com

DerekbruseDerekbruse 2018/06/21 02:50 <a href= http://cialisnrx.com/ >buy cheap cialis online</a> here "http://cialisnrx.com/" - cialis online generic cialis cialisnrx.com

WilliamlowWilliamlow 2019/02/02 11:26 order cialis online fast shipping
online cialis scams
<a href=https://greatwinesgrandhouses.com>Cialis 20 mg</a>
buy cialis at walmart
buy cialis pills online
https://kellyannehulme.com
cialis tablets review
cialis price toronto
<a href=https://greatwinesgrandhouses.com>Cheap cialis buy</a>
cialis filmtabletten
free cialis pills
https://greatwinesgrandhouses.com

WilliamlowWilliamlow 2019/02/02 11:26 which one cum faster cialis
when will cialis get cheaper
<a href=https://kellyannehulme.com>Cheap cialis</a>
comprar cialis seguro
cialis ills
https://kellyannehulme.com
cialis tablete u bih
cialis stripes paypal
<a href=https://kellyannehulme.com>buy Cheap cialis</a>
cialis generica
cialis warnings
https://kellyannehulme.com

WilliamlowWilliamlow 2019/02/02 11:26 the least expensive cialis
cialis preise schweiz
<a href=https://kellyannehulme.com>Cheap cialis buy online</a>
cost of cialis in bangkok
comprar cialis pills x sex
https://greatwinesgrandhouses.com
dove comprare cialis online sicuro
www.cialis germany
<a href=https://greatwinesgrandhouses.com>Cialis 20 mg cheap price</a>
buying cialis tadalafil
cheapest pharmacy for cialis
https://greatwinesgrandhouses.com

ArnoldMupArnoldMup 2019/02/05 20:51 comprare cialis online italia
cialis for daily use free trial
<a href="http://xcialisxx.com">buy cialis</a>
cheap generic cialis no prescription
cialis generika auf rechnung
<a href="http://cialisfurr.com">Cheap Cialis</a>
cialis price per pill 2013
order cialis usa
<a href="http://xcialisxx.com">Buy Cheap Cialis Online</a>

ArnoldMupArnoldMup 2019/02/05 20:51 illegal cialis
cialis reimport
<a href="http://xcialisxx.com">Buy Cheap Cialis</a>
cialis soft 20mg without prescription
cialis review
<a href="http://cialistlm.com">Cheap Cialis</a>
cialis vanzari online
albo nazionale commercialisti
<a href="http://cialistlm.com">Buy Cialis Online</a>

DouglastotDouglastot 2019/02/08 01:09 http://sdfgdfsgfdhfgjkur.com/
<a href=http://sdfgdfsgfdhfgjkur.com/#>cialis zealand</a>
<a href="http://sdfgdfsgfdhfgjkur.com/#">cialis 20 mg durata</a>

BbokvmomarBbokvmomar 2019/05/20 05:28 In our days the first and the most convenient way to save money is to buy medicines online. <a href="https://viagraoktobuy.com/">buy viagra kamagra uk</a> I presume you’re journey sort of progressed Michelle and you ended up, as you say, having your own blogs and monetizing that by putting Google Adsense on them?

DouglastotDouglastot 2019/08/20 18:30 <a href="#"></a> <a href="#"></a>
<a href=#></a>

<a href=#></a>

<a href="#"></a>

<a href="#"></a>
<a href=""></a>

DouglastotDouglastot 2019/08/20 21:42 <a href="#"></a> <a href="#"></a>
<a href=#></a>

<a href=#></a>

<a href="#"></a>

<a href="#"></a>
<a href=""></a>

DouglastotDouglastot 2019/08/21 01:03 <a href="#"></a> <a href="#"></a>
<a href=#></a>

<a href=#></a>

<a href="#"></a>

<a href="#"></a>
<a href=""></a>

DouglastotDouglastot 2019/08/21 04:16 <a href="#"></a> <a href="#"></a>
<a href=#></a>

<a href=#></a>

<a href="#"></a>

<a href="#"></a>
<a href=""></a>

DouglastotDouglastot 2019/08/21 07:28 <a href="#"></a> <a href="#"></a>
<a href=#></a>

<a href=#></a>

<a href="#"></a>

<a href="#"></a>
<a href=""></a>

DouglastotDouglastot 2019/08/21 10:39 <a href="#"></a> <a href="#"></a>
<a href=#></a>

<a href=#></a>

<a href="#"></a>

<a href="#"></a>
<a href=""></a>

DouglastotDouglastot 2019/08/21 13:53 <a href="#"></a> <a href="#"></a>
<a href=#></a>

<a href=#></a>

<a href="#"></a>

<a href="#"></a>
<a href=""></a>

DouglastotDouglastot 2019/08/21 17:03 <a href="#"></a> <a href="#"></a>
<a href=#></a>

<a href=#></a>

<a href="#"></a>

<a href="#"></a>
<a href=""></a>

DouglastotDouglastot 2019/08/21 20:12 <a href="#"></a> <a href="#"></a>
<a href=#></a>

<a href=#></a>

<a href="#"></a>

<a href="#"></a>
<a href=""></a>

ゲスト



トラックバック - http://swproject.g.hatena.ne.jp/garyo/20170608