private void main_Load(object sender, EventArgs e) { // create Form1 myForm = new jimaku(); myForm.Visible = true; myForm.ShowInTaskbar = false; text.Text = Properties.Settings.Default.myString; text.Font = Properties.Settings.Default.myFont; text.ForeColor = Properties.Settings.Default.myColor; set_jimaku(); }
private void main_Load(object sender, EventArgs e) { // create Form1 myForm = new jimaku(); myForm.Visible = true; myForm.ShowInTaskbar = false; text.Text = Properties.Settings.Default.myString; text.Font = Properties.Settings.Default.myFont; text.ForeColor = Properties.Settings.Default.myColor; set_jimaku(); //このアプリからメッセージ送受信したいChatオブジェクトを抽出 //以下を検索keyとしてマッチするChatオブジェクトを抽出する // 個人チャットの場合 : 相手のskype名(loftkunとか) 注)表示名じゃない // グループチャットの場合 : 会話のタイトル(~~会議室とか) _key = "test"; SKYPE4COMLib.Chat chat = getChat(_key); if (chat == null) { return; } //既存メッセージ表示 //textBox1.Text = getMessages(chat); //メッセージ受信ハンドラ登録 _skype.MessageStatus += new _ISkypeEvents_MessageStatusEventHandler(_skype_MessageStatus); //メッセージ送信 //chat.SendMessage("ほげ~"); //なお以下のように個人チャットの相手名を指定してメッセージ送信もできるようだ //グループチャットの場合、SendMessage()の第一引数が不明なので、 //上記(chat.SendMessage())を採用している。 //_skype.SendMessage("loftkun", "ほげほげ"); //loftkun個人宛に送信 }