Jx_Man 987 Nearly a Senior Poster Featured Poster

hi suhana... are your problem is solved?

Jx_Man 987 Nearly a Senior Poster Featured Poster

hmm.. you solved it nice. don't forget to mark this solved.

Jx_Man 987 Nearly a Senior Poster Featured Poster

i just confused when see his code, he declare input and start but didn't used it to call form.

Jx_Man 987 Nearly a Senior Poster Featured Poster

use this following code :
this code needed 1 datagrid to show data.

in Module :
Imports System.Data
Imports System.Data.SqlClient

Module Koneksi
    Public conn As SqlConnection
    Public Function GetConnect()
              
        conn = New SqlConnection("server = YourServerName;database = YourDatabaseName;Trusted_Connection = yes")
        Return conn
    End Function
End Module

procedure to show data :

Private Sub Show_Data()
        Dim conn As SqlConnection
        Dim cmdStudent As New SqlCommand
        Dim daStudent As New SqlDataAdapter
        Dim dsStudent As New DataSet
        Dim dtStudent As New DataTable

        ' Binding Data from Table Student
        conn = GetConnect()
            Try
                cmdStudent = conn.CreateCommand
                cmdStudent.CommandText = "SELECT * FROM Student"
                daStudent.SelectCommand = cmdStudent
                daStudent.Fill(dsStudent, "Student")
                dgStudent.DataSource = dsStudent
                dgStudent.DataMember = "Student"
                dgStudent.ReadOnly = True
            Catch ex As Exception
                MsgBox("Error: " & ex.Source & ": " & ex.Message, MsgBoxStyle.OKOnly, "Connection Error !!")
        End Try  
End Sub

in form, in form load event or other event :

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
       Show_Data()
End Sub
Jx_Man 987 Nearly a Senior Poster Featured Poster

what was appear and not appear in your list?
if u want to disable check box :

Check2.Enabled = False
Jx_Man 987 Nearly a Senior Poster Featured Poster

try this code, message will show when you click on x button.

Private Sub Form_Unload(Cancel As Integer)
If MsgBox("Are u sure want to quit?", 4 + 32, "Exit Confirm") = 7 Then
    Cancel = True
Else
    End
End If
End Sub
Jx_Man 987 Nearly a Senior Poster Featured Poster

he was tried it suganzeni...

Jx_Man 987 Nearly a Senior Poster Featured Poster

Hi Susie ... Welcome to Daniweb Friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Hi.. Welcome to Daniweb Friend :)
i suggest to start with vb.net...

Jx_Man 987 Nearly a Senior Poster Featured Poster

Hi.. Welcome to Daniweb Friend :)
u should post your problem on current forum..
see for tech talk...

Jx_Man 987 Nearly a Senior Poster Featured Poster

why u didn't use start and input?that it work when you used form1.show or form2.close?
i think it did not worked.

Jx_Man 987 Nearly a Senior Poster Featured Poster

answered by shouvik. try it friend.

Jx_Man 987 Nearly a Senior Poster Featured Poster

it run good in sp1. i use it in sp1

Jx_Man 987 Nearly a Senior Poster Featured Poster

Hi... welcome to Daniweb Friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

see this palindrome program :

Palindrome.zip

don't forget to give feedback.

Sawamura commented: great +1
Neji commented: peace of code +1
Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome to Daniweb Friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

try this recovery :

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
         Form2.Show()
        Me.Dispose(False)
End Sub
Jx_Man 987 Nearly a Senior Poster Featured Poster

nick already answer your question. go to registry and delete the current file there.
or you can use msconfig manager.
go to start->run and type 'msconfig'.
click on startup tab then enable the files on list.

Jx_Man 987 Nearly a Senior Poster Featured Poster

i m not sure u can do this. if you use variable to accommodate form name there are no function to call form. your variable still a string.

Jx_Man 987 Nearly a Senior Poster Featured Poster

use index or field from recordset. compare the data from recordset with input in textbox.

Jx_Man 987 Nearly a Senior Poster Featured Poster

you should change the password friend :)
and use the facility in this forum to attach your files as shouvik said. many people will helps you here.

Jx_Man 987 Nearly a Senior Poster Featured Poster

why he must use openFileDialog???
he want to show form with variable that it contain name of destination form. he used listview as menu to select form name to open.

Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome to Daniweb Friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Hi SHelly... Welcome to Daniweb Friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Hi... Welcome to Daniweb Friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Hi... Welcome to Daniweb Friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Hi... Welcome to Daniweb Friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Hi Dave... Welcome to Daniweb Friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

what u means kpoorna??

Jx_Man 987 Nearly a Senior Poster Featured Poster

Hi Mattew... welcome To Daniweb Friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

without database?
if the form / project is closed the password in other form will gone.

Jx_Man 987 Nearly a Senior Poster Featured Poster

post the code how far you are... :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

it is solved??

Jx_Man 987 Nearly a Senior Poster Featured Poster

do some googling :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

try this following code, this code only allowed number entered on textbox :

Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress
If (Microsoft.VisualBasic.Asc(e.KeyChar) < 48) _
               Or (Microsoft.VisualBasic.Asc(e.KeyChar) > 57) Then
            e.Handled = True
        End If
        If (Microsoft.VisualBasic.Asc(e.KeyChar) = 8) Then
            e.Handled = False
        End If
end sub
Jx_Man 987 Nearly a Senior Poster Featured Poster

end

Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome to Daniweb friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome to Daniweb friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome to Daniweb friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome to Daniweb friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome to Daniweb friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome to Daniweb friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome to Daniweb friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Hi Chris... Welcome to Daniweb friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome to Daniweb friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome to DaniWeb Friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome to DaniWeb Friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome to DaniWeb Friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

Welcome to DaniWeb Friend :)

Jx_Man 987 Nearly a Senior Poster Featured Poster

hmm. specify more...
what video (mpg,flash,avi)?what control in use (i.e shockwave flash,mediaplayer or other controls)