|
Thanks for your help Susan!
I read your "edited" version and I will be playing around with Crystal tonight and again on Thursday! Like I said, I will keep you posted on how I do!
I will pop you some mail when I am in the states again... which might only be in 4-5years or so! I have a friend that stays in California somewhere! Then I will pay my dues in the form of a cup of hot chocolate and a muffin! (Or something along those lines)
Thanks again Susan!
|
|
|
|
|
Hi all,
Can anybody tell me how to get my motherboards serial number?
Any help would be great!
Willem Le Roux
|
|
|
|
|
You can use WMI and the System.Managemnet namespace to get the serial number, IF AND ONLY IF your motherboard manufacturer supplies the WMI Management components to expose this information. Most don't. Check with your motherboard manufacturer for some kind of Management application that might install the required WMI classes.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi Dave!
Thanks for your reply and I will surly give this a shot, but I am looking for something a little more... pertinent shall I say...
I want to get the registration key of motherboards of various types, ages, makes ECT. ECT. ECT. It is going to be WAY too much effort trying to explain this "Installation of WMI Management components" scenario to every user!
Perhaps there is an easier way to go about this scenario? Perhaps a MAC address or something to this avail. If you can be of ANY assistance, please let me know!
Kind greetings
Willem
|
|
|
|
|
Willem Le Roux wrote:
I want to get the registration key of motherboards of various types, ages, makes
WMI is the only way you're going to do this. And, still, that's IF the motherboard manufacturer supplies it.
There's no standard method to get this and no "registration key" for motherboards. There's various components that make up a motherboard that are scattered throughout the device manager though. That's accessible through the Setup API functions. There's no .NET class that wraps it. How useful that information is depends on what you mean by "registration key" and what you want to do with it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hey sorry Dave!
Little typo! My brain was clearly broken that day! Work overload! I mean the "serial number" of the motherboard. Or the serial number for any component that is standard on any motherboard for that matter! Or a MAC address... Anything on the motherboard that is standard and unique! I will have a look through the device manager and toy around a bit!
Once again, sorry for my little typo! "Registration key" of the motherboard! That is stupid!
Thanks for your effort Dave! Really appreciate it! Will keep you posted!
Cheers!
Willem
|
|
|
|
|
Again, there is no standard that says a manufacturer has to supply this information on a motherboard, or any component on it. The only "standard" access method is WMI. There is no API call you can make to get this information other than WMI.
On top of that, it appears that only system manufacturers, like Dell and HP, even supply this information at all. The serial number belongs to the entire system, not the motherboard.
Basically, what you want cannot be found on every notherboard. If you're looking for something to build a registration key with, this ain't it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
i want to know that how can i make toolbar in c#.net.and how to add that toolbar in IE.
Amit Grover
CDAC R&D
Gist Group
pune
|
|
|
|
|
|
//Below is my code, I want to show employee detail on the bases of employee id.
//I use pubs database of SQL Server [Winform C#.Net]
=========================================================
<b>//Crystal Report Object
CrystalReport1 cp = new CrystalReport1();
//
private void Form2_Load(object sender, System.EventArgs e)
{
try
{
SqlConnection con = new SqlConnection("server=SK- WAQAS;uid=****;pwd=***;database=pubs");
SqlDataAdapter dsemp = new SqlDataAdapter("Select * From employee where emp_id=" + textBox1.Text.Trim(), con);
DataSet ds = new DataSet();
dsemp.Fill(ds,"employee");
cp.SetDataSource(ds);
//cp.SetParameterValue("emp_id",”AMD15433FDBT39435M”);
con.Close();
}
catch(Exception ce)
{
MessageBox.Show(ce.Message);
}
}</b>
=====================================================
Please tell where i do wrong.
|Muhamad Waqas Butt|
waqasb4all@yahoo.com
www.sktech.freewebspace.com
|
|
|
|
|
Hi all,
Is there any win32 api which can give me information about whenever a folder or file is double clicked right clicked or the folder is being expended in the windows explorer view.right click i can catch with icontextmenu and may be the expension in the explorer by the icolumnprovider(i am not sure about this) but how to catch the double click event.Is there any single api which can get the job done and is reliable.Any help will be greatly appreciated.Plz it's urgent.Thanks in advance.
|
|
|
|
|
No, there isn't. What are you trying to do accomplish with this?
|
|
|
|
|
Hi Friends
How can i generate standard Deviation graph? I have calculate mean and standard Deviation according to Array of values but How can i Plot Graph??
|
|
|
|
|
|
I am developing own library for Graph so plz give me any idea or sample code.
|
|
|
|
|
I never worked with GDI+ myself.
To get an example take a look at the source code of the library i suggested or explore the documentation of the System.Drawing namespace especially of the Graphics class.
www.troschuetz.de
|
|
|
|
|
I beleive a standard deviation graph can be done with just lines. There is a quick-and-dirty way to do this, by overriding the Paint event of a PictureBox and drawing on the pictures Graphics object. But, depending on how frequently the graph gets updated or the screen gets redrawn, you can see flicker when the pic is redrawn.
You could create a full custom control, with properties to accept an array of data, and custom drawing done in the OnPaint protected method. The actual logic for drawing the graph will completely depend on how you represent, store, and pass in the data being graphed, so I can't give you much example code there.
Just create a new Custom Control in your project, and override the OnPaint method (inherited from the System.Windows.Forms.Control class).
|
|
|
|
|
int a = 1.76543
how to i print out in such it way it'll only display 1.76?
|
|
|
|
|
If you're sure you'll always get d.dddd, you can simply multiply it by 100 (or the number of digits you want after the decimal point, cast it to an int and divide back by 100. Something like
double a = 1.76543;
int x = ((int)(a * 100)))/ 100.00;
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
a.ToString("0.00") should do the job.
For some more information on formatting of numeric strings take a look at this page[^].
www.troschuetz.de
|
|
|
|
|
double a = 1.76543;
Console.WriteLine("{0:F2}", a);
|
|
|
|
|
Hi,
I have a little (very small) app that use too much memory, how can i release resources that are not in use (loaded dll's that are no more necesary for example and all type of garbage that can be disposed) whithout closing my app of course?
When i load a dll can i unload it when it's not needed and my app is in idle?
I saw in a post a few days ago (and can't find it again) an instruction to unload resources when the app is close, if some one can provide me that line of code, this is for making sure i release resources.
Thanx.
|
|
|
|
|
If you want to unload DLLs, you need to load them on a separate AppDomain. How did you conclude your app is using too much memory?
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
With windows task manager (CTRL + ALT + DEL).
|
|
|
|
|
Make sure you are calling Dispose() on objects when you don't need them anymore (Controls, Pens, Brushes, Graphics, Bitmaps etc.).
You cannot unload dlls (you would need to load them in separate appdomains which would create even more overhead).
Note that Task Manager does not really show the memory usage of your app, it counts the memory used by the .NET Framework for every application, but in reality large parts of that memory are shared between multiple .NET processes.
|
|
|
|