Home > Archives > 2010-05

2010-05

PFUにて,HHKB Pro2のプレゼント

  • 2010-05-29 (Sat)
  • Prog

PFUにて,Happy Hacking Keyboard Professional 2 のプレゼントキャンペーンがあっていたので応募してみた.

http://www.pfu.fujitsu.com/hhkeyboard/50th_campaign/?hhkb=pr2

キャンペーン賞品 および 当選数

A賞: HHKB Professional2 特別モデル
HHKB Professional2(無刻印)の製造第1号機(シリアルナンバー1番)に記念キートップ「HHKB Blue Key」を同梱!

※白モデル/墨モデル 各1台

「HHKB Professional2+HHKB Blue Key」 合計2名様

MacBookのキーボードは打ちにくい.HHKB Pro当たったら最高だなと!しかも無刻印じゃないかと!!!!お願いします!あたってください!

郵便番号(KEN_ALL.LZH)

  • 2010-05-16 (Sun)
  • Prog

日本郵便のKEN_ALL.LZHの仕様がおかしい。

こんなもの使い物にならないので、何かいいサービスないかなと探したらあった!

http://zipcloud.ibsnet.co.jp/

このサイトすごいなぁと!利用させていただくということでーす!

DataGridView の行を削除する

  • 2010-05-12 (Wed)
  • C++

DataGridView->Rows->Clear() ではエラーになるでーす

DataSetをクリア、DataTableをクリア、などの方法でできるらしいだ。

http://social.msdn.microsoft.com/Forums/ja-JP/vbexpressja/thread/684a1430-8f4e-4ff4-bc85-739e279cf331

DataSet + BindingNavigator + TextBox

  • 2010-05-09 (Sun)
  • C++

Windows フォームのプログラミング

方法 : Windows フォームの BindingNavigator コントロールを使用して DataSet を移動する
#using <System.dll>
#using <System.Data.dll>
#using <System.Drawing.dll>
#using <System.Windows.Forms.dll>
#using <System.EnterpriseServices.dll>
#using <System.Transactions.dll>
#using <System.Xml.dll>

using namespace System;
using namespace System::Collections::Generic;
using namespace System::ComponentModel;
using namespace System::Data;
using namespace System::Drawing;
using namespace System::Data::SqlClient;
using namespace System::Windows::Forms;

// This form demonstrates using a BindingNavigator to display
// rows from a database query sequentially.
public ref class Form1 : public Form
{
    // This is the BindingNavigator that allows the user
    // to navigate through the rows in a DataSet.
    BindingNavigator^ customersBindingNavigator;

    // This is the BindingSource that provides data for
    // the Textbox control.
    BindingSource^ customersBindingSource;

    // This is the TextBox control that displays the CompanyName
    // field from the the DataSet.
    TextBox^ companyNameTextBox;

public:
    Form1()
    {
        // Set up the BindingSource component.
        this->customersBindingSource = gcnew BindingSource();
        this->companyNameTextBox = gcnew TextBox();
        this->customersBindingNavigator = gcnew BindingNavigator();
        this->customersBindingNavigator->BindingSource =
            this->customersBindingSource;
        this->customersBindingNavigator->Dock = DockStyle::Top;
        this->Controls->Add(this->customersBindingNavigator);

        // Set up the TextBox control for displaying company names.
        this->companyNameTextBox->Dock = DockStyle::Bottom;
        this->Controls->Add(this->companyNameTextBox);

        // Set up the form.
        this->Size = System::Drawing::Size(800, 200);
        this->Load += gcnew EventHandler(this, &Form1::Form1_Load);
    }

private:
    void Form1_Load(Object^ sender, EventArgs^ e)
    {
        // Open a connection to the database.
        // Replace the value of connectString with a valid
        // connection string to a Northwind database accessible
        // to your system.
        String^ connectString =
            "Integrated Security=SSPI;Persist Security Info=False;" +
            "Initial Catalog=Northwind;Data Source=localhost";
        SqlConnection^ connection = gcnew SqlConnection();
        connection->ConnectionString = connectString;
        connection->Open();

        // Execute the query.
        SqlCommand^ command = gcnew SqlCommand(
            "Select * From Customers", connection);
        SqlDataReader^ reader = command->ExecuteReader(
            CommandBehavior::CloseConnection);

        // Load the Customers result set into the DataSet.
        DataSet^ ds = gcnew DataSet("Northwind Customers");
        ds->Load(reader, LoadOption::OverwriteChanges,
            gcnew array<String^> {"Customers"});

        // Assign the DataSet as the DataSource for the
        // BindingSource.
        this->customersBindingSource->DataSource = ds->Tables[0];

        // Bind the CompanyName field to the TextBox control.
        this->companyNameTextBox->DataBindings->Add(gcnew Binding("Text",
            this->customersBindingSource, "CompanyName", true));
    }
};

http://msdn.microsoft.com/ja-jp/library/s4b01sz7%28VS.80%29.aspx

Visual C++.NET + MySQL

  • 2010-05-08 (Sat)
  • C++

Visual C++ .NET 2008 で,MySQLを扱いたい.

DataSet, BindingSource, BindingNavigator, DataTable, DataSetが何なのかわからなーい

ぐぐってたらいいサイトあったでーす★

http://itpro.nikkeibp.co.jp/article/COLUMN/20070320/265659/?ST=develop&P=1

Home > Archives > 2010-05

Search
Feeds
Meta

Return to page top