4,901 Posted Topics

Member Avatar for jez9

Put a breakpoint at lvorder.Items(i).Text = (Val(lvorder.Items(i).Text) + 1).ToString and see if the code stops there. If not then you are never getting a match. In that case put a breakpoint at If lvorder.Items(i).SubItems(1).Text = btn.Text Then and step through each iteration of the loop and check the values oof …

Member Avatar for jez9
0
109
Member Avatar for SquirrelRemoval

I'd estimate I spend anywhere from 1-3 hours per day on DaniWeb. When I started as a noob back in 2010 I had already been programming for over 30 years but never in vb.nbet so I didn't need help with technique algorithms as much as I did with vb.net specific …

Member Avatar for deceptikon
0
244
Member Avatar for webecedarian

People have to sign up for this? Amazing! In my reality, if I want to cut down on something I just fucking do it. A few years ago, Richard Jeni (a brilliant comic whom we lost all too early) had a bit on a new diet plan. It was called …

Member Avatar for Reverend Jim
0
214
Member Avatar for jez9

If you are calculating the tootal price for each dish you need to know 1. the quantity 1. the price per unit (the rate) Your table only has columns for 1. the quantity 1. the name of the dish 1. the total price You need to add a column indicating …

Member Avatar for jez9
0
593
Member Avatar for jez9

Use **@name** parameters with SQLDB. For OleDB you have to use **?** as s placeholder. Plese see [Use Parameterized Queries to Avoid SQL Injection Attacks](https://www.daniweb.com/software-development/vbnet/code/445801/use-parameterized-queries-to-avoid-sql-injection-attacks). When using SQLDB, parameters can be added by name. With OleDB you must add them in the order in which they appear in the query.

Member Avatar for jez9
0
319
Member Avatar for fernando.sawyer.98

Until last month I would have whole-heartedly recommended Dell. However, I have spent the last month in Dell Hell and can no longer give them my support. They useed to have excellent (really top-notch) after sales support. Now it's just an exercise in one useless conversation after another with people …

Member Avatar for Reverend Jim
0
127
Member Avatar for krishom.ray

Please have a look at [this](https://www.daniweb.com/software-development/visual-basic-4-5-6/threads/484380/please-read-this-before-posting) first. Pay special attention to \#5. I suggest you start by googling **sample table structure for inventory database**.

Member Avatar for Santanu.Das
0
116
Member Avatar for ramnik.bhat1988

I also suggest that it is bad form to omit field names when doing inserts. You should force correspondence between field names and values by using the form INSERT INTO tablename (fldname1, fldname2, ...) VALUES(value1, value2, ...) I don't have SQL installed at the moment (new laptop) but as I …

Member Avatar for Reverend Jim
0
344
Member Avatar for jez9

You have to give us actual code. If TextBox1.[dont know what to type here] = True Then does not qualify. May I also suggest you name your controls more clearly. For example, txtUsername and txtPassword instead of TextBox1 and TextBox2. And your explanation is still very confusing.

Member Avatar for jez9
0
2K
Member Avatar for ZFPuhi
Member Avatar for jez9

Adding more controls than can be shown will not activte the scroll bars. You have to add text to do that.

Member Avatar for jez9
0
95
Member Avatar for RobertHDD

>Then use them to prove to me that gravity is a lie Well obviously since nobody knows how gravity works then it's only a "theory" like the theory of evolution and we all know that that is a lie. Therefore gravity doesn't exist. >smoking has no health risks what so …

Member Avatar for RobertHDD
0
874
Member Avatar for jez9

Declare an integer at the class level as in Private ButtonClickCount As Integer = 0 Then in the button click event handler do ButtonClickCount += 1 Me.Text = "Current count = " & ButtonClickCount This will display the count in the title bar. Replace the last line to copy the …

Member Avatar for jez9
0
11K
Member Avatar for vgxp

I haven't got SQL installed at the moment so I can't code and test something but I have used the following Private Sub btnRetrieve_Click(sender As System.Object, e As System.EventArgs) Handles btnRetrieve.Click Dim con As New SqlConnection("Server=.\SQLEXPRESS;Database=mydb;Trusted_Connection=yes;") Dim cmd As New SqlCommand("", con) Dim file As String = "D:\temp\test.docx" cmd.CommandText = …

Member Avatar for Mr.M
0
2K
Member Avatar for jez9

For OleDB you use **?** for the parameters as follows: sql = "UPDATE tbdishlist SET " & _ "qty = qty + ?, " & _ "price = price + ? " & _ "WHERE nod = ?" acscmd.Parameters.AddWithValue("@qty", qty) acscmd.Parameters.AddWithValue("@price", price) acscmd.Parameters.AddWithValue("@name", name)

Member Avatar for jez9
0
385
Member Avatar for Violet_82

From Windows, run DISKMGMT.MSC. That will show you the disks and partitions. Take a snapshot of the window (ALT-PRTSCR) and post it here. The bottom pane of disk manager will be the most useful so size it so all disks are shown.

Member Avatar for Violet_82
0
698
Member Avatar for RobertHDD

It is not necessary to delete all of the partitions on the drive. I always recommend two partitions, C for the OS and apps, and D for user files (I make them both Primary). If you already have this setup then you need to reformat only the C partition - …

Member Avatar for RobertHDD
0
139
Member Avatar for fiaz ahma
Member Avatar for Reverend Jim

Dani: I've started getting duplicate notifications by email. I forwarded them to your regular email address.

Member Avatar for Reverend Jim
0
220
Member Avatar for mcortino
Member Avatar for RobertHDD
0
641
Member Avatar for Issahaku Adams

You talk to the customer to determine the requirements (specs) then you develop the code. Along the way you might decide to prototype a GUI for the customer to approve. If you have to go farther back then you start by learning how to program and how to use databases. …

Member Avatar for Reverend Jim
0
110
Member Avatar for <M/>

My vote goes to Heath Ledger. Jack Nicholson is limited by the fact the every character he portrays is basically just a slight variation of himself. Nicholson's Joker was more like circus clown. Ledger's Joker was more like Tim Curry's Pennywise. It's like comparing Mark Hammil's version of the Joker …

Member Avatar for Reverend Jim
0
181
Member Avatar for szevan.seng

What kind of database are you trying to add to? Is it MS-SQL, MySQL, Access, etc.? While a database could be a simple text file it usually is something more complex and can not be maintained with basic text I/O. Please provide more details and we'll try to help you.

Member Avatar for Reverend Jim
0
253
Member Avatar for CodingSource

Parameterrs in OleDB are specified with **?** rather than **&parm**. See [here](https://www.daniweb.com/software-development/vbnet/code/445801/use-parameterized-queries-to-avoid-sql-injection-attacks) for a working example.

Member Avatar for Reverend Jim
0
1K
Member Avatar for sneekula

It's a hidden folder. You have to enable "Show Hidden Folders, Files and Drives" in folder view.

Member Avatar for RobertHDD
0
256
Member Avatar for Stuugie

>Why do so many people expect to be rewarded... I don't know about other places, but here in Winnipeg there was talk a few years ago about something which I believe is at the root of the problem. Some teachers felt that it was proper to give either a lower …

Member Avatar for Warrens80
3
393
Member Avatar for Nova6112
Member Avatar for Nova6112
0
94
Member Avatar for Reverend Jim
Member Avatar for RobertHDD
0
118
Member Avatar for Pompy

Start by taking the string from the textbox and adding a blank at the front. Then scan through the entire string and check each character. If a character is non-blank and is preceded by a blank then add that character (upper case) to your output string. Once you have finished …

Member Avatar for Reverend Jim
0
155
Member Avatar for batoolhussain

See [here](https://www.daniweb.com/software-development/vbnet/code/445801/use-parameterized-queries-to-avoid-sql-injection-attacks) for examples using SQLDb and OleDB.

Member Avatar for batoolhussain
0
109
Member Avatar for Nation

My older son was always an avid reader. With him it was mostly books on science. He is now doing a post-doc in bio-physics. When my younger son was in early school he liked to read the Goosebumps books by R L Stein. His teacher at that time discouraged him. …

Member Avatar for RobertHDD
0
218
Member Avatar for vegaseat

If there was an online storage option that would store my files encrypted (including file names) where the encryption key was stored only on my computer then I would likely use it. I realize that I can use truecrypt to create a container which I could then use on DropBox, …

Member Avatar for RobertHDD
0
280
Member Avatar for Dani

**Problem 2** I've been having this problem - I click in my text to position the cursor and the cursor does not move there. **Problem 3** For longer posts I use either Textpad or Markdown Pad then copy/paste to Daniweb.

Member Avatar for Dani
3
702
Member Avatar for CodingSource

Save the date and time when the app was first run, then just pop up a nag and exit if it is mote than one year old. The first-run date could be saved in a Settings variable or the registry (possibly encrypted to prevent abuse).

Member Avatar for Santanu.Das
-1
128
Member Avatar for Papa_Don

I've noticed that a lot of your recent questions could be answered by even a cursory reading of just about any intro to vb.net programming book or one of the many similar (free) tutorial web sites. Might I suggest you get one and read it?

Member Avatar for Reverend Jim
0
9K
Member Avatar for هومان

I don't see a question and you didn't bother to say what you want your code to do, but once I corrected your formatting (please use the **Code** tool to post code) it was obvious that you were missing an **End If**. You also do not do anything with the …

Member Avatar for Reverend Jim
0
164
Member Avatar for desmy
Member Avatar for rubberman
-2
409
Member Avatar for khess

I believe it is the exact opposite. It isn't until you shut sown that registry changes are committed to disk. That is why if you get a BSOD or just power off without shutting down some changes go away.

Member Avatar for RobertHDD
0
851
Member Avatar for diafol
Member Avatar for RobertHDD
1
143
Member Avatar for MasterChat

Cold. You can always add clothing if you are cold. You can only take off so much when you live in the heat. I've been to Arizona in the heat of August (+45C), It was brutal. On the other hand, here in winter it can go to -40 and I …

Member Avatar for RobertHDD
0
189
Member Avatar for renzlo

For starters, the program won't compile because of If p.Id = CDbl(cid) Then The variable `cid` is not defined.

Member Avatar for Reverend Jim
0
421
Member Avatar for Slavi
Member Avatar for sweetsmile

A couple of door-bottom weather strips (one for your door and one for the neighbour's) might do a lot to cutting down the amount of smoke. The cost is minimal and if the neighbour or landlord won't spring for it you might want to spring for them yourself. They install …

Member Avatar for sweetsmile
0
479
Member Avatar for imti321

A lot of the forums have a "sticky" post with a title like **Please read this before posting**. The sticky posts remain at the top of the thread list. If newbie posters took the time to read these stickies we might see a dramatic drop in the number of silly …

Member Avatar for imti321
0
330
Member Avatar for Palebushman

If the recovery disks are no longer readable, or the user did not make a set of recovery disks (the nags are there for a reason) you should still be able to download a set from Dell based on the Service Tag or Express Code on the back of the …

Member Avatar for Palebushman
0
704
Member Avatar for raghulmsc

1. What variable type are you using? 1. What other languages are you comparing to? 1. What variable types are you using in the other languages?

Member Avatar for Reverend Jim
0
38
Member Avatar for Trle94
Member Avatar for Hassan_9

If you can do a join on the two tables then you can do the calculation in the query. Without knowing the structure of the tables (include a description of the fields - the tables must have a common field) I can't provide a query.

Member Avatar for Reverend Jim
0
103
Member Avatar for Papa_Don

You might as well replace goodLine = line My.Computer.FileSystem.WriteAllText(RestranName2, goodLine & VbCrlf, True) with My.Computer.FileSystem.WriteAllText(RestranName2, Line & VbCrlf, True) It's pointless to declare another temporary variable.

Member Avatar for Papa_Don
0
754
Member Avatar for aseel.jaradat.9

You have to use a delegate to modify controls. It's not complicated and there is a [tutorial](https://www.daniweb.com/software-development/vbnet/tutorials/477520/how-to-use-backgroundworker-to-create-threads) on how to use BackGround threads which includes a discussion of delegates. Once you have read the tutorial feel free to post any follow up questions here.

Member Avatar for aseel.jaradat.9
0
192

The End.