Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. [Message Deleted] [modified]

[Message Deleted] [modified]

Scheduled Pinned Locked Moved ASP.NET
csharp
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JAYRAJ GIRI
    wrote on last edited by
    #1

    Public Class Form1 Dim flag As Integer = 1 Dim tem, j As Integer Private Sub timer(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Dim path As String = "C:\C#\LED\off.gif" Dim path1 As String = "C:\C#\LED\on.gif" Me.PictureBox1.Image = Image.FromFile(path) If j <= Val(Me.TextBox2.Text) Then If flag = 1 Then Me.PictureBox1.Image = Image.FromFile(path) flag = 0 ElseIf (flag = 0) Then Me.PictureBox1.Image = Image.FromFile(path1) flag = 1 End If j = j + 1 If j = Me.TextBox2.Text Then Timer1.Interval = Me.TextBox3.Text * 1000 j = 0 End If End If End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click tem = Math.Floor(Val(Me.TextBox1.Text / Me.TextBox2.Text)) Timer1.Enabled = True Timer1.Interval = tem * 1000 End Sub End Class

    modified on Monday, March 9, 2009 3:33 PM

    A 1 Reply Last reply
    0
    • J JAYRAJ GIRI

      Public Class Form1 Dim flag As Integer = 1 Dim tem, j As Integer Private Sub timer(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Dim path As String = "C:\C#\LED\off.gif" Dim path1 As String = "C:\C#\LED\on.gif" Me.PictureBox1.Image = Image.FromFile(path) If j <= Val(Me.TextBox2.Text) Then If flag = 1 Then Me.PictureBox1.Image = Image.FromFile(path) flag = 0 ElseIf (flag = 0) Then Me.PictureBox1.Image = Image.FromFile(path1) flag = 1 End If j = j + 1 If j = Me.TextBox2.Text Then Timer1.Interval = Me.TextBox3.Text * 1000 j = 0 End If End If End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click tem = Math.Floor(Val(Me.TextBox1.Text / Me.TextBox2.Text)) Timer1.Enabled = True Timer1.Interval = tem * 1000 End Sub End Class

      modified on Monday, March 9, 2009 3:33 PM

      A Offline
      A Offline
      ABitSmart
      wrote on last edited by
      #2

      JAS GIRI wrote:

      How to remove Browser comparability

      What do you mean ? Can you reframe your question ?

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups