Click here to Skip to main content
15,886,110 members
Home / Discussions / C#
   

C#

 
QuestionHow to get a list of all drive letters including mapped network drives Pin
robwm112-Jan-15 9:28
robwm112-Jan-15 9:28 
AnswerRe: How to get a list of all drive letters including mapped network drives Pin
OriginalGriff12-Jan-15 21:57
mveOriginalGriff12-Jan-15 21:57 
GeneralRe: How to get a list of all drive letters including mapped network drives Pin
robwm113-Jan-15 5:04
robwm113-Jan-15 5:04 
GeneralRe: How to get a list of all drive letters including mapped network drives Pin
OriginalGriff13-Jan-15 5:06
mveOriginalGriff13-Jan-15 5:06 
GeneralRe: How to get a list of all drive letters including mapped network drives Pin
robwm113-Jan-15 8:25
robwm113-Jan-15 8:25 
GeneralRe: How to get a list of all drive letters including mapped network drives Pin
OriginalGriff13-Jan-15 8:37
mveOriginalGriff13-Jan-15 8:37 
QuestionHow to plot data into the graph which is receive from com port Pin
Member 1129798112-Jan-15 3:40
Member 1129798112-Jan-15 3:40 
AnswerRe: How to plot data into the graph which is receive from com port Pin
Afzaal Ahmad Zeeshan12-Jan-15 4:24
professionalAfzaal Ahmad Zeeshan12-Jan-15 4:24 
This is a broad concept and might require me to forward you to some other resources to learn more on these facilities. For example, the first thing is creating charts is itself a broad thing to do and mostly you might require a third-party library to create charts in your C# application. You forgot to mention which framework you're going to use, WPF or Win Forms etc.

You can however, try to do a little Google for this chart library and Google would yield a lot of friendly results for you to use any of those libraries. Try out this Google search[^] (chart C#).

Once that has been done the other thing that you've said about constantly updating the chart requires you to run a function (for creating the chart) after every instance of time (which in your case, might be a function call, a time interval like 1 second, or any other condition or event) to let your chart get updated every time there is a new data. It totally depends on your application and how you implement this updating-the-UI-feature. An example of such might be using the Timer class, to run your application after a time interval. But what I would like to advise here would be to run your application, each time a new data is saved in the database. Create a function like StoreData() and then inside this function, run other function to update the chart. This would save you time, and would cause the application to update its UI only when a new data is added.

If you want to delete the data from MySQL database, you can simply pass the command of DELETE to the data source (server) and it would delete all of the data. Otherwise, if you're going to delete the data from the thread only, then you can try to create a new instance of that thread every day and so on.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~

AnswerRe: How to plot data into the graph which is receive from com port Pin
V.12-Jan-15 21:12
professionalV.12-Jan-15 21:12 
QuestionStatic constructor? Pin
TMattC11-Jan-15 20:41
TMattC11-Jan-15 20:41 
AnswerRe: Static constructor? Pin
V.11-Jan-15 20:52
professionalV.11-Jan-15 20:52 
GeneralRe: Static constructor? Pin
TMattC11-Jan-15 21:07
TMattC11-Jan-15 21:07 
GeneralRe: Static constructor? Pin
V.11-Jan-15 21:17
professionalV.11-Jan-15 21:17 
GeneralRe: Static constructor? Pin
OriginalGriff11-Jan-15 21:18
mveOriginalGriff11-Jan-15 21:18 
GeneralRe: Static constructor? Pin
V.11-Jan-15 21:22
professionalV.11-Jan-15 21:22 
GeneralRe: Static constructor? Pin
OriginalGriff11-Jan-15 21:27
mveOriginalGriff11-Jan-15 21:27 
AnswerRe: Static constructor? Pin
OriginalGriff11-Jan-15 21:17
mveOriginalGriff11-Jan-15 21:17 
AnswerRe: Static constructor? Pin
Dar Brett11-Jan-15 21:27
Dar Brett11-Jan-15 21:27 
GeneralRe: Static constructor? Pin
TMattC11-Jan-15 22:33
TMattC11-Jan-15 22:33 
GeneralRe: Static constructor? Pin
OriginalGriff11-Jan-15 22:58
mveOriginalGriff11-Jan-15 22:58 
GeneralRe: Static constructor? Pin
TMattC11-Jan-15 23:39
TMattC11-Jan-15 23:39 
GeneralRe: Static constructor? Pin
OriginalGriff11-Jan-15 23:46
mveOriginalGriff11-Jan-15 23:46 
GeneralRe: Static constructor? Pin
TMattC13-Jan-15 22:35
TMattC13-Jan-15 22:35 
GeneralRe: Static constructor? Pin
OriginalGriff13-Jan-15 23:04
mveOriginalGriff13-Jan-15 23:04 
GeneralRe: Static constructor? Pin
TMattC13-Jan-15 23:45
TMattC13-Jan-15 23:45 

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.