Click here to Skip to main content
15,920,438 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Help with "OutOfMemoryException" Pin
Christian Graus29-Apr-08 19:37
protectorChristian Graus29-Apr-08 19:37 
GeneralRe: Help with "OutOfMemoryException" Pin
Juan Patrick29-Apr-08 20:17
Juan Patrick29-Apr-08 20:17 
GeneralRe: Help with "OutOfMemoryException" Pin
Christian Graus29-Apr-08 20:33
protectorChristian Graus29-Apr-08 20:33 
GeneralRe: Help with "OutOfMemoryException" Pin
Guffa29-Apr-08 23:03
Guffa29-Apr-08 23:03 
GeneralRe: Help with "OutOfMemoryException" Pin
Juan Patrick30-Apr-08 13:22
Juan Patrick30-Apr-08 13:22 
GeneralRe: Help with "OutOfMemoryException" Pin
Christian Graus30-Apr-08 13:36
protectorChristian Graus30-Apr-08 13:36 
QuestionWindows Service not working Pin
svanwass29-Apr-08 15:54
svanwass29-Apr-08 15:54 
QuestionSQL help [modified] Pin
bapu288929-Apr-08 9:41
bapu288929-Apr-08 9:41 
hello

I have just started learning sql 2005 and i have create small table student with 3 columns studentID,firstname and lastname it's works fine i can insert,delete without any problem but when i delete any entry it dosent refresh the page i mean it delete record from sql database but it shows deleted entry in text boxes but if i close application and restart it then it dosent show deleted entry any help this is the code for delete


Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click<br />
Dim SQL As String = Nothing<br />
SQL = "DELETE FROM Student WHERE StudentID = " & TextBox3.Text<br />
If MessageBox.Show("Are you sure you want to delete", "Delete", MessageBoxButtons.YesNo, MessageBoxIcon.Exclamation) = MsgBoxResult.Yes Then<br />
conStudent = New Data.SqlClient.SqlConnection("Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Projects\SQL DataApplication\SQL DataApplication\Student.mdf;Integrated Security=True;User Instance=True")<br />
conStudent.Open()<br />
Try<br />
commStudent = New SqlClient.SqlCommand(SQL, conStudent)<br />
commStudent.ExecuteNonQuery()<br />
<br />
MsgBox("Item deleted", MsgBoxStyle.Information)<br />
Catch ex As Exception<br />
MsgBox(ex.Message)<br />
End Try<br />
conStudent.Close()<br />
conStudent.Dispose()<br />
Else<br />
Exit Sub<br />
End If<br />
End Sub


any help Confused | :confused: Sleepy | :zzz:

waiting for your kind rep.
have a nice time

thanks

modified on Tuesday, April 29, 2008 4:00 PM

AnswerRe: SQL help Pin
Ray Cassick29-Apr-08 11:54
Ray Cassick29-Apr-08 11:54 
QuestionRe: SQL help Pin
bapu288930-Apr-08 8:03
bapu288930-Apr-08 8:03 
AnswerRe: SQL help Pin
Ray Cassick30-Apr-08 8:37
Ray Cassick30-Apr-08 8:37 
QuestionRe: SQL help Pin
bapu28891-May-08 8:32
bapu28891-May-08 8:32 
AnswerRe: SQL help Pin
Ray Cassick1-May-08 11:02
Ray Cassick1-May-08 11:02 
AnswerRe: SQL help Pin
bapu28892-May-08 9:29
bapu28892-May-08 9:29 
GeneralRe: SQL help Pin
Ray Cassick2-May-08 9:37
Ray Cassick2-May-08 9:37 
GeneralSending text to the printer Pin
MikeMarq29-Apr-08 8:40
MikeMarq29-Apr-08 8:40 
AnswerRe: Sending text to the printer Pin
Smithers-Jones29-Apr-08 8:53
Smithers-Jones29-Apr-08 8:53 
GeneralRe: Sending text to the printer Pin
MikeMarq29-Apr-08 15:40
MikeMarq29-Apr-08 15:40 
AnswerRe: Sending text to the printer Pin
Smithers-Jones29-Apr-08 21:33
Smithers-Jones29-Apr-08 21:33 
GeneralRe: Sending text to the printer Pin
MikeMarq30-Apr-08 2:10
MikeMarq30-Apr-08 2:10 
AnswerRe: Sending text to the printer Pin
Smithers-Jones30-Apr-08 3:04
Smithers-Jones30-Apr-08 3:04 
QuestionHow to write a help-assistant like office Assistant? Pin
MaWeRic29-Apr-08 4:59
MaWeRic29-Apr-08 4:59 
AnswerRe: How to write a help-assistant like office Assistant? Pin
Zaegra29-Apr-08 8:41
Zaegra29-Apr-08 8:41 
GeneralRe: How to write a help-assistant like office Assistant? Pin
MaWeRic4-May-08 22:47
MaWeRic4-May-08 22:47 
Questionreceive file names sent to your application Pin
Member 467598629-Apr-08 2:29
Member 467598629-Apr-08 2:29 

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.