|
There are several ways of creating charts in Visual Studio.
1. You can use third party tools such as Dundas Chart[^]
2. You can use Excel as your friend said (I personally prefer Excel, as it is easy to use compare to Dundas Chart )
3. If you have enough time and willingness of learning something new then, you can create your own graph by using 2D image library in .NET (This involves lot of hard work but it is so worth learning)
There is one artical on CP explaining how to use Excel from Visual Studio but the author has used J#, but then again it is .NET so you can workout things in VB. Here's the Link http://www.codeproject.com/KB/office/JExcel.aspx[^]
- Stop thinking in terms of limitations and start thinking in terms of possibilities -
|
|
|
|
|
Hi Thank you for ur answer,actully now i installed vb 2009 professional ,so i think it has dundas on it,so i wonder to know how i can connect my program result to report result?should i make an excel file or acces file or can directly use my program out put for it ,in fact my program calculates some parameters and i see them with this command:" consolewrite"so would you plz tell me how i can draw a graph with it?
the other thing i found out that the vb 2008 (professional edition )has the other tolls which it name "Professional Crystal Reports for Visual Studio" so can i use it too?if so,how?
again thank you very much for your considreation.
|
|
|
|
|
It will take me hours to write everything on how to use them. You can just Google it and it will give you more information than i can.
And yes you can use Access database for Dundas chart, you don't need to transfer anything to anything...
- Stop thinking in terms of limitations and start thinking in terms of possibilities -
|
|
|
|
|
Hello..
I am looking for some code (VB.net) so that i can see what my external (ADSL) router IP is. It would also be great if someone knows how i could also email this to myself daily? as i dont have a static IP with me isp.
|
|
|
|
|
People at this site do not usually just hand out code if you are not willing to work at the problem.
|
|
|
|
|
You'll have to write the code to query an external website for that information. The site has to return the IP address, such as http://www.whatsmyip.org[^]. There's no API cann you can use to get this information.
|
|
|
|
|
Hi,
this[^] may be
what you want: it returns just the IP address, no more, no less.
A simple code snippet based on WebRequest/WebResponse could get it programmatically.
|
|
|
|
|
Hello
I want to let my Vb.net program to let me view a specific channel of my usb receiver.
Please give me at least a hint to begin my research
Your will be greatly appreciated
And thanks in advance
Assaf
|
|
|
|
|
You'll need a Software Development Kit for the reciever. The best place to find that would be the manufacturer of the receiver. Don't be surprised if they don't offer one.
|
|
|
|
|
I have all the file of the receiver in the Install CD
but i don't know for what to search and what to ask
Thank you in advance for your help
Assaf
|
|
|
|
|
There might be something that says "SDK" on it, but I doubt it. Manufacturers don't normally ship SDK's with their hardware. You normally have to go to the manufacturers website for that.
|
|
|
|
|
Please I'm sorry to ask
But should i refer to the manufactures asking for the SDK or what ?
Really i appreciate your Help
Assaf
|
|
|
|
|
I think I've told you to do that twice now, haven't I?
|
|
|
|
|
Hello,
I have a problem :
I have a class Library (FooClasses) which has a refence to a second set of classes (Foo2Classes)
In Foo2Classes is a class (Foo3)
I have the following code
Imports System.Reflection
Imports Foo2Classes
Public Class FooClass
Protected Sub SomeSub()
Dim T as Type
T = Type.GetType("Foo2Classes.Foo3")
I have also tried
T = Type.GetType("FooClasses.Foo2Classes.Foo3")
End Sub
End Class
The T cant be found by reflection so I am assuming I must load the Foo2Classes assembly first.
If this is the case how can I load the assembly without using a hardcoded path in a loadfrom.
What I want to be able to do is to use the fact that it has been referenced in my FooClasses.
Can you get the path from the assembly reference , rather than hardcoding it OR putting in a partially qualified pathname ie "/subdir/Foo2Classes.dll"
Thanks
Martin
life is a bowl of cherries
go on take a byte
|
|
|
|
|
MartyK2007 wrote: If this is the case how can I load the assembly without using a hardcoded path in a loadfrom.
Use the Path class to build the fully qualified path to the assembly.
Dim fullPath As String = Path.Combine(Application.StartupPath, "myAssembly.dll")
MartyK2007 wrote: Can you get the path from the assembly reference
The reference only exists to keep the compiler happy. They don't exist at runtime.
|
|
|
|
|
Hello,
yes your assuming the assembly is in the startup path - is that a valid assumpton?
I may have a solution though
I think I can get the fully qualified name of the assembly from the current executing assemblies refernce collection.
This value doest have a path in it at all.
from there I can issue am assembly load using the fully qualified Name and it seems to get it.
I am testing to see if this happens in all cases
thanks
Martin
life is a bowl of cherries
go on take a byte
|
|
|
|
|
MartyK2007 wrote: yes your assuming the assembly is in the startup path - is that a valid assumpton?
No, it's not, and it wasn't meant to be an assumption. I gave you an example of building a path from a well-known starting point.
|
|
|
|
|
ok no offense meant.
The issue with that is that your dll's have to be below your app.startup which in my case may not be relevent
I think the fully qualified name though has legs - still testing
thanks for your help
Martin
life is a bowl of cherries
go on take a byte
|
|
|
|
|
|
No matter what I do, the ClipCursor function will not work.
I'm using VB.NET and i'm running on Windows Vista (SP1 as far as I know).
Here's a basic outline of my code:
Option Explicit On
Public Class MainBase
Private Structure POINTAPI
Dim X As Long
Dim Y As Long
End Structure
Private Structure RECT
Dim Left As Long
Dim Top As Long
Dim Right As Long
Dim Bottom As Long
End Structure
Private Declare Function ClipCursorRect Lib "user32" Alias "ClipCursor" (ByVal lpRect As RECT) As Integer
Private Declare Sub ClipCursorClear Lib "user32" Alias "ClipCursor" (ByVal lpRect As Long)
Private Declare Function ClientToScreen Lib "user32" (ByVal hWnd As Long, ByVal lpPoint As POINTAPI) As Long
Public Function CursorClip(ByVal lLeft As Long, ByVal lTop As Long, ByVal lWidth As Long, ByVal lHeight As Long) As Integer
Dim tR As New RECT()
Dim tP As POINTAPI
'Convert positions into a rectangle in pixels
tR.Left = lLeft
tR.Top = lTop
tR.Right = (lLeft + lWidth)
tR.Bottom = (lTop + lHeight)
'Set the cursor clipping rectangle
Return ClipCursorRect(tR)
End Function
Private Sub FormIsClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
Call ClipCursorClear(0&)
End Sub
Private Sub FormLoad(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If CursorClip(Me.Left, Me.Top, Me.Width, Me.Height) = 0 Then
MsgBox("Failed")
End If
End Sub
End Class
Any ideas? :\
|
|
|
|
|
I've just started experimenting with VB.Net and ran into a problem I don't really kniw how to handle.
I'm writing a simple DU Meter like appliation with a timer that retrieves some network information every second. When i have a look in the Task Manager, I see my applications "I/O Other" counter is rising about 2000 points every second (in comparison, the average app only uses 20000).
I narrowed it down to the following piece of code:
Imports System
Imports System.Net
Imports System.Net.NetworkInformation
Public Class DUMeter
Public Function InterfacesCount() as Integer
InterfacesCount = NetworkInterface.GetAllNetworkInterfaces.Length
End Function
End Class
So every time I retrieve the number of adapters, that number rises. Is there a way to clean up these resources or am I doing something fundamentally wrong?
|
|
|
|
|
You imply that you're running this code every second. Why? The adapter's usually won't change during the execution of your app.
There is no known leak with the NetworkInterface class. What you're seeing is not a resource leak, but a count of I/O operations that are occuring. It's like looking at the number of disk reads/writes and thinking that's a resource leak. it's not.
|
|
|
|
|
I retrieve the number of adapters to detect new or dropped connections (dial-up, VPN). Like you said, usually they don't change. But they might
Thanks for the answer tough. It's just kinda weird seeing that number rise so high.
|
|
|
|
|
Check out the NetworkChange class. It may help you prevent constantly polling for changes to the network adapter list.
|
|
|
|
|
I need trigger that can insert the primary key of table automatically
Please help me
|
|
|
|