マイナーでもいいよね??

殆どVB系、でも .NET じゃない VB は知らないよん

目次

Blog 利用状況

書庫

日記カテゴリ

組織単位リスト画面(Windowsアプリ)

組織単位の一覧を取得・表示して、選択した組織単位(OU)の詳細を表示する画面をサンプルアプリに追加しました。

まずは Windows アプリ。左が開発画面で右が実行画面です。(どちらもクリックすると新しいウィンドウで拡大図が表示されます。)

OUListWinDev OUListWin

 

OU は階層構造になってるので他のオブジェクトと違って 一覧の表示は ListBox じゃなく TreeView を使ってます。

また、ImageList も使ってます。(初期画面の ImageList と同じ内容)

ImageList

BindingSource の DataSource はプロジェクトデータソースとして OrganizationalUnit クラスを指定してます。

※OrganizationalUnit クラスの詳細はこちら(VB, C#, 説明

 

デザイナでは次の設定をしてます。

・ImageList1 に画像を設定(上図)

・一覧 TreeView の ImageList に ImageList1 を指定し、ImageKey と SelectedImageKey に OU.bmp を指定

・詳細の「データ」以外の各表示用コントロールの DataBindings のプロパティ(Text)に 上記データソースの対応するプロパティを指定

・データ表示用 ListView の View に Details を指定し、Columns に列「名前」、「種類」、「説明」を追加、SmallImageList に ImageList1 を指定

 

コードでは次の処理をしてます。

1. OU の一覧を取得し、表示用のパスと名前でソートしたものを内部保持してそれを OUBindingSource の DataSource に設定

2. 取得した OU の数を表示

3. 一覧 TreeView に OU のノードを作成して追加

4. 一覧 TreeView の選択後(AfterSelect イベント)に、内部保持してるリストから 選択された OU を抽出し、OUBindingSource の Position を設定

5. 選択された OU に格納されているデータを表示

 

コードは別途書きます。

投稿日時 : 2014年3月25日 0:44

コメントを追加

# re: Internet Explorer 11 で、右クリックしたときに表示されるメニューで、Bingではなく、Google をデフォルトの検索エンジンとして設定するには? 2017/12/08 18:13 meadc

http://www.ups-tracking.us ups shipping
http://www.hermesoutlet.co/ hermes outlet bag
http://www.prada-outlet-online.com/ prada outlet online store
http://www.louis--vuitton.co louis vuitton on sale
http://www.jimmy-choo.com.au
me adc12.8

# re: 組織単位リスト画面(Windowsアプリ) 2018/07/18 11:11 zzyytt

http://www.nikeshoesformen.us.com
http://www.adidasnmd-runner.us.com
http://www.hermesbelts.co.uk
http://www.outletonline-michaelkors.us.org
http://www.russellwestbrookshoes.us.com
http://www.curry4.us.com

# re: 組織単位リスト画面(Windowsアプリ) 2018/08/28 11:50 wwwe

http://www.adidasstansmith.uk
http://www.yeezyboost-350.com.co
http://www.hermes-birkin.us.com
http://www.adidas-yeezys.us.org
http://www.vibramfivefingers.us.com
http://www.yeezy500.us

# pandora rings 2019/03/28 11:59 mhtgcu@hotmaill.com

fxkbsvntoy,If you want a hassle free movies downloading then you must need an app like showbox which may provide best ever user friendly interface.

# Yeezy 2019/04/02 6:07 brsdyfrxup@hotmaill.com

dxybvuft Yeezy Boost,If you have any struggle to download KineMaster for PC just visit this site.

# Yeezy 350 2019/04/06 19:33 skypeqxuf@hotmaill.com

tcbjjxc Yeezy 2019,Thanks for sharing this recipe with us!!

# Nike Store 2019/04/08 4:24 uepgqxpu@hotmaill.com

barlec,We have a team of experts who could get you the correct settings for Bellsouth net email login through which, you can easily configure your email account with MS Outlook.

# Yeezy 2019/04/12 13:04 kblqvfbt@hotmaill.com

zuhpbnochi Yeezy Boost,A very good informative article. I've bookmarked your website and will be checking back in future!

# Yeezy 350 2019/04/16 11:31 hjcsuv@hotmaill.com

Game Killer Apk Download Latest Version for Android (No Ad) ... Guess not because Game killer full version app is not available on Play store.

# Nike Plus 2019/04/22 7:25 txebpidnlfg@hotmaill.com

"In my opinion, perhaps the market has always been correct, that is, the Fed will tighten policy before the end of this year.

# Nike Air Max 2019 2019/04/30 18:44 biyxfp@hotmaill.com

That happened to Senator Sanders yesterday, and I’m calling it out,” she continued. “In what world? You don’t boo folks for that. And I don’t care if it was somebody who I didn’t care about their policies, if they stood up with the Reverend Dr. Martin Luther King Jr. and other heroes and sheroes, we need to shout that out.

# Adidas Yeezy 500 2019/05/06 6:11 uedfbrqgwc@hotmaill.com

They have to be desperate to reestablish the identity they have forged over the vast majority of Steve Kerr's five-year run as head coach. Talented, skilled, smart, unified and ruthless.

# air jordan 33 2019/05/08 5:13 rpbcsifmlhw@hotmaill.com

Caring for sensitive skin is delicate business, especially when it comes to your child. Chances are, you’re probably doing everything you can to help prevent any itching, burning, dryness or irritation.

# Nike Outlet 2019/05/10 19:06 nfscmg@hotmaill.com

A lady said she'd take my daughter, he recalled. "I carried my son downstairs to an ambulance, we took him to the hospital. I yelled, Please help my son! Please help! Please help!

# Adidas Yeezy 500 2019/05/10 22:09 puhqorfux@hotmaill.com

In the interim, Biden’s ties to Barack Obama may not mean as much in a field where African-American voters can pick from Sens. Kamala Harris and Cory Booker and may hurt him among Hispanic voters who weren’t exactly keen on the president’s record on deportations.

# NFL Jerseys 2019/05/15 7:18 epkmnvpfo@hotmaill.com

http://www.jordan33.us/ air jordan 33

# Pandora Jewelry Official Site 2019/06/02 0:11 myrhvjorh@hotmaill.com

http://www.nikeplus.us/ Nike Plus

# NFL Jerseys 2019 2019/06/04 5:26 nrnpxkwgalg@hotmaill.com

http://www.jordan33.us/ air jordan 33

# Travis Scott Air Jordan 1 2019/06/04 8:42 cnvylwhrb@hotmaill.com

Police said Raja was in plainclothes and driving an unmarked van when he encountered a car he thought was abandoned on a West Palm Beach highway exit ramp on Oct. 18,Jordan 2015,Jordan a few hours before sunrise.

# Nike Outlet store 2019/06/15 14:26 squdfgbp@hotmaill.com

http://www.jordan11-concord.com/ Jordan 11 Concord

# Pandora Jewelry Official Site 2019/06/22 13:31 ddwrxlxie@hotmaill.com

http://www.cheapsportsnfljerseys.us/ Cheap Sports Jerseys

# Air Jordan 12 Gym Red 2019/07/09 1:31 ceuxcs@hotmaill.com

http://www.wholesalenfljerseysshop.us/ Cheap NFL Jerseys

# Yeezys 2019/07/28 3:45 iirhvg@hotmaill.com

http://www.yeezys.me.uk/ Yeezy Shoes

# Yeezy 700 2019/07/31 20:24 xjmokee@hotmaill.com

http://www.yeezys.us.com/ Yeezy 350

# Adidas Yeezy 2019/08/03 17:27 tmkcuzp@hotmaill.com

http://www.nikeshoes.us.org/ Nike Outlet

# Nike Outlet 2019/08/06 8:15 sdywhzeg@hotmaill.com

http://www.yeezy-350.org.uk/ Yeezy

# Yeezy 350 2019/08/13 6:23 edlwotza@hotmaill.com

http://www.adidasyeezy.de/ Adidas Yeezy

# Nike Outlet Store 2019/08/19 4:40 uuchvoxbbf@hotmaill.com

http://www.nike--outlet.us/ Nike Outlet Store

# re: ?????????(Windows???) 2021/08/07 1:33 hydrchloroquine

cloriquine https://chloroquineorigin.com/# hydroxicloriquine

# yDQBydnbAbOekqYEWUh 2022/04/19 10:04 johnansaz

http://imrdsoacha.gov.co/silvitra-120mg-qrms

# purchase hydroxychloroquine online 2022/12/25 12:14 MorrisReaks

chloroquine without a doctor prescription https://hydroxychloroquinex.com/

# plaquenil 200mg 2022/12/26 13:12 MorrisReaks

generic chloroquine https://hydroxychloroquinex.com/

タイトル  
名前  
URL
コメント