Thursday, 7 November 2013

C# chapter 5 : C# or C sharp For Beginer, Working with Text

C# chapter 5 :


For any one that have not read chapter 1 , 2  , 3 & 4 ,
Please refer C#  chapter 1 , 2  , 3 & 4   if have any question.

OK!  Let continue !

Working with Text



Find & Deleting part of the line




Must  Remember  This
Line count start from 0, so if Line is:  ABCD
A=0 , B=1 , C=2 , D=3
Line count start from 0


//
is use for reminder note only , any things after //  in the same line will not have any effect !
example 1 :
string STR_A;    // declared  that STR_A will be String

example 2 :
int INT_A;    // declared  that INT_A will be integer (number)

example 3 :
string STR_A, STR_B, STR_C;       // declared  that STR_A will be String
                                                       // declared  that STR_B will be String
                                                      // declared  that STR_C will be String 


___________________________________________


Find & Deleting part of the line

C#   code:

        private void button1_Click(object sender, EventArgs e)
        {
            string STR_A, STR_B, STR_C;
            int INT_A;
            STR_A = "abcdefgh";
            textBox1.Text = STR_A;
            INT_A = STR_A.IndexOf("cde");                    // find  cde
            STR_B = STR_A.Remove(INT_A, 3);
            textBox1.Text = textBox1.Text + "\r\n" + "\r\n" + STR_B;

        }


THEN  Select  Debug -> Start without Debugging
~  ~ Wait for a while  ~ ~ ~
The program Form screen will come out.
Let  click on button1
      abcdefgh
      abfgh
will show up  inside the Textbox.

Explanation :
IndexOf("???")
??? = the string of character you want to find, can be single character like "A"  or
          many character like " ABCD "

IndexOf("???")  will give an answer in integer, this is the starting position in the line for the
string of character you want to find

so to find "cde"  in  "abcdefgh"   the answer is 2 for c . c is the 1st in "cde"
STR_A = "abcdefgh";
INT_A = STR_A.IndexOf("cde"); 

so  INT_A  will be 2.


STR_B = STR_A.Remove(INT_A, 3);
Remove(x, y)
x =  start from ?
y =  How many character to be delete
for the program above
So this will be start at 3rd position in the line , delete 3 character
" c "  is the one at the 3rd position in line , delete 3 character , so  "cde"   had been deleted.
abcdefgh      become      abfgh

Must Remember This :   Line count start from 0, so if Line is:  ABCD
   A=0 , B=1 , C=2 , D=3 



Example 2  ,   C#   code:

        private void button1_Click(object sender, EventArgs e)
        {
            string STR_A, STR_B;
            int INT_A;
            STR_A = "abcdefgh";
            textBox1.Text = STR_A;
            INT_A = STR_A.IndexOf("cdef");                    // find  cdef
            STR_B = STR_A.Remove(INT_A + 1, 2);
            textBox1.Text = textBox1.Text + "\r\n" + "\r\n" + STR_B;
        }

THEN  Select  Debug -> Start without Debugging
~  ~ Wait for a while  ~ ~ ~
The program Form screen will come out.
Let  click on button1
      abcdefgh
      abcfgh
will show up  inside the Textbox.

Explanation :
IndexOf("???")
??? = the string of character you want to find, can be single character like "A"  or
          many character like " ABCD "

IndexOf("???")  will give an answer in integer, this is the starting position in the line for the
string of character you want to find

so to find "cdef"  in  "abcdefgh"   the answer is 2 for c . c is the 1st in "cdef"
STR_A = "abcdefgh";
INT_A = STR_A.IndexOf("cdef"); 

so  INT_A  will be 2.




STR_B = STR_A.Remove(INT_A + 1, 2);
Remove(x, y)
x =  start from ?
y =  How many character to be delete
for the program above
So this will be start at  INT_A + 1   position in the line
 INT_A is 2 , so  INT_A + 1   = 2+1  the answer is 3
Line count start from 0
So this will be start at  4th position in the line , delete 2 character
" d "  is the one at the 4th position in line , delete 2 character , so  "de"   had been deleted.
abcdefgh      become      abcfgh

Must Remember This :   Line count start from 0, so if Line is:  ABCD
   A=0 , B=1 , C=2 , D=3 





            STR_A = "abcdefgh";

            INT_A = STR_A.IndexOf("cdef");                    // find  cdef
            STR_B = STR_A.Remove(INT_A + 1, 2);

 abcdefgh      become      abcfgh

From this you can see that ,
you search for "cdef" but you only delete part of it "de"

Remove(INT_A + 3, 2)
Remove(INT_A - 1, 5)
You can change the plus (+)  to minus(-) , use it to delete part of line you don't want.

            STR_A = "abcdefgh";
            INT_A = STR_A.IndexOf("cdef");                    // find  cdef
            STR_B = STR_A.Remove(INT_A + 3, 2);
abcdefgh      become        abcdeh

            STR_A = "abcdefgh";
            INT_A = STR_A.IndexOf("cdef");                    // find  cdef
            STR_B = STR_A.Remove(INT_A - 1, 5) ;
abcdefgh      become        agh



___________________________________________
Need More Detail ?   contact me !!
Please send me some money at  Paypal
Any small amount is welcome , even 10 cents is good for me.

I will guide you step by step, personally.
My Paypal Account is :   ksw.industries@gmail.com

Don't know how to send money ?   Click here for detail about Paypal account.
http://xyberpast.blogspot.com/2014/05/how-to-get-my-program.html

Don't have money? OK! Here is another way to get the program.
http://xyberpast.blogspot.com/2014/05/how-to-get-my-program.html

Strong Lift Wear

C# chapter 4 : C# or C sharp For Beginer, Working with Text

C# chapter 4 :


For any one that have not read chapter 1 , 2  & 3 ,
Please refer C# chapter  1 , 2  & 3   if have any question.

OK!  Let continue !

Working with Text


Deleting part of the line
Line count start from 0, so if Line is:  ABCD
A=0 , B=1 , C=2 , D=3

C#   code:


        private void button1_Click(object sender, EventArgs e)
        {
            string STR_A;
            string STR_D;
            STR_A = "abcdefgh";
            textBox1.Text = STR_A;
            STR_D = STR_A.Remove(0, 2);
            textBox1.Text = textBox1.Text + "\r\n" + STR_D;
        }


THEN  Select  Debug -> Start without Debugging
~  ~ Wait for a while  ~ ~ ~
The program Form screen will come out.
Let  click on button1
     abcdefgh
     cdefgh
will show up  inside the Textbox.

Remove(A, B)
A =  start from ?
B =  How many character to be delete

for the program above  Remove(0, 2)   is  start from the 1st position in line , delete 2 character
abcdefgh
" a "  is the one at the 1st position in line ,
delete 2 character , so    " a "    &    " b "     had been deleted.
abcdefgh      become       cdefgh



Example 2:

        private void button1_Click(object sender, EventArgs e)
        {
            string STR_A;
            string STR_D;
            STR_A = "abcdefgh";
            textBox1.Text = STR_A;
            STR_D = STR_A.Remove(5, 1);
            textBox1.Text = textBox1.Text + "\r\n" + STR_D;
        }

THEN  Select  Debug -> Start without Debugging
~  ~ Wait for a while  ~ ~ ~
The program Form screen will come out.
Let  click on button1
     abcdefgh
     abcdegh
will show up  inside the Textbox.


Remove(A, B)
A =  start from ?
B =  How many character to be delete

for the program above  Remove(5, 1)   is  start from the 6th position in line , delete 1 character
abcdefgh
" f "  is the one at the 6th position in line ,
delete 1 character , so only  " f "   that had been deleted. 
abcdefgh      become       abcdegh


Must  Remember  This
Line count start from 0, so if Line is:  ABCD
A=0 , B=1 , C=2 , D=3

Line count start from 0



___________________________________________
Need More Detail ?   contact me !!
Please send me some money at  Paypal
Any small amount is welcome , even 10 cents is good for me.

I will guide you step by step, personally.
My Paypal Account is :   ksw.industries@gmail.com


Don't know how to send money ?   Click here for detail about Paypal account.
http://xyberpast.blogspot.com/2014/05/how-to-get-my-program.html

Don't have money? OK! Here is another way to get the program.
how to get my program - Free of charge



Groove Coverage : My No.1 Most Favourite English Music Band

Here is my favourite English Music Bands :  Groove Coverage , M2M ,  The Corr , West Life

Their songs can be play repeat and repeat , day by day , year to year .
Till today , I still love it  as the first time I heard it.

Everlasting for me.


Groove Coverage :   My No.1  Most Favourite  English Music Band
_______________________________________________________________________________

All these info is From Wikipedia, the free encyclopedia
http://en.wikipedia.org/wiki/Groove_Coverage

Groove Coverage


Groove Coverage
Members :
Axel Konrad (Producer)
Ole Wierk (Producer)
DJ Novus - DJ (1999-Present)
Melanie Munch (Mell) - Lead Singer (2002-Present)
Verena Rehm -Backup Singer (2002-present)

Background information
Origin: Germany
Genres: Euro-trance, Eurodance, dance-pop, pop rock
Years active : 1999¨Cpresent
Labels: Zeitgeist (Universal), Sony Music, Columbia, Suprime Music
Groove Coverage Website : Official website ( http://www.groovecoverage.de/ )

Groove Coverage is a German dance band, which consists of Axel Konrad, DJ Novus,
Melanie Munch, better known as Mell (lead singer), and Verena Rehm (former stage
performer, backing singer, occasional lead singer). Producers of the band are Ole Wierk
and Axel Konrad. The project was founded in the Summer of 2001 by DJ Novus, in cooperation
with Suprime Music (Konrad).  With eleven singles in the German Top 50
and over five million albums sold worldwide, Groove Coverage is one of the most
successful German dance artists.

Album :
1. Covergirl (2001-2002)
2. 7 Years and 50 Days (2003-04) and international breakthrough
3. 21st century and Greatest Hits (2005-2007)
4. Riot on the Dancefloor (2010-12)
5. New Single (2013)

Band history

Covergirl (2001-2002)
Groove Coverage released a few dance singles, most notably "Are U Ready" and "Hit Me"
before going on to release the breakthrough single Moonlight Shadow (a cover of the
famous Mike Oldfield track) which became a massive hit in Germany, peaking at #3 in the
German media control charts in June 2002.  At the end of 2002, the band released their
debut album Covergirl, which included the new single "God is a Girl".

7 Years and 50 Days (2003-04) and international breakthrough
After the success of the singles Moonlight Shadow and God Is A Girl, Groove Coverage went on
 to release a new single ironically titled "The End", which was released in April 2003, peaking at #14
in the German Media Control Charts, proving it was not the end - but the start of the next album.
In late 2003, the band released the next top 10 hit single, a cover of Alice Cooper's hit "Poison",
before going on to release the second studio album 7 Years and 50 Days in March 2004,
which spawned out five top 20 singles in Germany including The End, Poison, 7 Years and 50 Days,
She and Runaway.
In 2005, 7 Years and 50 Days reached platinum sales in Asia, as well as being hugely successful in
Indonesia. In the UK and Ireland, the band's single "Poison" became a top 40 hit, peaking at #32
in the Official UK Singles Chart  which helped the band reach to new territories such as Spain, and
in China, where, in 2007, their single "God Is a Girl" became the most successful song of the year,
having been downloaded more that 1.5 million times.

21st century and Greatest Hits (2005-2007)
In August 2005, the band released their next single "Holy Virgin", which became a top 30 hit in
Germany, and top 15 hit in Austria peaking at #12.  The following Summer, the band released their
third studio album 21st Century preceded by the more pop-sounding singles On The Radio and
 21st Century Digital Girl.
With only moderate success with their third album, Groove Coverage did not release any more
music until late 2007, where they released the new single "Because I Love You" to promote
their first Greatest Hits compilation. Again the band only experienced moderate success with the
new single and album, so were dropped by their label Universal Music Germany.

Riot on the Dancefloor (2010-12)
In 2010, Groove Coverage celebrated their new music contract with Sony Music / Columbia.
For this, the band released the highly anticipated new single "Innocent" which was a cover of the
famous Mike Oldfield track. The single became the highest new entry in the German
Media Control Charts peaking at #38.
In Spring 2011, the next single "Angeline" was released, peaking at #22 in the German
Media Control Charts, the single proved to be a massive success for the band - staying in
the German top 50 Charts for over 16 weeks, as well as peaking at #1 in both the
DJ Top 100 International charts,  and the MusicLoad digital charts.
In March 2012, Groove Coverage released their highly anticipated fourth studio album
"Riot On The Dancefloor"  which includes the previous two singles "Innocent and "Angeline",
as well as the new singles "Think About The Way" and "Riot On The Dancefloor".

New Single (2013)
The band has announced via Facebook  that a new single is planned for 2013.


Go to Wikipedia for more detail
http://en.wikipedia.org/wiki/Groove_Coverage

Groove Coverag  Website Official website
http://www.groovecoverage.de/



________________________________________________________________________
extra info of Groove Coverage  lead singer:
While Melanie Munch was pregnant with her second child until summer 2003
was replaced by Verena Rehm in music videos, singles, and album covers.
________________________________________________________________________

Groove Coverage
 song list sort by me  > alphabetically

 1. 21st Century Digital Girl
 2. 7 Years and 50 Days
 3. Angel from Above
 4. Angeline
 5. Are U Ready
 6. Beat Just Goes
 7. Because I Love You
 8. Call Me
 9. Can't Get Over You
10. Far Away From Home
11. Force of Nature
12. God Is a Girl
13. Hit Me
14. Holy Virgin
15. Home
16. I Need You vs.I Need You
17. Indonesia
18. Innocent
19. Last Unicorn
20. Let It Be
21. Little June
22. Lullaby For Love
23. Million Tears
24. Moonlight Shadow
25. Never Ever Stop
26. Not Available
27. November Night
28. On the Radio
29. Only Love
30. Poison
31. Remember
32. Riot on The Dancefloor
33. Rock
34. Runaway
35. She
36. Summer Rain
37. The End
38. Think About the Way
39. What You C Is What You Get
40. When I Die
41. When Life
42. When Love Lives in Heaven
43. You

________________________________________________________________________

my favourite  Groove Coverage  song
 Top 5
(Other is all best , I love all  Groove Coverage  songs )

1. Far Away From Home
2. Poison
3. Angeline
4. God Is a Girl
5. Moonlight Shadow
(Other is all best , I love all  Groove Coverage  songs )

________________________________________________________________________

Till today I still love  Groove Coverage  most , then second is  M2M.
__________________________________________________________________________

Want to encourage me to keep blogging ?
Please send me some money at  Paypal
Any small amount is welcome , even 10 cents is good for me.
My Paypal Account is :   ksw.industries@gmail.com

Wednesday, 6 November 2013

M2M : My No.2 Most Favourite English Music Band

Here is my favourite English Music Bands :  Groove Coverage , M2M ,  The Corr , West Life

Their songs can be play repeat and repeat , day by day , year to year . Till today , I still love it
as the first time I heard it.

Everlasting for me.


M2M :   My No.2 Most Favourite  English Music Band
_______________________________________________________________________________


All these info is From Wikipedia, the free encyclopedia
http://en.wikipedia.org/wiki/M2M_(band)

M2M
 (English Music Band)

M2M
M2M members:  Marit Larsen & Marion Raven
Background information
Origin Lorenskog, Norway
Genres Pop, teen pop, pop rock, alternative rock
Instruments Acoustic guitar, piano and vocals
Years active :  1999 to 2002
Labels Atlantic, Warner Music Norway

M2M  members
Marit Larsen
Marion Raven

M2M was a pop music duo formed by two Norwegians,
Marion Elise Raven and Marit Elisabeth Larsen.
They released  three albums  under Warner Music Norway :  Shades of Purple , The Big Room, and
The Day You Went Away: The Best of M2M,  a greatest hits album released by their record label
after they disbanded.

History
Raven and Larsen come from Lorenskog in the district east of Oslo. They had known each other
since the age of five. Discovered by the Norwegian music producers Kenneth M. Lewis and
Kai Robole, the girls were signed to Atlantic Records in 1998.
The name "M2M" was chosen from a contest held for fans to give a name to the band, having been
previously known as Marion & Marit. The group's first single, "Don't Say You Love Me", appeared in

1999, and was featured on the soundtrack of Pokemon: The First Movie (albeit with a small edit to
the lyrics). The film helped the song to reach success worldwide, including peaking at No. 16 in the
UK Singles Chart, their only hit in the UK. The duo released their first album Shades of Purple
in 2000. It debuted at number one in Norway and several Asian countries, entering the Top 40 for
most other countries. In September that year, they toured with Hanson, performing as the boys'
opening act. Earlier in the year, they performed a concert special at Epcot in Walt Disney World,
broadcast on April 29, 2000, under the name "M2M and BBMak in Concert", performing
six songs with breaks in between of them walking around the park.
Four more singles were released from the album: "Mirror Mirror", "The Day You Went Away",
"Pretty Boy" and "Everything You Do". They enjoyed some popularity in Asia; releasing a song
sung in Mandarin, "Pretty Boy".
However they did not record a Mandarin version of their hit "The Day You Went Away",
and Taiwanese singer Cindy Wang recorded her own version.

In 2002, the duo returned with a more mature, less pop-oriented sound with their second album, 
The Big Room. In two years, their voices had changed, particularly Raven's. The first single from
the album was "Everything" followed by "What You Do About Me". They did not release
a third single, even though "Don't" was released to U.S. and Latin America's radio stations and

"Wanna Be Where You Are" was released in the Philippines. The promotion for their second record
included TV appearances that year, including a spot on the WB's Dawson's Creek, appearing in the
100th episode of the show towards the end of its fifth year. That year, they also took part in the
Pantene Pro-Voice concert series that aired on the now defunct MuchMusic USA.
While on tour with Jewel, M2M was dropped by Atlantic Records, who cited a lack of record sales,
although the album did do well in Norway, Asia and Australia.

Break-up

Despite The Big Room being critically acclaimed, it was not as commercially successful as their
first album. M2M saw its record company support wane. As a result of disappointing record sales,
M2M was pulled in the middle of Jewel's This Way tour. Shortly after, M2M disbanded.

Marion Raven was immediately signed to a solo record contract.

Marit Larsen went to finish high school.


In 2005, Marion Raven debuted three songs on NRK. In support of her new solo record, she later
toured Japan, Latin America, and Europe.  The album was released in Asia, Scandinavia, Norway,
Sweden, Australia and in Latin America including Mexico, being particularly successful in Japan,
Taiwan, Philippines, Indonesia and Singapore.

In 2006, Marit Larsen performed live on NRK radio. Her debut solo album, Under the Surface
went platinum in Norway.

Both singers are currently performing as solo artists, going by their own names.


Go to Wikipedia for more detail
http://en.wikipedia.org/wiki/M2M_(band)


________________________________________________________________________

M2M
 song list sort by me  > alphabetically

 1. Dear Diary
 2. Do You Know What You Want
 3. Don't Mess with My Love
 4. Don't Say You Love Me
 5. Don't
 6. Eventually
 7. Everything You Do
 8. Todo Lo Que Haces   _ (Everything You Do  _Spanish version)
 9. Everything
10. Girl in Your Dreams
11. Give a Little Love
12. Is You
13. Jennifer
14. Leave Me Alone
15. Love Left For Me
16. Mirror Mirror
17. Miss Popular
18. Not to Me
19. Our Song
20. Payphone
21. Pretty Boy
22. Pretty Boy  (Mandarin Chinese version)
23. Smiling Face
24. Sometimes
25. The Day You Went Away
26. Wait for Me
27. Wanna Be Where You Are
28. What You Do About Me
29. Why

________________________________________________________________________

my favourite  M2M  song
 Top 5
(Other is all best , I love all  M2M  songs )

1. Pretty Boy  (Mandarin Chinese version)
2. Pretty Boy
3. Our Song
4. Don't Mess with My Love
5. Dear Diary

(Other is all best , I love all  M2M  songs )

________________________________________________________________________

When M2M disbanded , I were so sad.
Till today ,  I  occasionally listen to   Marion Raven  ,  Marit Larsen     songs.
Marion Raven  song  "Here I am"   is one my favourite English Song.

__________________________________________________________________________
Want to encourage me to keep blogging ?
Please send me some money at  Paypal
Any small amount is welcome , even 10 cents is good for me.
My Paypal Account is :   ksw.industries@gmail.com