4,901 Posted Topics
Re: 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. | |
Re: 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. | |
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: … | |
Re: 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. | |
Re: 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. | |
Re: What is your problem? | |
Re: `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. | |
Re: >You are going to build a simulator for a Bakery Business No. **You** are going to build it. @james - that's "Mad" world. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
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 … | |
Re: 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. | |
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 … | |
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 … | |
Re: 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 … | |
Re: 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. | |
Re: Show us the code you have so far. ANd please remember to post programming questions in the programming section. | |
Re: 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 … | |
Re: Take out the blank at the beginning of alph and ignore all characters not in alph. | |
Re: Nobody can help you with the little info you have provided. Can you post the code you are running? | |
Re: 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 … | |
Re: 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 … | |
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. | |
Re: 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. | |
Re: 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. | |
Re: 1. It doesn't produce any output. 1. Please don't revive old threads. | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: To rule out the router, why not connect a laptop on the same subnet as the server and try to connect? | |
Re: 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, … | |
Re: 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. | |
Re: 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 … | |
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 … | |
Re: 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. | |
Re: You might want to check out [spinrite](https://www.grc.com/spinrite.htm). It might recover otherwise inaccessible areas of the drive. | |
Re: 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". | |
Re: 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. | |
Re: 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 … | |
Re: Can I assume you meant **"deploying"**? There are lots of apps I deplore. | |
Re: I presume delta (change in) x and delta y (calculus terms). | |
Re: 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. | |
Re: Hello. How are things in West Bengal? Probably a lot warmer than here (-27C) just now. | |
Re: A switch construct needs a `switch` statement. You don't have one. Look up the syntax. | |
Re: Is there a question? | |
Re: 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. |
The End.