4,901 Posted Topics

Member Avatar for Afghan2

In rare cases (even with Microsoft apps), clicking OK may not APPLY your changes. To be safe I usually click APPLY then OK.

Member Avatar for Reverend Jim
0
186
Member Avatar for Irahmiki

@Irahmiki - Please read the [rules](https://www.daniweb.com/community/rules), one of which states **Do provide evidence of having done some work yourself if posting questions from school or work assignments**

Member Avatar for Reverend Jim
-3
261
Member Avatar for PM312

Try cmd.CommandText = "UPDATE PDC_CHQ_IN_HAND SET PDF = NULL " & " WHERE RefNo = '" & TxtRefNo.Text & "'" but if RefNo is defined as a numeric you should use cmd.CommandText = "UPDATE PDC_CHQ_IN_HAND SET PDF = NULL " & " WHERE RefNo = " & TxtRefNo.Text

Member Avatar for PM312
0
2K
Member Avatar for kalpesh_1

You can use an event handler for multiple controls of the same type. The easiest way is at runtime by AddHandler CONTROL.EVENT, AddressOf yourhandlerSub Or if you want to do it at design time just add ,Handles CONTROL.EVENT to the end of the handler declaration.

Member Avatar for Reverend Jim
0
155
Member Avatar for jovillanuev

You may want to consider (on app startup) doing a test to see if the file can be accessed, and popping up a folder or file dialog to allow the user to specify the file location if it cannot be accessed. This new location could be saved in the app …

Member Avatar for jovillanueva
0
973
Member Avatar for Abu Thahir
Member Avatar for Warrens80
Re: SAT

We don't have those in Canada. FYI we also don't have GREs.

Member Avatar for Warrens80
0
130
Member Avatar for Mr.M

There is a manual method for creating a shortcut that will run with Admin access (bypassing the UAC prompt) [here](http://www.thewindowsclub.com/create-elevated-shortcut-run-programs-bypass-uac).

Member Avatar for Mr.M
0
327
Member Avatar for weekendrockstar

Have you tried [Perry's ID3 Tag Library](http://glassocean.net/perrys-id3-tag-library/). I used this quite a while back with no problems. It's open source and he also provides an ID3 viewer using the library.

Member Avatar for weekendrockstar
0
501
Member Avatar for kayecng

Generically it would be If SOME CONDITION Then txtShift.Text = "DAY" Else txtShift.Text = "NIGHT" End If I can't be more specific than that because I don't know what range of values defines DAY or NIGHT. If there are a restricted set of possible values then you would be better …

Member Avatar for kayecng
0
219
Member Avatar for ggeoff

In my experience when you do an upgrade install you end up with pieces of both systems scattered about higgledy-piggledy. You'll effectively get a mish mash of both with a lot of wasted disk space. My advice is to take a disk image of your current system then wipe it …

Member Avatar for ggeoff
0
411
Member Avatar for paul1145

Public Class Form1 Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load Dim mainMenu As New MenuStrip Dim fileMenu As New ToolStripMenuItem("File") Dim fileQuit As New ToolStripMenuItem("Quit") fileQuit.ShowShortcutKeys = True fileQuit.ShortcutKeys = Shortcut.CtrlQ fileMenu.DropDownItems.Add(fileQuit) mainMenu.Items.Add(fileMenu) AddHandler fileQuit.Click, AddressOf QuitToolStripMenuItem_Click Me.Controls.Add(mainMenu) End Sub Private Sub QuitToolStripMenuItem_Click(sender As System.Object, e As …

Member Avatar for djjeavons
0
550
Member Avatar for altjen

I'm not clear on what you are asking. Could you possibly post an example with sample data? Please post, as well, any code you've tried so far.

Member Avatar for Reverend Jim
0
136
Member Avatar for Oomi

I wrote a code snippet quite a while back that [displays thumbnails](https://www.daniweb.com/software-development/vbnet/code/470880/how-to-generate-thumbnails-which-preserve-the-aspect-ratio) in a ListView while preserving the aspect ratio of the original pictures. Just change the values of `THUMBW` and `THUMBH` to the desired size. To avoid impacting program response the thumbnails are generated in a background thread. If …

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

It's possible that the only problem is that your profile has been trashed. One suggestion is to create another user (an administrator). You can run the user manager by running `lusrmgr.msc`. Then log on to that user. Locate the folder containing your profile. I don't recall where XP keeps them. …

Member Avatar for Reverend Jim
0
392
Member Avatar for naz1234

1. Put the numbers into an array 1. Sort the array in ascending order 1. Take the "top" 3 Your definition of "top 3" seems to be "the first 3". My definition of "top 3" would be the three largest. If this is a homework assignment I suggest you get …

Member Avatar for Reverend Jim
0
159
Member Avatar for cgeier

* Nicely organized * Well laid out * Lots of comments * Good use of white space * Step-by-step explanation Two thumbs up.

Member Avatar for kplcjl
4
5K
Member Avatar for karodhill

First check that `names.txt` contains what you think it does (it would help to post the file here). I suggest you step through the code in the debugger and see if 1. "names" is actually getting the data 1. Array.Reverse(names) is doing what you want Note that `Array.Reverse` does not …

Member Avatar for Mr.M
0
317
Member Avatar for LukeJWhitworth

1. Create a sample file. 1. Double click on the file 1. Select "Select a program from a list of installed programs" 1. When the "Open with" dialog comes up, select "Always use..." then click "Browse" 1. Browse to your exe and select it

Member Avatar for Reverend Jim
0
122
Member Avatar for Warrens80

I've always loved the character, Reverend Jim, from the old TV series, Taxi. His actual name was Jim Ignatowski (he changed it from his real last name because he thought Ignatowski was "Star Child" backwards). He was originally brought in as a one-time guest start to perform Latka's wedding but …

Member Avatar for Reverend Jim
0
141
Member Avatar for cambalinho

Mark Russinovich (Sysinternals) has an excellent (and free) utility called [autoruns](https://technet.microsoft.com/en-ca/sysinternals/bb963902.aspx) that is part of the (also free) [Sysinternals suite](https://technet.microsoft.com/en-us/sysinternals/bb842062.aspx). It will tell you everything that starts automatically and allows you to disable selectively.

Member Avatar for Kelly Burby
0
355
Member Avatar for mcoliver88
Member Avatar for Reverend Jim

I'm still having a problem when typing text in the edit box. When I get to the bottom of the edit box the text does not scroll to keep the cursor in view. The box expands to 20 lines and then the scroll bar appears, however, the scroll bar does …

Member Avatar for Reverend Jim
1
564
Member Avatar for SpeakerKeyboard

I prefer to avoid using StreamReader unless the input file is exceedingly large. You are scanning for a series of keywords so I suggest you loop through the keywords rather than looping through the lines of text. You could do something like Dim lines() As String = System.IO.File.ReadAllLines("D:\temp\test.txt") Dim keywords() …

Member Avatar for SpeakerKeyboard
0
2K
Member Avatar for andydeans

As long as you still have the mdf file you can copy it to where sql keeps the other database files. I keep mine in D:\SQL\DATA. Then do (using your actual path) EXEC sp_attach_single_file_db @dbname='yourDb', @physname=N'D:\SQL\DATA\yourDb.mdf'

Member Avatar for andydeans
0
231
Member Avatar for K. Chris

According to the IP addresses, Woj was posting from [Poland](https://db-ip.com/46.171.26.3) and K.Chris is posting from [Mexico](https://db-ip.com/189.166.50.8).

Member Avatar for Reverend Jim
-1
629
Member Avatar for wael_3

That's how autocomplete works. It matches from the beginning. If you want to match on any string you can roll you own (after a fashion). Create a new form with a text box and a list box. Add the following code Public Class Form1 Private Movies() As String Private Sub …

Member Avatar for Reverend Jim
0
442
Member Avatar for vjcagay

If you want the language that packs the most punch for the least code I would have to go with APL. Imagine implementing Conway's game of life in one line of code of fewer than 80 characters. Note - you said **powerful**, not **readable**. ![623a845b1f48adb3dbefae5659833ab7](/attachments/large/3/623a845b1f48adb3dbefae5659833ab7.gif "623a845b1f48adb3dbefae5659833ab7")

Member Avatar for vegaseat
-1
4K
Member Avatar for savedlema

The syntax for `INSERT` is INSERT INTO tablename (fld1, fld2, ...) VALUES(val1, val2, ...) where you specify the field names by fld1, fld2, etc. and the values by val1, val2, etc. For a complete example of how to use parameterized queries please see [Code Snippets](https://www.daniweb.com/software-development/vbnet/code/445801/use-parameterized-queries-to-avoid-sql-injection-attacks).

Member Avatar for savedlema
0
3K
Member Avatar for omarsherpur

I think that any questions like that about XP at this point should be answered with E. Who cares?

Member Avatar for Reverend Jim
0
148
Member Avatar for naz1234

You may also want to look into `AddHandler` which allows you to add the same handler to multiple controls.

Member Avatar for Reverend Jim
0
223
Member Avatar for Mike Bishop
Member Avatar for Reverend Jim
0
255
Member Avatar for Warrens80

I have two impacted wisdom teeth that haven't budged in 30 years. The dentist figured that if they didn't bother me then we should leave them alone. The chances of colateral damage increase with age. One possible complication is loss of taste because of nerve damage.

Member Avatar for webecedarian
0
223
Member Avatar for dcdruck

I run with Aero disabled. When I press alt-tab I get a horizontal list of icons for the active apps. You can click directly on the one you want if you don't want to alt-tab through the list.

Member Avatar for Pietro_1
0
244
Member Avatar for dtpp

Any line/paragraph that starts with a ">" is a quote. As you will see if you follow the link from cereal, DaniWeb uses Markdown formatting. There is an excellent Markdown editor, [Markdown Pad](http://markdownpad.com/) that comes in a free edition. I generally use it to create longer posts, then cut and …

Member Avatar for Dani
0
270
Member Avatar for Pompy

I find that for this type of problem, a `Select` clause is clearer Select Case NumGrade Case 0 - 69 Label3.Text = "F" Case 70 - 79 Label3.Text = "C" Case 80 - 89 Label3.Text = "B" Case 90 - 100 Label3.Text = "A" End Select

Member Avatar for Santanu.Das
0
240
Member Avatar for kayecng

You are going to have a problem with If cmbProcess.SelectedIndex = "0" Then because `cmbProcess.SelectedIndex` is numeric and you are comparing it to a string. Try If cmbProcess.SelectedIndex = 0 Then

Member Avatar for kayecng
0
2K
Member Avatar for jemdev03
Member Avatar for wilsonchama

Assuming that proQuantity is numeric, try cmdUpdate.CommandText = "UPDATE tblProducts SET proQuantity=" & txtTotalqty.Text & " WHERE pID =" & cmbID.Text & ";"

Member Avatar for JerrimePatient
0
2K
Member Avatar for webber2015

You start by creating a form with some controls. When you get to the part where you have to add code for the calculations just put in things like 'calculate batting averages When you get to that point you can ask again. We are not going to create this for …

Member Avatar for Reverend Jim
0
453
Member Avatar for PM312

You can't concatenate an array. To see how to insert binary data you can look at [this code snippet](https://www.daniweb.com/software-development/vbnet/code/461171/insert-a-file-as-binary-data-into-a-database). The example uses a PDF.

Member Avatar for PM312
0
3K
Member Avatar for westsiderailway

You can't use LIKE on numeric values. You can use DATEPART to extract the year portion. Your query string should be qry = "SELECT * FROM test_table" & " WHERE DATEPART(YY,myColumn) = " & myDate

Member Avatar for westsiderailway
0
372
Member Avatar for Reverend Jim

I thought I'd install the newest Visual Studio (2013) but all that happens is this (see below). I have all available updates installed plus the latest C++ runtimes. Does anyone have any suggestions? Attempts to get the referenced update result in downloading Visual Studio 2013 Update 3 and when I …

Member Avatar for Slavi
0
301
Member Avatar for imti321
Member Avatar for imti321
0
232
Member Avatar for randal booker
Member Avatar for marktwo

A quick check in vb.net and vbScript (sorry, do not have vb6 installed) gives the following results Math.Round(1.5) is 2.0 Math.Round(2.5) is 2.0 Math.Round(3.5) is 4.0 <edit> corrected from 3.0 </edit> Math.Round(4.5) is 4.0 <edit> corrected from 3.0 </edit> If the integer portion is odd then it rounds up. If …

Member Avatar for Reverend Jim
0
231
Member Avatar for JorgeM
Member Avatar for rosario1990

You start by putting in some effort on your own. [Google](http://goo.gl/XHAvvN) it.

Member Avatar for jim3472
-2
405
Member Avatar for jkon

Mine is under my avatar. Noli mentula, which (not literally) translated into English is "don't be a dick".

Member Avatar for Warrens80
0
322
Member Avatar for jez9

For what it's worth, GOTOs are evil. Before the advent of structured programming constructs like IF-THEN-ELSE, GOTOs were a necessary evil, but used properly they could be tolerated. I, myself, have (on rare occasions) used GOTOs to escape from nested constructs, but I have never had to resort to that …

Member Avatar for jez9
0
216

The End.