HIRASE CONNECTION WK

programming collection

目次

Blog 利用状況

ニュース

書庫

日記カテゴリ

Link Collection

[C#] SplitContainer/SplitterPanel 使いにくい!

つぶやき、ですが・・・

.NET Framework 2.0 から追加されました SplitContainer/SplitterPanel が異常に使いにくい。

  • SplitContainer.Panel1Collapsed / Panel2Collapsed プロパティでパネルの開閉するって、どうかしてるよ。
  • SplitterPanel が sealed クラスなのは、どうかしてるよ。
  • SplitterContainer.Panel1 / Panel2 からしか各パネルにアクセスできないって、どうかしてるよ。
  • SplitContainer の両方のパネルを閉じられないって、どうかしてるよ。

順を追ってみていきます。

SplitContainer.Panel1Collapsed / Panel2Collapsed プロパティでパネルの開閉するって、どうかしてるよ。

「メソッドでヤラせろよ。」とか、「SplitterPanel.Collapsed プロパティ(internal)を使わせろ。」とか、そういう話。というか、どうして、「Panels」がないんだ! 信じられない!

SplitterPanel が sealed クラスなのは、どうかしてるよ。

あぁ、もう最悪。継承できない。(SplitContainer を継承して、無駄なものを作ることは可能)

SplitterContainer.Panel1 / Panel2 からしか各パネルにアクセスできないって、どうかしてるよ。

我求ム「Panels」。ま、内部的には「Controls」に「Panel1」と「Panel2」が入っているのは知っているけど、いちいちキャストせにゃならんじゃん。いうか、パネル2つしかないのってもったいないよ!

SplitContainer の両方のパネルを閉じられないって、どうかしてるよ。

これ、ちょっと特殊だけど、両方のパネルを閉じたときには、その SplitContainer の親要素が SplitterPanel であれば、その SplitterPanel を閉じて欲しいのよね(そうじゃないときは、例外発生か、閉じられないか)。

以上

投稿日時 : 2008年7月2日 1:20

コメントを追加

# re: [C#] SplitContainer/SplitterPanel 使いにくい! 2008/10/15 12:44 ban!

まったく同感。
リサイズ時のコントロール内の描画もトロイし。

# re: [C#] SplitContainer/SplitterPanel 使いにくい! 2008/10/15 13:27 T.Hirase

TO: ban! さま。
コメントありがとう御座います。
SplitContainer のこともあり、
そろそろ Windows Form に見切りをつけようと
徐々に WPF で既存のコンポーネントを書き直している毎日です。。

# re: [Tips][Visual Studio]Visual Studio 2008で、ソースコードの行数をカウントする方法 2017/09/29 10:02 chenlina

http://www.polo-ralphlaurenoutlet.in.net
http://www.nfljerseysfromchina.us.com
http://www.cheapralphlaurensale.co.uk
http://www.toryburchoutletoff.us.com
http://www.uggoutletsonline.us.com
http://www.uggsoutletstore.org
http://www.poloshirt.in.net
http://www.uggsonline.in.net
http://www.truereligion-jeans.us
http://www.uggbootsclearanceoutlet.com.co
http://www.air-jordanpascher.fr
http://www.katespadehandbagsoutlet.us.org
http://www.uggbootsaustralia.us.org
http://www.jordanretro.us
http://www.blackhawksjersey.com
http://www.mlbjerseys.org
http://www.michael-kors-outlet.eu.com
http://www.timberlandoutlet.name
http://oakley.sunglassescheap.us.com
http://www.cheaplouboutinshoesuk.org.uk
http://www.north-face-outlet.in.net
http://www.cheapairjordans.us.com
http://www.cheapjerseysnflwholesale.us
http://www.adidastore.co.uk
http://www.burberry.us.org
http://www.nikeairforce1.net
http://www.ugg-bootscheap.com.co
http://www.uggbootsoutlets.org
http://www.pandora-rings.net
http://www.michaelkorsukoutlet.me.uk
http://www.uggsslippers.com.co
http://www.coach-factoryoutletusa.com
http://www.outletuggboots.com.co
http://www.adidastrainersuk.uk
http://www.raybans-sunglassesoutlet.us.com
http://www.the-northfaceoutlet.net.co
http://www.coachfactory-outletonline.org
http://www.oakleysungalsses.nom.co
http://www.cheap-ugg-boots.us.org
http://www.christianlouboutinoutletusa.us.com
http://www.christianlouboutindown.com
http://www.northfaceclearance.us.com
http://www.burberryscarfsale.in.net
http://www.nikerunningshoes.co.uk
http://www.canadagoosecanada.name
http://www.ray-banaviatorsunglasses.org.uk
http://www.katespade-outlet.in.net
http://www.nike-air-huarache.org.uk
http://www.outletlongchamp.us.org
http://www.uggoutletstore.net.co
http://www.jordanshoes.us.org
http://www.giuseppe-zanotti.us.com
http://www.uggoutlets.com.co
http://www.montblanc-pens.name
http://www.ferragamoshoesoutlet.us.com
http://www.thenorthface-outlet.in.net
http://www.longchamp-handbags.us.org
http://www.uggs-outlet-online.us
http://www.uggbootsonsale75off.in.net
http://www.replica-watches.us.com
http://www.pradaoutletonlinestore.us.com
http://www.montblanc.com.co
http://www.uggboots70off.com.co
http://www.cheapraybansunglasses.net.co
http://www.basketballshoesstore.us.com
http://www.uggbootscheaponline.in.net
http://www.saleuggboots.co.uk
http://www.adidasyeezy-boost.us.com
http://www.adidasshoesforsale.in.net
http://www.nikefootballbootsuk.org.uk
http://www.pandora-jewelry.me.uk
http://www.coachwallets.us.com
http://www.coachfactoryoutlet-onlinestore.us.com
http://www.michaelkorstotehandbags.us.com
http://www.uggbootsoutlets.in.net
http://www.thenorthfaceclearance.us.com
http://www.outletuggs.net.co
http://www.hermesbags.me.uk
http://www.michael--kors.us.org
http://www.canadagooseclearance.us.com
chenlina20170929

# ivermectin cream 2021/09/28 11:14 MarvinLic

ivermectin 12 mg http://stromectolfive.com/# ivermectin brand name

# ivermectin over the counter canada 2021/11/01 1:42 DelbertBup

ivermectin canada https://stromectolivermectin19.com/# ivermectin 2mg
ivermectin lotion price

# ivermectin online 2021/11/01 19:37 DelbertBup

how much is ivermectin http://stromectolivermectin19.online# ivermectin iv
ivermectin pills canada

# cheap generic ed pills 2021/12/04 8:07 JamesDat

http://genericpillson.com/# generic ed pills from canada clomid

# how to take sildenafil 20 mg http://viasild24.online/
2021/12/07 19:20 Nyusjdh

how to take sildenafil 20 mg http://viasild24.online/

# sildenafil 20 mg tablet 2021/12/10 14:28 JamesDat

http://viasild24.com/# sildenafil 20 mg tablet uses

# barikind https://baricitinibrx.com
baricitinib eua fact sheet
2021/12/12 16:23 Buksdldj

barikind https://baricitinibrx.com
baricitinib eua fact sheet

# buy bimatoprost 2021/12/13 1:18 Travislyday

http://baricitinibrx.online/ barinat

# bimatoprost https://bimatoprostrx.com
buy bimatoprost
2021/12/13 16:03 Hksfnjkh

bimatoprost https://bimatoprostrx.com
buy bimatoprost

# bimatoprost ophthalmic solution careprost 2021/12/13 21:03 Travislyday

http://stromectols.online/ stromectol 3 mg price

# bimatoprost generic best price 2021/12/15 9:59 Travislyday

http://baricitinibrx.online/ barikind

# bimatoprost buy 2021/12/16 5:32 Travislyday

http://plaquenils.com/ hydroxychloroquine-o-sulfate

# stromectol 3mg 2021/12/17 22:09 Eliastib

rxzvbg https://stromectolr.com stromectol ivermectin tablets

# stromectol 3mg tablets 2021/12/18 23:07 Eliastib

wpvcac https://stromectolr.com ivermectin 4

# clomid dosage https://clomidt.com
buying clomid online 2022/01/03 19:14 Clomid

clomid dosage https://clomidt.com
buying clomid online

# stromectol ivermectin buy http://stromectolabc.com/
ivermectin 1% cream generic 2022/02/08 2:55 Busjdhj

stromectol ivermectin buy http://stromectolabc.com/
ivermectin 1% cream generic

# buy ivermectin pills http://stromectolabc.com/
buy stromectol online 2022/02/08 16:46 Busjdhj

buy ivermectin pills http://stromectolabc.com/
buy stromectol online

# buy generic doxycycline https://doxycyline1st.com/
buy doxycycline monohydrate 2022/02/26 20:14 Doxycycline

buy generic doxycycline https://doxycyline1st.com/
buy doxycycline monohydrate

# online clomid http://clomidus.store/ 2022/04/12 20:26 Clomids

online clomid http://clomidus.store/

# prednisone 4 mg daily http://prednisonefast.site/ 2022/04/17 6:47 Prednisone

prednisone 4 mg daily http://prednisonefast.site/

# cures for ed https://erectionpills.best/
online ed medications 2022/06/28 20:02 ErectionPills

cures for ed https://erectionpills.best/
online ed medications

# buying clomid online https://clomidonline.icu/ 2022/07/12 23:51 Clomidj

buying clomid online https://clomidonline.icu/

# ivermectin for guinea pig https://stromectolbestprice.com/ 2022/07/30 8:19 BestPrice

ivermectin for guinea pig https://stromectolbestprice.com/

# order prednisone online canada https://deltasone.icu/
prednisone 50 mg buy 2022/08/22 17:35 Prednisone

order prednisone online canada https://deltasone.icu/
prednisone 50 mg buy

# buy paxlovid online https://paxlovid.best/
anticovid 2022/09/08 7:48 Paxlovid

buy paxlovid online https://paxlovid.best/
anticovid

# how to buy doxycycline online https://buydoxycycline.icu/ 2022/10/08 17:14 Doxycycline

how to buy doxycycline online https://buydoxycycline.icu/

# over the counter prednisone cheap https://prednisone20mg.icu/ 2022/10/15 13:27 Prednisone

over the counter prednisone cheap https://prednisone20mg.icu/

#  https://clomidforsale.site/ 2022/11/13 21:19 ForSale

https://clomidforsale.site/

# how much is prednisone 10 mg https://prednisonepills.site/
apo prednisone 2022/11/28 23:58 Prednisone

how much is prednisone 10 mg https://prednisonepills.site/
apo prednisone

# prednisone generic brand name https://prednisonepills.site/
prednisone pill 20 mg 2022/11/30 7:55 Prednisone

prednisone generic brand name https://prednisonepills.site/
prednisone pill 20 mg

# Get information now. earch our drug database.
https://edonlinefast.com
What side effects can this medication cause? Actual trends of drug. 2023/02/17 20:05 EdOnline

Get information now. earch our drug database.
https://edonlinefast.com
What side effects can this medication cause? Actual trends of drug.

# gel per erezione in farmacia https://viasenzaricetta.com/# 2023/04/16 9:16 ViaSenza

gel per erezione in farmacia https://viasenzaricetta.com/#

# doxy 200 - https://doxycyclinesale.pro/# 2023/04/21 23:22 Doxycycline

doxy 200 - https://doxycyclinesale.pro/#

# buy prednisone online uk - https://prednisonesale.pro/# 2023/04/22 10:31 Prednisone

buy prednisone online uk - https://prednisonesale.pro/#

# the best ed pill: https://edpills.pro/# 2023/05/15 22:15 EdPillsPro

the best ed pill: https://edpills.pro/#

# paxlovid generic https://paxlovid.life/# paxlovid for sale 2023/07/26 1:57 Paxlovid

paxlovid generic https://paxlovid.life/# paxlovid for sale

# medication for ed https://edpills.ink/# - buy ed pills 2023/07/26 20:09 EdPills

medication for ed https://edpills.ink/# - buy ed pills

# buy cytotec over the counter https://cytotec.ink/# - order cytotec online 2023/07/26 20:30 PillsFree

buy cytotec over the counter https://cytotec.ink/# - order cytotec online

# skip the games dating site free 2023/08/09 18:43 WayneGurry

completely free dating sites: http://datingtopreview.com/# - asien dating online

# paxlovid covid 2023/08/24 16:44 Davidvat

http://paxlovid.top/# paxlovid generic

# farmacie on line spedizione gratuita 2023/09/25 8:17 Archieonelf

http://pharmacieenligne.icu/# Pharmacie en ligne sans ordonnance

# gГјnstige online apotheke 2023/09/26 11:54 Williamreomo

http://onlineapotheke.tech/# internet apotheke
versandapotheke deutschland

# online apotheke deutschland 2023/09/27 3:13 Williamreomo

http://onlineapotheke.tech/# internet apotheke
versandapotheke deutschland

# п»їonline apotheke 2023/09/27 5:23 Williamreomo

https://onlineapotheke.tech/# gГ?nstige online apotheke
gГ?nstige online apotheke

# п»їfarmacia online migliore 2023/09/27 9:28 Archieonelf

http://onlineapotheke.tech/# gГ?nstige online apotheke

# migliori farmacie online 2023 2023/09/27 16:24 Rickeyrof

acheter sildenafil 100mg sans ordonnance

# farmacie online sicure 2023/09/27 19:18 Rickeyrof

acheter sildenafil 100mg sans ordonnance

# treatment for ed 2023/10/08 0:34 BobbyAtobe

A true asset to our neighborhood. https://edpillsotc.store/# best treatment for ed

# mexican mail order pharmacies 2023/10/16 13:42 Dannyhealm

Read now. https://mexicanpharmonline.shop/# mexico drug stores pharmacies

# how to get a prescription in canada 2023/10/16 15:51 Dannyhealm

They provide international health solutions at my doorstep. http://mexicanpharmonline.shop/# pharmacies in mexico that ship to usa

# buy rx online 2023/10/16 20:07 Dannyhealm

They set the tone for international pharmaceutical excellence. http://mexicanpharmonline.com/# reputable mexican pharmacies online

# candaian pharmacies 2023/10/16 20:30 Dannyhealm

Their global health resources are unmatched. https://mexicanpharmonline.com/# mexican border pharmacies shipping to usa

# mail order prescriptions from canada 2023/10/16 21:35 Dannyhealm

They have a fantastic range of supplements. https://mexicanpharmonline.com/# mexico drug stores pharmacies

# canada pharmacies online 2023/10/17 7:02 Dannyhealm

They offer unparalleled advice on international healthcare. http://mexicanpharmonline.shop/# mexico drug stores pharmacies

# canada mail order drug 2023/10/17 10:24 Dannyhealm

Always delivering international quality. https://mexicanpharmonline.shop/# mexican rx online

# canadian and international rx service 2023/10/17 21:44 Dannyhealm

The gold standard for international pharmaceutical services. http://mexicanpharmonline.com/# mexico drug stores pharmacies

# no prescription on line pharmacies 2023/10/18 3:26 Dannyhealm

They take the hassle out of international prescription transfers. http://mexicanpharmonline.com/# reputable mexican pharmacies online

# Paxlovid buy online 2023/10/25 2:50 LarryNef

https://plavix.guru/# cheap plavix antiplatelet drug

# paxlovid covid https://paxlovid.bid/ paxlovid for sale 2023/10/25 18:32 Paxlovid

paxlovid covid https://paxlovid.bid/ paxlovid for sale

# natural ed medications 2023/11/22 14:07 WilliamApomb

https://tadalafil.trade/# tadalafil cheap

# doxy https://doxycycline.forum/ cheap doxycycline online 2023/11/25 9:12 Doxycycline

doxy https://doxycycline.forum/ cheap doxycycline online

# where to get clomid pills 2023/12/29 18:58 RaymondGrido

https://paxlovid.win/# paxlovid for sale

# sweetie fox cosplay https://sweetiefox.pro/ - sweetie fox full
2024/03/06 20:27 SwitieFox

sweetie fox cosplay https://sweetiefox.pro/ - sweetie fox full

# pin up https://pinupcassino.pro/ pin-up
2024/03/12 5:13 Cassino

pin up https://pinupcassino.pro/ pin-up

# buy cytotec online https://cytotec.club/ buy cytotec pills online cheap 2024/04/27 21:55 Cytotec

buy cytotec online https://cytotec.club/ buy cytotec pills online cheap

タイトル
名前
URL
コメント