khgkhj
October 18, 2018
September 4, 2018
July 20, 2018
It is not death most people are afraid of.
It is getting to the end of life, only to realise that you never truly lived.
There was a study done, a hospital study on 100 elderly people facing death close to their last breath. They were asked to reflect about their life's biggest regret. Nearly all of them said they regretted not the things they did but the things they didn't do.
The risks they never took the dreams they didn't pursue.
Why do you exist?
Life is not meant to simply work, wait for the weekend and pay rent. No, no I don't know much. But I know this every person on this earth has a gift.
And I apologised to the black community but I can no longer pretend Martin Luther King.
July 7, 2018
June 15, 2018
June 14, 2018
May 4, 2018
Show another window after five seconds
DispatcherTimer timer = null;
void StartTimer()
{
timer = new DispatcherTimer();
timer.Interval = TimeSpan.FromSeconds(5);
timer.Tick += new EventHandler(timer_Elapsed);
timer.Start();
}
void timer_Elapsed(object sender, EventArgs e)
{
timer.Stop();
AnotherWindow window = new AnotherWindow();
window.Show();
}
Call
StartTimer()
in your MainWindow
constructor. public MainWindow
{
InitializeComponent();
StartTimer();
}
April 27, 2018
April 18, 2018
March 21, 2018
February 28, 2018
How do I get an animated gif to work in WPF?
You can install it with NuGet
PM> Install-Package WpfAnimatedGif
and to use it, at a new namespace to the Window where you want to add the gif image and use it as below
Title="MainWindow" Height="350" Width="525">
gif:ImageBehavior.AnimatedSource="Images/animated.gif" />
The package is really neat, you can set some attributes like below
gif:ImageBehavior.RepeatBehavior="3x"
gif:ImageBehavior.AnimatedSource="Images/animated.gif" />
February 27, 2018
Disable Browser Back Button Functionality using JavaScript
<script type = "text/javascript" >
function preventBack(){window.history.forward();}
setTimeout("preventBack()", 0);
window.onunload=function(){null};
</script>
Suppose there are two pages Page1.aspx and Page2.aspx and Page1.aspx redirects to Page2.aspx
function preventBack() { window.history.forward(); }
setTimeout("preventBack()", 0);
window.onunload = function () { null };
February 9, 2018
January 30, 2018
January 24, 2018
Welcome to Township made easy
Township is a unique blend of city-building and farming!
Here you can build your dream town! Harvest crops at the farms, process them at your facilities, and sell goods to develop your town. Trade with exotic countries. Open restaurants, cinemas, and other community buildings to give life in your town special flavor. Explore the mine to get resources and find ancient artifacts. Run your own zoo and collect animals from around the world.
Let’s get started!
First you should now the main features of this game.
1. Customers
Subscribe to:
Posts (Atom)