Skip to main content

ShootMe

 

I was getting bored. So I decided to shoot myself. I created this application.


image


If you want you can change the picture you want and shoot him/her all day. :)


PS. Requires .NET Framework 4.0


Here is the source code for the program :


   1:  Public Class Form1
   2:   
   3:      Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
   4:          'The form loads and the nongrami(dirty business) starts
   5:          tmrForChange.Enabled = True
   6:          Me.Cursor = New Cursor(Application.StartupPath + "\crosshair.cur")
   7:      End Sub
   8:      Dim tmrCountr As Int16 = 0
   9:   
  10:      Private Sub tmrForChange_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrForChange.Tick
  11:   
  12:          Dim newLocation As Point = New Point(0, 0)
  13:          If tmrCountr <= 5000 Then
  14:              tmrCountr += 1000
  15:          Else
  16:              tmrCountr = 0
  17:              Dim random As New Random()
  18:   
  19:              newLocation.X = random.Next(mainPanel.Width - targetPanel.Width)
  20:              newLocation.Y = random.Next(mainPanel.Height - targetPanel.Height)
  21:              targetPanel.Location = newLocation
  22:              'tmrForChange.Enabled = False
  23:          End If
  24:   
  25:      End Sub
  26:      Dim countr As Integer = 0
  27:      Private Sub targetPanel_Click(ByVal sender As System.Object, ByVal e As EventArgs) Handles targetPanel.MouseClick
  28:   
  29:          countr += 1
  30:          countLabel.Text = countr
  31:      End Sub
  32:   
  33:  End Class




 



Sarthak Ganguly


 






dl_arrowDownload Code

Popular posts from this blog

Burhan Wani – The man and his mission

Burhan Wani – The man and his mission The death of a young ‘hero’? On the 8th of July, Burhan Muzaffar Wani died in the Valley of Kashmir. Thousands poured out on the streets to commemorate his services to the movement that he had come to symbolize of late. The relative calm of the region was shattered with curfews, killings and allegations of human rights abuses. His father was proud for the services his son had offered in the name of their faith, convinced that he would go to Heaven. Amidst all this, the romantic ideals of a young boy, just off his teens began to shake up the youth of the entire country, both in and beyond India. There is a lot of unrest in the Kashmir Valley recently, especially in the aftermath of the death, nay execution of Burhan. All of this is not unexpected in any way. In fact, this was foreseen. Even his glorification, his elevation to the status of a martyr in the service of Islam does not come as a surprise to me.
There is a section of the media and a sig…

Indian Partition - The Forgotten Question

The Partition of India was a terrible catastrophe. There is no doubt about that. Millions were killed, displaced, thousands were raped, orphaned etc. All this was done in a space of a few months. Mobs frantically killed each other for life, religion, property, identity, revenge and any other reason they could then think of. Even since the call for Direct Action, there was no doubt about a serious religious conflict. What followed was an eventual ethnic cleansing of parts of India of non Muslims and Muslims. How it happened, what happened, how trains full of dead bodies piled up on each side of new borders is well known. Hundreds of books have been written, research over decades have been published. We know all that.

The basic idea of it all was simple - Jinnah believed Hindus and Muslims are two separate nations and the latter should have a distinct political entity for themselves, based on Islam, their faith. To identify this they had to prove one thing. That the All India Muslim Le…

The postman, Megha and I

This is a story that goes way back to 2001 or 2002. I was in the sixth standard. Yes, I do remember it quite vividly. It was funny, painful and a bit out of the ordinary – basically it had all the ingredients that allows a memory to stick a great while longer than others. In the process of my recollection, I may miss out a few pieces here and there, but it will be pretty accurate. Of course, the intention of this exercise is in no way to humiliate anyone else or point out the flaws about others’ actions. I now find it hilarious and I think so would you.
I studied in the Vivekananda Mission School, a private English medium school in Joka, on the outskirts of Kolkata. If you know the location of the Indian Institute of Management, Kolkata, you know the location of my school. I studied there till the twelfth standard. We had many students in our class (sixth). We were divided into several sections, ranging from A to F (not sure if it was F or G). But anyway, I was in section B, the sect…