4,911 Posted Topics

Member Avatar for andybe
Member Avatar for Reverend Jim
0
109
Member Avatar for Mr.M

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.

Member Avatar for Reverend Jim
0
3K
Member Avatar for Juli_1
Member Avatar for Reverend Jim
0
407
Member Avatar for GustavoWoltmann

I'll refer you to [9 Tips for Longer Laptop Battery Life](http://www.pcmag.com/article2/0,2817,2458636,00.asp)

Member Avatar for ztdep
0
216
Member Avatar for rproffitt
Member Avatar for ogsirus

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.

Member Avatar for Reverend Jim
0
182
Member Avatar for Joshua_14

>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."

Member Avatar for David W
0
215
Member Avatar for Yash969680

The common complaint from users. "It's just what I asked for but not what I wanted."

Member Avatar for Reverend Jim
0
483
Member Avatar for carlcsolis

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 …

Member Avatar for Reverend Jim
0
219
Member Avatar for Itz Mhe

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?

Member Avatar for Reverend Jim
-1
139
Member Avatar for Viny_1

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 …

Member Avatar for Reverend Jim
1
309
Member Avatar for Violet_82

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` …

Member Avatar for Reverend Jim
0
2K
Member Avatar for TonyTGI

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

Member Avatar for Reverend Jim
0
142
Member Avatar for Reo_1
Member Avatar for TonyTGI

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 …

Member Avatar for Reverend Jim
0
106
Member Avatar for TonyTGI

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 …

Member Avatar for TonyTGI
0
240
Member Avatar for asif49

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)?

Member Avatar for asif49
0
289
Member Avatar for claptus
Member Avatar for Reverend Jim
0
300
Member Avatar for Christian Felix

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... ![clip-0001.jpg](/attachments/small/3/2f8b3cec94c4549db8a025bd4632106c.jpg "align-left")

Member Avatar for Reverend Jim
0
75
Member Avatar for Raj_14
Re: Help

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...

Member Avatar for rubberman
0
108
Member Avatar for Triple_7

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, …

Member Avatar for Reverend Jim
0
111
Member Avatar for Gilbert_3

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"))

Member Avatar for Reverend Jim
0
422
Member Avatar for සශික

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 …

Member Avatar for සශික
0
736
Member Avatar for Reverend Jim

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 …

Member Avatar for Reverend Jim
2
274
Member Avatar for mpdph09

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 …

Member Avatar for mpdph09
0
303
Member Avatar for සශික

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 …

Member Avatar for Reverend Jim
0
360
Member Avatar for altjen

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).

Member Avatar for JOSheaIV
0
793
Member Avatar for Brayan_2

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 …

Member Avatar for Reverend Jim
0
302
Member Avatar for සශික

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.

Member Avatar for Reverend Jim
0
273
Member Avatar for janicemurby

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

Member Avatar for diafol
0
358
Member Avatar for සශික

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 " & …

Member Avatar for Reverend Jim
0
359
Member Avatar for සශික

It would help if you posted your code but as a guess I would say you are using the wrong password,

Member Avatar for Reverend Jim
0
62
Member Avatar for සශික
Member Avatar for Reverend Jim
0
1K
Member Avatar for hadisur_rahman

Sounds like homework. What language are you using and what do you have so far?

Member Avatar for invisal
0
123
Member Avatar for Reverend Jim

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 …

Member Avatar for rproffitt
0
450
Member Avatar for rouse

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

Member Avatar for Reverend Jim
0
193
Member Avatar for divinity02

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?

Member Avatar for divinity02
0
256
Member Avatar for powerade661

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

Member Avatar for powerade661
0
332
Member Avatar for ressenjack

Just remember that if you submit the code as your own and the professor (or marker) discovers this, the usual punishment is expulsion.

Member Avatar for Reverend Jim
0
193
Member Avatar for .millz.

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 …

Member Avatar for Reverend Jim
0
303
Member Avatar for bshraja05

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 …

Member Avatar for bshraja05
0
206
Member Avatar for Beingmahendra
Member Avatar for charles.klein

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 …

Member Avatar for Arch Stanton
0
131
Member Avatar for Builder_1

People who prefer Windows will say that Windows is better. Likewise with any flavour of Linux.

Member Avatar for Arch Stanton
0
213
Member Avatar for Reverend Jim

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 …

Member Avatar for Reverend Jim
0
953
Member Avatar for Hugo_1

If you want help with that you should probably format it so that it is readable by humans.

Member Avatar for Nishant shukla1
0
294
Member Avatar for ddanbe

And the same to you. Just dropped one son off at the airport so Christmas is officially over.

Member Avatar for Anu_5
2
335
Member Avatar for shany0786

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']));

Member Avatar for cereal
0
2K
Member Avatar for yaho01

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)

Member Avatar for Reverend Jim
0
250
Member Avatar for AmritaHasan11

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 …

Member Avatar for Reverend Jim
0
1K

The End.