|
Dear Friend,
I want to collect the information of the hardware of my pc with there details using .net technology i know that it can be possible but dont know the direction can any one help me regarding this give me the proper direction and knowledge so that i can know exactly what is happening (i mean i dont want to copy pest the code but want to know the steps so it will be easy to me for my future also).
thanks in advance for your reference i have .Net 1.1 framework install on my pc as well as Microsoft Visual Studio 2005.
Thanks and Regards
Sasmi
Sasmi
|
|
|
|
|
First, you have to define what data you want to gather about the machine. Motherboard, BIOS, drives and their types, volumes on those drives, RAM, O/S installed, ... Then you have to can define WMI queries for all of this stuff to retrieve all the data you're looking for. You can then use the classes in the System.Management namespace to execute these queries and get as much data as you can.
Sasmi wrote: thanks in advance for your reference i have .Net 1.1 framework install on my pc as well as Microsoft Visual Studio 2005.
Visual Studio 2005 only works with .NET 2.0, not 1.1. If you have VS2005 installed, you automatically have .NET Framework 2.0 installed too.
|
|
|
|
|
Thanks for the info.
I will get understand the namespace for any other help i will disturbe you.
Sasmi
|
|
|
|
|
hi friends,
i have some values in my Db table, i want to show that datas in TV screen as flash data, like airport information screen. how can i do this, can anybody give any idea or link.. its urgent....
cheers
|
|
|
|
|
SamRST wrote: its urgent....
It's rude to say this. If you problem is so urgent, why aren't you paying for assistance?
Anyway, you haven't expressed your problem in a coherent enough manner for me to know what you are trying to do. Do you want to write some sort of real-time information system? Is it web-based or windows-based? You probably want to employ some sort of timer to update the screen periodically and read the latest information from your database.
Paul Marfleet
|
|
|
|
|
pmarfleet wrote: If you problem is so urgent, why aren't you paying for assistance?
He'd probably rather suck off of free community.
"Find it your bloody self - immediately!" - Dave Kreskowiak
|
|
|
|
|
Hi I am trying to increase the appeal of my forms by ading the colours across them, I have found a couple of code snippets online but when i try to implement it myself the keywords get underlined by the intellisense in vb.
eg:
oForm.AutoRedraw = True
oForm.DrawStyle = vbInsideSolid
oForm.DrawMode = vbCopyPen
oForm.DrawWidth = 2
oForm.ScaleMode = vbPixels
it will leave a message saying that Autodraw is not a member of system.windows.forms.form
the same for the other lines.
has something changed in vb.net or something? how could i implement fading the form colours?
thanks in advance
Mr Oizo
|
|
|
|
|
That's VB6 code. Although the syntax in VB.NET is very similar, it's a completely new language.
Here you see that most of the properties that you try to use simply doesn't exist any more:
MSDN Library: Graphics for VB6 users[^]
---
single minded; short sighted; long gone;
|
|
|
|
|
Thanks i'll check it out. hopefully what i'm trying to do is fairly easy
Mr Oizo
|
|
|
|
|
Thanks i'll check it out. Hopefully what i'm trying to do is fairly easy
Mr Oizo
|
|
|
|
|
I managed to sort out what i needed using the following code. Unfortunately if i use it on a button in the paint event it clears the text off the button and the button isn't raised off the form like normal.... Any ideas on how i can fix that?
Dim rec As Rectangle = New Rectangle(0, 0, Me.Width, Me.Height) 'create a new recatangle<br />
<br />
'Create a new brush. Make is a Gradient style brush.<br />
<br />
Dim myBrush As Brush = New Drawing.Drawing2D.LinearGradientBrush(rec, Color.Silver, Color.SteelBlue, Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal)<br />
<br />
'draw the gradient onto the form.<br />
<br />
e.Graphics.FillRectangle(myBrush, rec)
Mr Oizo
|
|
|
|
|
Your prior post said you were trying to do that to a form.
No, if you override the paint event of a button, you're going to have to do all the painting yourself, including the text and all the button states - mouse over, pressed, etc. What you're doing is painting over the button and only painting the background.
If you want pretty gradient/glass buttons, there are tons of articles here on Code Project that will show you how to do that.
The early bird who catches the worm works for someone who comes in late and owns the worm farm. -- Travis McGee
|
|
|
|
|
Thanks dude. I'll look around. If you know of any links i can click then please post them here. thanks again
Mr Oizo
|
|
|
|
|
Hi Guys
Can you any one have idea how we will creating set up for VB application including Desktop Shortcut.
There is any third party s/w to create set up file for vb app.
Regrads
Subash
Subash
|
|
|
|
|
Check out these links:
Link 1
Link 2
You always pass failure on the way to success.
|
|
|
|
|
how to convert pdf to html? by using source code
karthi
|
|
|
|
|
|
please read the sticky note on how to ask questions. All the questions here are about VB.NET, how does that help ?
A web server can serve a PDF directly. If you want to convert it to HTML, you need a PDF that contains text, not just images, otherwise there is little point. Even then, I'm not sure that any component exists, although components to return the text itself certainly do. There is no support for PDF in .NET, it's all via commercial libraries.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
Thanks sir, for your information !!!!
Happy Programming
-----
Abhijit
|
|
|
|
|
I am trying to do a barchart from data in a csv file in vb 2k3. I can write the required data to the csv file, but from here i am totally stuck and don't know which way to turn.
Any help or advise would be greatfully welcome.
Regards
Zeldacat
|
|
|
|
|
You need to either write code to draw a chart, or use a commercial or free library that does it for you.
If you want to write it yourself, read up on the Graphics and Bitmap classes.
Christian Graus - Microsoft MVP - C++
"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 )
|
|
|
|
|
http://www.zedgraph.org[^]
If you can read the csv file in yourself (and honestly, that should be trivial), ZedGraph has some awesome charting capabilities, including bar charts.
The early bird who catches the worm works for someone who comes in late and owns the worm farm. -- Travis McGee
|
|
|
|
|
Hi,
Can anyone tell me the solution to this problem. I have built a procidure wrapped in a class that takes a parameter.This procidure is called normally by starting a thread. When an event occures, it is required to call the procidure with new paramater.
A code snippet would be like this.
Private Sub btnReceive_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnReceive.Click
remote = New RemoteConnection 'this is the class
trListen1 = New Thread(AddressOf remote.ReceiveMessage)
remote.msg = "Message has been received."
trListen1.Start()
End Sub
Private Sub btnChange_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnChange.Click
If trListen1.IsAlive = True Then
trListen1.Abort()
Else
remote = New RemoteConnection
trListen2 = New Thread(AddressOf remote.ReceiveMessage)
remote.msg = "Message has been received,answer is here."
trListen2.Start()
End If
End Sub
But this does not work. How this can be handled?
Thanks.
reman
|
|
|
|
|
Hi Reman,
What you are trying to do is reasonably clear, however...
Amer Rehman wrote: But this does not work.
is not.
How does it not work? Is an error thrown, or what? If so, at what point in this code? etc?
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
Hi!
I'm beginner to VB.net & SQL server. I am doing a project in VB.net 2003 & SQL Server 2000. I don't konw the back up coding. please tell me.
_kalgi_
|
|
|
|