Introduced in the United States in June 2004 and Canada in 2010, the Scion tC is generally considered Toyota’s successor to the Toyota Celica whose production ended with the 2005 model year. The name tC does not fit in with its stablemates the xA, xB, and xD, because the name XC designation has already been used by Volvo for its lineup of sport utility vehicles. According to Scion, tC stands for touring coupe.
Major improvements have been made to the oddly named tC. The front-drive, two-door hatchback has more power, better transmissions, a revised interior, improved chassis and larger wheels. Moreover, the 2011 Scion tC provides lots of standard equipment, including a panoramic sunroof, air conditioning, cruise control, power windows and door locks with remote keyless entry and an AM/FM/CD sound system. Safety items include stability and traction control systems and a bunch of air bags.
Prices are reasonable, at $18,275 with a manual transmission at $19,275 with an automatic. (Add $720 for the destination charge.) Looking at the total package of the second-generation Scion tC, it’s apparent that the vehicle is here to stay. With other affordable sports cars missing in action or mired in mediocrity, the tC promises to maintain its hold on the market by combining solid engineering with chiseled good looks and a potent powerplant. We’re looking forward to seeing it dominate the streets after its debut this fall.
Jumat, 28 Januari 2011
the Scion tC is generally considered Toyota’s successor to the Toyota Celica
the Honda FIT was introduced in other world markets
The Honda Fit is the newest sports compact car of Honda. Designed after Honda Jazz, this beauty holds power and space despite its small structure. Although the Honda FIT was introduced in other world markets, including its home Japan, as early as 2001, the model wasn’t brought to the U.S. until 2006, as a 2007 model. Featuring a 109-horsepower, 1.5-liter VTEC four-cylinder engine, a five-speed manual or five-speed automatic transmission, and front-wheel drive, along with steering and suspension that felt slightly more on the sporty side compared to rival models, the Honda FIT performed very well. Cargo space was also astonishingly good, thanks to a so-called Magic Seat, which allowed the back seat to fold into several different positions, including to a very low, flat cargo floor or to allow exceptionally high cargo like a mountain bike or potted plant.
The Honda FIT is one amazing car. With the comfort and quality you’d expect from a Honda, combined with peppy performance and unmatched versatility for a car of its size, it’s easy to see why the Honda FIT stands out.
When you’re a Honda FIT driver, every trip becomes a fun adventure. And thanks to the many design innovations and safety features, you’ll always have the perfect car for every situation.
menampilkan asisten office sebagai pengganti msgbox di vb net

dalam trik kali ini kita akan membahas bagaimana cara menampilkan assisten office sebagai media interaktif user untuk menampilkan info2 selain menggunakan msgbox
ayoo langsung saja berkoding ria
Imports System.Windows.Forms
Imports AgentObjects
Public Class Agent
Public aksi As _aksi
Public Merlin As AgentObjects.IAgentCtlCharacter
Public ctlAgent As New AgentObjects.Agent
Public Const DATAPATH = "C:\Windows\Msagent\Chars\Merlin.acs"
Public Sub New()
ctlAgent.Connected = True
ctlAgent.Characters.Load("Merlin", DATAPATH)
Merlin = ctlAgent.Characters("Merlin")
End Sub
Public Enum _aksi
GetAttention
GetAttentionReturn
Explain
Congratulate
Announce
Congratulate_2
DontRecognize
Write
Surprised
Suggest
Wave
End Enum
Public Sub PanggilAgent(ByVal aksi As _aksi, ByVal stringtext As String, ByVal locationX As Integer, ByVal locationY As Integer)
Try
Merlin.MoveTo(CShort(locationX + 420), CShort(locationY + 130))
Merlin.Show()
Merlin.Play(aksi.ToString())
Merlin.Speak(stringtext)
Merlin.IdleOn = True
Catch ex As Exception
MsgBox(Err.Description)
End Try
End Sub
Public Sub moveagent(ByVal htop As Integer, ByVal hleft As Integer, ByVal hwidth As Integer)
Try
Merlin.MoveTo(hleft + 20, htop + hwidth - 200)
Catch ex As Exception
MsgBox(Err.Description)
End Try
End Sub
End Class
jangan sampe lupa, add dulu referencenya, pilih microsoft agent control 2.0. selamat mencoba, semoga bermanfaat
membuat fungsi validasi huruf saja dengan vb net
nie contoh saya ambil dari sesepuh programer ud muncul jogja, piss yak hehehee
Public Shared Sub HanyaHuruf(ByVal e As System.Windows.Forms.KeyPressEventArgs)
If StringType.StrLike(e.KeyChar.ToString(), "[A-Z]", CompareMethod.Binary) OrElse StringType.StrLike(e.KeyChar.ToString(), "[a-z]", CompareMethod.Binary) OrElse e.KeyChar = Chr(8) OrElse e.KeyChar = (" "c) Then
e.Handled = False
Else
e.Handled = True
End If
End Sub
validasi ini hanya akan mengijinkan karakter huruf saja [A-Z], [a-z] dan spasi.
fungsi tersebut paling afdol kalo dijadiin dalam sebuah class fungsi,sehingga bisa dipake dalam beberapa form, semoga bermanfaat teman
Rabu, 22 Desember 2010
contoh menulis dan membaca registry vb net
dalam contoh ini saya menggunakan 2 command button dan sebuah textbox
Imports Microsoft.Win32
Private Sub btnTes_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTes.Click
Dim write As RegistryKey = Registry.LocalMachine.OpenSubKey("Software", True)
Dim key As RegistryKey = write.CreateSubKey("Tes")
Try
key.SetValue("program", Text1.Text)
Me.Close()
Catch ex As Exception
MsgBox(Err.Description)
End Try
End Sub
Private Sub btnTes2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnTes2.Click
Dim read As RegistryKey = Registry.LocalMachine
Try
read = read.OpenSubKey("Software\\Tes")
Text1.text = read.GetValue("program")
Catch ex As Exception
MsgBox(Err.Description)
End Try
End Sub
untuk melihat hasilnya melalui regedit, selamat mencoba,,,,,,, semoga bermanfaat
Selengkapnya...
Kamis, 25 November 2010
contoh koneksi ke oracle dgn java via odbc
import java.sql.*;
class ConODBCOracle{
public static void main(String[] args){
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:OdbcOracle","SYSMAN","admin");
con.close();
System.out.println("Koneksi ke Database Oracle via ODBC berhasil..!!!");
System.exit(0);
}
catch(ClassNotFoundException eclass){
System.out.println("Driver tidak ada");
}
catch(SQLException esql){
System.out.println(esql.getMessage());
}
}
}
Selengkapnya...
contoh koneksi ke my. sql dgn java via odbc
import java.sql.*;
class ConOdbcMySQL {
public static void main(String[] args) {
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:ConnectMySQL","root","");
con.close();
System.out.println("Koneksi ke Server MySQL via ODBC berhasil....!!!");
System.exit(0);
}
catch(ClassNotFoundException eclass) {
System.out.println("Driver tidak ada");
}
catch(SQLException esql){
System.out.println(esql.getMessage());
}
}
}
Selengkapnya...
contoh koneksi ke oracle dgn java
import java.sql.*;
class ConnectOracle{
public static void main(String[] args){
try
{
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@SERVER:1521:orcl","SYSMAN","admin");
con.close();
System.out.println("Koneksi ke Server Oracle berhasil..!!!");
System.exit(0);
}
catch(ClassNotFoundException eclass){
System.out.println("Driver tidak ada");
}
catch(SQLException esql){
System.out.println(esql.getMessage());
}
}
}
Selengkapnya...
contoh koneksi ke my. sql dgn java
import java.sql.*;
class ConnectMySQL {
public static void main(String[] args) {
try
{
Class.forName("com.mysql.jdbc.Driver");
Connection con=DriverManager.getConnection("jdbc:mysql://SERVER/BookStore", "root","admin");
con.close();
System.out.println("Koneksi ke MySQL Server berhasil..!!!");
System.exit(0);
}
catch(ClassNotFoundException eclass) {
System.out.println("Driver tidak ada");
}
catch(SQLException esql) {
System.out.println(esql.getMessage());
}
}
}
Selengkapnya...
contoh koneksi ke ms. sql dgn java
import java.sql.*;
class ConnectMsSQL{
public static void main(String[] args){
try
{
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
Connection con=DriverManager.getConnection("jdbc:microsoft:sqlserver//SERVER:1433;Database Name=BookStore","sa","admin");
con.close();
System.out.println("Koneksi ke Ms. SQL Server berhasil..!!!");
System.exit(0);
}
catch(ClassNotFoundException eclass){
System.out.println("Driver tidak ada");
}
catch(SQLException esql){
System.out.println(esql.getMessage());
}
}
}
Selengkapnya...
contoh polymorfisme di java
class ViewData {
public void tulis(int x) {
System.out.println(x);
}
public void tulis(double x) {
System.out.println(x);
}
public void tulis(char x) {
System.out.println(x);
}
public void tulis(String x) {
System.out.println(x);
}
}
class contoh_polimorfisme {
public static void main(String[] args) {
ViewData data = new ViewData();
data.tulis("MOHRIYAN");
data.tulis('R');
data.tulis(11);
data.tulis(3.14);
}
}
Selengkapnya...
contoh inheritance di java
class PERSEGI {
protected double panjang, lebar;
public PERSEGI() {
setPL(1,1);
}
public PERSEGI(double p, double l) {
if (p>0 && l>0) {
panjang = p; lebar = l;
} else {
panjang = 2.0; lebar = 1.0;
}
}
public void setPL(double p, double l) {
if (p>0 && l>0) {
panjang = p; lebar = l;
}
}
public double getPanjang() {
return panjang;
}
public double getLebar() {
return lebar;
}
public double hitungLuas() {
return (panjang * lebar);
}
public double hitungKel () {
return (2 * (panjang+lebar));
}
}
class BALOK extends PERSEGI {
private double tinggi;
public BALOK() {
setPL(1,1);
setTinggi(1);
}
public BALOK(double p, double l, double t) {
setPL(p,l);
setTinggi(t);
}
public void setTinggi(double t) {
if (t>0) tinggi = t;
}
public double getTinggi() {
return (tinggi);
}
public double hitungLuas() {
return (super.hitungLuas() * 4.0 +
super.getLebar() * tinggi * 2.0);
}
public double hitungVol() {
return (super.hitungLuas() * tinggi);
}
}
class contoh_inheritance {
public static void main(String[] args) {
PERSEGI X = new PERSEGI(4.5, 3.5);
System.out.println("DESKRIPSI PERSEGI X");
System.out.println("PANJANG : " + X.getPanjang() + " meter");
System.out.println("LEBAR : " + X.getLebar() + " meter");
System.out.println("LUAS : " + X.hitungLuas() + " meter persegi");
System.out.println("KELILING : " + X.hitungKel() + " meter");
System.out.println("");
double p=X.getPanjang(), l=X.getLebar();
BALOK A = new BALOK(p, l, 3.0);
System.out.println("DESKRIPSI BALOK A");
System.out.println("PANJANG : " + A.getPanjang() + " meter");
System.out.println("LEBAR : " + A.getLebar() + " meter");
System.out.println("TINGGI : " + A.getTinggi() + " meter");
System.out.println("LUAS : " + A.hitungLuas() + " meter persegi");
System.out.println("VOLUME : " + A.hitungVol() + " meter kubik");
}
}
Selengkapnya...
contoh struktur while di java
class contoh_while {
public static void main(String[] x){
int batas = 6;
int i = 6, hasil =0;
while(i
i++;
};
System.out.println("Total hasil = "+hasil);
}
}
Selengkapnya...
contoh penggunaan try catch di java
try catch ini biasanya digunakan sebagai error handling dalam suatu program
class contoh_try_catch_finally {
public static void main(String[] x) {
int bukan_nol = 8, nol = 0;
try {
int hasil = bukan_nol/nol;
System.out.println("Hasil = "+hasil);
} catch(ArithmeticException e)
{
System.out.println("Proses dihentikan,
pembagi = 0");
}finally {
System.out.println("Selesai...");
}
}
}
Selengkapnya...
contoh penggunaan throw di java
class contoh_throw {
public static void main(String[] x) throws Exception {
try {
throw new Exception ("Hasil tidak terdefinisikan!");
}catch(Exception e) {
System.out.println("Proses dihentikan, pembagi=0");
throw e;
}
}
}
Selengkapnya...
contoh struktur switch case di java
class contoh_switch_case {
public static void main(String[] x) {
char nilai = 'A';
switch (nilai) {
case 'E' : System.out.println("Nilai Anda Sangat Buruk");
break;
case 'D' : System.out.println("Nilai Anda Buruk");
break;
case 'C' : System.out.println("Nilai Anda Cukup");
break;
case 'B' : System.out.println("Nilai Anda Baik");
break;
case 'A' : System.out.println("Nilai Anda sangat Baik");
break;
default : System.out.println("Nilai Anda Kosong");
break;
}
}
}
Selengkapnya...
contoh struktur if else di java
class contoh_if_else {
public static void main(String[] x){
int pembagi = 0;
if (pembagi != 0) {
System.out.println("Operasi pembagian bisa dilakukan !");
} else {
System.out.println("Operasi pembagian tidak bisa dilakukan !");
}
}
}
Selengkapnya...
contoh for di java
class contoh_for {
public static void main(String[] x) {
for (int i=0; i<=10; i++){
if (i%2==1) System.out.println(i);
}
}
}
Selengkapnya...
contoh do while di java
class contoh_do_while{
public static void main(String[] x){
int batas = 6;
int i = 6, hasil =0;
do {
hasil+=i;
i++;
}while(i<=batas);
System.out.println("Total hasil = "+hasil);
}
}
Selengkapnya...
Selasa, 23 November 2010
menambahkan suara pada tombol
trik untuk menambahkan suara pada saat tombol di klik. file yang didukung berupa file wav.
Private Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Private Sub Command1_Click()
CommonDialog1.Filter = "File WAV (*.wav)|*.wav"
CommonDialog1.ShowOpen
End Sub
Private Sub Command2_Click()
On Error Resume Next
sndPlaySound CommonDialog1.FileName, SND_ASYNC
End Sub
Selengkapnya...