「自分の為のメモ帳」ご利用は自己責任で!、↓↓↓記事・ツール等へのコメントは一括して掲示板へお願いします

参考
@IT様
http://www.atmarkit.co.jp/fdotnet/dotnettips/860controlwb/controlwb.html
WebBrowserコントロール内のテキストボックスに文字列をセットするには?[2.0、C#、VB]
2012/05/22記事作成、引用





using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace 自動ログイン
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

    //IDのボタン
        private void button1_Click(object sender, EventArgs e)
        {
            HtmlElementCollection all = webBrowser1.Document.All;
            HtmlElementCollection forms = all.GetElementsByName("amebaId");
            forms[0].InnerText = "アメーバID";
        }

    //アメバトップのボタン
        private void button4_Click(object sender, EventArgs e)
        {
            webBrowser1.Url = new Uri("http://www.ameba.jp/");
        }

    //パスのボタン
        private void button2_Click(object sender, EventArgs e)
        {
            HtmlElementCollection all = webBrowser1.Document.All;
            HtmlElementCollection forms = all.GetElementsByName("password");
            forms[0].InnerText = "アメーバパス";
        }

    //ログインのボタン
        private void button3_Click(object sender, EventArgs e)
        {
            HtmlElementCollection all = webBrowser1.Document.All;
            HtmlElementCollection forms = all.GetElementsByName("Submit");
            forms[0].InvokeMember("click");
        }

    //ログアウトのボタン
        private void button5_Click(object sender, EventArgs e)
        {
            webBrowser1.Url = new Uri("http://www.ameba.jp/logout.do");
        }
    }
}

wikiチェック日

wiki主のwikiをチェックした日
(コメント・掲示板・ランキング等)

●2014/07/28
●2014/04/15
●2014/03/22
●2014/03/16
●2014/02/25
(直近5日)

※連休が続く時は
 見ていない場合が多いです
※最終日よりあまり日が長い場合は
 掲示板等の返信が遅れる・
 返信がない場合があります
※wikiを更新した日ではありません

メインメニュー

条件分枝文
繰返文
  • for文
  • while文
  • foreach文
  • goto/break/continue

作ったーツール紹介

その他

  • 記事なし

ニコニコ生放送用
コメントビューア

アンコちゃんプラグイン

(スクリーンショットと設定text内容のみ)

NCVプラグイン

(スクリーンショットと設定text内容のみ)
プラグイン作成
NCVα127より.NETframeworkが4.0になっています ↑手順6)の対象のフレームワークを.NET Framework 4.0に

アップローダー

作ったツールがアップされています
プログラムの試作
パスはそれぞれのコメントへ
※ほとんど日付です
ツールへの質問は当wiki掲示板へ

管理人/副管理人のみ編集できます