HIRO's.NET Blog

PowerShellが好き

目次

Blog 利用状況

ニュース

あわせて読みたい

書庫

日記カテゴリ

リンク

Consoleの背景色を設定する

.NET Framework2.0ではコンソールの背景色を設定することができます。

これにより、従来にはないカラフルなコンソールアプリを作成することができます。

背景色変えるにはConsoleクラスのBackgroundColorプロパティを設定します。

 

Consoleの背景色を設定する
Sub Main()
    Console.BackgroundColor = ConsoleColor.Black
    Console.WriteLine("Background color is Black")

    Console.BackgroundColor = ConsoleColor.DarkBlue
    Console.WriteLine("Background color is DarkBlue")

    Console.BackgroundColor = ConsoleColor.DarkGreen
    Console.WriteLine("Background color is DarkGreen")

    Console.BackgroundColor = ConsoleColor.DarkYellow
    Console.WriteLine("Background color is DarkYellow")

    Console.BackgroundColor = ConsoleColor.DarkCyan
    Console.WriteLine("Background color is DarkCyan")

    Console.BackgroundColor = ConsoleColor.DarkRed
    Console.WriteLine("Background color is DarkRed")

    Console.ReadLine()
End Sub


このTipsはHIRO's.NETConsole Tipsに掲載しています。
 

投稿日時 : 2007年4月10日 21:22

コメントを追加

# Consoleの前景色を設定する 2007/09/27 15:42 HIRO's.NET Blog

Consoleの前景色を設定する

# Consoleの背景色を設定する(VB.NET Tips) 2008/03/21 0:23 HIRO's.NET Blog

この記事は2007/04/10にわんくまBlog( http://blogs.wankuma.com/hiro/archive/2007/04/10/70876.aspx )へ 書いたものです。 .NET

# Consoleの前景色を設定する(VB.NET Tips) 2008/03/21 0:27 HIRO's.NET Blog

この記事は2007/04/12にわんくまBlog(Consoleの前景色を設定する)へ書いたものです。 前回 はConsoleの背景色を設定する方法を紹介しました。 今回は、前景色を設定する方法を紹介します

# OK36643 Oakley Flak Jacket Sunglasses Outlet 2014/05/06 23:11 http://www.noteutopia.us/ok36643-oakley-flak-jacke

and find out the names of your reporters most focused on your enterprise location. Constantly address your press release towards the reporters you've got situated out of your study. Always target the
OK36643 Oakley Flak Jacket Sunglasses Outlet http://www.noteutopia.us/ok36643-oakley-flak-jacket-sunglasses-outlet-p-75.html

# eTcofUukHiGVChO 2015/01/09 10:06 marcus

Z0DOXh http://www.FyLitCl7Pf7kjQdDUOLQOuaxTXbj5iNG.com

# WQeYVmnMpAX 2015/01/26 4:58 Heriberto

I hate shopping http://www.consensusortho.com/index.php/patients/ midazolam other names The company contracted to perform the Keystone XL�s environmental review is currently under investigation for allegedly failing to report its conflict of interest with TransCanada and other companies that stand to benefit from the pipeline. The investigation has further delayed the final decision, which is not expected until 2014.

# HPfEnJNiZaahEtFy 2015/01/27 11:05 Wallace

We used to work together http://www.politicaltheology.com/blog/standinginwitness/ 3 7.5 zopiclone Manning threw for a career-best 4,933 yards with 29 touchdowns against 16 interceptions in 2011. He completed 61 percent of his passes and led Big Blue to its second Super Bowl of the Manning/Tom Coughlin era.

# CknjWvPOea 2015/01/27 11:05 Haley

A jiffy bag http://www.cleanenergyconsultancy.co.uk/training/workshops/ order zopiclone 7.5mg As part of plans to revamp MPX operations, E.ON will changethe name of the Rio de Janeiro-based company to distance itsassociation with Batista's Grupo EBX. Shares of EBX's six listedcompanies have tumbled more than 80 percent this year after themining, energy and logistics conglomerate grappled with theimpact of missing project deadlines, a dearth of cash andsurging debt.

# qcinDwkilAVNQXKE 2015/01/27 11:06 Francesco

I never went to university http://www.beachinthecity.com/index.php/programm limovan sleeping pills buy The Brotherhood has "committed a strategic error last week by mixing peaceful protests with armed clashes with civilians," said Abdullah el-Sinawi, an Egyptian newspaper columnist and analyst. "Many supporters are now staying away fearing that new civilian-on-civilian clashes will erupt."

# gadQokoESrgXiUYBYB 2015/01/28 16:27 Prince

Will I have to work shifts? http://www.video-to-flash.com/video_to_flv/ will 2.5 mg of clonazepam get you high But I’d say: be careful what you wish for. Chinese participation in western productions comes at a cost. Behind the financing money on offer, there are conditions. And those conditions stray beyond the narrow confines of the film industry into politics.

# ULceIMWcxsvDme 2015/01/28 16:27 Markus

Please wait http://newcastlecomics.com/blog/ebay-store/ 30 mg codeine vs 30 mg oxycodone But Spaniards like Ibanez are still a rare sight on the fields of Cartagena, Murcia, even if the trend is starting to change. �This job is incredibly strenuous. Many locals complain that the foreign laborers are responsible for dropping the wages because they are willing to work at very low prices. But the truth is that most Spaniards don�t want to do this type of work. We do it because we have no other choice,� Ibanez says.

# wDmFcCIoPhNyWkY 2015/02/04 3:52 Dallas

I'm a member of a gym http://www.pointreyesseashore.com/blog/ bactrim 10 mg Jacobs also had an exchange with another disgruntled fantasy football player on Monday night � an �Eric White� (@_EricWhite), who tweeted �next time tell us you�re not playing before I have to set my lineup #ilostbecauseofyou #droppingyou #p----�.

# UmnJnUBYCj 2015/02/05 9:08 Heyjew

I hate shopping http://www.retendo.com.pl/filmy/ motilium 10 mg 30 tablet endikasyonlarд±Ñ? “Vincent worked and trained with us normally over the last two days,” Pellegrini said. “We will see tomorrow if he is 100 per cent and speak with the doctor, but if he is fit, of course he will play.

# FYqVVeOggJ 2015/02/05 16:58 Reinaldo

Best Site good looking http://www.optimizacijasajtova.com/optimizacija-sajta-seo.html personal loans for no credit BUZZARDS BAY, Mass. (MyFoxBoston.com) – A delayed paycheck is not what weighs on the mind of a Cape Cod father fighting for his life, but rather the fact that if the government shutdown continues it could cost him his life.

# QLNwBRQsEcA 2015/02/08 10:28 Isabelle

Do you like it here? http://atecuccod.com/index.php/nyomtatas loan lenders bad credit Last month, the Sao Paulo state authorities arrested seven anti-drug police agents suspected of involvement with drug traffickers in the cities of Campinas and Sao Paulo. The investigation revealed the officers had earned 200,000 to 300,000 Brazilian reais ($86,889 and $130,333) a year from working for drug dealers.

# hPwIlyBbkOAEizv 2015/02/08 10:28 Ronnie

Can I take your number? http://www.sporttaplalkozas.com/sporttaplalkozas/fogyokura-program loan pre qualification letter Asked whether the BOJ will ease further if the U.S. debtstalemate severely hits the global economy, Kuroda said: "Wewill make necessary policy adjustments, depending on upside anddownside risks, but for now we see Japan's economy making steadyprogress towards achieving the BOJ's 2 percent price goal evenwhen taking into account various risk factors."

# XUFsmkqwteh 2015/02/08 21:29 Grady

History http://www.mrh-project.eu/index.php?page=general-info clomipramine 75 mg capsule Egol, who himself became a target of the SEC's investigation but ultimately wasn't sued, said he would not have called a short-seller like Paulson a "transaction sponsor," the term used by Tourre to describe Paulson to ACA.

# WDBpqvrcWpniyBboSa 2015/02/09 19:05 Emile

Another year http://www.theferrerspartnership.com/profile-of-trevor-potter loan consolidation help Studies have found that children face a higher autism risk if they are born early or very small; if they are in medical distress during delivery; if they have older mothers or fathers; or if they are born less than a year after an older sibling. Autism risk also goes up if a mother has diabetes or high blood pressure; is obese; is infected with rubella, or German measles; is exposed to significant air pollution; had low levels of folic acid; takes medications such as an anti-seizure drug called valproic acid; or makes antibodies toxic to the fetal brain.

# qIJwbmqvYFmTWcO 2015/02/09 19:06 Haywood

I'm a housewife http://whistlingduck.net/blog/ loan no payday Sonya �The Black Widow� Thomas won the women�s contest � but narrowly � eating 36 and three-quarters hot dogs and buns to Juliet Lee�s 36 HDBs. The 100-pound Thomas, of Alexandria, Va., has won the women�s contest for all three years.

# OHrYyPlvjQkOBOImAca 2015/02/10 1:11 Jose

It's OK http://www.moldotrans.ro/drive-test/ benicar hct 20 12.5 mg To avoid a penalty, you must have health insurance that meets the law's minimum standards for coverage. This "minimum essential coverage" must be offered by any individual insurer or small employer who offers health insurance. It will also be included in most large employer health plans in 2014 and will be mandatory for such plans beginning in 2015. So if you have insurance in 2014, you shouldn't worry about whether you meet the requirement of the law. However, this standard for minimal essential coverage is not met if the policy provides only limited benefits. You can't, for example, get a dental insurance policy and say you've satisfied the law's requirement to have health insurance coverage.

# qWBZRHPnWhLZX 2015/02/11 3:18 Dallas

I've been cut off http://compostcrew.com/faq/ 90 day installment loans no credit check â€?Our proposed fees are in line with analysts’ expectations and with the amounts that operators pay for accessing spectrum in other countries, so should come as no surprise to the mobile companiesâ€? said Ofcom.

# CMQzbTuLXTVXIQnff 2015/02/11 3:18 Bruce

In a meeting http://esuf.org/get-involved/ make money freelance writer "North Korea should be criticized for its inhumane behavior that broke the hearts of all families separated by the war and of all South Koreans in general," ministry spokesman Kim Eui-do told a briefing.

# KaGPtNwLwRCvUXqp 2015/02/24 1:15 Gilbert

I'm in a band http://www.streamsweden.com/support/ purchase inderal Apart from job concerns, the anti-corruption program has drawn criticism for being, in effect, a band-aid solution to a much deeper problem. Wang Guixiu, a retired professor from the Party School of Central Committee, has said that the curriculum does nothing to “address the superficial and trivial aspects of the problem, not even close to knocking the core of corruption.”

# lzvrYLNcnZVPAHCKFw 2015/02/24 1:15 Stephanie

Is there ? http://www.streamsweden.com/nyheter/ propranolol 10 mg Reports from France claiming that Newcastle have pulled back were confirmed by sources on Tyneside this morning, and the news will come as a further frustration for manager Alan Pardew, who is still waiting for new director of football Joe Kinnear to make a first breakthrough since his appointment.

# hLUiWghaNGFvng 2015/02/25 4:34 Antone

I'm at Liverpool University http://martinimandate.com/tag/arrack/ gabapentin 300 mg street price The first strange play came in the first quarter when the Giants stopped the Eagles on a third-and-9 play. The Eagles were called for a hold on the LeSean McCoy run, but if Coughlin had declined it, the Eagles would�ve had a fourth-and-4 from the Giants� 47-yard line. He was convinced the Eagles would go for it, though, so took the penalty instead.

# noURtkmFbhpCYJpd 2015/02/26 7:47 Horace

This site is crazy :) http://www.nude-webdesign.com/client-portfolio-page/ abilify discmelt 15mg I feel that one of the similarities is that there is an adventurousness and an openness to new things. One tangible difference is that here in London the connection to European films is much stronger, whereas obviously in Australia the Asian connection is much stronger.

# uKeWYaTAoRUuxDYwwc 2015/02/26 7:47 Erasmo

Enter your PIN http://www.angleseyonline.com/optimisation.html endep 50 Before visiting the DMZ on Monday, the U.S. defense chief watched an exercise in which U.S. and South Korean troops used live ammunition and explosives to destroy an obstacle so their tanks and armored vehicles could advance.

# VVUqiiXAKdHKSRw 2015/02/26 7:47 Patric

I like it a lot http://www.nude-webdesign.com/testimonials/ does abilify 20 mg look like Petri dishes have hosted all sorts of experiments, like cultivating mold or creating amoeba breeding grounds. But now, truly futuristic events are happening in these circular glass plates -- most notably, growing a brain.

# JuraezRxcQC 2015/02/27 18:03 Melanie

Do you know the address? http://www.europanova.eu/tag/federalisme/ bimatoprost para hacer crecer las pestað³â±as Howard Archer, chief UK economist at IHS, said the improvement in house-building activity was welcome news, given concerns that a shortage of properties risked contributing to a new housing market bubble.

# hpqKLFVkNGYShH 2015/04/07 10:36 Savannah

How do you spell that? http://www.theartofdining.co.uk/buy-tickets/ order minoxidil online Under the law, each state has three options:  (1) Create and operate their own marketplace, called a state-based exchange; (2) Operate a State Partnership Exchange, in which the state operates certain functions of the exchange, allowing the state to tailor the marketplace to local needs; or (3) For state’s that do not wish to establish their own exchange, the Federal government will establish and operate an exchange for them.

# gabzBjauzoSdJAEXPHS 2015/04/07 10:37 Jesus

I sing in a choir http://www.occedb.org/statutes Purchase Losartan Online Michael Jackson is shown in a Santa Barbara County Sheriff's Department booking mug shot on Nov. 20, 2003, in Santa Barbara, Calif. following his arrest for child molestation. He was released after posting $3 million bail.

# hJRhewKHxBuRRqq 2015/04/07 10:37 Avery

Jonny was here http://www.europanova.eu/entreprendre-leurope/ buy bimatoprost australia The 59-year-old, who became the first German to lead a major international sports organization, was the founding president of the DOSB after the merger of the former German Olympic Committee and the German Sports Confederation in 2006.

# where to buy baricitinib https://baricitinibrx.com
where to buy baricitinib
2021/12/12 16:29 Buksdldj

where to buy baricitinib https://baricitinibrx.com
where to buy baricitinib

# best place to buy careprost https://bimatoprostrx.com
bimatoprost buy
2021/12/13 16:11 Hksfnjkh

best place to buy careprost https://bimatoprostrx.com
bimatoprost buy

# price of ivermectin http://stromectolabc.com/
ivermectin 90 mg 2022/02/08 16:35 Busjdhj

price of ivermectin http://stromectolabc.com/
ivermectin 90 mg

# buy doxycycline online uk https://doxycyline1st.com/
online doxycycline 2022/02/26 8:20 Doxycycline

buy doxycycline online uk https://doxycyline1st.com/
online doxycycline

# doxycycline hydrochloride 100mg https://doxycyline1st.com/
doxycycline order online 2022/02/26 8:25 Jusidkid

doxycycline hydrochloride 100mg https://doxycyline1st.com/
doxycycline order online

# lasix generic https://buylasix.icu/
buy lasix online 2022/06/25 1:09 LasixRx

lasix generic https://buylasix.icu/
buy lasix online

# single women local https://topdatingsites.fun/
single free dating sites without registering 2022/11/15 0:25 DatingTop

single women local https://topdatingsites.fun/
single free dating sites without registering

# prednisone 10 tablet https://prednisone20mg.site/
prednisone 50 mg for sale 2022/11/15 17:55 Prednisone

prednisone 10 tablet https://prednisone20mg.site/
prednisone 50 mg for sale

# cheap erectile dysfunction https://edpills.science/
online ed medications 2023/01/07 13:48 EdPills

cheap erectile dysfunction https://edpills.science/
online ed medications

# Generic Name. Drug information.
https://canadianfast.com/
Everything what you want to know about pills. Get here. 2023/02/19 12:53 CanadaBest

Generic Name. Drug information.
https://canadianfast.com/
Everything what you want to know about pills. Get here.

# Get information now. Long-Term Effects.
https://canadianfast.com/
Everything what you want to know about pills. Get here. 2023/02/20 11:53 CanadaBest

Get information now. Long-Term Effects.
https://canadianfast.com/
Everything what you want to know about pills. Get here.

# 200 mg prednisone daily - https://prednisonesale.pro/# 2023/04/22 10:32 Prednisone

200 mg prednisone daily - https://prednisonesale.pro/#

# prednisone without prescription https://prednisonepills.pro/# - where can you buy prednisone 2023/06/05 1:37 Prednisone

prednisone without prescription https://prednisonepills.pro/# - where can you buy prednisone

# ed medications https://edpillsotc.store/# - male erection pills 2023/10/07 21:15 EdPills

ed medications https://edpillsotc.store/# - male erection pills

# paxlovid pill https://paxlovid.bid/ paxlovid india 2023/10/25 18:26 Paxlovid

paxlovid pill https://paxlovid.bid/ paxlovid india

# migliori farmacie online 2023 https://farmaciait.pro/ acquisto farmaci con ricetta 2023/12/04 7:06 Farmacia

migliori farmacie online 2023 https://farmaciait.pro/ acquisto farmaci con ricetta

タイトル
名前
URL
コメント