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

Sri Sri & Homosexuality – Another media hit job in the making

Sri Sri Ravi Shankar (henceforth named as Mr. Shankar) is not new to controversy. Not even with topics like homosexuality. What the event wasAt an event in the Jawaharlal Nehru University, Ravi Shankar gave a talk on the occasion of the Nehru Memorial lecture on 13th November, 2017. One among the audience lamented that he was ill-treated since he was known to be a homosexual. Then Mr. Shankar stated that he needed to accept himself as he was and love knew no boundaries. Let’s see and hear what he said…Let’s quote Mr. Shankar verbatim as reported by some of the newspapers.
You treat yourself better, doesn’t matter how others treat you. You don’t think you are sick or something’s wrong with you. If you stand up, nobody can insult you… But if you feel weak and meek, and if you feel bad about yourself, nobody can make you feel better.’ Indian Express reported this in addition as well. Let me quote it directly here as well.
This is your tendency now. Just acknowledge it and accept it, and kno…

Salesmen of God

Christian evangelicals are similar to parasites[1]. The similarities are simply astounding. Among all predatory religions, Evangelical Christianity has done, by far, the greatest harm to humankind[2]. Like leeches, the Evangelical sucks the lifeblood of an unchristian society till it descends either into chaos and incessant civil conflict or the relegation of the culture to the pages of history(Bowden, 1985). Even in the 21st century this unashamed activity continues(Bhosle, 2003).[3]
Evangelicals usually have a similar methodology when it comes to proselytization. Like parasites, the target is usually one belonging to the most vulnerable section of society. This does not necessarily mean that they try harvesting only the most down trodden of the society(Kelly, 2001). And most certainly, the objective is never the upliftment of the persons involved. The target groups may, for example, belong to ethnic minorities, refugees (both economic and political), caste groups, the poor and the si…

Once again in Mirik

This is a guest post by my mother, Lily Ray Gangopadhyay.

Once again in Mirik after 17 years, I felt very nostalgic because when we used to visit this place, my sons were little kids. Mirik is one of my favorite places. In 17 years it has obviously changed a lot, but still it remains sparsely populated,little crowded and a clean place.



Dad striking a pose (caption by Sarthak) Since this hill station is not at very high altitude one can enjoy a very comfortable stay here and the roads are very inviting.The lake is the main attraction of this place, the Buddha monastery,view point are very nice. I was lucky that the weather was so clear that Mt. Kanchenjunga was clearly seen all the time. Just for a restful walking around the lake, sitting on the grass and gazing at the bushes of pine and fur trees and the peaks of the Himalayas, this is my most preferred destination.











How to go>> one can take a taxi , share taxi or bus from NJP station,Siliguri bus stand or Bugdogra airport.It is l…