15,903,175 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 13341316 (Top 21 by date)
Member 13341316
28-Mar-18 15:37pm
View
i dont really understand those links, and the codes in those links are not vb.net codes. please help me out
Member 13341316
21-Feb-18 9:35am
View
what do you suggest i should do, i have no clue on what to do again
Member 13341316
21-Feb-18 8:35am
View
this was the path i used before but still will not play after compilation
Imports System.IO
Public Class Csv
Dim ResourceFilePath As String
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
SelectPageList.Show()
Me.Close()
End Sub
Private Sub AxWindowsMediaPlayer1_Enter(sender As Object, e As EventArgs) Handles AxWindowsMediaPlayer1.Enter
' Determine the Resource File Path
If System.Diagnostics.Debugger.IsAttached() Then
'Debugging mode
ResourceFilePath = System.IO.Path.GetFullPath(Application.StartupPath & "\..\..\resources\")
Else
'Published mode
ResourceFilePath = Application.StartupPath & "\resources\"
End If
' Specify the mp3 file
AxWindowsMediaPlayer1.URL = ResourceFilePath & "\csv.avi"
' Media Player automatically plays file by default
End Sub
Private Sub Csv_Load(sender As Object, e As EventArgs) Handles MyBase.Load
End Sub
End Class
Member 13341316
22-Sep-17 5:11am
View
Thank you so much God bless you
Member 13341316
21-Sep-17 10:18am
View
but am still getting the same error
Error 1 Expression is not an array or a method, and cannot have an argument list. C:\Users\teejayfpi\Desktop\Dr ajii\WindowsApplication2\Admissionrecord.vb 100 31 WindowsApplication2
Member 13341316
21-Sep-17 9:51am
View
i think this is line 100
Dim PdfTable As New pdf.PdfPTable(AdmissionDataGridView.Columns.Count)
Member 13341316
21-Sep-17 9:15am
View
still on this same code
Imports System.Data.OleDb
Imports iTextSharp.text
Imports iTextSharp.text.pdf
Imports System.IO
Public Class Admissionrecord
Private Sub AdmissionBindingNavigatorSaveItem_Click(sender As Object, e As EventArgs)
Me.Validate()
Me.AdmissionBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.ButhdatabaseDataSet)
End Sub
Private Sub Admissionrecord_Load(sender As Object, e As EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'ButhdatabaseDataSet.Admission' table. You can move, or remove it, as needed.
OpenConnection()
Dim da As OleDbDataAdapter
Dim dt As DataTable
da = New OleDbDataAdapter("SELECT Hospital No,Patient's Name,Date Attended,Reffered By,Consultant,Ward,Date Discharged,Discharged To,Condition On Discharge,Discharge Summary FROM Admission", Connection)
dt = New DataTable
da.Fill(dt)
AdmissionDataGridView.DataSource = dt
AdmissionDataGridView.Refresh()
Connection.Close()
da.Dispose()
SaveFileDialog1.FileName = ""
SaveFileDialog1.Filter = "PDF (*.pdf) |*.pdf"
TextBox1.Text = ""
TextBox2.Text = ""
Me.AdmissionTableAdapter.Fill(Me.ButhdatabaseDataSet.Admission)
End Sub
Private Sub AdmissionDataGridView_CellContentClick(sender As Object, e As DataGridViewCellEventArgs) Handles AdmissionDataGridView.CellContentClick
End Sub
Private Sub BindingNavigatorDeleteItem_Click(sender As Object, e As EventArgs)
AdmissionBindingSource.RemoveCurrent()
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Admission.Show()
Me.Close()
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
End Sub
Private Sub PrintDocument1_PrintPage(sender As Object, e As Printing.PrintPageEventArgs)
Dim reportfont As Font = New Drawing.Font("time new roman", 14)
e.Graphics.DrawString("AdmissionDataGridView", reportfont, Brushes.Chocolate, 100, 100)
e.Graphics.DrawString("Admissionrecord", reportfont, Brushes.Chocolate, 100, 100)
End Sub
Private Sub AdmissionBindingNavigator_RefreshItems(sender As Object, e As EventArgs) Handles AdmissionBindingNavigator.RefreshItems
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
AdmissionBindingSource.RemoveCurrent()
End Sub
Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
SaveFileDialog1.FileName = ""
If SaveFileDialog1.ShowDialog = DialogResult.OK Then
TextBox2.Text = SaveFileDialog1.FileName
End If
Private Sub Button5_Click(sender As Object, e As EventArgs) Handles Button5.Click
Dim paraghraph As New Paragraph
Dim pdfFile As New Document(pageSize.A4, 40, 40, 40, 20)
PdfFile.AddTitle(TextBox1.Text)
Dim write As PdfWriter = PdfWriter.GetInstance(PdfFile, New FileStream(TextBox2.Text, FileMode.Create))
PdfFile.Open()
Dim pTitle As New Font(iTextSharp.Text.Font.FontFamily.TIMES_ROMAN, 14, iTextSharp.Text.Font.BOLD, BaseColor.BLACK)
Dim pTable As New Font(iTextSharp.Text.Font.FontFamily.TIMES_ROMAN, 12, iTextSharp.Text.Font.NORMAL, BaseColor.BLACK)
'NOTE THIS O!!!!
Dim Paragraph = New Paragraph(New Chunk(TextBox1.Text, pTitle))
Paragraph.Alignment = Element.ALIGN_CENTER
Paragraph.SpacingAfter = 5.0F
PdfFile.Add(Paragraph)
Dim PdfTable As New PdfTable(AdmissionDataGridView.Columns.Count)
PdfTable.TotalWidth = 500.0F()
PdfTable.LockedWidth = True
Dim Widths(0 To AdmissionDataGridView.Columns.Count - 1) As Single
For i As Integer = 0 To AdmissionDataGridView.Columns.Count - 1
Widths(i) = 1.0F
Next
PdfTable.SetWidth
Member 13341316
21-Sep-17 9:00am
View
i still get this error too after applying the changes.
Error 1 Expression is not an array or a method, and cannot have an argument list. C:\Users\teejayfpi\Desktop\Dr ajii\WindowsApplication2\Admissionrecord.vb 100 31 WindowsApplication2
Member 13341316
12-Sep-17 10:21am
View
ok
Member 13341316
12-Sep-17 8:14am
View
please kindly help me out thats the link to the project. please download it and help me out
Member 13341316
12-Sep-17 8:13am
View
https://drive.google.com/open?id=0B3TbJAnEMncGTllQbkJuWXl2bnc
Member 13341316
12-Sep-17 8:02am
View
is their a way i can send my project to you
Member 13341316
12-Sep-17 7:54am
View
Operation must use an updateable query, that is what its showing
Member 13341316
12-Sep-17 7:43am
View
Public Class Admission
Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
Dim conn As New OleDb.OleDbConnection
Dim connStr As String = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\Buthdatabase.accdb;Persist Security Info=False"
Dim cmd As New OleDb.OleDbCommand
Try
conn.ConnectionString = connStr
conn.Open()
cmd.Connection = conn
cmd.CommandText = "INSERT INTO Admission ([Hospital No],[Patient's Name],[Date Attended],[Reffered By],[Consultant],[Ward],[Date Discharged],[Discharged To],[Condition On Discharge],[Discharge Summary]) " & _
"VALUES ([@HospitalNo],[@Patient'sName],[@DateAttended],[@RefferedBy],[@Consultant],[@Ward],[@DateDischarged],[@DischargedTo],[@ConditionOnDischarge],[@DischargeSummary]); "
cmd.Parameters.AddWithValue("@HospitalNo", Hospital_NoTextBox.Text)
cmd.Parameters.AddWithValue("@Patient'sName", Patient_s_NameTextBox.Text)
cmd.Parameters.AddWithValue("@DateAttended", DateTime.Text)
cmd.Parameters.AddWithValue("@RefferedBy", Reffered_ByTextBox.Text)
cmd.Parameters.AddWithValue("@Consultant", ConsultantTextBox.Text)
cmd.Parameters.AddWithValue("@Ward", WardTextBox.Text)
cmd.Parameters.AddWithValue("@DateDischarged", DateTime1.Text)
cmd.Parameters.AddWithValue("@DischargedTo", Discharged_ToTextBox.Text)
cmd.Parameters.AddWithValue("@ConditionOnDischarge", Condition_On_DischargeTextBox.Text)
cmd.Parameters.AddWithValue("@DischargeSummary", Discharge_SummaryTextBox.Text)
cmd.ExecuteNonQuery()
conn.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
Member 13341316
17-Aug-17 7:00am
View
but the error started showing after i put the accdb file into folder
Member 13341316
17-Aug-17 6:28am
View
when i tried the second option i get the following errors: Error 6 Unable to open file 'C:\Users\teejayfpi\Desktop\BOWEN DATABASE\WindowsApplication2\WindowsApplication2\obj\Debug\WindowsApplication2.StartUpPage.resources': System Error &H80070002& WindowsApplication2
Error 1 Resource file "StartUpPage.resx" cannot be found. WindowsApplication2
Error 5 -6417: Internal build error ISEXP : error : -6417: Internal build error
Error 4 -6271: File C:\Users\teejayfpi\Desktop\BOWEN DATABASE\WindowsApplication2\WindowsApplication2\bin\Debug\WindowsApplication2.exe not found. An error occurred building the MsiFileHash table record for this file. Verify that the file exists in the specified location. ISEXP : error : -6271: File C:\Users\teejayfpi\Desktop\BOWEN DATABASE\WindowsApplication2\WindowsApplication2\bin\Debug\WindowsApplication2.exe not found. An error occurred building the MsiFileHash table record for this file. Verify that the file exists in the specified location.
Error 3 -6103: Could not find file "C:\Users\teejayfpi\Desktop\BOWEN DATABASE\WindowsApplication2\WindowsApplication2\bin\Debug\WindowsApplication2.exe" ISEXP : error : -6103: Could not find file "C:\Users\teejayfpi\Desktop\BOWEN DATABASE\WindowsApplication2\WindowsApplication2\bin\Debug\WindowsApplication2.exe"
Member 13341316
17-Aug-17 5:30am
View
the file already exist, but i dont know how to give necessary permission. please is their a way i can send the project to you so that you can see
Member 13341316
7-Aug-17 14:06pm
View
thank you so much, but please what will i do to my project, i have like 30 forms in my project, whenever i launch the debug it takes a while before coming up, very slow.
Member 13341316
7-Aug-17 14:05pm
View
thank you so much for your help. i really appreciate it
Member 13341316
7-Aug-17 11:00am
View
but the errors i got earlier was different from this one
Member 13341316
2-Aug-17 6:33am
View
i have done all you suggested but am still getting the same error, please is it possible for me to send the project to you, so you can help me rectify the problem. thanks
Show More