Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

(BASIC OPENVPN GUI)HSSXPT VPN_TUT_VB2008 express edition

Re: Bandwidth monitor with graph vb.net development

BANDWIDTH MONITOR WITH GRAPH USING CHART CONTROL
Filename : Bandwidth Monitor with Chart.zip
Project File available and is attached

Working version using MSCharts

REQUIREMENT:
Microsoft Chart Controls for Microsoft .NET Framework 3.5
Product Page
Direct Link

BandwidthMonitorChart.png


after working on the system.drawing version, i've applied the same concept here and found out everything is easier to implement, and aesthetically looks better.

This is not copied from the internet, it's my own genuine work.

Declaration
Code:
    Dim downloadvalueplot As New ArrayList
    Dim uploadvalueplot As New ArrayList
    Dim counter As Integer = 0

Working Code
Code:
            counter = counter + 1
            '--------------------------------------------------------------------------------------------------------------------
            'GRAPHING CODES
            'uses a chart, easier to implement compared to a system drawing approach
            '--------------------------------------------------------------------------------------------------------------------

            'inserts current download/upload rate on the first index of the array
            'i choose first since it would be easier for plotting porpuses and to remove unused array contents
            downloadvalueplot.Insert(0, (DLoad - LastDLoad) / 1024)
            uploadvalueplot.Insert(0, (ULoad - LastULoad) / 1024)

            'SUSPENDS UPDATES
            'this removes the flicker effect and makes sures that all plotting is finished at the background
            'before displaying them
            ChartGraph.Series(0).Points.SuspendUpdates()
            ChartGraph.Series(1).Points.SuspendUpdates()

            'this part clears the (previous)points
            'this also remove the unwanted connecting line from the first value on a line graph
            ChartGraph.Series(0).Points.Clear()
            ChartGraph.Series(1).Points.Clear()

            'ADD VALUES (POINTS) TO THE SERIES
            'the number of x corresponds to the chart width
            Dim ichartmax As Integer = ChartGraph.Width / 12
            For ichart As Integer = 0 To ichartmax
                ChartGraph.Series(0).Points.InsertXY(ichart, ichart + 1, downloadvalueplot(ichart))
                ChartGraph.Series(1).Points.InsertXY(ichart, ichart + 1, uploadvalueplot(ichart))
                If ichart = counter - 1 Then
                    Exit For
                ElseIf ichart = ichartmax Then
                    'removes array contents that will no longer be used
                    downloadvalueplot.RemoveRange(ichartmax + 1, downloadvalueplot.Count - 1)
                    uploadvalueplot.RemoveRange(ichartmax + 1, uploadvalueplot.Count - 1)
                End If
            Next

            'RESUME UPDATES
            'proceeds to update the chart display
            ChartGraph.Series(0).Points.ResumeUpdates()
            ChartGraph.Series(1).Points.ResumeUpdates()
NOTE:
still need to work out on how to implement a predetermined amount off x values regardless of array contents.

code posted is designed to work on my previously posted bandwidth monitor, you may have to change stuff to suit to your projects
requires a chart named "ChartGraph" configured at least with 2 series

BANDWIDTH MONITOR WITH GRAPH USING SYSTEM.DRAWING
Filename : Bandwidth Monitor with Graph.zip
Project File available and is attached

working prototype on a very crude approach on a bandwidth monitor graph using system.drawing - no chart needed.

BandwidthMonitorGraph.JPG


this is from the internet - code is not mine.

will integrate this soon on my future release - had to beautify it first
and make it more dynamic and remove the scroll bar

NOTE:
there is a problem with the graph when the max values change the graph does not change the past visual representation accordingly. if this bothers you then just set

Code:
PictureBoxValues.Image = DisplayVerticalValues(PictureBoxValues, 10, 0, (dmax / 1024) + 10)
PictureBoxGraph.Image = DisplayGuidelinesAndChart(PictureBoxGraph, 10, 3, (DLoad - LastDLoad) / 1024, 0, (dmax / 1024) + 10)

PictureBoxValuesUpload.Image = DisplayVerticalValues(PictureBoxValuesUpload, 10, 0, (umax / 1024) + 10)
PictureBoxGraphUpload.Image = DisplayUploadGuidelinesAndChart(PictureBoxGraphUpload, 10, 3, (ULoad - LastULoad) / 1024, 0, (umax / 1024) + 10)

TO

Code:
PictureBoxValues.Image = DisplayVerticalValues(PictureBoxValues, 10, 0, [COLOR="red"]3686[/COLOR])
PictureBoxGraph.Image = DisplayGuidelinesAndChart(PictureBoxGraph, 10, 3, (DLoad - LastDLoad) / 1024, 0, [COLOR="red"]3686[/COLOR])

PictureBoxValuesUpload.Image = DisplayVerticalValues(PictureBoxValuesUpload, 10, 0, [COLOR="Red"]512[/COLOR])
PictureBoxGraphUpload.Image = DisplayUploadGuidelinesAndChart(PictureBoxGraphUpload, 10, 3, (ULoad - LastULoad) / 1024, 0, [COLOR="red"]512[/COLOR])

wherein those in red represent you target maximum bandwidth

still under development.

INSTRUCTIONS:
to integrate to your own project the easy way:

1. disable the timers (timerbandwidth and timerlatency)
2. copy all controls (do not include the form) and paste them to your project
3. copy codes to your project
4. enable timerbandwidth and timerlatency and the code will do the rest

ask ko lang po, bakit po kaya di gumagana sa win7 64bit?
 
may active member pa ba sa thread na ito.?

cno po may alam kung paano mag lagay ng ping value..?
pati na rin yung upload at download values po.?

salamat..
 
ngayon ko lang nakita tong thread na to.... GANDA!!! mag-aaral po muna ako tapos gawa din ako... (sana this year) wish ko lang...
 
ask ko lang po, naobserbahan ko po, yung bandwidth monitor, di gumagawa sa win764bit, at paano po pag nagdisconnectect ako ay back to 0 ulit yung dload at uload pag nagconnect ulit ako
 
sir baka naman pwede pagawa ng video yung malinaw para mas madaling masunda salamat w8 ako sa update
 
Re: Bandwidth monitor with graph vb.net development

BANDWIDTH MONITOR WITH GRAPH USING CHART CONTROL
Filename : Bandwidth Monitor with Chart.zip
Project File available and is attached

Working version using MSCharts

REQUIREMENT:
Microsoft Chart Controls for Microsoft .NET Framework 3.5
Product Page
Direct Link

BandwidthMonitorChart.png


after working on the system.drawing version, i've applied the same concept here and found out everything is easier to implement, and aesthetically looks better.

This is not copied from the internet, it's my own genuine work.

Declaration
Code:
    Dim downloadvalueplot As New ArrayList
    Dim uploadvalueplot As New ArrayList
    Dim counter As Integer = 0

Working Code
Code:
            counter = counter + 1
            '--------------------------------------------------------------------------------------------------------------------
            'GRAPHING CODES
            'uses a chart, easier to implement compared to a system drawing approach
            '--------------------------------------------------------------------------------------------------------------------

            'inserts current download/upload rate on the first index of the array
            'i choose first since it would be easier for plotting porpuses and to remove unused array contents
            downloadvalueplot.Insert(0, (DLoad - LastDLoad) / 1024)
            uploadvalueplot.Insert(0, (ULoad - LastULoad) / 1024)

            'SUSPENDS UPDATES
            'this removes the flicker effect and makes sures that all plotting is finished at the background
            'before displaying them
            ChartGraph.Series(0).Points.SuspendUpdates()
            ChartGraph.Series(1).Points.SuspendUpdates()

            'this part clears the (previous)points
            'this also remove the unwanted connecting line from the first value on a line graph
            ChartGraph.Series(0).Points.Clear()
            ChartGraph.Series(1).Points.Clear()

            'ADD VALUES (POINTS) TO THE SERIES
            'the number of x corresponds to the chart width
            Dim ichartmax As Integer = ChartGraph.Width / 12
            For ichart As Integer = 0 To ichartmax
                ChartGraph.Series(0).Points.InsertXY(ichart, ichart + 1, downloadvalueplot(ichart))
                ChartGraph.Series(1).Points.InsertXY(ichart, ichart + 1, uploadvalueplot(ichart))
                If ichart = counter - 1 Then
                    Exit For
                ElseIf ichart = ichartmax Then
                    'removes array contents that will no longer be used
                    downloadvalueplot.RemoveRange(ichartmax + 1, downloadvalueplot.Count - 1)
                    uploadvalueplot.RemoveRange(ichartmax + 1, uploadvalueplot.Count - 1)
                End If
            Next

            'RESUME UPDATES
            'proceeds to update the chart display
            ChartGraph.Series(0).Points.ResumeUpdates()
            ChartGraph.Series(1).Points.ResumeUpdates()
NOTE:
still need to work out on how to implement a predetermined amount off x values regardless of array contents.

code posted is designed to work on my previously posted bandwidth monitor, you may have to change stuff to suit to your projects
requires a chart named "ChartGraph" configured at least with 2 series

BANDWIDTH MONITOR WITH GRAPH USING SYSTEM.DRAWING
Filename : Bandwidth Monitor with Graph.zip
Project File available and is attached

working prototype on a very crude approach on a bandwidth monitor graph using system.drawing - no chart needed.

BandwidthMonitorGraph.JPG


this is from the internet - code is not mine.

will integrate this soon on my future release - had to beautify it first
and make it more dynamic and remove the scroll bar

NOTE:
there is a problem with the graph when the max values change the graph does not change the past visual representation accordingly. if this bothers you then just set

Code:
PictureBoxValues.Image = DisplayVerticalValues(PictureBoxValues, 10, 0, (dmax / 1024) + 10)
PictureBoxGraph.Image = DisplayGuidelinesAndChart(PictureBoxGraph, 10, 3, (DLoad - LastDLoad) / 1024, 0, (dmax / 1024) + 10)

PictureBoxValuesUpload.Image = DisplayVerticalValues(PictureBoxValuesUpload, 10, 0, (umax / 1024) + 10)
PictureBoxGraphUpload.Image = DisplayUploadGuidelinesAndChart(PictureBoxGraphUpload, 10, 3, (ULoad - LastULoad) / 1024, 0, (umax / 1024) + 10)

TO

Code:
PictureBoxValues.Image = DisplayVerticalValues(PictureBoxValues, 10, 0, [COLOR="red"]3686[/COLOR])
PictureBoxGraph.Image = DisplayGuidelinesAndChart(PictureBoxGraph, 10, 3, (DLoad - LastDLoad) / 1024, 0, [COLOR="red"]3686[/COLOR])

PictureBoxValuesUpload.Image = DisplayVerticalValues(PictureBoxValuesUpload, 10, 0, [COLOR="Red"]512[/COLOR])
PictureBoxGraphUpload.Image = DisplayUploadGuidelinesAndChart(PictureBoxGraphUpload, 10, 3, (ULoad - LastULoad) / 1024, 0, [COLOR="red"]512[/COLOR])

wherein those in red represent you target maximum bandwidth

still under development.

INSTRUCTIONS:
to integrate to your own project the easy way:

1. disable the timers (timerbandwidth and timerlatency)
2. copy all controls (do not include the form) and paste them to your project
3. copy codes to your project
4. enable timerbandwidth and timerlatency and the code will do the rest

sir, paano po ba ito iopen, error kasi pag iloload ko na yung form1
 
Step2:icopy ung mga files ng openvpn sa debug folder ng project nyo..


pano bayan sir haha sensya na wala ako alam dito..... praktis lang ^_^
 
Thanks you dito sir, nagawa ko din ang vpn gui ko using vb2010.. bago lang kasi ako sa visual basic 2010... vb6 kasi gamit ko dati....

eto screenshot ng ginawa ko sa vb2010...

attachment.php


attachment.php
 

Attachments

  • Untitled-1.jpg
    Untitled-1.jpg
    110.5 KB · Views: 114
  • Untitled-2.jpg
    Untitled-2.jpg
    116.3 KB · Views: 112
Last edited:
Step2:icopy ung mga files ng openvpn sa debug folder ng project nyo..


pano bayan sir haha sensya na wala ako alam dito..... praktis lang ^_^
sa may documents yun...hanapin mo yung debug folder nya.


I'll try to Update this Thread pag meron ng time..hehe.aral aral din.
kaya pagtyagaan nyo na lang muna ang tut na to..
:)
 
gud pm po mga sir ask ko lang po baket po ayaw po gumana nung bandwidth monitor saken vb.net 2008 po gamit ko sinundan ko po ung instructions ayw pa rin po gumana help naman po pls tnx. . .
 
pa-sub din po ako dito...
pag-aaralan ko po..

Thanks...


○♦○​
 
Yung po bang bandwidth monitor ay gagana sa .Net Framework 3.5 na ang os ay windows 7??? gagana po ba ang ipv4statistics sa windows 7??? SALAMAT
 
Tanong lang boss pwede ko kaya itong gamitin as thesis ?? Computer science student po ako ?? Ask lng
 
pd rin ito edit sa peexplorer, pero sa gui design gagamt talaga ng visual basic
 
Re: Bandwidth monitor with graph vb.net development

BANDWIDTH MONITOR WITH GRAPH USING CHART CONTROL
Filename : Bandwidth Monitor with Chart.zip
Project File available and is attached

Working version using MSCharts

REQUIREMENT:
Microsoft Chart Controls for Microsoft .NET Framework 3.5
Product Page
Direct Link

http://dl.dropbox.com/u/762032/OpenVPN/BandwidthMonitorChart.png

after working on the system.drawing version, i've applied the same concept here and found out everything is easier to implement, and aesthetically looks better.

This is not copied from the internet, it's my own genuine work.

Declaration
Code:
    Dim downloadvalueplot As New ArrayList
    Dim uploadvalueplot As New ArrayList
    Dim counter As Integer = 0

Working Code
Code:
            counter = counter + 1
            '--------------------------------------------------------------------------------------------------------------------
            'GRAPHING CODES
            'uses a chart, easier to implement compared to a system drawing approach
            '--------------------------------------------------------------------------------------------------------------------

            'inserts current download/upload rate on the first index of the array
            'i choose first since it would be easier for plotting porpuses and to remove unused array contents
            downloadvalueplot.Insert(0, (DLoad - LastDLoad) / 1024)
            uploadvalueplot.Insert(0, (ULoad - LastULoad) / 1024)

            'SUSPENDS UPDATES
            'this removes the flicker effect and makes sures that all plotting is finished at the background
            'before displaying them
            ChartGraph.Series(0).Points.SuspendUpdates()
            ChartGraph.Series(1).Points.SuspendUpdates()

            'this part clears the (previous)points
            'this also remove the unwanted connecting line from the first value on a line graph
            ChartGraph.Series(0).Points.Clear()
            ChartGraph.Series(1).Points.Clear()

            'ADD VALUES (POINTS) TO THE SERIES
            'the number of x corresponds to the chart width
            Dim ichartmax As Integer = ChartGraph.Width / 12
            For ichart As Integer = 0 To ichartmax
                ChartGraph.Series(0).Points.InsertXY(ichart, ichart + 1, downloadvalueplot(ichart))
                ChartGraph.Series(1).Points.InsertXY(ichart, ichart + 1, uploadvalueplot(ichart))
                If ichart = counter - 1 Then
                    Exit For
                ElseIf ichart = ichartmax Then
                    'removes array contents that will no longer be used
                    downloadvalueplot.RemoveRange(ichartmax + 1, downloadvalueplot.Count - 1)
                    uploadvalueplot.RemoveRange(ichartmax + 1, uploadvalueplot.Count - 1)
                End If
            Next

            'RESUME UPDATES
            'proceeds to update the chart display
            ChartGraph.Series(0).Points.ResumeUpdates()
            ChartGraph.Series(1).Points.ResumeUpdates()
NOTE:
still need to work out on how to implement a predetermined amount off x values regardless of array contents.

code posted is designed to work on my previously posted bandwidth monitor, you may have to change stuff to suit to your projects
requires a chart named "ChartGraph" configured at least with 2 series

BANDWIDTH MONITOR WITH GRAPH USING SYSTEM.DRAWING
Filename : Bandwidth Monitor with Graph.zip
Project File available and is attached

working prototype on a very crude approach on a bandwidth monitor graph using system.drawing - no chart needed.

http://dl.dropbox.com/u/762032/OpenVPN/BandwidthMonitorGraph.JPG

this is from the internet - code is not mine.

will integrate this soon on my future release - had to beautify it first
and make it more dynamic and remove the scroll bar

NOTE:
there is a problem with the graph when the max values change the graph does not change the past visual representation accordingly. if this bothers you then just set

Code:
PictureBoxValues.Image = DisplayVerticalValues(PictureBoxValues, 10, 0, (dmax / 1024) + 10)
PictureBoxGraph.Image = DisplayGuidelinesAndChart(PictureBoxGraph, 10, 3, (DLoad - LastDLoad) / 1024, 0, (dmax / 1024) + 10)

PictureBoxValuesUpload.Image = DisplayVerticalValues(PictureBoxValuesUpload, 10, 0, (umax / 1024) + 10)
PictureBoxGraphUpload.Image = DisplayUploadGuidelinesAndChart(PictureBoxGraphUpload, 10, 3, (ULoad - LastULoad) / 1024, 0, (umax / 1024) + 10)

TO

Code:
PictureBoxValues.Image = DisplayVerticalValues(PictureBoxValues, 10, 0, [COLOR="red"]3686[/COLOR])
PictureBoxGraph.Image = DisplayGuidelinesAndChart(PictureBoxGraph, 10, 3, (DLoad - LastDLoad) / 1024, 0, [COLOR="red"]3686[/COLOR])

PictureBoxValuesUpload.Image = DisplayVerticalValues(PictureBoxValuesUpload, 10, 0, [COLOR="Red"]512[/COLOR])
PictureBoxGraphUpload.Image = DisplayUploadGuidelinesAndChart(PictureBoxGraphUpload, 10, 3, (ULoad - LastULoad) / 1024, 0, [COLOR="red"]512[/COLOR])

wherein those in red represent you target maximum bandwidth

still under development.

INSTRUCTIONS:
to integrate to your own project the easy way:

1. disable the timers (timerbandwidth and timerlatency)
2. copy all controls (do not include the form) and paste them to your project
3. copy codes to your project
4. enable timerbandwidth and timerlatency and the code will do the rest

pwede mag tanong hindi kasi ma detect nito ang RAS adapters

only local area lang ang nakukuha paano palitan para ma detect

ang ras :D thanks in advance.! I'm using file Bandwidth Monitor with Graph.zip

and the image is not working :D I'm using vb.net 2010

di ako intersado sa Openvpn gui interesado ako sa Bandwidth monitor

balak ko kasi i implement sa project ko pero di nag wo-work :D need ko kunting tulong.
 
Last edited:
Back
Top Bottom