VSTO 上で Win フォームの DataGridView のデータを渡す方法

clock October 10, 2008 18:13 by author
VSTO も当然ながら、Win フォームのコンポーネントを作成して、ドキュメントや作業ウィンドウから Win フォームを起動することができます。 作業ウィンドウで操作してしまえばよい部分はありますが、やはり、領域の問題などもあり、どうしても Win フォームを呼び出してから、値を取得しドキュメント上で利用するケースもあるかと思います。 [More]

Be the first to rate this post

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


[Excel 開発]グラフの要素名と値を取得する方法

clock October 10, 2008 14:54 by author
取得した名前から、DB や Web サービスから情報を追加で取得して、分析をおこなうようなシナリオも考えられます。 ※一番右の要素をクリックした際のメッセージボックス ※一番左の要素をクリックした際のメッセージボックス Excel VSTO でグラフと連動した動的なアプリケーションを作成する際に有効です。 以下手順です。 手順: 1. 任意のグラフ付きのブックを用意します。 2. VSTO で読み込み、以下のコードを記述します。 Sub elementChart_MouseD... [More]

Be the first to rate this post

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


[ .NET ] .NET Framework JIT 最適化にも負けずに呼び出し元のメソッドを取得する方法

clock October 9, 2008 12:04 by author
StackFrame クラス (System.Diagnostics) を使用すると、呼び出し元メソッドを取得することができる。しかし、Release ビルドされたアセンブリでは JIT 最適化により呼び出し元メソッドがインライン化されている可能性がある。 例えば、次のコードの実行結果を Debug ビルドと Release ビルド (非デバッグ実行) とで比較すると一目瞭然だ。 [More]

Be the first to rate this post

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


Visual Studio 2010 & .NET Framework 4.0

clock October 6, 2008 21:32 by author
次の Visual Studio と .NET Framework のバージョンは、Visual Studio 2010 と .NET Framework 4.0 になるとのこと。 気になるのは、.NET Framework 4.0 の CLR のバージョンがどうなるかですね。 [More]

Be the first to rate this post

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


[ .NET ] ASP.NET セッションステートの利用方法を模索中

clock October 5, 2008 12:14 by author
最近、セッションステートの上手い利用方法を模索してます。 CodeZine に「ASP.NETのセッションをタイプセーフに取り扱うクラスの作成」という記事が載ってましたが、この方法は僕的にちょっと馴染めなかったもので。 以下、現時点での考えをメモしときます。 [More]

Be the first to rate this post

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


C# ?? Null合体演算子(そして、それをLINQと共に使用)

clock October 1, 2008 18:18 by author
C#のささやかな(でもかっこいい)言語機能の1つが??です。"Null合体"演算子です。これにより、値がNullかどうかをチェック、また、もしそうであれば代替値を返すという、きれいで簡潔な方法が提供されます。 [More]

Be the first to rate this post

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


[.NET] WindowsIdentity.GetCurrent と Thread.CurrentPrincipal

clock September 17, 2008 19:19 by author
今まで同じものだと思ってた。 ( WindowsIdentity と IPrincipal の違いは置いといて。) それぞれ違うユーザー情報を返してきた時は驚いた。 [More]

Be the first to rate this post

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


[ .NET ] .NET Framework VB の RaiseEvent アクセサの問題点

clock September 14, 2008 19:23 by author
とりこびとさんの記事を読んでいて、そういえば VB のイベント定義って C# と違うんだよなぁと思い出したことがきっかけで、久々に VB のコードを書いてみました。そしたら、ちょっとした問題に気づきました。 [More]

Be the first to rate this post

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


[How to]ArrayList, Hashtableよりはジェネリック・クラスを

clock September 10, 2008 10:21 by author
このブログのアクセス解析でどのキーワードで検索されたかを見てみると意外とArrayListやHashtableで検索されていたりする。 Visual Studio 2005以降を使っているのならば、是非。List, Dictionaryを使ってほしいものだ。 [More]

Be the first to rate this post

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


.NET Framework 3.5 Client Profile

clock September 5, 2008 21:50 by author
.NET Framework 3.5 Client Profile (以下 Client Profile) は、クライアントアプリケーションを配布する際の、.NET Framework のインストールがもっと速くならないかという、多くのお客様からの要望に応えるために作成されました。 [More]

Be the first to rate this post

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


【 .NET ] Windows Communication Foundation 】WCFでのエラー ハンドリング

clock August 19, 2008 12:09 by author citiszo
ASP.NET では、Global.asax で例外を一元的にハンドリングするためのエラー ハンドラを用意することができました。しかし、WCF では残念ながら Global.asax がサポートされていません。 ( ASP.NET 互換モードでも非サポート。 ) [More]

Be the first to rate this post

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


Search

Calendar

<<  November 2008  >>
SuMoTuWeThFrSa
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456

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