Using cn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\DB\E_Ensemb.mdb") check this remove only the ; from the end
Dinesh Vitharana
Posts
-
.dbf files -
.dbf files[Message Deleted]
-
problem with assignmentPublic Class Form1 Dim g As Graphics Dim db As Boolean Dim x As Integer = 100 Dim y As Integer = 100 Dim w As Integer = 150 Dim h As Integer = 150 Private Sub Form1_MouseWheel(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseWheel Console.WriteLine(e.Delta.ToString) If (e.Delta > 0) Then Console.WriteLine("in zoomin") w = IIf((w * (e.Delta / 100)) < 3, 3, (w * (e.Delta / 100))) 'w = w * (e.Delta / 100) Console.WriteLine("inside zoomin e.delta " & e.Delta.ToString) Console.WriteLine("w" & w) h = IIf((h * (e.Delta / 100)) < 3, 3, (h * (e.Delta / 100))) 'h = h * (e.Delta / 100) End If If (e.Delta < 0) Then Console.WriteLine("zoomout") w = w / ((e.Delta * -1) / 100) h = h / ((e.Delta * -1 / 100)) End If Console.WriteLine("w" & w) Me.Refresh() End Sub Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint e.Graphics.DrawRectangle(Pens.Black, x, y, w, h) End Sub End Class dinvit83
-
An existing connection was forcibly closed by the remote host? [modified] -
Encrypt App.configHi All, I am using Enteprise Library Data Access Application Block (v 3.0 April 2007) in my application.I want to encrypt the App.config file. I have tried the bulit-in RSA and Data encryption metods in Data Access Application block. It seemed that the user account who creates the encryption key only has the key to decrypt it. That means it's machine dependant. Eg. If i encrypt the config file in my machine my collegue can't decrypt it in his machine. Is there any way that we can encrypt the file using a public key which is accessible to the other developers in the team? Can anybody suggest me a way to overcome this issue? Thanx in advance, Dinesh