主婦と.NETと犬のぶろぐ

奥様 と プログラム と お犬様 の 楽しい日常

目次

Blog 利用状況

ニュース

書庫

日記カテゴリ

DomainUpDown(System.Windows.Forms.DomainUpDown)

今日は DomainUpDown です。実は私は存在を知りませんでした。
何と言うか、微妙な UI ですねぇ~。
普通に使うには Items に使う DataSource の指定もできないのかー。
素直に ComboBox の使う方が個人的には楽かもなーと思いました。

UpDownBase クラスを継承しているので、他の UpDownBase クラスの派生クラスのモノ(よく使う NumericUpDown)
と使い方はほとんど同じ。
UpDownBase が何故 ContainerControl を継承しているのも興味深いです。なんでだろ。

■参考文献
DomainUpDown クラス
UpDownBase クラス

■実行画像
下のコードの実行結果は全てえでんさんが選択された状態になります。
DomainUpDown

Public Class DomainUpDownTest

Private Sub DomainUpDownTest_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.DomainUpDown1.Items.Add("ふじこ") Me.DomainUpDown1.Items.Add("えでん") Me.DomainUpDown1.Items.Add("オット") Me.DomainUpDown1.Wrap = True ' オットの次はふじこに戻る Me.DomainUpDown1.SelectedIndex = 1 ' エデンを選択
Dim myCollection As ICollection = _ DirectCast(Me.DomainUpDown1.Items.Clone(), ICollection) Me.DomainUpDown2.Items.AddRange(myCollection) Me.DomainUpDown2.InterceptArrowKeys = False ' 矢印キー入力不可 Me.DomainUpDown2.SelectedItem = "ふじこ" ' ふじこを選択 Me.DomainUpDown2.DownButton() '1 個↓へ進める
Dim myList As List(Of String) = New List(Of String) myList.Add("fujiko") myList.Add("eden") myList.Add("otto") Me.DomainUpDown3.Items.AddRange(myList) Me.DomainUpDown3.ReadOnly = True ' ユーザーに項目の自由入力をさせない Me.DomainUpDown3.Sorted = True ' ソートした状態にする Me.DomainUpDown3.SelectedItem = myList(0) ' fujiko を選択 Me.DomainUpDown3.UpButton() '1 個↑へ進める End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click ' Form 上にある DomainUpDown の選択 Index と 選択値を出力する For Each cntrl As Control In Me.Controls If TypeOf (cntrl) Is DomainUpDown Then Dim dd As DomainUpDown = DirectCast(cntrl, DomainUpDown) System.Diagnostics.Debug.WriteLine(dd.Name & " の選択値:" & _ dd.SelectedIndex.ToString() & " 番目:" & _ Convert.ToString(dd.SelectedItem)) End If Next End Sub End Class

投稿日時 : 2007年1月12日 11:50

Feedback

# CcpfMVJfcUYSxyp 2014/08/04 4:46 http://crorkz.com/

OlfUEq I value the blog article.Thanks Again. Much obliged.

# YPPlPmKKDqdkne 2014/08/05 6:24 http://crorkz.com/

eGzmXU Very informative blog post. Want more.

# FMKTdkDvfmc 2015/01/12 13:44 sally

klOGdF http://www.FyLitCl7Pf7kjQdDUOLQOuaxTXbj5iNG.com

# RYiyoeJQmGdBXhbA 2015/01/28 15:34 Dallas

I'm a housewife http://www.hollandpompgroep.nl/atex purchase zopiclone Extracting every last bit of consumer surplus is a way for vendors to maximize revenue in a given set of transactions, but in repeated transactions how do customers come to feel about vendors that manipulate their prices like that?

# mzRXCaXlYB 2015/01/28 15:34 Andrea

We used to work together http://www.beachinthecity.com/index.php/programm comprar limovan online With regards to Apple, one of Greenlight’s biggest positions, the past few months have good to the hedge fund as the tech company’s shares advanced from $397 to $477. The rise in Apple stock came as earnings estimates stopped falling and the market turned its attention to AAPLâ€?s new products. Einhorn says this focus on new products should be good for shareholders.

# queQttLeyUVZ 2015/01/29 20:30 Bertram

I'm unemployed http://nitanaldi.com/nita-hq/ will 20mg of hydrocodone get you high The portable gaming system was designed to unite a 5-inch touch screen with a controller. The goal was to create a console that could handle Google Play apps as well as stream PC games coming from Nvidia-supported PCs via Wi-Fi connection.

# rJjGSxYuUVz 2015/01/29 20:30 Ernesto

Where do you study? http://www.video-to-flash.com/video_to_flv/ clonazepam 0.25 mg tablets The plans to renovate the landmarked Corn Exchange Building and former Taystee Bakery have been dragging on for years. Developers have been touting the projects, and both were slated to have been underway by now.

# BtOQMHxVYLo 2015/02/07 0:44 Octavio

I came here to work http://www.argentfm.com/quality/ 1 minute cash loans U.S. ambassador Christopher Stevens and three otherAmericans were killed in Libya's Benghazi in 2012 when dozens ofIslamist gunmen attacked a loosely guarded U.S. diplomaticcompound and a nearby, better-fortified CIA annex. (Reporting by Feras Bosalum; Writing by Mahmoud Habboush;Editing by Sami Aboudi, Andrew Heavens, Angus McDowall and KevinLiffey)

# sOFsUOzEJqBM 2015/02/07 0:45 Abraham

Who do you work for? http://artist-how-to.com/studio/portraits/ short term loans no credit check no brokers �He�s a compassionate, kind, intelligent man who has a lot of patients [who are] very supportive of him,� she said. �The felony conviction on his record is a big deterrent from doing a lot of things in life. He wants to get rid of that stigma.�

# SjbiJSxlyolPdY 2015/02/09 18:06 Gaylord

Special Delivery http://www.sporttaplalkozas.com/sporttaplalkozas/eletmod-program where to get money "This is a very significant development and will influence how our industry will grow from here," said Zhou Xiaoming, Tianhong Asset Management's vice president for e-commerce business. "It gives (asset managers) more room to be more creative with our products."

# mAbyjbETukFfxjt 2015/02/09 18:06 Greenwood

I sing in a choir http://atecuccod.com/index.php/aszf get a commercial loan BEIJING/HONG KONG - China reiterated its opposition on Thursday to a European Union plan to limit airline carbon dioxide emissions and called for talks to resolve the issue a day after its major airlines refused to pay any carbon costs under the new law.

# lLdGQIjdbG 2015/02/09 18:06 Jacob

Very funny pictures http://atecuccod.com/index.php/aszf ach loan payment Both hipsters and sophisticated women of a certain age appreciate her choice of materials and her over-the-top designs, which customer Laura Leigh � a 30-year-old Williamsburg hairstylist who owns more of Carothers� necklaces than she can count � describes as �punk rock, but with this old-lady vibe to it.�

# UyQHLgtgbALkptJ 2015/02/10 0:17 Zachariah

I love this site http://www.larkspurdata.com/dmp1.html buy montelukast "There is still time, and I hope it is used, for People of Freedom lawmakers to find a way to express their political and human support for their party president - if indeed that is their aim - without threatening the work of two branches of parliament," Mr Napolitano said.

# pXTatRgxfQtvya 2015/02/11 2:18 Leland

I've been made redundant http://www.wildfirerhc.org/about/ money for playing games Many Muslims blamed the authorities for the cleric'skilling, and said it was part of a campaign against theircommunity and faith. (Reporting by Joseph Akwiri; Writing by James Macharia; Editingby Pravin Char)

# mwIbEwqYGpSxy 2015/02/11 2:18 Roosevelt

The United States http://compostcrew.com/faq/ apply for cash loan online Almost two hours after it was reported at 4:47 p.m. that the Hotshots had deployed protective personal shelters, an Arizona state paramedic hiked up to the site of torched chaparral and confirmed the worst.

# zGjUyLdfgZFtC 2015/02/11 2:18 Eldridge

Pleased to meet you http://parkavenuebrussels.com/index.php/tips federal loan programs The WHO said the female health staff, from the Saudi regions of Assir and Riyadh, both had mild symptoms of MERS, while a third new case in a 67-year-old woman from Riyadh was more severe, with that patient being treated in hospital.

# tQoQqpKohMWZhAPxY 2015/02/11 6:01 Graig

I can't stand football http://digitallocksmithsinc.com/get-informed/ allopurinol 200 mg The S&P 500 has fallen for five of the past six sessions,and last week posted its worst week since June. Those declinescame as investors found few reasons to buy with major indexesnear record highs and earnings season winding down.

# BhwZLXkKzUDWugh 2015/02/11 6:01 Edmundo

It's OK http://broadcastmedia.co.uk/communications-training Famvir Online Stephen Gately, a member of the Irish boy band Boyzone, has died at the age of 33 while vacationing in Spain. Gately, who made headlines a decade ago by coming out as a gay icon, was visiting the island of Majorca with his partner, Andrew Cowles, when he died, according to the AP.

# OxSLtGEDCewRhqW 2015/02/12 10:56 Amia

Which team do you support? http://www.wildfirerhc.org/about/ 12 month short term loans Wolves use their distinctive calls to protect territory from rivals and to call to other pack members. "They enjoy it as a group activity," said Ms Root-Gutteridge, "When you get a chorus howl going they all join in."

# tuEigdZSpxmJoAT 2015/02/25 3:41 Carlos

Do you need a work permit? http://www.streamsweden.com/service/ inderal 20 mg What is particularly American about these images?  The glamour and mystery of our Hollywood stars, the charm and character of our musicians and the skill of our great photographers, both famous and unknown.

# STVCGRRpxuquEQyXrb 2015/02/28 20:46 Jacinto

Thanks for calling http://version22.com/contact/ generic latanoprost eye drops "Being crushed by a cow is the last way you expect to leave this earth," his brother-in-law told the Brazilian newspaper Hoja em Dia. "In my view it wasn't the cow that killed our Joao, it was the unacceptable time he spent waiting to be examined."

# YBERBwATCnQiMGOve 2015/04/07 9:49 Humberto

Where do you come from? http://www.streamsweden.com/tjanster/ propranolol costo As Froome crossed the stage eight finish line on Saturday, the young riders in Kinjah's house jumped up and cheered, aware that someone who spent years in the same room had just won the yellow jersey in the world's most prestigious road race.

# pBpxMoNrhsIp 2015/04/08 12:04 Jeromy

I'm retired http://www.sandiegowebworks.com/quote.shtml can you buy ventolin inhalers over counter "They would quite like the ability to retire when they feel they've reached an age when they have nothing further to contribute and that would help to bring the size of the chamber down."

# JNYlsyNIXTt 2015/04/08 12:04 Marty

I'd like , please http://www.europanova.eu/tag/stage/ online lumigan The analysis was carried out by a team from the University of Leeds and the University of Leicester who looked at data on admissions, diagnosis, length of stay and outcomes - as well as staffing levels.

# tmJRlzlaBZ 2015/04/08 12:04 Clemente

A jiffy bag http://www.europanova.eu/contact/ bimatoprost ophthalmic solution canada �Since this incident happened, my phone�s been on fire with active and retired UCs who are just outraged,� he says. �This guy belongs in the can. What he did is not just inexcusable, it�s horrific.�

# YptaBqyUGVsuw 2015/04/08 12:04 Amia

I'm self-employed http://www.theartofdining.co.uk/buy-tickets/ how to apply minoxidil 5 for women Good morning if you're just joining us. The main talking point today is the roll-out of Help to Buy, the government's mortgage scheme. Also, it's the last day of the Royal Mail share sale and there is a new £50,000 coin in honour of Prince George's christening.

タイトル  
名前  
Url
コメント