|
i'm using vb.net to develop a system, and need to create chart(histogram/graph). Value should get from my database. But i dun have any idea on how to call out the value from the database to the chart..
anybody an idea on this?
thousand thanks for your help..
|
|
|
|
|
What's generating the chart ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
in my project is asp.net with c# project but my vss schedular is asp.net with vb.net.
Every this schedular is running on night 12.00am .
In that schedular i have somany doc files and excel files,.pdf files.
So while schedular running time html paths and actual document paths but some times it automatically stopped then i want do if any document contains problem then schedular ignore's that document and goes to next document.For this i want code. Iam sending some of the classes of the my project.
<pre>
public function get vss connection()
Public Function PopulateProject() As Boolean
Private Function PopulateSubProject(ByVal sParent As String, ByVal ItemIsDeleted As Boolean) As Boolean
Private Function Traverse(ByVal sProjectPath As String, ByVal SWFPath As String)
Private Function PopulateFiles(ByVal sParentID As Long, ByVal sProjectPath As String, ByVal sFolderPath As String) As Boolean
Private Sub InsertMenuRights()
Private Sub InsertDocNames()
Private Sub CreateFolder(ByVal Path As String)
Private Function GetNWExt(ByVal FileName As String) As String
Public Sub Conversion()
Private Function GetHTMLPath(ByVal FilePath As String)
Private Sub DocToHTML(ByVal FilePath As String, ByVal HTMLPath As String)
Private Sub PptToHTML(ByVal FilePath As String, ByVal HTMLPath As String)
Private Sub PDFToHTML(ByVal FilePath As String, ByVal HTMLPath As String)
Private Sub ExcelToHTML(ByVal FilePath As String, ByVal HTMLPath As String)
Private Function GetTPath(ByVal DocPath As String)
Private Function GetTruncPath(ByVal HTMPath As String)
where i will mention code in this classes.Please help me.
</pre>
samrama
|
|
|
|
|
hello all,
IS IT posible in vb.net to create a program that execute a command to TURN ON THE PC ON A SPECIFIC TIME??
i am using vb.net 2.0
hope anyone could help me!
any Code ???? Link ???
THANKS!
koolprasad2003
If the message is useful for U then please Rate This message...
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Yes, it's possible, but only if the mother board supports it. Unless the mother board is willing to turn itself on, it's not really possible. Doing it via VB.NET will only work if the code is running on another machine, and the machine being switched on has mother board features that your code can access.
Unless your code drives a robot that pushes the power button.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Thankx Christian ,
Thankx a lot,
can u give me code sample or any useful links ???
regards,
koolprasad2003
Be a good listener...Because Opprtunity knoughts softly...N-Joy
|
|
|
|
|
Some motherboards have wake on LAN, I'd expect those can be started with LAN activity. No, I have no code, I think it's a wild goose chase in most cases.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
We developed a VB project in 1024 by 768 pixels its good .When we want to view this in 800 by 600 pixels format. So many things are hidden how to view it or rectify it.Pls give me a solution
Kankeyan
|
|
|
|
|
Try docking your controls so that they maintain equal amount of form space.
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
You need to set the anchor property on your controls, so they size themselves automatically.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
HI, I have problem don't know what to do? I want to substract date, example.
Date July/07/07
Date Today June/12/07
Result "Date - Date Today" , What do i do?
I want to get result of the day "Left 25 days"
Socheat
................
|
|
|
|
|
You would use the DateTime.Subtract method.
Dim StartDate As New System.DateTime(2007, 6, 11, 12, 0, 0)
Dim EndDate As New System.DateTime(2007, 7, 12, 12, 0, 0)
Dim TotalDate As System.TimeSpan
TotalDate = EndDate.Subtract(StartDate)
MsgBox(TotalDate.TotalDays & "Days Left")
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
I get an error.
Type "System.TimeSpanTotalDate" is not defined.
So what can i do?
Socheat
................
|
|
|
|
|
It should work. Could you please post your code?
Trinity: Neo... nobody has ever done this before.
Neo: That's why it's going to work.
|
|
|
|
|
It work now.
Dim StartDate As New System.DateTime(2007, 6, 11, 12, 0, 0)
Dim EndDate As New System.DateTime(2007, 7, 7, 12, 0, 0)
Dim TotalDate As System.TimeSpan = EndDate.Subtract(StartDate)
response.Write(TotalDate.TotalDays & " days left")
By the way I want to get day and time left like N7W "24 days nad 2hours left"
Socheat
|
|
|
|
|
substituting minutes, seconds, days, or whatever interval you are looking for in the place of 'hours'. Well, in Visual Basic .NET there are two main ways to achieve this result; the DateDiff function or through the TimeSpan structure.
Both of these methods are equally valid, where they overlap in functionality, but each of them has a couple of unique features. Despite their similar functions, the core difference between the two is that DateDiff is a function, so you need to call it every time you need to retrieve a value, whereas TimeSpan is a structure that is created once and then you just work with its various members as needed.
Using DateDiff, you call it with different date interval parameters to retrieve the appropriate value:
Dim D1, D2 As Date
D1 = Date.Now
D2 = 11/9/2007 'DateDiff
Console.WriteLine("DateDiff")
Console.WriteLine()
Console.WriteLine("{0} Days", _DateDiff(DateInterval.Day, D1, D2))
Console.WriteLine("{0} Hours", _DateDiff(DateInterval.Hour, D1, D2))
Console.WriteLine("{0} Minutes", _DateDiff(DateInterval.Minute, D1, D2))
Console.WriteLine("{0} Seconds", _DateDiff(DateInterval.Second, D1, D2))
Console.WriteLine()
Hope this code will Help you.
Regards,
Satips.
|
|
|
|
|
Conversion from 'Double' to 'Date' requires calling the 'Date.FromOADate' method.
Please help me
Socheat
|
|
|
|
|
Hey guys I'm writing a program in VS2005 using VB.NET...I'm having a very strange issue. I'm running a fairly lengthy process where I show a progress bar and an estimation of the time remaining...when I run my project while VS is open, the process runs at a normal pace, even if i start the process from the bin and not from VS itself...if i kill VS and then run the process, it becomes unbelievably slow, has anyone else had this problem? Any ideas on how to fix it?
Apparently it's not OK to start a bonfire of Microsoft products in the aisles of CompUSA even though the Linuxrulz web site says so
|
|
|
|
|
Have you tried running the process, with all antivirus programs unloaded ?
My advice is free, and you may get what you paid for.
|
|
|
|
|
I don't use any anti virus software, I us a disk image that I can dynamically add to, so any time I get a virus or anything of that sort, I just reinstall off of my image...takes about 5 minutes.
It almost seems that VS somehow gives .NET processes a boost or something...I'm not sure. It's very strange, but the rate of speed is drastically different when not running VS, so much so that I think it would almost make the program unusable unless VS was running in the background the entire time...The tool is a data transfer program for SQLServer 2005. On average with VS running, it transfers roughly 150 records per second...when i shut VS down, the rate drops to roughly 20 records per second.
Apparently it's not OK to start a bonfire of Microsoft products in the aisles of CompUSA even though the Linuxrulz web site says so
|
|
|
|
|
Hmmm I figured it out...It is because with VS open I also have a live connection to my database...if i leave my connection open instead of closing it each time i have finished transferring data i don't have this issue. seems a little strange considering connection pooling is supposed to help with this, but apparently doesn't help all that much.
Apparently it's not OK to start a bonfire of Microsoft products in the aisles of CompUSA even though the Linuxrulz web site says so
|
|
|
|
|
Generally speaking, when using databases it is always faster to have as few separate calls and as few separate connections to the db as possible. Don't know why, but so I hear, and so I have experienced myself.
Good to hear your problem was solved
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
Hi, Can anyone give me an example to create new field to table in Ms Access with VB.NET?
Socheat
................
|
|
|
|
|
|
I have tried already, but not found.
Socheat
................
|
|
|
|