|
Hi,
How do I retrieve the manufacturers hardware serial number of the physical drive a c# application is running on. I base this on a situation where at least the application is stored on one disk, without striping etc, and, with avoiding the issue of 'volumes'. Ultimately, the app is stored somewhere on an item of hardware. That's the hardware item I want information on.
Regards,
Bram.
Bram van Kampen
|
|
|
|
|
I'd try WMI (Windows Management Instrumentation).
But WMI does not work correctly sometimes, and some devices may not have a serial number (SD memory cards).
|
|
|
|
|
The ONLY reliable hardware identification system is a dongle. I've used ESecuTech[^] with good success in some of my applications. Getting the dongles programmed was a bit of a challenge, but once you have a process its relatively easy. This is the only consistent hardware locking mechanism I've found after a lot of research.
As posted above, the disk serial number is not reliable, and is not often reported. Especially when using RAID type drive architecture, that kind of information may not be returned if Windows can't see it as multiple physical drives. On top of that, some drives just don't report it.
|
|
|
|
|
sir i m dinesh sahu student bscit , i want creat login form where in my project three user and they have separate page for each it mean teacher has teacher_page,student_page and office staff has office_page.
ok
in my login form i use one text box for userid ,second for password and third combobox for as role.
so sir in one login button how i can open three different form if there user id ,password and role is match
plzz help me sir
|
|
|
|
|
Well Dinesh as you have not stated which technology you are using the answer cannot be specific. You have already stated how you do it, you test the logon results and decide if the user have permission to enter and what role they are taking. Then you NAVIGATE to the desired page/view/form.
The navigate method will depend on your platform ASP/WPF/Winforms.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
Here is the start of your research, have some google foo[^]
I suggest you get a beginners book on windows forms application development and work through the examples, this is one of the first lessons you will learn
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
You can open any number of pages.
Once login succeeds, try window.open('teacher_page.aspx','_new') . and so on.
|
|
|
|
|
can anyone help me out with a good link for raising Event in User control i am not able to find a proper code
|
|
|
|
|
|
|
I wish to show what the control does by hovering the cursur over it, right clicking, or some other means. Basically a help file which explains more detail about the control and its function.
Is there a way I can accomplish this.
Any help will be appreciated.
Thanks in advance.
Michael
|
|
|
|
|
ToolTip is the general method of adding help to a control, I have been known to add a help icon to each form and allow the user to edit their own help data, never happens of course!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Hi Michael,
It might be helpful to know if you are speaking "in general" here, or if you have a specific scenario in mind.
Is it the case that you want what is shown to provide information to persist until the user "tells it to go away," or is a ToolTip, which you do have some control over how long it stays visible, good enough.
Do you have a certain type of user in mind here: a programmer, for example; or, a very non-technical end-user ? I'm guessing you intend this for a programmer.
It seems almost 100% certain to me you are talking about displaying information while your application is running, but, if that's not the case, please do state that.
yours, Bill
~
“This isn't right; this isn't even wrong." Wolfgang Pauli, commenting on a physics paper submitted for a journal
|
|
|
|
|
hi
Im a beginner in .net can u give some examples programs to get going
|
|
|
|
|
|
|
Reading a good programming book should help you get started.
|
|
|
|
|
I agree with Abhinav S. Get a starters book somewhere and read it from A-Z. Don't start out too specific (like WPF or WCF), but rather a "Learning .Net with C#" kind of book.
good luck taking the first steps.
|
|
|
|
|
Their are many standard publications who have good books but you should always buy books with label like beginner guide or absolute beginner guide or guide for dummies(no offense) and yes you must start with core c#, it hurts me too much when some random guy show up for interview and fail to explain Object callings and references.
|
|
|
|
|
Hi, i'm making text editor in c# with wpf. The editor apply changes (bold, italic, fontsize) only text selected for user.
how can I make the change occurs before typing the text in editor ?!
Tnks
|
|
|
|
|
So, what you have in mind is that there is no text currently selected, but the Textbox has focus, and the insertion point is set somewhere, and you press a button, or something, and then the next characters you type are in bold, italic, etc., depending on what buttons you pressed ?
What have you tried so far ? What are you doing now, in code, that sets the selected text to bold, italic, etc. ?
~
“This isn't right; this isn't even wrong." Wolfgang Pauli, commenting on a physics paper submitted for a journal
|
|
|
|
|
Then, remember Word when press "I" for the Italic the cursor change and the text to. In my case i need input text and after select all text e press "I" for changes. But i want to work as the Word.
Now i use ApplyPropertyValue();
|
|
|
|
|
juliogyn wrote: Now i use ApplyPropertyValue(); And, does that work for you ? If so, game-over.
~
“This isn't right; this isn't even wrong." Wolfgang Pauli, commenting on a physics paper submitted for a journal
|
|
|
|
|
I want to design SSIS component when i load the package.
My goal is to reproduce the components contained in a package when I load it.
The package is loaded by c# , winform application , i can load package ( doc.LoadXml(packageXml))
When the xml is loaded, I retrieve the layout of the package and its components. . With the layout, I can get the coordinates of the component and redraw one by one.
well that's what I think.
This link
http://pragmaticworks.com/Products/BI-xPress/Features/SSISMonitoringConsole.aspx ,
picture 3 and 4 show what I would like to have as result.
This example concerns the 2012 packages
Also the picture 3 of the following link shows the result of thepackages in 2008 and 2005
https://ssisloganalyzer.codeplex.com/
Thx for any Help.
|
|
|
|