Click here to Skip to main content
15,916,600 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionScreening programmers skills Pin
MadMax201128-Aug-11 22:40
MadMax201128-Aug-11 22:40 
AnswerRe: Screening programmers skills Pin
DaveAuld28-Aug-11 23:58
professionalDaveAuld28-Aug-11 23:58 
AnswerRe: Screening programmers skills Pin
Eddy Vluggen29-Aug-11 6:36
professionalEddy Vluggen29-Aug-11 6:36 
Questionproblems add new record on entity framework Pin
dcode2528-Aug-11 12:32
dcode2528-Aug-11 12:32 
QuestionParsing XML in VB.NET using XMLDocument Pin
Jaggernaut28-Aug-11 12:01
Jaggernaut28-Aug-11 12:01 
AnswerRe: Parsing XML in VB.NET using XMLDocument Pin
Eddy Vluggen29-Aug-11 6:29
professionalEddy Vluggen29-Aug-11 6:29 
GeneralRe: Parsing XML in VB.NET using XMLDocument Pin
Jaggernaut29-Aug-11 23:11
Jaggernaut29-Aug-11 23:11 
QuestionSliding effect issue in VB.NET Pin
Razanust26-Aug-11 17:15
Razanust26-Aug-11 17:15 
I have written a code to give a sliding effect to 5 command buttons. It runs fine with default background but when i change the opacity of the form OR put a picture in the background it behaves slower rather much slower than what it does normally. What might be the issue? Any ideas to resolve it. Here is the code.



VB
Public Class Form1
    Dim slidevar As Integer = -10
    Dim slidevar1 As Integer = -60
    Dim slidevar2 As Integer = -120
    Dim slidevar3 As Integer = -180
    Dim slidevar4 As Integer = -240
    Dim delayvar As Integer = -300
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

        Button1.Location = New Point(-1000, 10)
        Button2.Location = New Point(-1000, 80)
        Button3.Location = New Point(-1000, 120)
        Button4.Location = New Point(-1000, 160)
        Button5.Location = New Point(-1000, 200)
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    End Sub

    Private Sub Button_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button.Click
        slidevar = 0
        slidevar1 = 0
        slidevar2 = 0
        slidevar3 = 0
        slidevar4 = 0

        Button1.Location = New Point(-1000, 10)
        Button2.Location = New Point(-1000, 80)
        Button3.Location = New Point(-1000, 120)
        Button4.Location = New Point(-1000, 160)
        Button5.Location = New Point(-1000, 200)
        Timer1.Enabled = True


    End Sub

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick


        If slidevar < 65 Then
            Button1.Location = New Point(slidevar, 10)
            slidevar += 6
            If slidevar4 > 65 Then
                Timer1.Enabled = False
            End If
        End If


        For delayvar = 1 To 100
        Next

        If slidevar1 < 65 Then
            Button2.Location = New Point(slidevar1, 80)
            slidevar1 += 5
        End If




        For delayvar = 1 To 100
        Next
        If slidevar2 < 65 Then
            Button3.Location = New Point(slidevar2, 120)
            slidevar2 += 4
        End If


        For delayvar = 1 To 100
        Next
        If slidevar3 < 65 Then
            Button4.Location = New Point(slidevar3, 160)
            slidevar3 += 3
        End If


        For delayvar = 1 To 100
        Next
        If slidevar4 < 65 Then
            Button5.Location = New Point(slidevar4, 200)
            slidevar4 += 2
        End If



    End Sub
End Class

AnswerRe: Sliding effect issue in VB.NET Pin
Simon_Whale27-Aug-11 22:10
Simon_Whale27-Aug-11 22:10 
QuestionDataset or Entity Framework ? Pin
progal2225-Aug-11 5:16
progal2225-Aug-11 5:16 
AnswerRe: Dataset or Entity Framework ? Pin
Dave Kreskowiak25-Aug-11 5:21
mveDave Kreskowiak25-Aug-11 5:21 
GeneralRe: Dataset or Entity Framework ? Pin
progal2225-Aug-11 5:41
progal2225-Aug-11 5:41 
GeneralRe: Dataset or Entity Framework ? Pin
Simon_Whale25-Aug-11 5:45
Simon_Whale25-Aug-11 5:45 
GeneralRe: Dataset or Entity Framework ? Pin
progal2225-Aug-11 5:54
progal2225-Aug-11 5:54 
GeneralRe: Dataset or Entity Framework ? Pin
Dave Kreskowiak25-Aug-11 7:08
mveDave Kreskowiak25-Aug-11 7:08 
GeneralRe: Dataset or Entity Framework ? Pin
progal2225-Aug-11 8:41
progal2225-Aug-11 8:41 
GeneralRe: Dataset or Entity Framework ? Pin
Dave Kreskowiak25-Aug-11 9:55
mveDave Kreskowiak25-Aug-11 9:55 
GeneralRe: Dataset or Entity Framework ? Pin
progal2226-Aug-11 4:49
progal2226-Aug-11 4:49 
GeneralRe: Dataset or Entity Framework ? Pin
Dave Kreskowiak26-Aug-11 5:16
mveDave Kreskowiak26-Aug-11 5:16 
QuestionCreating resolution independent applications in VB.NET Pin
Razanust24-Aug-11 8:26
Razanust24-Aug-11 8:26 
AnswerRe: Creating resolution independent applications in VB.NET Pin
MicroVirus24-Aug-11 17:48
MicroVirus24-Aug-11 17:48 
AnswerRe: Creating resolution independent applications in VB.NET Pin
Firo Atrum Ventus24-Aug-11 19:29
Firo Atrum Ventus24-Aug-11 19:29 
QuestionPassing Text from Vb.net to Ms Word Pin
shy boi24-Aug-11 6:12
shy boi24-Aug-11 6:12 
AnswerRe: Passing Text from Vb.net to Ms Word Pin
David Mujica24-Aug-11 6:22
David Mujica24-Aug-11 6:22 
GeneralRe: Passing Text from Vb.net to Ms Word Pin
shy boi24-Aug-11 6:49
shy boi24-Aug-11 6:49 

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.