4,901 Posted Topics

Member Avatar for NardCake

I hate Metro, however, StarDock is offering a new (reasonably priced) utility called ModernMix which will allow you to run all of the Metro (full screen) apps in windows just like regular desktop apps. Using that would allow you to run Metro apps on multiple desktops. They can also be …

Member Avatar for jwenting
0
466
Member Avatar for imBaCodes

According to a very old joke, "tickle your a$$ with a feather?". If she takes offense you reply "I said, typical nasty weather". That breaks the ice for further conversation. However, if she replies "Sounds kinky. Let's do it" then further conversation isn't really necessary.

Member Avatar for <M/>
1
409
Member Avatar for Papa_Don

The preferred way is to use parameters. Because you are using MS SQL I will assume you are using SqlClient and not OleDb. cmd.CommandText = "INSERT INTO PRINTERMAINT(PrinterName, PrinterNumber, PrinterLocation, PrinterAddress) " & _ "VALUES (@prtName, @prtNo, @prtLoc, @prtAdd)" cmd.Parameters.AddWithValue("@prtName", printName) cmd.Parameters.AddWithValue("@prtNo", printNo) cmd.Parameters.AddWithValue("@prtLoc", printLoc) cmd.Parameters.AddWithValue("@prtAdd", printAdd)

Member Avatar for Papa_Don
0
1K
Member Avatar for somjit{}

You'll find several people here who love the stuff. Various ages as well. For example, I'm 59. Go to the advanced search (Click on Search but don't enter a search string), then use **Anime** for the search string and **Geeks Lounge** for the forum and you'll get numerous hits. So, …

Member Avatar for alyssa.wilkins.77
0
397
Member Avatar for samuel terngu

What have you got so far and what are you having problems with? Do you know how to connect to the database? Are you unsure of the syntax of an insert query? Do you know how to iterate through the rows of a listview?

Member Avatar for Reverend Jim
0
90
Member Avatar for Mr.M

You could get rid of 90% of your code by trying the following: Create a dictionary where the key is a word in the word list and the value is the address of the associated label. For example (using 3 words and labels) Private wordlist As New Dictionary(Of String, Label) …

Member Avatar for Mr.M
0
247
Member Avatar for ratan.jeet.5

If you think that we will do your homework for you then you are sadly mistaken. We've got better things to do and you won't learn anything if we do.

Member Avatar for ratan.jeet.5
0
108
Member Avatar for dusto

VB will flag a problem if the variable is set inside another block. For example Dim s As String If x > 5 Then s = "bigger" End If Msgbox(s) will indicate a problem because there is an execution path where s does not get assigned a value. I have …

Member Avatar for tinstaafl
0
177
Member Avatar for joramkaku

Your first problem (and this is a biggie) is that you have included no comments with your code. It is hard to say if your code is doing what it is supposed to do when there are no comments saying what it is supposed to do. Your second problem is …

Member Avatar for tinstaafl
0
322
Member Avatar for savedlema

This has been asked and answered several times in this forum. Click on **Search** then enter **application settings** for the search string and vb.net for the forum.

Member Avatar for Reverend Jim
0
351
Member Avatar for grgrl

The most important quality you will need as a professional programmer (or a professional anything) is the ability to communicate clearly. Reread your initial post and consider that. Yes. This is a snotty comment. But it is an important lesson.

Member Avatar for Reverend Jim
0
190
Member Avatar for suzy.morgan.3

I found programming a lot like the game of bridge. The bidding conventions can be complex but at some point a switch gets thrown in your brain and you understand without having to consciously think about it. With programming, it just takes practice and perseverence to get to the point …

Member Avatar for Xantipius
0
217
Member Avatar for savedlema

I'm going to make a few assumptions - the database will always be MS SQL - the database name will never change - the security type will be **integrated security** based on those assumptions, the only thing you should ever have to modify from installation to installation is the SQL …

Member Avatar for savedlema
0
183
Member Avatar for yuvjeeth

If you just try to open the vb6 project in vb10 it should automatically start the conversion wizard. It will take you through the conversion and ask you if you want to see the resulting log file when done. In my experience it does a decent job of converting. If …

Member Avatar for Reverend Jim
0
383
Member Avatar for aruprongs

I set up a sample table using the MS SQL NorthWind database as a start. The table has ProductName CategoryName where there are multiple products which fall into one of 8 categories. The following query select CategoryName,COUNT(CategoryName) as Frequency from temp group by categoryName produced CategoryName Frequency ========================= Beverages 12 …

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

It's not so much that you can't remember names so much as you don't bother to remember them (my problem). I find that the best way to remember soneone's name is to immediately use it a few times. For example, when you are introduced to someone, instead of saying, "pleased …

Member Avatar for vinnitro
0
248
Member Avatar for Tinnin

You can format the output using .ToString("yyyy-mm-dd") as in Now().ToString("yyyy-mm-dd")

Member Avatar for tinstaafl
0
1K
Member Avatar for saleem.mukhtiar

As far as I know you cannot add a progress bar because the upload is being done in a single statement and there is no way to determine how much of the file has been uploaded at any given time. However, if you broke the upload into chunks and wrote …

Member Avatar for Reverend Jim
0
301
Member Avatar for Papa_Don

If the field is of variable length then use nvarchar. Just make sure to do a **Trim** on the text when you patch in the parameter. What goes into the field is exactly what you tell it to. The spaces are there because they were in the original text field.

Member Avatar for Stuugie
0
228
Member Avatar for SLMQC

You can do an integer divide more simply by intTotalAsterisks = intSales \ intASTERISK And you don't need the if-then-else for the zero case. You can just do Dim strAsterisks As New String("*", intTotalAsterisks) Your indentation is extremely misleading. Redo it so that it is obvious which code belongs to …

Member Avatar for tinstaafl
0
338
Member Avatar for tunavis

>Im not sure what to do with the dropdown menu if the user selects fragrance...? I don't see that you need a drop down list **inside** the listbox. It would just be an option that would be available (enabled) as long as the selected package included a scent. The default …

Member Avatar for Reverend Jim
0
644
Member Avatar for cynusalisa

Let's not. It takes up space on the Daniweb servers and serves no useful purpose.

Member Avatar for Xantipius
-3
67
Member Avatar for Tinnin

>made me a bit cynical I suppose You'd never know it from your picture :-)

Member Avatar for TonyG_cyprus
0
223
Member Avatar for deltascrow
Member Avatar for Tinnin

You don't put single quotes around field names. Because your names have embedded blanks try putting the field names inside square brackets as in **[my field name]**. When you say SELECT myfield what gets returned is the value of **myfield** for all records. When you specify a literal like SELECT …

Member Avatar for Tinnin
0
176
Member Avatar for androidz

Background threads cannot access controls directly. They have to use delegates. They are not that complicated and you can see an example of how to do that [here](http://www.daniweb.com/software-development/vbnet/code/440614/backgroundworker-ip-monitor)

Member Avatar for androidz
0
479
Member Avatar for asif49

Can't suggest anything offhand but There have been some pretty interesting conversations about various topics in this forum. If you want to start a conversation just post a thread with a topic or topics of your choice. We have more than a few intelligent (and opinionated) people in this community …

Member Avatar for Reverend Jim
0
107
Member Avatar for aarviii

The **Split** method will allow you to convert the line into a string array. You can split on any character but the default is a blank so if you start with Dim line As String = "roivic lanoria ASRock 2.4 GHz Dual Core SSD 160 GB" then do Dim fields() …

Member Avatar for Reverend Jim
0
252
Member Avatar for somjit{}

Why learn an old version of something? Download vb.net 2012 and go from there.

Member Avatar for chowdhary.barnali
0
241
Member Avatar for aarviii

You can read the entire file into a string array by Dim text() As String = System.IO.File.ReadAllLines(filename) If the file contains many lines and you only want one (assuming you can uniquely identify a line by, for example, the email address) you can do Dim email As String = "heburn@YAHOO.COM" …

Member Avatar for Reverend Jim
0
463
Member Avatar for roseann.larrosa

One big thing is to avoid duplication. Another is to partition your data. For example, information in the **Students** table should contain information that is mostly static. This would be information like student name, address, date of birth, phone number, etc. All other tables that refer to a student require …

Member Avatar for Reverend Jim
0
7K
Member Avatar for savedlema

It would help to see the code you are using to add in the parameters in case there is a problem there, but for now try SQL = "SELECT s.FirstName, s.MiddleName, s.Surname, p.* " _ & " FROM tblstudents AS s, tblpayments as p " _ & " WHERE s.studentid …

Member Avatar for savedlema
0
552
Member Avatar for NardCake

I try to strike a balance in my use of whitespace. Ifindthattoolittlemakesthecodehardtoread and too much can also be a pain.

Member Avatar for deceptikon
0
564
Member Avatar for Papa_Don

There is a good online tutorial [here](http://channel9.msdn.com/Series/Visual-Basic-Development-for-Absolute-Beginners)

Member Avatar for Papa_Don
0
182
Member Avatar for chdboy

Execute the query SELECT @@VERSION You'll get back something like Microsoft SQL Server 2008 (SP3) - 10.0.5500.0 (Intel X86) Sep 22 2011 00:28:06 Copyright (c) 1988-2008 Microsoft Corporation Express Edition on Windows NT 6.1 <X86> (Build 7601: Service Pack 1)

Member Avatar for chdboy
0
106
Member Avatar for dinesh012

Dim qry As String = "insert into Department(DNo,DName,Manager,AddressL1,AddressL2,City,Telephone,E-mail)values('" + TextBox1.Text + "','" + TextBox2.Text + "','" + TextBox3.Text + "','" + TextBox4.Text + "','" + TextBox5.Text + "','" + TextBox6.Text + "','" + TextBox7.Text + "','" + TextBox8.Text + "' )" Debug.WriteLine(qry) Then copy the output and post it here. …

Member Avatar for annaharris
0
139
Member Avatar for somjit{}

There is something in place already. If you have email notification enabled then you will be notified when you are upvoted or downvoted (at least with a comment).

Member Avatar for somjit{}
0
183
Member Avatar for StefanRafa0

You can also get the drive activity if you have too little RAM and too many programs starting up automatically. You end up with a lot of page swapping. The solution is to add RAM or to remove programs from the startup list. There are several ways to determine what …

Member Avatar for Reverend Jim
0
256
Member Avatar for xXghostXx

The simplest method is - connect to the database - select records from one or more tables (query) - copy the data from the retrieved records into a display control The type of interface you use will depend on the type of database. For example, if you are using a …

Member Avatar for Reverend Jim
0
189
Member Avatar for Allorango

Almost 500 lines of code and you couldn't even bother to tell us what line was throwing the error? Not cool.

Member Avatar for tinstaafl
0
312
Member Avatar for chdboy

First of all, you should let SQL Server manage the location of your database and use the following connection string Dim con = New SqlConnection("Server=.\SQLEXPRESS;Database=Pay;Trusted_Connection=yes;") assuming your database name is **Pay**. Then use con.Open() cmd.CommandText = "SELECT Firstname,Lastname FROM Employee where Firstname = @Firstname and Lastname = @Lastname" cmd.Parameters.Add(New SqlParameter("@Firstname", …

Member Avatar for chdboy
0
243
Member Avatar for somjit{}

When you run task manager and look at the performance meter what is the CPU usage on your system while the keybord is slow? Is it high usage?

Member Avatar for javanoob101
0
150
Member Avatar for azareth

Preferably bug free. I like my code consistently indented with relevant comments and enough white space to improve readability. Ifindthatnowhitespaceishardtoread but too much white space is annoying and unnecessary. I find a good process is to first write my modules in pseudocode, then I can turn that pseudocode into comments …

Member Avatar for <M/>
0
245
Member Avatar for ndeniche

It's an option in your profile - **Automatically Watch Articles I Post In**

Member Avatar for ndeniche
0
240
Member Avatar for sunilkumarpkumar
Member Avatar for abuisamohammad
Member Avatar for Cyborg9864

I took a soda straw (a nice fat one is ideal) and taped it to the end of a vacuum hose (if you use the vacuum hose without reducing the diameter you risk sucking the keys off your keyboard). Then I used the straw to vacuum out the keyboard. Granted, …

Member Avatar for jithinjohny
0
85
Member Avatar for ImZick

I'm going to make a suggestion or two without knowing the complete structure and intention of your table ("something like" does not help me be more precise). Having two separate but equal tables is rarely a good idea as it makes aggregate queries more difficult. Also, you are limiting your …

Member Avatar for ImZick
0
161
Member Avatar for TonyG_cyprus

My father-in-law got one of the first Vic-20s. I waited until the Commodore-64. I hacked away at that (even got a couple of articles published in The Transactor). I was also an early adopter of the first Amiga. I remember getting a 40 meg (huge capacity) hard drive for $800. …

Member Avatar for Reverend Jim
0
286
Member Avatar for Ancient Dragon

The End.