|
hehehehehehehe no problem dude!!!!
just one last question... on the header of the code a put just
using System.Diagnostics; ??? because System.Diagnostic.Process is unrecognized too : /
Thank you dudes.. I really owe you one!!!!
|
|
|
|
|
In 'using's at the top of your file you can only put namespaces.
Process is a class within System.Diagnostics so it can't be put in the using (and of course Start is a method of that class).
For future reference, typos like that happen quite regularly. If something's not found there's several ways to find the error.
1. Type the line letter by letter until intellisense kicks in, and see if what you need is in the list (spelled correctly!).
2. Use the Object Browser and search for the class and/or method, or alternatively, browse from the base namespace. This can be good for finding out if there are any references you need to add to your project too.
3. Paste it into google, if there is a typo, at the top of the first page of search results there will normally be a suggested correct spelling.
The first two have the added benifit of showing you all the other stuff in that namespace/class that you wouldn't have known about otherwise. You can learn loads of new stuff by browsing around in there.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Then you just use Process, not System.Diagnostics.Process.
The using statement at the top frees you from haing to type the entire qualifier.
As for where you call the execute statement, that's up to your design! Though, having looked at the entire code you posted, you don't have any code doing anything with the files in the listview after the listview is populated. So, I have no idea what you expect the user to do to launch a file. What happens there is totally up to you.
|
|
|
|
|
Yeah! That´s where I´m placing the method executeFile. I´ll call by an event like listView_Click or eiter the listView_SelectedIndex
The code to populate I found here at CP and with a few changes I made it point to an expecific folder to be the root (just basic programming and basic O.O. concepts). My professors at college helped me a little because they are not quite familiar with .NET Framework. Even I got more familiarity with Assemble Languages and Structured C/Pascal... and few notions of O.O C++ and Objective C(Mac) (I HATE JAVA). I´m still junior in .NET but I´m trying!!!! I almost did it... just a few errors!!!
I appreciate all the help!!! I owe you guys a beer!!!!
Thanks
|
|
|
|
|
Having one on you right now
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
I have Visual Studio 2005 with Framework 2.0 installed in my machine. Can I use Framework 3.0 or 3.5 with Vistual Studio 2005. Or do you think that I need to have Visual Studio 2008 to work with 3.0 and 3.5. And also is Framework 3.5 is out or is that still in its Beta version.
Thanks
|
|
|
|
|
netJP12L wrote: Can I use Framework 3.0 or 3.5 with Vistual Studio 2005
Yes. A google search will lead you to the correct MS pages to download what you need.
netJP12L wrote: is Framework 3.5 is out
Yes, has been for some time.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
thanks for answering. i am scared upgrading from 2.0 or 3.5 in my existing vs 2005 as it may corrupt something. do you think this possibility. Why microsoft is releasing their framwork so often. It's getting very tough to catch up and live up the with one framwork atleast for a while.
|
|
|
|
|
3.0 and 3.5 live in addition to 2.0 so you can still use 2.0 if you like. In fact, VS2008 gives you the option of which of these frameworks you'd like to use on the New Project screen.
If you go for it you'll be able to play with LINQ, extension methods, WPF etc... That's why they added the new frameworks - new stuff/toys to play with
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
netJP12L wrote: i am scared upgrading from 2.0 or 3.5 in my existing vs 2005 as it may corrupt something. do you think this possibility.
It is possible but unlikely. That's what backups are for.
2005 to 2008 upgrade is a lot easier than 2003 to 2005 especially as VS2008 supports multi-targetting. That means that in VS2008 you can specify what version of the .NET Framework you want to use in your project.
netJP12L wrote: Why microsoft is releasing their framwork so often.
Jeez, if you think that is bad you should have been around when MFC was at its height (late 90s). MS were releasing a new version of that every few months at one point.
.NET 3.0 and 3.5 are purely additive. In otherwords they don't make changes to bits released in previous versions. (Unlike 1.1 to 2.0)
That means that if you know .NET 2.0 then you are not required to learn anything new unless you want to.
netJP12L wrote: It's getting very tough to catch up and live up the with one framwork atleast for a while.
Then concentrate on the areas you will find useful. I try and take a high level view of everything so I know what is out there. Then I drill down into what I need when I need it. I find that I can ramp up to a new part of the framework fairly quickly because I already know what it is for and what it does, I just need to learn the detail.
|
|
|
|
|
|
Hi Dears
I want a code to find and get HDD Serial Number without WMI in Windows XP with Framework 2 or VS2005 (C# Language)
Can anyone help me?
|
|
|
|
|
Screwdriver - open case - remove housing - Eyes
I still remember having to write your own code in FORTRAN rather than be a cut and paste merchant being pampered by colour coded Intellisense - ahh proper programming - those were the days
|
|
|
|
|
That is very hard to write in C# though
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Thomas Stockwell wrote: very hard to write in C#
Simple:
Console.WriteLine("Screwdriver - open case - remove housing - Eyes");
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
The woods are lovely, dark and deep,
But I have promises to keep,
And miles to go before I sleep,
And miles to go before I sleep!
|
|
|
|
|
Screwdriver screw = new ScrewDriver();
screw.OpenCase();
screw.RemoveHousing();
screw.Dispose();
Eye eye = God.GiveMeSomeEyePlease();
eye.SuspendLayout();
eye.SeeMyHDDSerialNumber();
eye.isMine = true;
While (true) { Human.isLearnable = true; }
|
|
|
|
|
Pedram Behroozi wrote: // No necessary to dispose Eye
You mean it's not derived from EyeDisposable?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Just kidding
There's a DLL[^] but why don't you want to use WMI?
While (true) { Human.isLearnable = true; }
|
|
|
|
|
I want to bang in a nail but I dont want to use a hammer, the end of a pair of pliers or even the sole of my shoe. Can anyone help me?
|
|
|
|
|
I always favour a rock as a good alternative
Bob
Ashfield Consultants Ltd
|
|
|
|
|
So the analogy is bust that case open to check the Serial number?
|
|
|
|
|
Did you know the volume serial number changes every time you reformat the drive?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hello, everyone.
A little help needed )
Is there any posibility to use different font style for different items in checkedlistbox?
For example, if I want to strike item if it's checked?
Can't find how to do that with standart checkedlistbox (
Thanks,
|
|
|
|
|
I think you'll need to handle the drawing yourself to do that.
You can get the same effect by using a ListView with the View set to List and CheckBoxes to true, then set the Font of any ListViewItems that you need to have different.
[edit] Just had a look, and the CheckedListBox doesn't support DrawItem so it's going to be a little more difficult if you don't want to use a ListView. You'd have to derive your own class from CheckedListBox and override OnDrawItem there.[/edit]
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
I've tryed to handle drawing, but it draws all control and I need one item (
|
|
|
|