rapture 134 Posting Whiz in Training

Not that I'm doing a project like this but you questioned about Firefox URL's etc Comatose, would the method to do that be similar but adding those registry locations to the list or would there be something different to do those?

rapture 134 Posting Whiz in Training

I'm newer to vb.net so the others might change this a bit

Private Shared Sub GetInstalled()
         Dim uninstallKey As String = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall"
         Using rk As RegistryKey = Registry.LocalMachine.OpenSubKey(uninstallKey)
             For Each skName As String In rk.GetSubKeyNames()
                 Using sk As RegistryKey = rk.OpenSubKey(skName)
                     Console.WriteLine(sk.GetValue("DisplayName"))
                 End Using
             Next
         End Using
     End Sub
Comatose commented: Perfect Code Port +8
rapture 134 Posting Whiz in Training

You didn't mark it as solved, are you still stuck?

Did you find this site?

http://www.freevbcode.com/ShowCode.Asp?ID=2298

rapture 134 Posting Whiz in Training

Well just searching on this site gave me some responses to this question, a google search on

vb.net how to write to the event log

brought up a ton of things. And last but not least have you used the help feature in Visual Studio? I looked for

"write to event log"

and got some interesting material. In other words, did you make any attempt to figure it out and you don't understand something or do you just want us to do it for you?

(I'm not trying to be a jerk, I'm actually trying to help.)

*hint, within the items I have stated there is a block of code that would be extremely useful to you. :)

rapture 134 Posting Whiz in Training

You don't mention if you have to use substring to get the extension or if that is just the method to grab it you decided to use so I'll ask another question . . .

Is there any reason you are not using path.getextension() ?

extension = Path.GetExtension(fileName);

You can get this info from a google search on C# path.getextension or msdn is here: http://msdn.microsoft.com/en-us/library/system.io.path.getextension.aspx

(wondering because .aspx is four while .doc is three etc.)

ddanbe commented: Nice! +4
rapture 134 Posting Whiz in Training

Then why didn't he mark it as solved?

rapture 134 Posting Whiz in Training

I'm just a guy trying to learn so take my advice with a grain of salt -
first off, I agree with the others, and they are not heartless, just tired of a lot of people working on a project for school somewhere who want us to write their code for them.

If I'm not mistaken what you want is something like this

Left(somevariable, 3)

transfers to

somevariable.Substring(0,3);

at least I think that's correct.

(By the way, look at the number of threads they have marked as "solved" - they are willing to help, they just want some effort from the poster first...)

rapture 134 Posting Whiz in Training

Filipe11

Don't guess, look for an answer and then post a question. It helps when you show you're trying. I know it's frustrating but you're never going to go anywhere in programming if you just rattle off a bunch of guesses.

Read this
http://www.techotopia.com/index.php/C_Sharp_List_and_ArrayList_Collections

And what does your textbook say about using lists? ( I assume this is a course project or assignment of some sort)


*** And LizR is right - use the built in help function to help you figure things out as well

rapture 134 Posting Whiz in Training

I think you should have marked the post solved for him as this is a different question bro

C# conditional OR operator is ||


http://msdn.microsoft.com/en-us/library/6a71f45d(VS.80).aspx

rapture 134 Posting Whiz in Training

Try

sql = "SELECT * FROM tblDriver WHERE dName ='" & lbDriverName.SelectedItem"'"

I think that should work - you have to have the whole statement surrounded by double quotes but to add the selected item I think you put it within double quotes within single quotes . . .

maybe this post helps:

http://www.daniweb.com/forums/post700733.html

rapture 134 Posting Whiz in Training

Hmm, all the way back to VB6 eh -

Actually you might get a better answer in the VB 4|5|6 forum than in the .Net forum. Garbage collection is different in VB6 from .Net

rapture 134 Posting Whiz in Training

I used this when working with datagrids recently - hope it helps

http://www.xmlfox.com/datagrid_datagridview.htm

I've also done some formatting in the html of my vb.net application

rapture 134 Posting Whiz in Training

I recommend you use this utility to debug and see if that helps

http://www.my-debugbar.com/wiki/IETester/HomePage

edit: if you have not tried 7 in some time I think most of the problems are fixed. I had problems originally as well. Things like, I installed 7 and then couldn't connect to the internet etc - they are all fixed now. ( at least the ones I had initially, and I'm not talking beta either.)

rapture 134 Posting Whiz in Training

What version of ie are you running? I just viewed all six pages with firefox 3 as well as ie7

rapture 134 Posting Whiz in Training

Actually I've done some work with datagrids and they can drive you nuts sometimes. As far as I know, the only way to do this is for you to set the border properties for the columns from the HTML side. You will probably not have each individual column listed already you will have to add it and I believe you have to add them all and not just the ones you want changed.

rapture 134 Posting Whiz in Training

There is no way that I know of separate from what is built into Visual Studio. (i.e. there is no \* */ or anything)

In Visual Studio 2005 there is the option to comment and uncomment multiple lines of code. Type your lines just as you need then you highlight them, on the text editor toolbar there are two buttons for this one to comment the other to uncomment. They are just to the right of the indenting buttons.

rapture 134 Posting Whiz in Training

You run grossPay = hoursWorked * payRate

payRate is defined above it but hoursWorked is not - therefore it looks like you're running

grossPay = 0 * (the value of the textbox)

-- move your hoursWorked = textboxHours.Text to above the grossPay = hoursWorked * payRate and see if that helps.

bpacheco1227 commented: a great help +2