So what should I do ?

Hey guys,now I have a listbox I need to add in it name of day and time and the program read each item in listbox auto and if the first item = my pc day and time show message and so on...
But I got dat error when the program reach the last item give me that error
And when I click on start button it doesnot wait until the first item = my pc day and time it go on the each item until reach the last give me that error

But It work in visual basic 100%

Any help in my codes

My codes:

In button add items to listbox code:

Listbox5.items.add(textbox1.text + textbox2.text)

in Button1 start timer code:


in Timer1 code:

if (listbox5.text="ddd") +"done")
Listbox.selectedindex +=1

Hey,Guys now I need to know How to run an SQL stored procedure from sql through C# at a specific time? Any help please? ...

Hey, now I if I need to make a Security program for games by #c there are onther thing I should learn it behind #c?

I need the program show data from database called _Char of column called CurLevel to textbox

 mysqlconn = New SqlConnection
        mysqlconn.ConnectionString = "Data Source=" + txtServerName.Text + ";initial catalog=" + txtdatabasename.Text + ";initial catalog=" + txtshardacc.Text + ";user id=" + textusername.Text + ";password=" + txtpassword.Text
        Dim queryresult As Integer


            command = New SqlCommand("select COUNT (*) as numRows from _Char Where CharName16='" & TextBox40.Text & "'", mysqlconn)
            queryresult = command.ExecuteScalar

            If queryresult = 0 Then
                MsgBox("charactername not found ", MsgBoxStyle.Critical, "Error")
                MsgBox("(1) Username Found " & TextBox40.Text, MsgBoxStyle.Information, "Done")
                TextBox29.Enabled = True
                TextBox30.Enabled = True
                TextBox31.Enabled = True
                TextBox32.Enabled = True
                TextBox32.Enabled = True
                TextBox33.Enabled = True
                TextBox34.Enabled = True
                TextBox35.Enabled = True
                TextBox36.Enabled = True
                TextBox37.Enabled = True
                TextBox38.Enabled = True
                TextBox39.Enabled = True
                    Dim reader As SqlDataReader

                    reader = command.ExecuteReader
                    If reader.HasRows Then
                        TextBox39.text = reader.Item("Curlevel")
                    End If

                Catch ex As Exception
                End Try

            End If
        Catch ex As Exception
        End Try
    End Sub

Hey,now i need to Replace this text "Kelvin.1337" From textbox1.text....By meaning when i write into textbox1.text a word i need to change Kelvin.1337 to the word which i wrote it into textbox1.text

photo link:

but i got problem when i write the word it delete all text and appear the word which i wrote it into textbox1.text

i need to keep all words in textbox2 execpt the word which i changed it from textbox1.text

 TextBox2.Text = TextBox1.Text.Replace("Kelvin.1337", TextBox1.Text

I will found erros after convert or not?

Hey I need to know if I can full vb project to #c? If I can how I can do it

Hey I have a problem with execute query into sql I got an error I want to add query like sql into sql can I put query by click on new query then i execute it I need to make the same idea but without open sql I need to execute it by program by add the query into textbox called query.text then execute it

Image link error code..

But your above codes where I can put textbox1 place..

Good comment you are right.thnx alot for.your help..

Bro I don't understand iam beg.. so can you edit the full code for me ... just take it copy and paste in prog... and I will understand what you say.. I need to insert into sk_silk jid and silk_own .. but befot this progress I need select jid by username in table tb_user by textbox1..

I have send you the link... photo with error above..

Ok igot wrror when I put your code can you solve..

Can you explain more? What Val mean?

Santanu.Das commented: error for different cause -1

Hey Guys i need to copy value from table as integer to onther table in same data base
like.. My program is to Add Silk Or Money into database by the user write the username into textbox1 and the amount of silk or money into textbox2 and the record need a value from onther database i need to find that value from Username..
need JID Which From Username can get his JID then insert into Direct
i need to Get JID From StrUSerID Then Put the the JID Into onther table by write the StrUserID into textbox1 and amount silk or money into textbox2
Click Here
then put it here
Click Here
but i got dat error
Click Here

insert query code:

Query = "insert into SK_Silk (JID,silk_own) Values ('" & TextBox1.Text & "' , '" & TextBox2.Text & "') Select JID From TB_User  where JID='" & TextBox1.Text & "'"

full code:

Imports System.Data.SqlClient
Public Class addsilk
    Public mysqlconn As SqlConnection
    Public command As SqlCommand

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        mysqlconn = New SqlConnection
        mysqlconn.ConnectionString = "Data Source=" + Form2.txtServerName.Text + ";initial catalog=" + Form2.txtdatabasename.Text + ";user id=" + Form2.textusername.Text + ";password=" + Form2.txtpassword.Text

        Dim reader As SqlDataReader


            Dim Query As String

            Query = "insert into SK_Silk (JID,silk_own) Values ('" & TextBox1.Text & "' , '" & TextBox2.Text & "') Select JID From TB_User  where JID='" & TextBox1.Text & "'"

            command = New SqlCommand(Query, mysqlconn)
            reader = command.ExecuteReader
            ' NotifyIcon1.ShowBalloonTip(1000, "Information", ...