|
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]
|
|
|
|
|
Hi Thanks ,
I saw form properties there ,
For Icon property they are enabled =false below that property . Like that i want to do for my Location .Point & Font .
Is there any way .
Thanks
Dvs
|
|
|
|
|
Hello every one
I am having a VB.net 2005 Express Application
Is there a way to find all unused functions in the solution…
Also if there is a event handler function on a object and the object is no more existing
I am using Microsoft Interface and Sharp developer at time
Regards
Nishkarsh
|
|
|
|
|
Try looking at FxCop[^] or NDepend[^].
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]
|
|
|
|
|
Hii ,
1) My base form is a Panel .On panel i have to create Line , Rectanlge , Oval at runtime and i have to drag those things at any place .
2) I used Vb.powerpacks DLL .It worked to my expectations . But when i click on that shape type it is showing the blue lines around the shape control which i dont want .(At this place i have to use my control selection with small squares or round rectangles to resize and drag that control .Here i used
http://www.codeproject.com/script/common/ErrorInternal.aspx?aspxerrorpath=/KB/miscctrl/CSPickBoxSample1.aspx[^]
It drag & drop any control except shape controls .So i used instead of control (Rectangleshape ) then i am able to drag &resize.
But while dragging some black lines are showing and placing there for some time (For looking it is not good ,Occuring only for shape control )
3) Which is good for shapes creation Picturebox or Panel as base ??????
4) How to do these things while using Drawing namespace .without Powerpacks and i want to drag and resize to any place with selection which is used for everycontrol like VS2005 form design ???
Dvs
|
|
|
|
|
dvsriram wrote: 3) Which is good for shapes creation Picturebox or Panel as base ??????
Panel. PictureBox is used for showing Image files, as you've been told before.
dvsriram wrote: 4) How to do these things while using Drawing namespace .without Powerpacks and i want to drag and resize to any place with selection which is used for everycontrol like VS2005 form design ???
You have to implement a "Retained Mode" graphics system. This is something, that believe it or not, doesn't exist as "standard" in Windows or GDI+, and hence, the .NET Framework. Though it does exist if you use Windows Presentation Foundation (WPF). But, to use this, you have to forget everything you've already learned about painting and using controls and start from scratch. I highly recommend picking up a book on it of you want to use it at all.
You can find an example of implementing a system yourself without using WPF here[^].
There are also third party control libraries that implement this too...
|
|
|
|
|
hai all,
I am using Outlook Express in vb.net. by importing .dll files.
I have doubt that it will work in linux and mac os???
Can you give me the idea?????
Thanks in advance
Senthil.S
Senthil S
Software Engineer
|
|
|
|