[How to]Dispose(bool disposing) の override

clock September 10, 2008 12:24 by author
http://msdn2.microsoft.com/en-us/library/fs2xkftw.aspx のコードをみて、以下のように書いたら、base.Dispose() が呼ばれない可能性があるということで、FxCopの警告が出た。 protected override void Dispose(bool disposing) { if(!this.disposed) { try { if(disposing) { addedManaged.Dispose(); } this.disposed = true; } finally {... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[C Sharp]ファイルのパス名の一部を ... に置き換え短縮表示する

clock September 7, 2008 20:29 by author
ファイルのパス名を表示する際に、表示幅にあわせ、パス名の途中を ... に置き換え短縮して表示するプログラムがあります。 これと同じような表示を Labelでやろうとしたら、Label って、オーナー描画のテクニックが使えないんですね。 Paintイベントハンドラを書いても、標準の描画処理が必ず走ってしまうようなので、うまくいきません。 表示幅を計算するには、Graphicsの値が必要ですが、これは、Paintイベントハンドラ内でしか有効ではないので、この値を保持しておいて、別のタイミングで文字列の調整をするわけにもいきません。 カスタムコントロールを作成するしかないみ... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


MvcFutures And ASP.NET MVC Beta

clock September 6, 2008 15:35 by author
MvcFutures And ASP.NET MVC Beta [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[Tips]ASP.NETでの例外処理 getlasterror エラーコード

clock September 4, 2008 13:26 by author
ASP.NETでは、ハンドルされなかった例外はGlobal.asaxのApplication_Error(HttpAplication.Errorイベントのハンドラ)で処理できる。 発生した例外は this.Server.GetLastError()で取得できるのだが、例外は基本的にHttpUnhandledExceptionにラップされている(必ずではない)ので注意する必要がある。 例外を処理したら this.Server.ClearError()でクリアすること。ただし、Web.configのcustomErrorsセクションに設定したエラー処理方法を適用させたい場合はクリアしない。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[VB.NET] : LINQのWhere条件~「Is Nothing」vs 「= Nothing」の違い

clock August 21, 2008 23:31 by author
LINQ + VB.NETで実装した場合のWhere条件における「Is Nothing」vs 「= Nothing」の違いを 纏めました [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


DirectX SDK (August 2008) が公開されました

clock August 18, 2008 14:43 by author
2008年8月版の DirectX SDK が公開されました。新しい機能は以下のとおりです。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


DataGridViewにボタン列を追加する (VB.NET Tips)

clock August 17, 2008 00:40 by author
DataGridViewButtonColumnインスタンス(これがボタン列になります)を作成して、DataGridViewに追加すればOKです。 ボタンがクリックされると、CellContentClickイベントが発生するので、引数e(DataGridViewCellEventArgs)のe.RowIndexやe.ColumnIndexを調べればどのボタンが押されたかがわかります。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


LINQ to XMLを使ってExcelファイルを生成する

clock August 16, 2008 09:39 by author
そうか、この手があったよね。 細かい設定までいろいろできそうだな。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Visual Studio 2008 SP 1 リリース

clock August 12, 2008 15:31 by author
Visual Studio 2008 SP1 (Service Pack 1), および .NET Framework 3.5 SP1 がリリースされました。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


VS2008 SP1対応のトレーニングキット

clock August 12, 2008 10:32 by author
VS2008 SP1が正式リリースされたのはいろいろなところで話題になると思います。 そのSP1に対応したトレーニングキットも提供されています。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


SQL Server 2008 RTM 版正式リリース

clock August 7, 2008 20:38 by author
SQL Server 2008 がRTM(製造段階,Release To Manufacturing)に移行され、MSDNとTechNet 会員に正式に提供されたとのこと。 MSDNを確認しましたが、今日(2008/08/07)の時点では英語版のみダウンロード可能になっています。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


星屑のステージ

clock July 7, 2008 21:55 by author
ちなみに会社のサーバーじゃなくてGoogle Page Creatorにアップロードしてみた。 prototype.jsはGoogle Ajax Libraries。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


クライアントとサーバで入力値をチェックする(正規表現)

clock May 6, 2008 12:07 by author
クライアントとサーバで入力値をチェックする(正規表現) [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[Tips][ASP.NET]ViewStateには何が入ってるのか

clock April 12, 2008 11:20 by author
ViewStateはASP.NETの便利な機能です。(中には余計と思われる方もいるでしょうけど) あの中には何が入ってる(保存されている)のでしょうか? ViewStateに保存されるもの/されないものを理解してうまく付き合って行きましょう。 ViewStateの詳細は次の通りです。 [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


[How To][C#] ParkingWindowを監視する

clock February 27, 2008 07:29 by author
注意事項はコメントに書いてあるとおりです。 用法容量をまもって(ry using System; using System.Diagnostics; using System.Reflection; using System.Runtime.InteropServices; using System.Windows.Forms; namespace WindowsApplication1 {     ///<summary>     /// ParkingWindow を監視する... [More]

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5


Search

Calendar

<<  October 2008  >>
SuMoTuWeThFrSa
2829301234
567891011
12131415161718
19202122232425
2627282930311
2345678

Archive

Tags

Categories


Blogroll

    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2008

    Sign in