Hack Forums
[.NET] How to make pop-up window for you aplication - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [.NET] How to make pop-up window for you aplication (/showthread.php?tid=3418322)



How to make pop-up window for you aplication - barukoru - Apr 18, 2013

[img]http://img688.imageshack.us/img688/1897/popupd.jpg[/img]

PHP Code

<?php 
Public Class Form1
    Dim intX 
As Integer = Screen.PrimaryScreen.Bounds.Width
    Dim intY 
As Integer = Screen.PrimaryScreen.Bounds.Height
    Dim nowy 
As Integer = 0

    
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
  
Static i As Integer = 10
  
If i <= 210 Then
    Me
.Location = New Point(intX - 220, nowy)
    
nowy -= 10
    i 
+= 10
    Me
.Refresh()
  Else
    
Timer1.Stop()
  
End If

    
End Sub

    
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  Me
.Height = 262
  Me
.Width = 145
  Me
.Location = New Point(intX - 220, intY - 30)
  
nowy = intY - 102
    End Sub

    
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  MsgBox
("Credit to BaruKoru", MsgBoxStyle.Information, "Credit")
  
Process.Start("https://hackforums.net/member.php?action=profile&uid=1749534")
    
End Sub

    
Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click
  Close
()
    
End Sub

    
Private Sub PictureBox1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles PictureBox1.Click

    End Sub
End 
Class 

Timer1 Enabled = True

Download source: http://www.mediafire.com/?mdqc2969q45je1k
Virus scan: https://www.virustotal.com/pl/file/4c6499c540956dc98e1c66c1be584579026480008e449d981d0aafa7cccfcb86/analysis/1366322969/


* - ovac - Apr 21, 2013

Good tutorial, thanks for the share.


* - Hyptonix - Apr 22, 2013

Interesting concept. Thanks for the share. Now we should see some crazy notifications in ever app. :)