|
My apologies
I am trying to use the Data Bound Grid Control or DataGrid Control to do it, whichever is easier.
|
|
|
|
|
I have a DataSet i want to make one cloumn as pivot ...Is there any solutin
|
|
|
|
|
AFAIK, the default one doesn't have that feature.. You probably need to find the third-party one. I wonder why you want to make one column as pivot..
|
|
|
|
|
Colleagues,
Could you recommend a 2D chart control for my application that can work with VB6? I need to plot an EEG signal on the screen in real time. The update rate of the chart will be on the order of 200ms to 1000ms, and I want to display 1000 points. Ideally, the whole chart would scroll to the left as new values are added on the right.
I’ve tried the MSChart, it would work ok, but I don’t know how to get rid of flickering. Flickering is a real problem, because somebody will be looking at the chart for hours.
Thanks and have a happy new year!
- Nick
|
|
|
|
|
Have you tried to use DoEvents ?
|
|
|
|
|
No, I haven't tried to use DoEvents . How would that stop the flickering?
I suspect that MSChart flickers, because it doesn't do the double buffering.
|
|
|
|
|
Nick Alexeev wrote: I suspect that MSChart flickers, because it doesn't do the double buffering.
I also think so.. but at least, you can try DoEvent. if it helps, you don't need to change. if not, you need to find the third-party one as other suggested..
|
|
|
|
|
The MSChart control isn't a good candidate for this problem. You'd be better off using a third party component to draw a scrolling line graph, or making your own control so you can have more control over exactly how it's drawn.
DoEvents won't do anything for you here. In fact, there's nothing you can do about the flickering using the MSChart control.
|
|
|
|
|
Dave Kreskowiak wrote: The MSChart control isn't a good candidate for this problem. ... In fact, there's nothing you can do about the flickering using the MSChart control.
Yes, I can agree that MSChart is not a good tool for this job. I've searched the web for suggestion on how to make good real-time plots with MSChart and tried every suggestion I could find, but the results weren't good enough.
Dave Kreskowiak wrote: You'd be better off using a third party component to draw a scrolling line graph, or making your own control ...
Unfortunately, I don't have the time to make my own control, although that could be a fun endeavor. Which 3rd party chart controls would you recommend?
|
|
|
|
|
Don't know. I haven't used any StripGraph controls.
|
|
|
|
|
Dave Kreskowiak wrote: MSChart control isn't a good candidate for this problem. You'd be better off using a third party component to draw a scrolling line graph, or making your own control so you can have more control over exactly how it's drawn.
I don't think I could agree more.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
I chose the RMChart control. It's quite powerful, it has good sample projects for VB6, and it's free.
http://www.rmchart.com[^]
-Nick
|
|
|
|
|
I've been using RMChart for a while now. They are great for static data, but they have problems with fast real-time data (especially when compared to NI Measurement Studio). Here's my thread on the RMChart forum about the real-time issues. It has some benchmark data:
http://www.rmchart.com/webpages/forum/forum_posts.asp?TID=400&PN=1[^]
I'm switching to NI Measurement Studio for plotting real-time date.
- Nick
|
|
|
|
|
Hello every one
I have a Vb.net 2005 Express application. I am using DataGridView and want the user to enter only numeric values in the Currency field and then format it also..
I tried
.DefaultCellStyle.Format = "C"
But still the I am able to type strings
How do I do it.
|
|
|
|
|
|
Thanks for the help Shimi
Can we not restrict the user from adding any string itself as we do for Masked Boxes...
|
|
|
|
|
You'd probably have to write your own DataGridView class at that point.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
does anybody knows about a book? eBook? other virtual sources?
hope this question was in thw right place
because I'm planning to learn it via VB.NET
regards
Shimi
|
|
|
|
|
|
Hi all
I have a datagridview and i want to add serial number in each fixed col of every row at run time
How do i do it..
|
|
|
|
|
I misunderstood you.
can you provide more details please?
Shimi
|
|
|
|
|
Hello Shimi
When ever we create a datagridview we always have a column header and a row header.
I wanted to have serial number in the row header when ever I add a new row both programmatically and by the user
Also can you pls tell me how to define the column format, that is, I want a column to be a floating point numbers only and a currency column
Regards
Nishkarsh
|
|
|
|
|
Public Class Form1<br />
Inherits System.Windows.Forms.Form<br />
<br />
Dim fName$<br />
Dim lName$<br />
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btAddRow.Click<br />
Static counter As Integer = 0<br />
If counter = 0 Then<br />
fName = "Nish"<br />
lName = "karsh"<br />
counter += 1<br />
ElseIf counter < 10 Then<br />
fName &= "a"<br />
lName &= "a"<br />
counter += 1<br />
Else<br />
counter = 0<br />
End If<br />
Dim o As Object() = {fName, lName}<br />
DataGridView1.Rows.Add(o)<br />
Static row As Integer = 0<br />
DataGridView1.Rows(row).HeaderCell.Value = o(0).ToString<br />
row += 1<br />
End Sub<br />
<br />
<br />
<br />
<br />
<br />
'Form overrides dispose to clean up the component list.<br />
<System.Diagnostics.DebuggerNonUserCode()> _<br />
Protected Overrides Sub Dispose(ByVal disposing As Boolean)<br />
Try<br />
If disposing AndAlso components IsNot Nothing Then<br />
components.Dispose()<br />
End If<br />
Finally<br />
MyBase.Dispose(disposing)<br />
End Try<br />
End Sub<br />
<br />
'Required by the Windows Form Designer<br />
Private components As System.ComponentModel.IContainer<br />
<br />
'NOTE: The following procedure is required by the Windows Form Designer<br />
'It can be modified using the Windows Form Designer. <br />
'Do not modify it using the code editor.<br />
<System.Diagnostics.DebuggerStepThrough()> _<br />
Private Sub InitializeComponent()<br />
Me.DataGridView1 = New System.Windows.Forms.DataGridView<br />
Me.Column1 = New System.Windows.Forms.DataGridViewTextBoxColumn<br />
Me.Column2 = New System.Windows.Forms.DataGridViewTextBoxColumn<br />
Me.btAddRow = New System.Windows.Forms.Button<br />
CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit()<br />
Me.SuspendLayout()<br />
'<br />
'DataGridView1<br />
'<br />
Me.DataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize<br />
Me.DataGridView1.Columns.AddRange(New System.Windows.Forms.DataGridViewColumn() {Me.Column1, Me.Column2})<br />
Me.DataGridView1.Location = New System.Drawing.Point(27, 28)<br />
Me.DataGridView1.Name = "DataGridView1"<br />
Me.DataGridView1.Size = New System.Drawing.Size(279, 150)<br />
Me.DataGridView1.TabIndex = 0<br />
'<br />
'Column1<br />
'<br />
Me.Column1.HeaderText = "Column1"<br />
Me.Column1.Name = "Column1"<br />
'<br />
'Column2<br />
'<br />
Me.Column2.HeaderText = "Column2"<br />
Me.Column2.Name = "Column2"<br />
'<br />
'btAddRow<br />
'<br />
Me.btAddRow.Location = New System.Drawing.Point(130, 207)<br />
Me.btAddRow.Name = "btAddRow"<br />
Me.btAddRow.Size = New System.Drawing.Size(75, 23)<br />
Me.btAddRow.TabIndex = 1<br />
Me.btAddRow.Text = "Button1"<br />
Me.btAddRow.UseVisualStyleBackColor = True<br />
'<br />
'Form1<br />
'<br />
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)<br />
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font<br />
Me.ClientSize = New System.Drawing.Size(339, 264)<br />
Me.Controls.Add(Me.btAddRow)<br />
Me.Controls.Add(Me.DataGridView1)<br />
Me.Name = "Form1"<br />
Me.Text = "Form1"<br />
CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit()<br />
Me.ResumeLayout(False)<br />
<br />
End Sub<br />
Friend WithEvents DataGridView1 As System.Windows.Forms.DataGridView<br />
Friend WithEvents Column1 As System.Windows.Forms.DataGridViewTextBoxColumn<br />
Friend WithEvents Column2 As System.Windows.Forms.DataGridViewTextBoxColumn<br />
Friend WithEvents btAddRow As System.Windows.Forms.Button<br />
<br />
End Class<br />
<br />
br mode="hold" /><br />
:wtf: :wtf: :wtf: :omg: :rolleyes: :-O :-\ :zzz: :((
Shimi
|
|
|
|
|
hii ,
I am using Font class as property and showing in the propertygrid .
Now i want to show only the font dialog line in the propertygrid .
The remaining things below the
Font ------->FontDialog -- TO Show
--> Name These all below Font things i want2 hide r Enabled=false
--> Size
--> Unit
--> Bold
--> GdiCharSet
--> Italic
--> Strikeout
--> Underline i want to make enabled = False or Visible= False
How to do these things??
Thanks
Dvs
|
|
|
|
|
You would need to create your own class derived from Font and use that. The property grid looks for any public property on the class and exposes it through the grid. You might be able to do this using a custom type editor, but I'm not sure you can override the one that is already associated with the Font class itself.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|