4,901 Posted Topics

Member Avatar for paul1145

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 …

Member Avatar for xrjf
0
332
Member Avatar for stultuske
Re: Knee

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.

Member Avatar for Warrens80
0
170
Member Avatar for ddanbe

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 …

Member Avatar for ZZucker
1
407
Member Avatar for Trle94

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 …

Member Avatar for Reverend Jim
0
164
Member Avatar for Silvainius

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 …

Member Avatar for Reverend Jim
0
159
Member Avatar for woooee
Member Avatar for showman13

You can do UPDATE MyTable SET user = REPLACE(user,'ZZZQQQ','') This will remove all ZZZQQQ strings no matter where they appear in the field.

Member Avatar for showman13
0
257
Member Avatar for alfred.tasic.7

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 …

Member Avatar for Reverend Jim
0
952
Member Avatar for Santanu.Das
Member Avatar for David_50
0
524
Member Avatar for karpagamviji

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)

Member Avatar for Reverend Jim
0
69
Member Avatar for Arthur_3

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.

Member Avatar for Reverend Jim
0
62
Member Avatar for banoota.maynoona

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

Member Avatar for Reverend Jim
0
167
Member Avatar for PRINCE_BHALLA
Member Avatar for Xiao_1

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 …

Member Avatar for Santanu.Das
0
254
Member Avatar for happygeek

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 …

Member Avatar for MidiMagic
3
2K
Member Avatar for MidiMagic
Member Avatar for MidiMagic
0
196
Member Avatar for McLaren

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 …

Member Avatar for sneekula
0
276
Member Avatar for batoolhussain

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 …

Member Avatar for Reverend Jim
0
259
Member Avatar for david.redmayne.7

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 …

Member Avatar for Reverend Jim
0
150
Member Avatar for michael ridley

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

Member Avatar for Reverend Jim
0
462
Member Avatar for Reverend Jim

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 …

Member Avatar for smartjulie85
1
500
Member Avatar for Ray Adrian_1
Member Avatar for Santanu.Das
0
140
Member Avatar for tshukela.george
Member Avatar for Xiao_1
0
436
Member Avatar for manel1989

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 …

Member Avatar for manel1989
0
123
Member Avatar for jjones0150

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.

Member Avatar for hithirdwavedust
0
94
Member Avatar for Stuugie

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.

Member Avatar for hithirdwavedust
0
359
Member Avatar for olayiwola.jibola
Member Avatar for LoveAntwinette

You could always do Word = txtWord.Text num = CDbl(txtNumber.Text) txtResult.Text = String.Concat(Enumerable.Repeat(Word, num))

Member Avatar for Reverend Jim
0
414
Member Avatar for mike_2000_17
Member Avatar for Reverend Jim

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 …

Member Avatar for Dani
0
285
Member Avatar for happygeek

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 …

Member Avatar for mreza
0
190
Member Avatar for Reverend Jim

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

Member Avatar for Reverend Jim
0
223
Member Avatar for fugio

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?

Member Avatar for Reverend Jim
-1
908
Member Avatar for Violet_82

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.

Member Avatar for oriclon
1
132
Member Avatar for matrixdevuk

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

Member Avatar for Warrens80
0
243
Member Avatar for batoolhussain

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 …

Member Avatar for batoolhussain
0
4K
Member Avatar for batoolhussain
Member Avatar for oussama_1
Member Avatar for Warrens80
1
367
Member Avatar for lyndata
Member Avatar for Programmer629

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.

Member Avatar for dternity
0
622
Member Avatar for Ashveen96

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

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

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

Member Avatar for taichichuan
0
311
Member Avatar for MatthewVb

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

Member Avatar for MatthewVb
0
294
Member Avatar for Dudestreet

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

Member Avatar for Reverend Jim
0
222
Member Avatar for Waldis_1

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.

Member Avatar for Santanu.Das
0
370
Member Avatar for mammulu
Member Avatar for happygeek

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 …

Member Avatar for gtcorwin
1
540
Member Avatar for webecedarian

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

Member Avatar for vegaseat
2
286
Member Avatar for Xantipius

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.

Member Avatar for vegaseat
0
133
Member Avatar for Santanu.Das

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.

Member Avatar for Reverend Jim
0
170

The End.