4,901 Posted Topics

Member Avatar for Auditions

Please take the time to describe the problem in more detail. The more information you can provide, the better your chances of getting a meaningful response.

Member Avatar for Reverend Jim
0
269
Member Avatar for Ethan_6

Assuming it's a Windows program, you could run a WMI query to check for the presence of the particular hardware and abort if not found. Alternately, if you knew the name of the associated driver file you might, instead, check for the presence of that file.

Member Avatar for Reverend Jim
0
456
Member Avatar for Reverend Jim

Over the years I've seen a lot of discussion (and several implementations) of the Quicksort algorithm. Most of what I have seen, unfortunately, lacks sufficient commenting as well as meaningful variable names. Hopefully the following vbScript code will more clearly show how Quicksort actually works. A couple of incidental notes: …

Member Avatar for Reverend Jim
1
2K
Member Avatar for Elizabeth_13

Without getting into the code, if you have two points then you have the coordinates (x,y) of both points, therefore you can calculate `(y2 - y1)/(x2 - x1)`. Note the importance of parentheses.

Member Avatar for Reverend Jim
0
1K
Member Avatar for Iuliana_1

No one is going to do your homework for you. Please read [this thread](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question) for suggestions on how to post meaningful questions.

Member Avatar for Reverend Jim
0
154
Member Avatar for Uchenna_2
Member Avatar for johndohmen1963

`UseVisualStyleBackColor` is True by default. To set other properties for all buttons you could do, as an example For Each btn As Button In GroupBox1.Controls.OfType(Of Button)() btn.BackColor = Color.Cyan Next You can't change the defaults like Button.DefaultBackColor = Color.Cyan because default properties are read-only.

Member Avatar for Reverend Jim
0
650
Member Avatar for Tejindra

>You are going to build a simulator for a Bakery Business No. **You** are going to build it. @james - that's "Mad" world.

Member Avatar for JamesCherrill
-4
372
Member Avatar for chamki

Start with the axiom "computer code is for humans to read and only incidentally for computers to execute" and have another look at your code. 1. it is poorly formatted (no indentation) 1. it is uncommented See [this code snippet](https://www.daniweb.com/programming/code/515601/vbscript-implementation-of-quicksort) for an example of code that is commented and indented …

Member Avatar for Reverend Jim
0
234
Member Avatar for mohammed_46

The reason you are finding it difficult is because this is a dog's breakfast of a piece of code. That is not the way to write a program that runs a multiple choice quiz. In its simplest form you would have a text file where each record (line) contains the …

Member Avatar for Reverend Jim
0
276
Member Avatar for Ancient Dragon

A physicist, a biologist, and a mathematician are sitting on a bench across from a house. They watch as two people go into the house, and then a little later, three people walk out. The physicist says, "The initial measurement was incorrect." The biologist says, "They must have reproduced." And …

Member Avatar for jkon
4
4K
Member Avatar for Reverend Jim

An often underused control from vb.Net is the FolderWatch control. But sometimes you need to throw something together that doesn't need a fancy GUI. Or perhaps the task seems too trivial to go to the hassle of coding it up in vb.Net (or C#). Because the FolderWatcher is built on …

1
1K
Member Avatar for Andrew_45

You can also do a quick check with diskmgmt.msc, or, if you are willing to do a little reading you can use diskpart.exe.

Member Avatar for David_50
0
446
Member Avatar for Reverend Jim

I just posted a code snippet [here](https://www.daniweb.com/programming/code/515601/vbscript-implementation-of-quicksort) and noticed a couple of problems. 1. No matter how I try to fix it, the frst line refuses to display properly indented. 1. The few lines of code that I included in the top window, even though properly indented, refuse to display …

Member Avatar for Dani
0
918
Member Avatar for Reverend Jim

Does anyone know the function and origin of the wireless profile, bungle4? I've been cleaning up my numerous vbScript files and when I tidied, then tested Metered.vbs, it produced the following: D:\>metered Profiles on interface Wi-Fi: All User Profile : bungle4 All User Profile : mynet Metered.vbs is a script …

Member Avatar for Reverend Jim
0
510
Member Avatar for Marcus_5

Start with pseudo-code. If you were trying to tell someone how to draw the x, what would you say? If you can't figure out the general case (length=n) then start with a specific case (length=5) and write out one step for each row. Then try to generalize each row. That …

Member Avatar for Reverend Jim
1
3K
Member Avatar for Henry_21

You won't find anyone here to write it for you. If you want help with problem areas then you can post your questions but you have to show proof of effort first. Please read [this thread](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question) for suggestions on how to post meaningful questions.

Member Avatar for Reverend Jim
0
99
Member Avatar for Rei Xine

Show us the code you have so far. ANd please remember to post programming questions in the programming section.

Member Avatar for Reverend Jim
0
156
Member Avatar for Rogayah

You haven't said what class this is for. I presume the class is not associated with any particular language. If that were the case, there would be no choice. The way you described the problem doesn't suggest any one language over any other so the question then becomes, what language …

Member Avatar for Reverend Jim
0
401
Member Avatar for RafaelNinja13
Member Avatar for woooee
0
2K
Member Avatar for Varun_14

Nobody can help you with the little info you have provided. Can you post the code you are running?

Member Avatar for Varun_14
0
260
Member Avatar for esedee

We have seen many users asking for suggestions for a thesis topic or comp sci project or whatever. First of all, we do not know your skill level so we can't suggest something that would be appropriate. Secondly, we are not here to give you ideas. When you have an …

Member Avatar for Mridula_1
0
420
Member Avatar for JohnMcPherson

I can't say anything useful without knowing the declared types of the variables in the missing include files. The variable names are terse and cryptic (ky, kky, etc.) and the code contains no useful comments. I strongly suspect (based on many years of working with them) that the code was …

Member Avatar for JohnMcPherson
0
807
Member Avatar for Reverend Jim

Several people have asked how to export data to Excel. This code snippet shows how to export the data from a listview in details mode to a new Excel spreadsheet. Take note of the comments in the header to avoid having orphaned Excel.exe tasks eat up your system memory.

Member Avatar for Reverend Jim
7
9K
Member Avatar for isam_1

Please read [this thread](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question) for suggestions on how to post meaningful questions. If you'd read the [Posting Rules](https://www.daniweb.com/welcome/rules) you would know that you won't get someone here to write your code for you.

Member Avatar for rproffitt
0
150
Member Avatar for jerry12

What you mean is it deleted all the ones it was able to detect. That doesn't necessarily mean it deleted **all** of the infection.

Member Avatar for Amy_11
0
1K
Member Avatar for darren110690
Member Avatar for Reverend Jim
0
24K
Member Avatar for Ashwini_6
Member Avatar for kberrianjr

I suggest you isolate your database read/write code in separate modules. That will make it easier to transition from one data source to another. The only code you would have to change would be isolated in one or two modules. You could start with a json, xml, or even csv …

Member Avatar for Reverend Jim
0
694
Member Avatar for paul_61

I don't know about the array method but you might read it into a ListView then see [here](https://msdn.microsoft.com/en-us/library/ms996467.aspx) for how to do a custom sort on any column.

Member Avatar for paul_61
0
374
Member Avatar for Zxander

The way this works is that before you get help you have to show that you have put in some effort to solve it yourself. It would help if you [Read This Before Posting a Question](https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question). Following that, please feel free to post your questions here.

Member Avatar for Zxander
0
372
Member Avatar for minecraft_1

Are you asking how to make the drive visible again as D? Or are you asking how to recover the files from the deleted drive? If you just deleted the disk then the files are still there. Try [EaseUS](https://www.easeus.com/partition-recovery/) if that is the case. In any case, why would you …

Member Avatar for Hindi Me Padhe
0
530
Member Avatar for singularity~
Member Avatar for Snowblind738
0
3K
Member Avatar for Hamsterking

If you are running windows 7 you can do a freeze to free up a good chunk of space. Windows keeps around a lot of old crap after installing service packs in case you want to do a rollback. Doing a freeze removes the uninstall files. To do a freeze, …

Member Avatar for Reverend Jim
0
402
Member Avatar for NetJunkie

Why bother. Just install [f.lux](http://justgetflux.com/faq.html). It's free and easy to use. I know the latest Windows 10 update has their own version but, based on my experience with Microsoft making simple things complicated, I am sticking with f.lux.

Member Avatar for Bryant_1
0
798
Member Avatar for RizzLinux1388
Member Avatar for floris

Technically, MySql is not a database server. It is a database engine and the engine plus the supporting hardware/software constitutes a database server. A **database**, however, is the set of tables/stored procedures, etc. specific to an implementation. That is why we refer to things like an employee database or a …

Member Avatar for Reverend Jim
0
708
Member Avatar for Reverend Jim

In order to resolve a problem whereby Microsoft keeps updating my video driver (which works) with a newer version that is crippled, I installed the Windows 10 Creator's Update. So far it - Reset driver update back to auto (I had disabled it) - Re-enabled OneDrive (I had disabled that …

Member Avatar for Josef_2
0
630
Member Avatar for haslamjd

Try opening a shell as Admin and typing cacls pics /e /g %username%:full but if that doesn't work you could always boot into a linux livecd and just copy the files to another folder.

Member Avatar for Reverend Jim
0
1K
Member Avatar for Lorraine_2

You might want to check out [spinrite](https://www.grc.com/spinrite.htm). It might recover otherwise inaccessible areas of the drive.

Member Avatar for Lorraine_2
0
432
Member Avatar for Nemius

What is the problem? Please do not just reply "it doesn't work". You wouldn't take your car to a mechanic and tell them only "it doesn't work".

Member Avatar for woooee
0
592
Member Avatar for zachattack05

There is also the possibility that some programmer wrote code that accesses the columns in a recordset by number rather than by name. I've seen it done more than once by someone new to DB programming.

Member Avatar for Reverend Jim
0
593
Member Avatar for rproffitt

Officially, Microsoft was still offering the free upgrade only to users of "accessibility" features but they weren't asking for any verification so it's basically just an extension. I have two laptops that I don't want to upgrade just yet so in order to allow me to do the upgrade later …

Member Avatar for rproffitt
0
562
Member Avatar for man.chester.581
Member Avatar for misabah
0
381
Member Avatar for scheppy
Member Avatar for AssertNull

At the worst I was repeatedly cycling through the four top-level forums, mass deleting 50-100 spams in each. By the time I was done the last forum it was time to start again with the first one.

Member Avatar for Reverend Jim
0
532
Member Avatar for Md_22

Hello. How are things in West Bengal? Probably a lot warmer than here (-27C) just now.

Member Avatar for Dani
0
236
Member Avatar for Waleed_4
Member Avatar for Reverend Jim
0
608
Member Avatar for Mady_1
Member Avatar for hello__1

Check the pairing of your brace brackets. They aren't paired properly. You are missing a few closing brackets in `case 2`. You should also remove the final closing brace at the very end.

Member Avatar for Reverend Jim
0
390

The End.