October 18, 2018

jhkg

khgkhj

September 4, 2018

Deactivate or remove the scrollbar on HTML

Copy this code in html header

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.



May 4, 2018

Remove title bar in mahapps


    ShowTitleBar = "False"
   

Show another window after five seconds

In your MainWindow, define a DispatcherTimer and pop up another window on Tick like this -
    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

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

Dashboard | Log in
   

February 9, 2018

Township Game - Regular Customers


    Grandma


    Orders
    wheat - 5 (Available at the starting of game)


    Orders
    Bread - 1 (Available at the starting of game)



January 30, 2018

Township Game Customers


    Their are Six types of customers in this game.

    1. Regular customers

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.

So are you ready to become a farmer and city-manager to build your dream?

Let’s get started!

First you should now the main features of this game.