Click here to Skip to main content
16,005,080 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Code for getting bias date(Not a system date) Pin
Dave Kreskowiak13-Jul-09 1:58
mveDave Kreskowiak13-Jul-09 1:58 
GeneralRe: Code for getting bias date(Not a system date) Pin
Colin Angus Mackay13-Jul-09 12:39
Colin Angus Mackay13-Jul-09 12:39 
QuestionAnnotations in .Net Pin
Salman Sheikh11-Jul-09 20:39
Salman Sheikh11-Jul-09 20:39 
AnswerRe: Annotations in .Net Pin
Kevin McFarlane12-Jul-09 2:49
Kevin McFarlane12-Jul-09 2:49 
GeneralRe: Annotations in .Net Pin
Salman Sheikh14-Jul-09 19:34
Salman Sheikh14-Jul-09 19:34 
QuestionIndex was outside the bounds of the array Pin
spruha36911-Jul-09 0:03
spruha36911-Jul-09 0:03 
AnswerRe: Index was outside the bounds of the array Pin
Not Active11-Jul-09 3:29
mentorNot Active11-Jul-09 3:29 
Questionhow to feed data to nplot..in vb.net Pin
rebel310-Jul-09 21:53
rebel310-Jul-09 21:53 
hey...

i m struck in a problem and dat is...

i have to feed data to nplot just by selecting data from text box..

my application work as when i select a particular item from the combo box

it fetches me data...now i have to fetch this data to nplot..to draw the graph


'If (ListBox1.SelectedIndex = 0) Then<br />
        '    ConnString = "server=(local);Trusted_Connection=yes;database=290208ran6"<br />
        '    sql = "select ORIG_CALL_SETUP_SUCCESS from ran6 where MSC_NAME = '" + ComboBox1.SelectedItem + "' and RCS_ID = '" + ComboBox2.SelectedItem + "' and SECTOR = '" + ComboBox3.SelectedItem + "'"<br />
        '    connection.ConnectionString = ConnString<br />
        '    connection.Open()<br />
        '    command = New SqlCommand(sql, connection)<br />
        '    dr = command.ExecuteReader()<br />
        '    MsgBox("connection")<br />
        '    Dim st As Decimal<br />
        '    Dim a As Integer<br />
        '    a = 0<br />
        '    While dr.Read()<br />
        '        a = a + 1<br />
        '        MsgBox(dr(0).ToString())<br />
        '    End While<br />
        '    MsgBox(a)<br />
        '    Dim grid As Grid = New Grid()<br />
        '    grid.VerticalGridType = grid.GridType.Coarse<br />
        '    grid.HorizontalGridType = grid.GridType.Coarse<br />
        '    grid.MajorGridPen = New Pen(Color.LightGray, 1.0F)<br />
<br />
        '    plotSurfaceBalance.Add(grid)<br />
        '    Dim stepBalance As LinePlot = New LinePlot()<br />
        '    stepBalance.Pen = New Pen(Color.Black, 2)<br />
        '    ' //Create a bar plot instance for the percent chart.<br />
        '    Dim barPercent As BarPlot = New BarPlot()<br />
        '    barPercent.FillBrush = NPlot.RectangleBrushes.Solid.Black<br />
<br />
        '    '//Create the lists from which to pull data.<br />
        '    Dim balanceAxis As List(Of DateTime) = New List(Of DateTime)<br />
        '    Dim percentAxis As List(Of DateTime) = New List(Of DateTime)<br />
        '    Dim balanceAmount As List(Of Decimal) = New List(Of Decimal)()<br />
        '    Dim percentAmount As List(Of Decimal) = New List(Of Decimal)()<br />
<br />
<br />
        '    '//The following code populates the lists above with data.<br />
        '    '//data sources such as a database to populate the lists.<br />
<br />
        '    Dim startDate As DateTime = New DateTime(2000, 1, 1)<br />
        '    Dim balanceValues As Decimal() = New Decimal() { _<br />
        '  st, 99.3, 98.4}<br />
        '    ' //Add data to Xax datetime lists.<br />
        '    For i As Integer = 0 To 30<br />
<br />
        '        balanceAxis.Add(startDate.AddDays(i))<br />
<br />
        '    Next<br />
<br />
        '    '//Populate the balanceAmount list.<br />
        '    For Each value As Decimal In balanceValues<br />
        '        balanceAmount.Add(value)<br />
        '    Next<br />
<br />
        '    Dim top As List(Of Decimal) = New List(Of Decimal)<br />
        '    Dim bottom As List(Of Decimal) = New List(Of Decimal)<br />
<br />
        '    '//Set the datasource and the xax for the balance plot.<br />
        '    stepBalance.AbscissaData = balanceAxis<br />
        '    stepBalance.DataSource = balanceAmount<br />
<br />
        '    ' //Add stepBalance to plotSurfaceBalance.<br />
        '    plotSurfaceBalance.Add(stepBalance)<br />
<br />
        '    '  //Balance plot general settings.<br />
        '    plotSurfaceBalance.ShowCoordinates = True<br />
        '    plotSurfaceBalance.YAxis1.Label = ""<br />
        '    plotSurfaceBalance.YAxis1.LabelOffsetAbsolute = True<br />
        '    plotSurfaceBalance.YAxis1.LabelOffset = 30<br />
        '    plotSurfaceBalance.XAxis1.HideTickText = True<br />
        '    plotSurfaceBalance.Padding = 2<br />
<br />
        '    ' //Align percent plot axes.<br />
        '    Dim ax As DateTimeAxis = New DateTimeAxis(plotSurfaceBalance.XAxis1)<br />
        '    ax.HideTickText = False<br />
        '    '  //Refresh surfaces.<br />
        '    plotSurfaceBalance.Refresh()<br />
        '    connection.Close()<br />
        '    MsgBox("connection closed")<br />



this is the code...

sorry i m new to dis ..so i m nt dat gud in explaining
plz help me out in dis..and if u have any confusion in dis code..plz ask me..may b i m going wrong...


yes i m able to get data..in msg box but nt in nplot..

i have to link dat data in nlot..

modified on Saturday, July 11, 2009 7:35 AM

QuestionVideo not playing in full screen after i log into the pc from vnc.. Even after VNC is closed. Pin
ScotDolan10-Jul-09 8:46
ScotDolan10-Jul-09 8:46 
QuestionDifficulties with Setup Project Pin
Tristan Rhodes10-Jul-09 3:03
Tristan Rhodes10-Jul-09 3:03 
AnswerRe: Difficulties with Setup Project Pin
Jack Vanderhorst12-Jul-09 13:24
Jack Vanderhorst12-Jul-09 13:24 
AnswerRe: Difficulties with Setup Project Pin
Adam R Harris15-Jul-09 17:27
Adam R Harris15-Jul-09 17:27 
QuestionIs this possible to use visual studio 2003,2005 & 2008 together? Pin
vnsraj9-Jul-09 22:09
vnsraj9-Jul-09 22:09 
AnswerRe: Is this possible to use visual studio 2003,2005 & 2008 together? Pin
Luc Pattyn9-Jul-09 22:17
sitebuilderLuc Pattyn9-Jul-09 22:17 
AnswerRe: Is this possible to use visual studio 2003,2005 & 2008 together? Pin
DoctorMick9-Jul-09 23:41
DoctorMick9-Jul-09 23:41 
AnswerRe: Is this possible to use visual studio 2003,2005 & 2008 together? Pin
Henry Minute10-Jul-09 0:29
Henry Minute10-Jul-09 0:29 
QuestionMessage Closed Pin
9-Jul-09 19:56
Sentl.R9-Jul-09 19:56 
AnswerRe: asdfsaf[Spam] Pin
Aman Bhullar9-Jul-09 22:02
Aman Bhullar9-Jul-09 22:02 
AnswerRe: asdfsaf Pin
Vasudevan Deepak Kumar10-Jul-09 2:04
Vasudevan Deepak Kumar10-Jul-09 2:04 
GeneralRe: asdfsaf Pin
Pete O'Hanlon10-Jul-09 2:16
mvePete O'Hanlon10-Jul-09 2:16 
QuestionDatagrid row select arrow Pin
Esmo20009-Jul-09 11:00
Esmo20009-Jul-09 11:00 
AnswerRe: Datagrid row select arrow Pin
Eslam Afifi9-Jul-09 14:08
Eslam Afifi9-Jul-09 14:08 
QuestionNeed Final Project Ideas ... Pin
shaina22319-Jul-09 9:19
shaina22319-Jul-09 9:19 
AnswerRe: Need Final Project Ideas ... Pin
Luc Pattyn9-Jul-09 9:43
sitebuilderLuc Pattyn9-Jul-09 9:43 
AnswerRe: Need Final Project Ideas ... Pin
Not Active9-Jul-09 10:51
mentorNot Active9-Jul-09 10:51 

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.