jugosoft 25 Junior Poster in Training

1. You could have a collumn which stores SessionID. When user logs in from another location, it replaces the SessionID and he is logged off from old location.
2. If I was doing that with timer in ASP.NET application, application would got crazy.
3. On each user action you can call function to check if user is logged.

jugosoft 25 Junior Poster in Training

Use DataGrid.

vedro-compota commented: ++++++++++++ +1
jugosoft 25 Junior Poster in Training

- I think that converting from ASP page to HTML can be done only when application is runed from server.

- I suggest you to use some other element, try replacing 'iframe' with 'div', 'table' or other element that could be replace for 'iframe'.

jugosoft 25 Junior Poster in Training

Global variable is variable that is visible to all methods in class. In VB they can be visible to all classes.

http://en.wikipedia.org/wiki/Global_variable

vedro-compota commented: +++++++ +1
jugosoft 25 Junior Poster in Training

I think he wanted to know how to create menu. Not DropDownList control.

Check following links for DropDownList menu:
- http://cssmenumaker.com/drop_down_css_menu.php
- http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=css+menu

kvprajapati commented: Thanks! +11
jugosoft 25 Junior Poster in Training

You can use 'AJAX Control Toolkit'. There is a SlideShow control. But if you want to use Javascript(which is the harder way) you could search Google. I suggest you to use AJAX Toolkit.

jugosoft 25 Junior Poster in Training

You can, like you pass values to for example SqlConnection constructor.

vedro-compota commented: ++++ +1
jugosoft 25 Junior Poster in Training

You can use the following code. Code if for MS SQL Server, but if use for example Access database change "SqlConnection" to "OleDbConnection" or "OdbcConnection".

Private Function count() As Long
   SqlConnection connection = New SqlConnection("connectionString")
   SqlCommand command = New SqlCommand("SELECT COUNT(*) FROM tableName WHERE condition = ''",connection)
   SqlDataReader reader

   Long result = 0

   Try
      connection.Open()
      reader = command.ExecuteReader(CommandBehaviour.Default)

      If (reader .Read()) Then
         result = reader.GetValue(0)
      Else
         result = 0
      End If

      connection.Close()
   Catch ex As Exception
      ' ERROR
   End Try

   Return result;
End Function
kvprajapati commented: Solved! Close both, reader & connection +11
jugosoft 25 Junior Poster in Training

Thanks, now it works. Problem in mine code was that is saved new B coordinates instead of old. Instead Exit Sub you need to put:

A.X = e.X
B.X = e.X

Last time I saved all the coordinates but it won't work. Now works!!! Again, thanks!