4,911 Posted Topics
Re: What are you doing that triggers the error? Are you trying to access networked drives? | |
Re: You said you were using `BackgroundWork` but it looks to me that you are spawning a separate process. If you actually do it with a `BackGroundWorker` then you can tell when it is finished by the `RunWorkerCompleted` event. | |
Re: Well, the OP tagged the article with PYTHON so I kinda wonder why you posted php code. | |
Re: I'll refer you to [9 Tips for Longer Laptop Battery Life](http://www.pcmag.com/article2/0,2817,2458636,00.asp) | |
Re: My (former) boss never understood the concept of "technical debt". | |
Re: It would appear the code doesn't sort at all. Can you please explain what you mean by >But then it gets a bit messy as it can sort out numerous array based on the original. | |
Re: >Enter 10 student grades and print the total number of passing and failing grades entered Since you can't be bothered to even ask politely then I'll just answer impolitely with "do your own bloody homework." | |
Re: The common complaint from users. "It's just what I asked for but not what I wanted." | |
Re: Sure. Just write each paragraph as a separate line in the save file. Your loop would be For Each tbx As TextBox In Me.Controls.OfType(Of TextBox)() `output tbx.Text Next with the reverse on form load. You'd need to do some checking such as checkng if the temp save file exists before … | |
Re: If you don't even make an attempt to do it yourself then you won't learn anything. If you are unwilling to learn then why should we go to the effort of trying to teach you? | |
Re: Your most important skill as a programmer is the ability to communicate clearly. Develop that skill first. Never assume that the person you are communicating with has developed that skill. When you are asked to do a job, write down the job (in detail) as you understand it, then get … | |
Re: You can do it from Windows. Open a command shell as Aministrator and run DISKPART.EXE. First, list the mounted disks `list disk` Select the usb stick by its disk number (let's assume it is disk 1) `select disk 1` Wipe the disk `clean` Create a primary partition `create partition primary` … | |
Re: You can create a String Settings variable (see project -> properties) then add the following code Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load RichTextBox1.Rtf = My.Settings.RichText End Sub Private Sub Form1_FormClosing(sender As System.Object, e As System.Windows.Forms.FormClosingEventArgs) Handles MyBase.FormClosing My.Settings.RichText = RichTextBox1.Rtf End Sub | |
Re: Show us what you have tried so far. | |
Re: ProgressBars are typically only useful when you are looping through a process and you know where in the process you are. For example, if your loop is copying a known number of files then at each step through the loop you can set the ProgressBar to reflext what percentage of … | |
Re: It's certainly possible. Create a form and put a few controls of any type on it. Then add the following code. Public Class Form1 Dim indrag As Boolean 'true while dragging control Dim startX As Integer 'x powition at drag start Dim startY As Integer 'y position at drag start … | |
Re: Here's a thought. Have you tried googling [Inspirational quotes business](https://www.google.ca/search?q=inspirational+quotes+business&espv=2&biw=1455&bih=714&tbm=isch&imgil=GBIZMZg-V0jPVM%253A%253BVTr2MVvpUIKpYM%253Bhttps%25253A%25252F%25252Fwww.linkedin.com%25252Fpulse%25252F20130909115126-5853751-20-motivational-business-quotes-to-read-every-morning&source=iu&pf=m&fir=GBIZMZg-V0jPVM%253A%252CVTr2MVvpUIKpYM%252C_&usg=__-PiZ39UhzSF_mMaRmmckgcZZ3v4%3D#imgrc=g2wz1u5mI0l8lM%3A&usg=__-PiZ39UhzSF_mMaRmmckgcZZ3v4%3D)? | |
Re: Sounds suspiciously like a homework question to me. Don't expect anyone here to do it for you. | |
Re: z←avg 'enter 5 numbers' z←(+/z)÷⍴z←⎕ That's it in APL. What language were you using and what have you done so far? Hmmmm. Doesn't display when I come back. Here it is as an image...  | |
Re: If you want help then I suggest you do more than just cry "Help" and post undocumented code without any explanation as to what you need help with. It may be obvious what the problem is but if you can't go to the effort of asking a proper question... | |
Re: I suggest that instead of using a key type event you put your code in the textbox `Leave` event handler. That way any new text gets processed no matter how you leave the textbox. You can use the same handler for all 8 textboxes by Private Sub TextBox_Leave(sender As System.Object, … | |
Re: Try Private Function NextID(empid As String) As String Dim n As Integer = CInt(empid.Substring(3)) Return empid.Substring(0, 3) & Format(n + 1, "000") End Function Test with MsgBox(NextID("EMP013")) | |
![]() | Re: If one of your database columns does not have value then it will return NULL. You can either test for that before you try to convert or you can use a function in your query to return a default value (like zero). The MS SQL function is `COALESCE` as I … ![]() |
Like many people my age and older, I am hearing impaired. Specifically, I have lost hearing in the upper ranges. I find that I can manage reasonably well in face to face conversation, but I have a lot of trouble with recorded video. I use VLC which has a built … | |
Re: Is it possible that the actual datetime value in the database has `00:00:00.000` for the time portion? I tried this with my SQL database and it worked as you wanted. The first time I got `09/14/1994 00:00:00` and my database value was `09/14/1994 00:00:00.000`. When I manually set the database … | |
![]() | Re: You do NOT need two different connections. However, if you get an error that is caught by a `Catch` then your connection will stay open and that may be the cause of the error. You should add a `Finally` clause and include a `con.Close()` in there (but only if the … |
Re: I suggest you look into WMI (Windows Management Instrumentation). You can get some info plus a free tool to explore WMI [from this site](http://blogs.technet.com/b/heyscriptingguy/archive/2014/09/13/weekend-scripter-the-wmi-explorer-tool.aspx). [Here](http://wmie.codeplex.com/) is a direct link to the download. More info is available [here](https://msdn.microsoft.com/en-us/library/windows/desktop/aa394582(v=vs.85).aspx). | |
Re: Rule number one. Everybody lies. The first thing I would do is verify that what the user is saying is true. I would also add: * Verify that the user has not modified their computer by altering settings or installing software. In my experience most of the problems were caused … | |
![]() | Re: At the time you do Using cmd = New MySqlCommand(Query, con) `Query` does not have a value. Assign the query string to `Query` prior to that statement. |
Re: I think your problem is in the part VALUES (NULL,'$Male', '$female','$Couple','$tvt' WHERE Try changing it to VALUES (NULL,'$Male', '$female','$Couple','$tvt') WHERE ![]() | |
![]() | Re: You aren't assigning a value to Query until after you create the cmd. Try Query = "SELECT first_name, last_name, NIC_NO, c_address1, " & " c_address2, c_address3, c_telephoneNO, " & " membership_date, business_name, g_name, " & " g_nicno, g_address1, g_address2, g_address3," & " g_telephoneNO " & " FROM custormer " & … |
![]() | Re: It would help if you posted your code but as a guess I would say you are using the wrong password, |
![]() | Re: The synax is SELECT * FROM daily_income WHERE someDate BETWEEN '2015-12-17' AND '2016-01-10' |
Re: Sounds like homework. What language are you using and what do you have so far? | |
How is it that the government that tells us that they need a back door into encryption because the tool that we use to safeguard our privacy can also be used by "bad guys" for evil purposes, completely forgets this argument when it comes to guns? "Yeah, bad guys use … | |
Re: There are a few hotkeys that might help if you are stuck (^ = CTRL). ^Q quote ^I italic ^O ordered list ^H heading ^K inline code ^L enter link ^B bold | |
Re: You never assign `income_tax` a value other than `0` when you declare it. You do, however, calculate `total_tax` twice. Should one of those possibly be `income_tax` instead? | |
![]() | Re: You can get the value as an integer by Dim key As String = "HKEY_CURRENT_USER\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings" Dim proxyEnabled As Long = My.Computer.Registry.GetValue(key, "ProxyEnable", Nothing) If proxyEnabled <> 0 Then MsgBox("Proxy server is enabled. Your privacy is at risk!") End If ![]() |
Re: Just remember that if you submit the code as your own and the professor (or marker) discovers this, the usual punishment is expulsion. | |
Re: The correct form of that expression is If radAnswer1.Checked Then You do not need to explicitly compare it to `True` because it already evaluates to a Boolean. I don't know enough to advise. What is the value of `label`? Is it the actual answer (as in several words) or is … | |
Re: Could be a cabling problem. I had to return my Inspiron for repair when the display died last September. It's started to flicker again so i will likely have to send it back in. Does it flicker when you reposition the lid? Does the display go dark when you boot … | |
Re: Yeah. Upgrading is easy. Not upgrading is hard. | |
Re: There are things you can do with diskpart that you can't do from the GUI. You will need to run diskpart with administrator access. The first thing to remember is that because there is a lot less visual feedback than with diskmgmt.msc you must be very careful to make sure … | |
Re: People who prefer Windows will say that Windows is better. Likewise with any flavour of Linux. | |
Prior to doing the following I visited every top level forum and clicked "Mark forum read". Then I went to the [Daniweb home page](https://www.daniweb.com/). The Menu bar down the right side showed **Unread** beside all forums. Clicking on any **Unread** link just made that link disappear. I think, since I … | |
Re: If you want help with that you should probably format it so that it is readable by humans. | |
Re: And the same to you. Just dropped one son off at the airport so Christmas is officially over. | |
Re: I'm thinking thal last_insert_id() doesn't get set until you actually execute the query so how about trying $stmt = $this->db->prepare("INSERT INTO product_master(reg_id,category_id,sub_cat_id,product_name) VALUES(:reg_id,:category_id,:sub_cat_id,:product_name)"); $stmt->execute(array(':reg_id'=>$productDetails['registration_id'], ':category_id'=>$productDetails['catagory_id'], ':sub_cat_id'=>$productDetails['sub_cat_id'], ':product_name'=>$productDetails['product_name'])); $query=$this->db->prepare("INSERT INTO gy_product_detail(product_id,product_detail," . "product_image_back,product_image_left,product_image_name,product_image_right," . "product_rate,product_discount) VALUES (last_insert_id(),:product_details," . ":product_image1,:product_image2,:product_image3,:product_image4," . ":rate,:discount"); $query->execute(array( ':product_details'=>$productDetails['product_details'], ':product_image1'=>$productDetails['image1']['name'], ':product_image2'=>$productDetails['image2']['name'], ':product_image3'=>$productDetails['image3']['name'], ':product_image4'=>$productDetails['image4']['name'], ':rate'=>$productDetails['product_cost'], ':discount'=>$productDetails['product_discount'])); | |
Re: The vb.net equivalents are Dim s As String = "abcdefghijklmnopqrstuvwxyz" MsgBox(s.Substring(0, 5)) 'Left(s,5) MsgBox(s.Substring(15, 5)) 'Mid(s,15,5) MsgBox(s.Substring(Len(s) - 5)) 'Right(s,5) MsgBox(New String("a", 10)) 'String$("a",10) | |
Re: I've been running it in a virtual machine and the one thing that I really don't like about it is that it wants me to create a "domain" account with Microsoft for the machine. I don't like the idea of having my local logon credentials stored/controlled by Microsoft. They have … |
The End.