you like Windows Solitaire, you're going to love this app � the only Solitaire app with Daily Challenges! This is the familiar Windows Solitaire game you used to play on your computer, and the same Solitaire game AS SEEN ON TV! The same classic Windows Solitaire game plus the ability to control card movements naturally by just swiping or tapping the cards on your iPhone/iPod touch/iPad. New Feature: Now we have a new Holiday Theme Pack to enjoy with your Solitaire game! Give your Solitaire game a new look with a Halloween, Winter Wonderland, or Valentine�s Day theme. We've always strived to stay true to the classic game of Solitaire (also known as Klondike, the most popular version of Solitaire). Each day you�ll receive a unique Daily Challenge. Solve the Daily Challenge and receive a crown for that day. Earn trophies each month by winning more crowns! You can also play Daily Challenges on the Apple Watch! Play the current day�s deal without pulling out your iPhone, and replay it as many times as you�d like on that day. Your completed Daily Challenges, crowns, and current trophy status are available to view any time. The Draw 3 option on your iPhone is also reflected on the Apple Watch. Play the classic game you love all by yourself or you can also compete against other players in real-time. Our Solitaire can deal the same hand to multiple players so they can compete against each other at the same time. You can have your choice of challenging your friends or be matched up against a completely random player. Exciting! Haven't won a deal in a while? Play Winning Deals! You can configure the game so that we deal you hands that are guaranteed to have at least one winning solution. Still can't figure out how to win? The "Show Me How To Win" feature is there to help walk you through the moves required to win the deal. Think you have the best Solitaire score around? With Apple's Game Center enabled, you can check the Game Center leaderboards to see how your Solitaire skills stack up against players all around the world! Honored by Apple in their 2010 Rewind List, MobilityWare's Solitaire supports drag-and-drop and Tap-To-Move card movements, both portrait and landscape modes, and your game is saved when you get a call or other interruption - features not all iPhone/iPod touch/iPad apps support. This is a universal app, playable in the best resolution available for each Apple device. FEATURES: -Daily Challenges -NEW Theme Pack -Multiplayer Solitaire -Winning Deals -Show Me How To Win -Game Center leaderboards -Klondike -Draw 1 card -Draw 3 cards -Portrait -Landscape -Custom card backs -Custom backgrounds -Achievements -Right or left handed play -Game state saved when interrupted -Unlimited undo -Auto complete to finish game -Standard scoring -Vegas scoring -Statistics APPLE WATCH FEATURES: -View completed Daily Challenges, jeweled crowns, and current trophy status -Draw 3 option on your iPhone reflected on the Apple Watch -Countdown to next day
Solitaire - Best game for Iphone
you like Windows Solitaire, you're going to love this app � the only Solitaire app with Daily Challenges! This is the familiar Windows Solitaire game you used to play on your computer, and the same Solitaire game AS SEEN ON TV! The same classic Windows Solitaire game plus the ability to control card movements naturally by just swiping or tapping the cards on your iPhone/iPod touch/iPad. New Feature: Now we have a new Holiday Theme Pack to enjoy with your Solitaire game! Give your Solitaire game a new look with a Halloween, Winter Wonderland, or Valentine�s Day theme. We've always strived to stay true to the classic game of Solitaire (also known as Klondike, the most popular version of Solitaire). Each day you�ll receive a unique Daily Challenge. Solve the Daily Challenge and receive a crown for that day. Earn trophies each month by winning more crowns! You can also play Daily Challenges on the Apple Watch! Play the current day�s deal without pulling out your iPhone, and replay it as many times as you�d like on that day. Your completed Daily Challenges, crowns, and current trophy status are available to view any time. The Draw 3 option on your iPhone is also reflected on the Apple Watch. Play the classic game you love all by yourself or you can also compete against other players in real-time. Our Solitaire can deal the same hand to multiple players so they can compete against each other at the same time. You can have your choice of challenging your friends or be matched up against a completely random player. Exciting! Haven't won a deal in a while? Play Winning Deals! You can configure the game so that we deal you hands that are guaranteed to have at least one winning solution. Still can't figure out how to win? The "Show Me How To Win" feature is there to help walk you through the moves required to win the deal. Think you have the best Solitaire score around? With Apple's Game Center enabled, you can check the Game Center leaderboards to see how your Solitaire skills stack up against players all around the world! Honored by Apple in their 2010 Rewind List, MobilityWare's Solitaire supports drag-and-drop and Tap-To-Move card movements, both portrait and landscape modes, and your game is saved when you get a call or other interruption - features not all iPhone/iPod touch/iPad apps support. This is a universal app, playable in the best resolution available for each Apple device. FEATURES: -Daily Challenges -NEW Theme Pack -Multiplayer Solitaire -Winning Deals -Show Me How To Win -Game Center leaderboards -Klondike -Draw 1 card -Draw 3 cards -Portrait -Landscape -Custom card backs -Custom backgrounds -Achievements -Right or left handed play -Game state saved when interrupted -Unlimited undo -Auto complete to finish game -Standard scoring -Vegas scoring -Statistics APPLE WATCH FEATURES: -View completed Daily Challenges, jeweled crowns, and current trophy status -Draw 3 option on your iPhone reflected on the Apple Watch -Countdown to next day
Two dots
Download On Itunes |
Description
The makers of the hit game Dots are back with a brand new, addictive, free, puzzle game!
Join two brave dots as they traverse arctic tundras, navigate fiery jungles, and plunge the ocean depths. Sharpen your skills across 535 challenging levels while uncovering many exciting new features along the way.
Additional levels coming soon!
= WHY YOU’LL LOVE TWO DOTS =
• FREE to play!
• ADVENTURE through 535 addictingly fun levels
• CONNECT one Dot to another, sink anchors, make a line, create bombs, extinguish flames, and much more
• ADORABLE, fun, and thoughtful design
• ENJOY beautiful minimalistic design and relaxing game music
• PLAY at your own pace to figure out the perfect move without having to worry about a clock
• CHALLENGE your friends on Facebook, beat their scores, and earn medals
• MAKE a square, not a circle, to clear every dot of a single color
Color blind mode is free and available to all.
LET'S BE FACEBOOK FRIENDS
facebook.com/playdots
FOLLOW US ON TWITTER
twitter.com/playdots
ADD US ON INSTAGRAM
instagram.com/iseedots
Having any problems? Any suggestions? We would love to hear from you! You can reach us at support at support@weplaydots.com
PLEASE NOTE! Two Dots is completely free to play, but you can also purchase some items within the game for real money. Just disable in app purchases on your device if you don't want to use this feature.
Use of Two Dots if governed by the Dots terms of service; http://weplaydots.com/sections.php?section=terms
Join two brave dots as they traverse arctic tundras, navigate fiery jungles, and plunge the ocean depths. Sharpen your skills across 535 challenging levels while uncovering many exciting new features along the way.
Additional levels coming soon!
= WHY YOU’LL LOVE TWO DOTS =
• FREE to play!
• ADVENTURE through 535 addictingly fun levels
• CONNECT one Dot to another, sink anchors, make a line, create bombs, extinguish flames, and much more
• ADORABLE, fun, and thoughtful design
• ENJOY beautiful minimalistic design and relaxing game music
• PLAY at your own pace to figure out the perfect move without having to worry about a clock
• CHALLENGE your friends on Facebook, beat their scores, and earn medals
• MAKE a square, not a circle, to clear every dot of a single color
Color blind mode is free and available to all.
LET'S BE FACEBOOK FRIENDS
facebook.com/playdots
FOLLOW US ON TWITTER
twitter.com/playdots
ADD US ON INSTAGRAM
instagram.com/iseedots
Having any problems? Any suggestions? We would love to hear from you! You can reach us at support at support@weplaydots.com
PLEASE NOTE! Two Dots is completely free to play, but you can also purchase some items within the game for real money. Just disable in app purchases on your device if you don't want to use this feature.
Use of Two Dots if governed by the Dots terms of service; http://weplaydots.com/sections.php?section=terms
...More
Playdots, Inc. Web SiteTwo Dots Support
What's New in Version 2.4.0
What's New:
New: It's holiday season! Themed sounds and art throughout TwoDots!
New: Explore Blue City Part 2!
New: It's holiday season! Themed sounds and art throughout TwoDots!
New: Explore Blue City Part 2!
Star Wars - Best game for Iphone
Review : Vandal Online
First impressions
I'd forgotten how glacial strategy management games can be.
Star Wars: Commander dishes out its two resources - Credits and Alloy - at an AT-AT's pace, making building new structures to defend your Headquarters and gather more materials a slow process.
As with Clash of Clans you have two units to construct and improve buildings. In CoC they're Workers, in Commander they're Droids. But only having a couple means the early part of the game can drag.
That said, criticising a strategy management game for being slow is like criticising a platformer for having a jump button. It's par for the course, and you go into a game like Star Wars: Commander expecting a bit of plod.
At the moment I'm not finding too many differences between this and its Supercell source material, but hopefully this will change as the game begins to open up.
Day 3: I suggest a new strategy
Three days in and the game is still slow-going, and I don't really see that changing. You use Alloy to buy and upgrade buildings more than you use Credits, which slows progress if you simply want to bide your time and build up resources.
What's much more effective if you're looking to progress quickly - and what the game clearly tries to funnel you into doing - is spending your Credits to train troops. You can then send them off to participate in battles.
When you select the Attack a Rival option, you send your soldiers into battle against someone of a similar level, hoping that you'll smash their base to itty bitty pieces through a combination of overwhelming might and tactical nous.
It plays out like any other strategy management game. You place your troops on the field, they automatically pick a target close to them and attack it.
When they're done, they pick another. You can't directly control where they'll go next, which feels like a step back from the advances that Samurai Siege and Boom Beach made to the genre.
You can skip a battle and move onto another using Credits, but that's the only pre-battle strategy available. The rewards for victory are high, though.
Lots of Credits and Alloy are up for the looting, which, playing as the heroic Rebels, feels an odd thing to be doing. Your troops are expended after an encounter, just like in Clash of Clans.
There are also riches - including the premium Crystals - to be found by completing chapters of the single player story, which include battles, defending your base, and upgrading your buildings.
I'm enjoying Star Wars: Commander enough to want to continue playing, but I'm yet to see any part of it that does anything radically different.
Day 7: Dispensing with the pleasantries
After a full week with the game, I don't feel like I've progressed very far, and I'm left questioning why anyone thought this game needed to be made - aside from the buckets of cash it'll surely make for featuring the Star Warslicense.
I've not yet upgraded my Headquarters to the fourth level, so much of the game is still locked away from me. I feel my base is organised well for defence, and I've certainly been improving my turrets and mortars to fight back against invasions.
My walls have been fortified to keep out unwanted guests too. Yet every morning I wake up to find my base ravaged and precious precious resources stolen.
To give myself the edge in battles I've also been researching more powerful troop types. It's fun to gain access to new soldiers, and to buff up the ones I already have, but no amount of training can improve the artificial intelligence designating the area your troops will attack next.
My crack team of rebels decided in the middle of a battle that instead of attacking the turret that was blasting them with laser fire, they'd fire round after round into the totally harmless wall just next to it.
It's infuriating, and your lack of agency in combat - with the exception of calling in the odd air strike - means you're a prisoner to the AI and its bizarre tactical quirks.
Learning from your mistakes is also tough, as the camera is zoomed out during battles that it obscures the action. Is your soldier getting shot? You'll have to zoom right in to try and see. Star Wars: Commander doesn't even change the colour of the health bars to help you distinguish between friend and foe.
Strategy management games have flooded the market since the phenomenal success of Clash of Clans, and new ones have to offer something meaningfully different to the now well-known formula to be worth recommending over Supercell's effort.
Slapping a licence over the top of a basic copy of the fundamentals just isn't going to cut it.
First impressions
I'd forgotten how glacial strategy management games can be.
Star Wars: Commander dishes out its two resources - Credits and Alloy - at an AT-AT's pace, making building new structures to defend your Headquarters and gather more materials a slow process.
As with Clash of Clans you have two units to construct and improve buildings. In CoC they're Workers, in Commander they're Droids. But only having a couple means the early part of the game can drag.
That said, criticising a strategy management game for being slow is like criticising a platformer for having a jump button. It's par for the course, and you go into a game like Star Wars: Commander expecting a bit of plod.
At the moment I'm not finding too many differences between this and its Supercell source material, but hopefully this will change as the game begins to open up.
Day 3: I suggest a new strategy
Three days in and the game is still slow-going, and I don't really see that changing. You use Alloy to buy and upgrade buildings more than you use Credits, which slows progress if you simply want to bide your time and build up resources.
IAPs explainedThere are multiple currencies in play: the one to speed up stuff is Crystals, the one to create buildings is Alloy, the one to buy troops is Credits.Crystals can also be used to buy more of the latter two (though they can be earned through regular play too). Prices for Crystals start at £2.99 / $4.99 for 500, which seems steep, considering one new worker droid costs that much to create. |
When you select the Attack a Rival option, you send your soldiers into battle against someone of a similar level, hoping that you'll smash their base to itty bitty pieces through a combination of overwhelming might and tactical nous.
It plays out like any other strategy management game. You place your troops on the field, they automatically pick a target close to them and attack it.
When they're done, they pick another. You can't directly control where they'll go next, which feels like a step back from the advances that Samurai Siege and Boom Beach made to the genre.
You can skip a battle and move onto another using Credits, but that's the only pre-battle strategy available. The rewards for victory are high, though.
Lots of Credits and Alloy are up for the looting, which, playing as the heroic Rebels, feels an odd thing to be doing. Your troops are expended after an encounter, just like in Clash of Clans.
There are also riches - including the premium Crystals - to be found by completing chapters of the single player story, which include battles, defending your base, and upgrading your buildings.
I'm enjoying Star Wars: Commander enough to want to continue playing, but I'm yet to see any part of it that does anything radically different.
Day 7: Dispensing with the pleasantries
After a full week with the game, I don't feel like I've progressed very far, and I'm left questioning why anyone thought this game needed to be made - aside from the buckets of cash it'll surely make for featuring the Star Warslicense.
I've not yet upgraded my Headquarters to the fourth level, so much of the game is still locked away from me. I feel my base is organised well for defence, and I've certainly been improving my turrets and mortars to fight back against invasions.
My walls have been fortified to keep out unwanted guests too. Yet every morning I wake up to find my base ravaged and precious precious resources stolen.
To give myself the edge in battles I've also been researching more powerful troop types. It's fun to gain access to new soldiers, and to buff up the ones I already have, but no amount of training can improve the artificial intelligence designating the area your troops will attack next.
My crack team of rebels decided in the middle of a battle that instead of attacking the turret that was blasting them with laser fire, they'd fire round after round into the totally harmless wall just next to it.
It's infuriating, and your lack of agency in combat - with the exception of calling in the odd air strike - means you're a prisoner to the AI and its bizarre tactical quirks.
Learning from your mistakes is also tough, as the camera is zoomed out during battles that it obscures the action. Is your soldier getting shot? You'll have to zoom right in to try and see. Star Wars: Commander doesn't even change the colour of the health bars to help you distinguish between friend and foe.
Strategy management games have flooded the market since the phenomenal success of Clash of Clans, and new ones have to offer something meaningfully different to the now well-known formula to be worth recommending over Supercell's effort.
Slapping a licence over the top of a basic copy of the fundamentals just isn't going to cut it.
80
While the Star Wars license is a tempting one to buy into, Star Wars: Commander isn't exactly up to snuff, especially if you're looking to play on the cheap. Perhaps future updates can lessen the price-gouging and it can blossom into a truly rewarding F2P experience.
5Miles For Iphone
5miles is an easy, safe, and fun way to discover great classifieds in
your area. Buy & sell your stuff, find a place to live, hire local
services, or get a new job all from the comfort of your phone.
FREE to list. FREE to discover. All within 5 miles.
Easy Snap a photo and list in seconds Add a personal touch with voice descriptions Use GPS and zip code to find thousands of listings Make an offer by sending a text Update your post and send it to the top of the list
Safe Email, phone, and Facebook verifications Messaging system hides your contact info Rate and read reviews of buyers and sellers 5miles team constantly reviews new listings
Fun Discover great stuff by browsing photos Search and filter to find relevant listing Like items and follow buyers & sellers Make offers and negotiate deals Chat to share photos and meeting spots
Shop, make offers, and list items and services for free. It's like your
own online garage sale without the hassle.
Find home cleaning, home repair, or home improvement professionals. Get
help with chores or errands. Find a mover you can trust.
Looking for housing or a roommate? Find apartments, houses, and condos
for rent or sale. Find a roommate to share your dream loft. Landlords,
list your real estate in a snap!
Looking for work? Find jobs near you! Full-time, part-time, freelance
jobs, or short gigs.
laptrinh2
câu 12:
using System;
using
System.Collections.Generic;
using
System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using
System.Windows.Forms;
using
Microsoft.VisualBasic;
namespace Bai12_Matran
{
public partial
class Form1
: Form
{
public
Form1()
{
InitializeComponent();
}
int[,]
A, B;
private
int[,] NhapMatran(int
n)
{
int[,]
A = new int[n,
n];
for
(int i = 0; i < n; i++)
for
(int j = 0; j < n; j++)
{
string
tg = Interaction.InputBox("A[" + i.ToString() + j.ToString() + "]", "Nhập
phần tử");
A[i, j] = int.Parse(tg);
}
return
A;
}
private void HienMatran(int[,]
A, int n, RichTextBox
rtb)
{
rtb.Text = "";
for
(int i = 0; i < n; i++)
{
for
(int j = 0; j < n; j++)
{
rtb.Text += A[i,
j].ToString()+" ";
}
rtb.Text += "\n";
}
}
private void btNhapA_Click(object
sender, EventArgs e)
{
int
n = int.Parse(txtKichthuoc.Text);
A = NhapMatran(n);
HienMatran(A, n, rtb_MatranA);
}
private void btNhapB_Click(object
sender, EventArgs e)
{
//B = Nhapmt(rtb_MatranB);
int
n = int.Parse(txtKichthuoc.Text);
B = NhapMatran(n);
HienMatran(B,n, rtb_MatranB);
//rtb_MatranB.Text=
HienMatran(B, n);
}
private
int[,] Tinhtich(int[,]
A, int[,] B, int
n)
{
int[,]
C = new int[n,
n];
for
(int i = 0; i < n; i++)
{
for
(int j = 0; j < n; j++)
{
C[i,j] = 0;
for
(int k = 0; k < n; k++)
{
C[i,j] += A[i, k] *
A[k, j];
}
}
}
return
C;
}
private void bt_Tich_Click(object
sender, EventArgs e)
{
int
n = int.Parse(txtKichthuoc.Text);
HienMatran(Tinhtich(A,B,n),n,
rtb_MatranTich);
}
=======================================================câu 16
using System;
using
System.Collections.Generic;
using
System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using
System.Windows.Forms;
namespace
Bài_16_radiobuttun
{
public partial
class Form1
: Form
{
public
Form1()
{
InitializeComponent();
}
private void txtNhap_TextChanged(object
sender, EventArgs e)
{
if
(txtNhap.Text != "")
{
try
{
int
n = int.Parse(txtNhap.Text);
}
catch
{
MessageBox.Show("Hãy nhập số nguyên");
txtNhap.Clear();
txtNhap.Focus();
}
}
}
private bool KTNT(int n)
{
bool
kt = true;
for
(int i = 2; i <= n / 2; i++)
{
if
(n % i == 0) { kt = false; break; }
}
return
kt;
}
private bool KTCP(int n)
{
return ((double)n ==Math.Pow(Math.Floor(Math.Sqrt(n)),2));
}
private int TinhTong(int n)
{
int
t = 0;
while
(n > 0)
{
t += n % 10;
n = n / 10;
}
return
t;
}
private void rdbKTNT_Click(object
sender, EventArgs e)
{
int
n = int.Parse(txtNhap.Text);
if
(KTNT(n) == true) lbKQ.Text = "Kết quả: " + n.ToString() + " là số nguyên tố";
else
lbKQ.Text = "Kết quả: " + n.ToString() + "
không phải là số nguyên tố";
}
private void rdbKTCP_CheckedChanged(object
sender, EventArgs e)
{
int
n = int.Parse(txtNhap.Text);
if
(KTCP(n) == true) lbKQ.Text = "Kết quả: " + n.ToString() + " là số chính phương";
else
lbKQ.Text = "Kết quả: " + n.ToString() + " không phải là số chính phương";
}
private void rdbTinhtong_Click(object
sender, EventArgs e)
{
int
n = int.Parse(txtNhap.Text);
lbKQ.Text = "Kết quả: Tổng các chữ số của " + n.ToString() + " là " + TinhTong(n).ToString();
}
}
}
==============================================
câu 23
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Bài_23_Chọn_kiểu_chữ
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void
rdRed_CheckedChanged(object sender, EventArgs e)
{
rtbChuoi.ForeColor = Color.Red;
}
private void btXoa_Click(object sender, EventArgs
e)
{
rtbChuoi.Clear();
rtbChuoi.Focus();
}
private void
btThoat_Click(object sender, EventArgs e)
{
if (DialogResult.Yes
== MessageBox.Show("Bạn
có chắc chắn muốn thoát không?", "Thông
báo", MessageBoxButtons.YesNo))
this.Close();
}
private void
chkDam_CheckedChanged(object sender, EventArgs e)
{
rtbChuoi.Font = new Font(rtbChuoi.Font.Name,
rtbChuoi.Font.Size,
rtbChuoi.Font.Style^FontStyle.Bold);
}
private void
chkNghieng_CheckedChanged(object sender, EventArgs e)
{
rtbChuoi.Font = new Font(rtbChuoi.Font.Name,
rtbChuoi.Font.Size,
rtbChuoi.Font.Style ^ FontStyle.Italic);
}
private void
chkGachchan_CheckedChanged(object sender, EventArgs e)
{
rtbChuoi.Font = new Font(rtbChuoi.Font.Name,
rtbChuoi.Font.Size,
rtbChuoi.Font.Style ^FontStyle.Underline);
}
private void rdbDo_Click(object sender, EventArgs
e)
{
rtbChuoi.ForeColor = Color.Red;
}
private void
rdbDen_Click(object sender, EventArgs e)
{
rtbChuoi.ForeColor = Color.Black;
}
private void
rdbXanhla_Click(object sender, EventArgs e)
{
rtbChuoi.ForeColor = Color.Green;
}
private void
rdbVang_Click(object sender, EventArgs e)
{
rtbChuoi.ForeColor = Color.Yellow;
}
private void
rdbXanhduong_Click(object sender, EventArgs e)
{
rtbChuoi.ForeColor = Color.Blue;
}
private void
rdbTim_Click(object sender, EventArgs e)
{
rtbChuoi.ForeColor = Color.Magenta;
}
}
}
================================================
câu 24
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Bài_23_Chọn_kiểu_chữ
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void
rdRed_CheckedChanged(object sender, EventArgs e)
{
rtbChuoi.ForeColor = Color.Red;
}
private void btXoa_Click(object sender, EventArgs
e)
{
rtbChuoi.Clear();
rtbChuoi.Focus();
}
private void
btThoat_Click(object sender, EventArgs e)
{
if (DialogResult.Yes
== MessageBox.Show("Bạn
có chắc chắn muốn thoát không?", "Thông
báo", MessageBoxButtons.YesNo))
this.Close();
}
private void
chkDam_CheckedChanged(object sender, EventArgs e)
{
rtbChuoi.Font = new Font(rtbChuoi.Font.Name,
rtbChuoi.Font.Size,
rtbChuoi.Font.Style^FontStyle.Bold);
}
private void
chkNghieng_CheckedChanged(object sender, EventArgs e)
{
rtbChuoi.Font = new Font(rtbChuoi.Font.Name,
rtbChuoi.Font.Size,
rtbChuoi.Font.Style ^ FontStyle.Italic);
}
private void
chkGachchan_CheckedChanged(object sender, EventArgs e)
{
rtbChuoi.Font = new Font(rtbChuoi.Font.Name,
rtbChuoi.Font.Size,
rtbChuoi.Font.Style ^FontStyle.Underline);
}
private void rdbDo_Click(object sender, EventArgs
e)
{
rtbChuoi.ForeColor = Color.Red;
}
private void
rdbDen_Click(object sender, EventArgs e)
{
rtbChuoi.ForeColor = Color.Black;
}
private void
rdbXanhla_Click(object sender, EventArgs e)
{
rtbChuoi.ForeColor = Color.Green;
}
private void
rdbVang_Click(object sender, EventArgs e)
{
rtbChuoi.ForeColor = Color.Yellow;
}
private void
rdbXanhduong_Click(object sender, EventArgs e)
{
rtbChuoi.ForeColor = Color.Blue;
}
private void
rdbTim_Click(object sender, EventArgs e)
{
rtbChuoi.ForeColor = Color.Magenta;
}
}
}
===================================================
câu 27
using System;
using
System.Collections.Generic;
using
System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using
System.Windows.Forms;
namespace ComboBox
{
public partial
class Form1
: Form
{
public
Form1()
{
InitializeComponent();
ComboBox_Load();
}
private
void ComboBox_Load()
{
// Đưa các font chữ vào ComboBox
Font
FontFamily[] ff = FontFamily.Families;
for
(int i = 0; i < ff.Length; i++)
{
cbFont.Items.Add(ff[i].Name);
}
// Đưa các cỡ chữ vào ComboBox
Size
for
(int i = 8; i <= 72; i++)
{
cbSize.Items.Add(i);
}
}
private
void comboBox1_SelectedIndexChanged(object sender, EventArgs
e)
{
rtbString.Font = new Font(cbFont.Text, rtbString.Font.Size);
}
private
void cbSize_SelectedIndexChanged(object sender, EventArgs
e)
{
rtbString.Font= new Font(rtbString.Font.Name,
float.Parse(cbSize.Text));
}
private
void button1_Click(object
sender, EventArgs e)
{
rtbString.Clear();
}
private
void button2_Click(object
sender, EventArgs e)
{
this.Close();
}
}
}
===================================================
câu 30
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Bài_30_string
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private string chuanhoa(string s)
{
s = s.Trim();
int i = 0;
while (i < s.Length)
{
if ((s[i] == '
') && (s[i + 1] == ' '))
s = s.Remove(i, 1);
else i++;
}
return s;
}
private void
btchuanhoa_Click(object sender, EventArgs e)
{
rtbKQ.Text = chuanhoa(rtbNhap.Text);
}
private void btDem_Click(object sender, EventArgs
e)
{
string s = chuanhoa(rtbNhap.Text);
int d = 0;
for (int i = 0; i
< s.Length; i++)
{
if (s[i] == '
') d++;
}
rtbKQ.Text = "Số từ trong xâu là: " +(d+1).ToString();
}
}
}
Subscribe to:
Posts (Atom)