Click here to Skip to main content
16,015,072 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Thread was being aborted Pin
Dave Kreskowiak8-Jun-05 6:00
mveDave Kreskowiak8-Jun-05 6:00 
GeneralCast from type 'DBNull' to type 'Integer' is not valid. Pin
msogun8-Jun-05 3:07
msogun8-Jun-05 3:07 
GeneralRe: Cast from type 'DBNull' to type 'Integer' is not valid. Pin
Dave Kreskowiak8-Jun-05 5:57
mveDave Kreskowiak8-Jun-05 5:57 
GeneralRe: Cast from type 'DBNull' to type 'Integer' is not valid. Pin
rwestgraham8-Jun-05 11:43
rwestgraham8-Jun-05 11:43 
GeneralPlease help regarding NGen Pin
prashant79_pawar8-Jun-05 3:00
prashant79_pawar8-Jun-05 3:00 
GeneralRe: Please help regarding NGen Pin
Dave Kreskowiak8-Jun-05 5:52
mveDave Kreskowiak8-Jun-05 5:52 
GeneralRe: Please help regarding NGen Pin
Dave Kreskowiak9-Jun-05 2:50
mveDave Kreskowiak9-Jun-05 2:50 
GeneralUrgent - Cant Lock Application Pin
kakomalis8-Jun-05 2:32
kakomalis8-Jun-05 2:32 
Hello,

I have a class in my web application that is used to connect to the database and submit or gain data from my tables.

The class is called dataAccess and is as follow:

Public Class DataAccess

Private Function Connect() As SqlClient.SqlConnection

Try

myConnection = New SqlClient.SqlConnection
myConnection.ConnectionString = myConnectionString
myConnection.Open()

Return myConnection

Catch ex As Exception

'Database Cannot be reached
Return Nothing

End Try

End Function

Protected Friend Function alertDatabase(ByVal myQuery As String) As Boolean

Dim myCommand As SqlClient.SqlCommand

Try

'Application.Lock()

myCommand = New SqlClient.SqlCommand(myQuery, Connect())
myCommand.ExecuteNonQuery()
DisConnect()

'Application.UNLock()

Return True

Catch ex As Exception

DisConnect()
Return False

End Try

End Function

End Class

At Application.Lock() my compiler says that namespace is not declare!!!

how can i solve this problem? Can i declare the application?

Thanks in advance,

Kakomalis
GeneralRe: Urgent - Cant Lock Application Pin
Dave Kreskowiak8-Jun-05 5:50
mveDave Kreskowiak8-Jun-05 5:50 
GeneralMapi controls Pin
smita_roy8-Jun-05 2:29
smita_roy8-Jun-05 2:29 
GeneralRe: Mapi controls Pin
Dave Kreskowiak8-Jun-05 5:39
mveDave Kreskowiak8-Jun-05 5:39 
Generalsp with temptables doesnt work in crystal reports Pin
7-Jun-05 23:40
suss7-Jun-05 23:40 
Generalremoving temporary files after setup Pin
7-Jun-05 23:27
suss7-Jun-05 23:27 
GeneralRe: removing temporary files after setup Pin
rwestgraham8-Jun-05 1:49
rwestgraham8-Jun-05 1:49 
GeneralRe: removing temporary files after setup Pin
Rizwan Bashir8-Jun-05 2:05
Rizwan Bashir8-Jun-05 2:05 
GeneralRe: removing temporary files after setup Pin
rwestgraham8-Jun-05 2:35
rwestgraham8-Jun-05 2:35 
GeneralRe: removing temporary files after setup Pin
Brian Van Beek8-Jun-05 4:15
Brian Van Beek8-Jun-05 4:15 
GeneralRe: removing temporary files after setup Pin
Rizwan Bashir8-Jun-05 22:32
Rizwan Bashir8-Jun-05 22:32 
GeneralRe: removing temporary files after setup Pin
rwestgraham9-Jun-05 0:08
rwestgraham9-Jun-05 0:08 
GeneralRe: removing temporary files after setup Pin
Rizwan Bashir9-Jun-05 1:56
Rizwan Bashir9-Jun-05 1:56 
GeneralTile View Control VB.Net Pin
LesPal7-Jun-05 20:47
LesPal7-Jun-05 20:47 
Questionhow convert an xml file to excel file by using VB6 Pin
YETER737-Jun-05 20:41
YETER737-Jun-05 20:41 
GeneralGet Form's running Pin
Blue_Skye7-Jun-05 19:05
Blue_Skye7-Jun-05 19:05 
GeneralRe: Get Form's running Pin
toxcct7-Jun-05 20:36
toxcct7-Jun-05 20:36 
GeneralRe: Get Form's running Pin
Blue_Skye7-Jun-05 23:13
Blue_Skye7-Jun-05 23:13 

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.