16,004,647 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 .NET 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 Merscy (Top 10 by date)
Merscy
21-Aug-20 1:44am
View
Yeah sorry, I forgot to tell. It does have a binding with access.
Merscy
11-Aug-20 18:22pm
View
Hey there,
Thank you. I think all is good but there is an error within the timer, which I'm guessing it's because I did those coding before I did all this. What do you think I should do about it?
Here is the code:
Private Sub tmrMonitor_Tick(sender As Object, e As EventArgs) Handles tmrMonitor.Tick
Dim dt As DataTable = frmViewAllData.GetdgvUserData
tmrMonitor.Stop()
Dim a As Integer
If counter < dgvUserData.RowCount Then
Integer.TryParse(dgvUserData.Rows(counter).Cells(0).Value, a)
lblPulseValue.Text = a.ToString()
If (a > max) Then
MessageBox.Show("High")
ElseIf (a < min) Then
tmrMonitor.Stop()
MessageBox.Show("Low")
End If
tmrMonitor.Start()
counter = counter + 1
chrtDaily.Series("Beats Per Minute").Points.AddY(a.ToString)
Else
tmrMonitor.Stop()
End If
End Sub
These lines were the ones with the error:
If counter < dgvUserData.RowCount Then
Integer.TryParse(dgvUserData.Rows(counter).Cells(0).Value, a)
The error is with the dgvUserData ones and I tried replacing them with dt but that didn't help as well...
Merscy
11-Aug-20 8:18am
View
oh yes, I get you. In that case, the second form is frmViewAllData. As you need to press a button in frmMonitorHeartRate to get to frmViewAllData, and in the first form (frmMonitorHeartRate) I did:
Private Sub btnViewAllData_Click(sender As Object, e As EventArgs) Handles btnViewAllData.Click
frmViewAllData.Show()
End Sub
However, just so you know, I also do have a main menu form which just takes the user to both frmMonitorHeartRate and frmViewAllData.
Merscy
11-Aug-20 7:17am
View
Oh yes, I understand what you mean but I can't find anything like that. Sorry, I feel so dumb, was I meant to implement that in or is it meant to already be there? Because if I was meant to implement that in, it would give me an error and if it was meant to be already there well then I couldn't find it...
Merscy
11-Aug-20 6:32am
View
Wait are these things that you talk about in visual basics?? I have a feeling you're talking in C# and they may be different in that aspect...
Merscy
11-Aug-20 6:06am
View
umm, I'm not really sure what you mean, but the data table (dgvUserData) from the frmViewAllData form receives the user input from the frmMonitorHeartRate form...
Merscy
11-Aug-20 4:41am
View
Hi there,
Yes, I understand and sorry about that. You are right and I wasn't trying to be rude or anything and I know it may be frustrating but I've tried explaining why they didn't work for me in OG's reply and if you could please help me out with that, that would be great. I'm pretty sure I tried every one of those but it kept on giving errors with the recognising part I think... Also thanks for your time already as well...
Merscy
11-Aug-20 4:28am
View
Hi there,
sorry I wasn't trying to be rude or anything. Yes, you're right, the problem is with me as I think I could not tell which one related to mine and how I should implement them. I'm sorry this is probably frustrating, but if it's possible could you please tell me which one is which?
So pretty much, the frmMonitorHeartRate is the form that receives all the user input and the frmViewAllData is the form that has a dgvUserData which is a data table that shows all of the data that the user has entered. However, going back to frmMonitorHeartRate, there is a timer and a graph in there and I would like all the scores from the data table (dgvUserData) in the other form to be transferred to the timer in frmMonitorHeartRate. Once I manage to do that I've pretty much done the coding part for the timer to transfer the data to the chart, however, I'm not sure within the timer if I should mention dgvUserData (the name of the data table from the other form) or not. So with what I tried it kept on giving errors with when I mentioned the object like the timer or the dgvUserData or the parts where you give the codes about the form.
If you could help me out with figuring those out that would be great!!
I'm sorry for being a pain and thank you very much for your time already though. I wish I knew if there was actually a way to actually show you what's my problem at the start.
Merscy
10-Aug-20 20:55pm
View
Hi there,
I tried those but they didn't work
Merscy
10-Aug-20 20:54pm
View
Hi there,
I tried it but it didn't work
Show More