No path is too difficult. No destination is too far !
Archive for February, 2010
How to open popup in wpf?
Feb 16th
This is the code to open a popup window in wpf.
We need to create an empty window for popup and we’ll assign the object of the WPF Window to it. In this example we wre trying to open PopupForm.xaml as popup.
private void OpenPopup()
{
var oPopupForm = new ucPopupFormPopup();// create POPUP window
var oWindow = new Window();//setting up its starting position
oWindow.WindowStartupLocation =WindowStartupLocation.CenterScreen;// we can make it available or not in taskbar
oWindow.ShowInTaskbar =false;oWindow.Width = 630;
oWindow.Height = 500;
oWindow.ResizeMode =ResizeMode.NoResize;
oWindow.Title =”Ashish Sehajpal – Trying WPF”;// Access Popup’s Controls
oPopupForm.TextBox1.Text = “Ashish Sehajpal is here.”;// Assign Form to Popup window
oWindow.Content = oPopupForm;// If you need to do some action on popup’s closing
// Assignt the event handler to it
oWindow.Closing += oWindow_Closing;
// it’s time to show POPUP
oWindow.ShowDialog();}
// eventhandler for the popup closeing event
private void oWindow_Closing(object sender, CancelEventArgs e)
{
// do something nice here
}
Calling constructor inside constructor in C#
Feb 16th
To call one C# constructor from another, before the body of the constructor, use either:
: base (parameters)
to call a constructor in the base class; or:
: this (parameters)
to call a constructor in this class.
The following examples illustrate how to call one constructor from another.
public class myPopUp
{
public myPopUp(int width, int height, myPopUp parentPopUp) : this (width, height)
{
this.ParentPopUp = parentPopUp;
}
}
SARS – Annual tax calculation sheet
Feb 16th
A complete reference to the Sotuh African annual tax calculations for the year 2010 can be downloaded by clicking here. In it you will find the exact amount of tax payable on the income occured in RSA, rand by rand. So easy. Enjoy.
Open letter to Mr. Shahrukh Khan
Feb 12th
See this. It is an eye-opener for every Indian.
http://blogs.ivarta.com/open-letter-mr-shahrukh-khan-srk/blog-348.htm
New 9/11 photos released
Feb 11th
This newly released aerial photo by New York City Police Department and provided on Feb 10, 2010 by ABC News shows the collapsing World Trade Center in New York following attacks by terrorists who flew two airliners into the towers. (Courtesy of ABC News / NYPD / Detective Greg Semendinger via AFP)
Give me some sunshine guitar chords
Feb 10th
Song : Give Me Some Sunshine
Guitar Scale : B
Chords used in the song:
C 032010
F 033211
Fbar 133211
G 320033
Gbar 355433
Sari umra hum mar-mar ke jee liye…
Ek pal to ab hume jeene do… jeene do…(Slide 7\3 on 5th string)
| C F | C F | C F | C F G |
| C F | C F | C F | C F G | (WITH BEATS)
Strumming 1
(C)Sari umra (G)hum, mar-(C)mar ke jee li(G)ye
Ek (C)pal to ab hu(G)me jee(F)ne do, jeene (G)do…
(C)Sari umra (G)hum, mar-(C)mar ke jee li(G)ye
Ek (C)pal to ab hu(G)me jee(Fbar)ne do, jeene (Gbar)do…
Strumming 1
(C)Na na na-na(G)… na-na (C)na na na-na(G)
(C)Na na na-na(G)… na na (Fbar)na na na na-(Gbar)naaa..
Strumming 2
(C)Give me some (G)sunshine
(C)Give me some (G)rain
(C)Give me (G)another chance
i wanna (Fbar)grow up once a(Gbar)gain… x2
Strumming 1
(C) …
(F)Kandho ko (C)kitabo ke bojh ne jhukaya(F)
Rishwat(C) dena to khud papa ne sikhaya(F)
(C)99% marks (F)laoge to (G)ghadi, (C)warna chadi (F)
(C)likh-likh kar padha (F)hateli par
aplha, (C)beta, gamma ka(F) chala
(C)conc. H2SO4(F) ne pura, (C)pura bach(F)pan jala dala(G)
Strumming 1
(C)bachpan to ga(G)ya, ja(C)wani bhi ga(G)yi
ek (C)pal to ab hu(G)me jee(Fbar)ne do jeene (Gbar)do
Chorus
(C)bachpan to ga(G)ya, ja(C)wani bhi ga(G)yi
ek (C)pal to ab hu(G)me jee(Fbar)ne do jeene (Gbar)do oooooo
Melody (Piano)
E ——————————
———-
B -13-13-10-11—11-10-13-13-10-11——–
G —————————————-
D —————————————-
A —————————————-
E —————————————-
E —————————————-
B –11h13-13-10-11—11-10-13-12-13-13—-
G ————————————-14-
D —————————————-
A —————————————-
E —————————————-
(C)Sari umra (G)hum, mar-(C)mar ke jee li(G)ye
Ek (C)pal to ab hu(G)me jee(Fbar)ne do, jeene (Gbar)do…
(C)Na na na-na(G)… na-na (C)na na na-na(G)
(C)Na na na-na(G)… na na (Fbar)na na na na-(Gbar)naaa..
(C)Give me some (G)sunshine
(C)Give me some (G)rain
(C)Give me (G)another chance
i wanna (F)grow up once a(G)gain… x2
{No strumming}
Na na na-na… na-na na na na-na
Na na na-na… na na na na na na-naaa..
{Strumming}
(C)Na na na-na(G)… na-na (C)na na na-na(G)
(C)Na na na-na(G)… na na (F)na na na na-(G)naaa..
Missing the challenges
Feb 9th
Deeply missing the challenges I’ve faced in my last job working late nights and on various different architectures…different technical issues…everything was just amazing. Cool job is not my type.