4,901 Posted Topics
Re: There is no way to report the progress of a single statement operation like `My.Computer.FileSystem.CopyDirectory(a,b)` other than **copy started** and **copy completed**. If you want a progress report then you'll have to break up the operation into multiple single-file copies and report the file name and something like **copying file … | |
Re: I had a torn meniscus done more than 10 years ago. They trimmed the tear to prevent the tendon from locking up when I bent my knee. It worked for a few years but it is now locking up occasionally again. ![]() | |
Re: I've been running Windows 10 in a virtual machine since it was released for preview. They say the Start Menu is back but it isn't really. As for the rest of it, in true Microsoft fashion they've managed to fuck up the interface yet again. Remember when they changed the … | |
Re: Yes. It is possible to do that. You will need to update the ListView through a Delegate. There is a tutorial on doing that [here](https://www.daniweb.com/software-development/vbnet/tutorials/477520/how-to-use-backgroundworker-to-create-threads). I don't think it uses a progress bar but once you get the first part working we can deal with the progress bar later. One … | |
Re: I suggest you name your booleans for the condittion they represent. Also, you don't need to do an explicit comparison. For example, if you have a boolean named EndOfFile, instead of If EndOfFile = True Then you can do If EndOfFile Then Your code becomes more concise and with proper … | |
Re: You can do UPDATE MyTable SET user = REPLACE(user,'ZZZQQQ','') This will remove all ZZZQQQ strings no matter where they appear in the field. | |
Re: If the user double clicks on the first column you can do Private Sub ListView1_DoubleClick(sender As System.Object, e As System.EventArgs) Handles ListView1.DoubleClick Dim lvw As ListView = sender Dim item As ListViewItem = lvw.SelectedItems(0) frmOther.TextBox1.Text = item.SubItems(0).Text End Sub If the ListView has FullRowSelect set to True then the user … | |
Re: There are very few cases where a GOTO is acceptable. This is not one of them. | |
Re: Check [Code Snippets](https://www.daniweb.com/software-development/vbnet/code/_/58). There are several examples such as [this one](https://www.daniweb.com/software-development/vbnet/code/445801/use-parameterized-queries-to-avoid-sql-injection-attacks) | |
Re: The first place to try is the website for your computer manufacturer. The second is to google **download drivers for** and add the name of your audio device or computer. | |
Re: By the way, if the line of code is unambiguously not complete (for example, if it ends with "&") then you can omit the ending underscore. Your code would then be LblTotalpayroll.Text = "Payroll Totals:" & vbNewLine & "Management:" & dbManagementPayroll.ToString & vbNewLine & "sale:" & dbSalePayroll.ToString & vbNewLine & … | |
Re: If you tell us what you are trying to do then perhaps we can suggest a method. | |
Re: For future reference, when you post Dim sql As String = "INSERT INTO tbl_info ([AdminNo],UserName, [Course Title], ICNo, Gender, Address, [Data of Birth], TelNo, Email, Type) values ('" & txtname.Text & "', '" & txtadmin.Text & "', '" & txtcourse.Text & "', '" & txtic.Text & "', '" & txtgender.Text … | |
Re: Taken by itself, 64% sounds alarming, but without context it is misleading. Perhaps a similar survey of businesses running Windows 7 would show that 60%, 70% or possibly even 80% also expect to be attacked. Granted, XP is no longer being updated (is that true at the moment for corporate … | |
Re: I believe that [VLC Media Player](http://www.videolan.org/) will play Real Player Files. | |
Re: Manitoba Hydro built a state-of-the-art head office in downtown Winnipeg a few years ago using the open office paradigm. They soon found that the noise from adjacent areas was too distracting and had to extend the walls around the meeting areas to the ceiling, which disrupted the airflow which relied … | |
Re: The logic If c.G > 255 Then maskg(3) = 255 ElseIf c.G < 0 Then maskg(3) = 0 Else maskg(3) = Convert.ToInt16(c.G) End If is unnecessary. The values returned from c.G, c.R and c.B are byte values and are therefore guaranteed to be non-negative values in the range 0 to … | |
Re: You can enumerate the drives as follows: Dim drives() As System.IO.DriveInfo = System.IO.DriveInfo.GetDrives() For Each drive In drives lbxDrives.Items.Add("Name: " & drive.Name) Next Note that there are other properties (DriveFormat, DriveType, VolumeLabel, etc.) that will throw an exception if you try to access them if the drive is not available … | |
Re: Rather than using successive IF-THEN-ELSE I suggest the more concise Select Case score Case 90 To 100 letter = "A" Case 80 To 89 letter = "B" Case 70 To 79 letter = "C" Case 60 To 69 letter = "D" Case Else letter = "F" End Select | |
The tech preview of the latest version of Windows (albeit still in flux) is now available for download. True to form, Microsoft assumes that we are idiots. In order to distance themselves from the disaster that was Windows 8, the new version will be called, not Windows 9, but Windows … | |
![]() | Re: Please post the code you are having trouble with in this thread. |
Re: You'll have to try explaining again. Your description is very confusing. | |
Re: As far as I know, if the data is viewable then it is copyable. I don't see that there is much you can do about it other than in certain cases like using segmented flv (f4f extension) for media streaming (and even that is probably copyable by some method unknown … | |
Re: It could be as simple as the drive coming unseated. That happened to me recently. The screws holding the drive in place were loose and the drive had wiggled free of the contacts. Or you could be screwed because the head(s) crashed. | |
Re: I suggest you use [Sysinternals Autoruns](http://technet.microsoft.com/en-ca/sysinternals/bb963902.aspx) to see exactly what is running on startup. It's a free utility that I have on all my coomputers. | |
Re: Try looking at [Bart's PE Builder](http://www.nu2.nu/pebuilder/). | |
Re: You could always do Word = txtWord.Text num = CDbl(txtNumber.Text) txtResult.Text = String.Concat(Enumerable.Repeat(Word, num)) | |
Re: What happens if you add 127.0.0.1 apis.google.com to your hosts file? | |
Could you possibly change the chat notification to something a little more eye-catching? I've been on daniweb several times today and never noticed that someone had posted a message the evening before. Changing the text color from white to dull orange just isn't doing it. How about changing the background … | |
Re: I don't get a lag seeing the text appear, however, I do see a lag of up to 30 seconds before the drop-down menus appear. The page loads, the spinner in the tab stops indicating activity, the "page rendered" stats appear at the bottom of the page but none of … | |
I've noticed this happening over the last week or so. 1. I select a forum 1. The page comes up and the spinner stops. 1. The "Page generated" stats are displayed at the bottom From all indications there is no activity, but nothing happens when I hover over a menu. … | |
Re: We need more information. What are you connecting to? Is it a web service, a database? If database, what kind of database. What is your expertise and what, specifically, do you need help with? What work have you done so far? | |
Re: I just specced out a new laptop for my brother. We settled on an Asus K53. Here in Winnipeg (Canada) the price was $548. Depending on where you are you might get it cheaper. It looks like a sweet machine for the $. Also a great warranty. | |
Re: >jump around the page trying to find the next **lie** This is not a political website. I'll assume you meant **line** ^_^ In case you haven't yet read it, a great book on the subject is **About Face: The Essentials of User Interface Design** by Alan Cooper. There is an … ![]() | |
Re: Try Dim pic As Bitmap = New Bitmap(PictureBox1.Image) Dim x As Integer = pic.Width Dim y As Integer = pic.Height Dim gray = New Bitmap(pic.Width, pic.Height) For x = 0 To (pic.Width) - 1 For y = 0 To (pic.Height) - 1 Dim c As Color = pic.GetPixel(x, y) Dim … | |
| |
![]() | |
Re: Python. And there is even a great support forum for it on Daniweb. | |
Re: Surely if Windows can turn on/off the power to various devices such as monitor, hard drive, etc based on user settings then there must be some way for an application to do the same with the proper API call. | |
Re: There is a good example of how to do that [here](http://www.vbforums.com/showthread.php?654846-ZoomPictureBox-picture-control-with-mouse-centred-zooming). | |
I came across this must-read article. I was a maintenance programmer for 29 years and I've come across many of the deadly sins that he discusses and maybe even one or two that he does not. [How to Write Unmaintainable Code by Roedy Green](https://www.thc.org/root/phun/unmaintain.html). | |
Re: How about Dim total As Single = 0.0 For Each line As String In TextBox1.Lines If IsNumeric(line) Then total += CSng(line) End If Next | |
Re: You add a timer control and set Interval to 10000 (ten seconds). In the SelectionIndexChanged event handler for the fifth combobox you do MyTimer.Start In the MyTimer.Tick event handler you do MyTimer.Stop your other code | |
Re: I suspect you are updating the data in a dataset (in-memory copy of the database) but not updating the actual data in the database itself. | |
Re: Try [here](https://www.youtube.com/watch?v=oUmCi2He84o) | |
Re: It seems to me that it's like somebody "flashing" a friend discreetly (if that is possible) in a public place and then complaining because someone else managed to sneak a peak. If you don't want anyone else to see then 1. don't put it on the web 1. don't put … | |
Re: Nobody can make a perfect evaluation. There are always biases. Anaïs Nin said “We don't see things as they are, we see them as we are.” | |
Re: I'm with you except for some big band, some Brubeck and some Mancini. John Coltrane should be considered cruel and unusual punishment akin to waterboarding. | |
Re: When you post >Yes, it should be. in a two year old solved thread or you make two essentially identical posts in the same thread (just changing **every** to **all**) then don't be surprised if the post gets deleted. I **did** provide an explanation for the deletion at the time. |
The End.