Click here to Skip to main content
15,894,646 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Microsoft.DirectX.Direct3DX Pin
Dave Kreskowiak5-Apr-08 13:43
mveDave Kreskowiak5-Apr-08 13:43 
GeneralUnable to show data in datagridview Pin
hisuman1004-Apr-08 20:21
hisuman1004-Apr-08 20:21 
GeneralRe: Unable to show data in datagridview Pin
Rupesh Kumar Swami4-Apr-08 20:53
Rupesh Kumar Swami4-Apr-08 20:53 
GeneralRe: Unable to show data in datagridview Pin
hisuman1004-Apr-08 21:30
hisuman1004-Apr-08 21:30 
GeneralRe: Unable to show data in datagridview Pin
Rupesh Kumar Swami4-Apr-08 22:17
Rupesh Kumar Swami4-Apr-08 22:17 
AnswerRe: Unable to show data in datagridview Pin
MBCDC4-Apr-08 23:00
MBCDC4-Apr-08 23:00 
GeneralPop Up Form Pin
Socheat.Net4-Apr-08 18:52
Socheat.Net4-Apr-08 18:52 
GeneralRe: Pop Up Form Pin
Rupesh Kumar Swami4-Apr-08 20:49
Rupesh Kumar Swami4-Apr-08 20:49 
hi,
if you search code project, then you can find article about popup form. I already read this article which is in C# but i forget the web address. However i convert it in vb.net .So converted code is following
import statement are following

Imports System
Imports System.Drawing
Imports System.Collections
Imports System.ComponentModel
Imports System.Windows.Forms
Imports System.Data



private variable declaration statement and other sub procedure
<br />
Public Class PopUpForm<br />
    <br />
	Dim X As Integer = 0<br />
    Dim Y As Integer = 0	<br />
    Private Sub PopUpForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load<br />
        '*The Screen.GetWorkingArea(control) will provide you the working<br />
        'area of a screen without the system tray area. The working area <br />
        'depends on the resolution of your monitor*/<br />
<br />
        X = Screen.GetWorkingArea(Me).Width  ' This line gives the width of working area<br />
        Y = Screen.GetWorkingArea(Me).Height ' This line gives the width of working area			<br />
        Me.Location = New Point(X - Me.Width, Y + Me.Height)  ' This line sets the initial location of the form<br />
<br />
        Timer1.Enabled = True<br />
        Timer1.Start()  ' We'll start the timer which handles the opening of form.<br />
    End Sub<br />
<br />
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick<br />
        '    The logic is that, first we will open the form below<br />
        ' taskbar at specified location and then in Timer's TICK event <br />
        '   we() 'll just bring the form above taskbar to have the animated <br />
        ' effect.<br />
        Dim i As Integer<br />
<br />
        i = Me.Location.Y      ' First we will know form's Y-axis location<br />
        ' which will act as upper limit for form's location<br />
        If (i > Y - Me.Height) Then<br />
<br />
            Me.Location = New Point(X - Me.Width, i - 8) '	 Here we just change the location<br />
            '	of form by 8 pixels(i-8)<br />
<br />
        Else   ' else we stop Timer1 and start Timer3 which holds the form for some time<br />
<br />
            Timer1.Stop()<br />
            Timer1.Enabled = False<br />
<br />
            Timer3.Start()<br />
            Timer3.Enabled = True<br />
        End If<br />
    End Sub<br />
<br />
    Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick<br />
<br />
        'Here the logic is same as opening the form, only location value of Y-axis<br />
        'is increased, so that form slowly hides behind Task Bar.<br />
<br />
        Timer3.Stop()<br />
        Timer3.Enabled = False<br />
        Dim i As Integer<br />
        i = Me.Location.Y<br />
        If (i < Y) Then<br />
            Me.Location = New Point(X - Me.Width, i + 8)<br />
        Else<br />
            Timer2.Stop()<br />
            Timer2.Enabled = False<br />
            Me.Close()<br />
        End If<br />
    End Sub<br />
<br />
    Private Sub Timer3_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer3.Tick<br />
        Timer2.Start()          ' Here we start Timer2 which handles closing of form<br />
        Timer2.Enabled = True<br />
    End Sub<br />
End Class


hope this helps

Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)

My Company

AnswerRe: Pop Up Form Pin
Rajesh Anuhya4-Apr-08 23:36
professionalRajesh Anuhya4-Apr-08 23:36 
GeneralRe: Pop Up Form Pin
Dave Kreskowiak5-Apr-08 13:37
mveDave Kreskowiak5-Apr-08 13:37 
GeneralRe: Pop Up Form Pin
Mycroft Holmes5-Apr-08 17:53
professionalMycroft Holmes5-Apr-08 17:53 
QuestionHow to design dataTables or DataSets for forms on different panels Pin
AAGTHosting4-Apr-08 16:23
AAGTHosting4-Apr-08 16:23 
AnswerRe: How to design dataTables or DataSets for forms on different panels Pin
Ashish Sehajpal4-Apr-08 23:48
Ashish Sehajpal4-Apr-08 23:48 
GeneralRe: How to design dataTables or DataSets for forms on different panels Pin
Mycroft Holmes5-Apr-08 17:50
professionalMycroft Holmes5-Apr-08 17:50 
QuestionHow Can i start? Pin
hassandot4-Apr-08 9:17
hassandot4-Apr-08 9:17 
AnswerRe: How Can i start? Pin
Dave Kreskowiak4-Apr-08 9:39
mveDave Kreskowiak4-Apr-08 9:39 
GeneralRe: How Can i start? Pin
hassanasp4-Apr-08 10:45
hassanasp4-Apr-08 10:45 
GeneralRe: How Can i start? Pin
Luc Pattyn4-Apr-08 12:07
sitebuilderLuc Pattyn4-Apr-08 12:07 
GeneralSaving Data Pin
tibmark4-Apr-08 7:23
tibmark4-Apr-08 7:23 
GeneralRe: Saving Data Pin
Dave Kreskowiak4-Apr-08 8:12
mveDave Kreskowiak4-Apr-08 8:12 
GeneralRe: Saving Data Pin
tibmark4-Apr-08 8:19
tibmark4-Apr-08 8:19 
GeneralRe: Saving Data Pin
Dave Kreskowiak4-Apr-08 9:36
mveDave Kreskowiak4-Apr-08 9:36 
GeneralRe: Saving Data Pin
jzonthemtn4-Apr-08 8:33
jzonthemtn4-Apr-08 8:33 
GeneralRe: Saving Data Pin
tibmark4-Apr-08 8:40
tibmark4-Apr-08 8:40 
GeneralRe: Saving Data Pin
A Wong4-Apr-08 8:57
A Wong4-Apr-08 8:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.