4,901 Posted Topics

Member Avatar for Ancient Dragon

What happens if you supply the IP address as part of the server name? For example, on my regular computer my SQL Server instance is JIM-PC\SQLEXPRESS But I imagine (I can't verify this because my computer is in the shop) I could also use \\192.168.1.104\SQLEXPRESS

Member Avatar for Ancient Dragon
0
278
Member Avatar for madlan

Thanks for the feedback. I'd just like to point out that it's a good idea to check the dates on threads. This one is two years old and likely has been long since resolved or abandoned.

Member Avatar for Reverend Jim
0
591
Member Avatar for bnitishpai

In order to prevent errors on ' all you have to do is replace each ' with two '. Instead of using name use name.Replace("'","''") If you do that SQL won't complain.

Member Avatar for pedders
0
2K
Member Avatar for t2nator

@TnTinMN - Just curious - is their an advantage to doing this rather than using My.Settings?

Member Avatar for t2nator
0
1K
Member Avatar for saaz

On a related note, have you considered that recipes don't "scale up" easily when it comes to things like cooking times?

Member Avatar for saaz
0
201
Member Avatar for <M/>

I don't think you should be allowed to use that particular avatar until you have had a job that required supporting end-users (or working with engineers).

Member Avatar for Reverend Jim
0
336
Member Avatar for monching

The Timer.Tick event fires once every Interval milliseconds so you don't need a loop inside the handler. If you are counting down to zero then just stop the timer at that point. Private Sub ... Handles timer1.tick If datetime.Minute > 0 Then datetime.AddSeconds(-1) Else DirectCast(sender,Timer).Enabled = False end if

Member Avatar for monching
0
768
Member Avatar for deanpaul.taylor

What do you mean by "the MySql command is being skipped"? Please remove the TRY/CATCH/FINALLY/END TRY statements and post the exact text of the error message that is displayed. Your MsgBox which displays only "ERROR" is useless for debugging. It would also greatly help if you were to post the …

Member Avatar for Reverend Jim
0
158
Member Avatar for bilal_fazlani

You could create two new tables named Invoice and InvoiceLine. Each invoice would have a unique primary key named Invoice_ID. The fields in this table would contain information relevant to the entire invoice (Customer_ID, date, status, etc). InvoiceLine would have a primary key consisting of Invoice_ID and Line_ID. This table …

Member Avatar for nilesh7136
0
437
Member Avatar for leyla

Why not have the remaining letters in a dropdown combobox. Once a letter has been guessed you remove it from the combobox. That way there is no need to validate input.

Member Avatar for leyla
0
694
Member Avatar for Minko

I have one suggestion (not necessarily a great one). Set a class variable in the main form (call it something like ShowForm). Set it to True initially. Have a timer on the main form and set the interval to 1000. In the timer Tick event do Me.Visible = ShowForm You …

Member Avatar for Minko
0
2K
Member Avatar for jray

I use [CutePDF Writer](http://www.cutepdf.com/products/cutepdf/writer.asp). It's free and doesn't have to be run on a server. It just installs as a pseudo-printer and can be installed on on the workstations for whichever users need it. I haven't tried this but perhaps it could also be installed as a shared printer if …

Member Avatar for JorgeM
0
315
Member Avatar for patra.pritam

If you are only interested in the total number of vowels and not the number of each vowel then a simpler approach is Dim str As String = "the quick brown fox jumped over the lazy dog" Dim numVowels As Integer = 0 For Each ch As Char In str.ToUpper.ToCharArray …

Member Avatar for Reverend Jim
0
789
Member Avatar for Rachna0309

Make all cells in row 1 blue. For Each c As DataGridViewCell In DataGridView1.Rows(1).Cells c.Style.BackColor = Color.Blue Next

Member Avatar for Rachna0309
0
280
Member Avatar for Ancient Dragon

If you check out my code snippet [BackgroundWorker IP Monitor](http://www.daniweb.com/software-development/vbnet/code/440614/backgroundworker-ip-monitor) it shows how to use Delegates to access the textbox from another thread. I think that is what you will have to do.

Member Avatar for Reverend Jim
2
2K
Member Avatar for arsal2012
Member Avatar for arsal2012
0
191
Member Avatar for Mike Askew

It's the people who believe the world is coming to an end and decide to help the process along that worry me. It also bothers me that the end of the world (a least this week's version) is one day before my birthday. That blows. I guess I'll just have …

Member Avatar for azareth
4
213
Member Avatar for Thomas7399

Index is a reserved word. You can either rename the field to something other than Index, or you can specify the field as [Index] as in Dim myUpdateQuery As String = "UPDATE Sensor_Table " & _ " SET Equipment_ID = @id, " & _ " Location = @Loc, " & …

Member Avatar for Thomas7399
0
187
Member Avatar for Ancient Dragon

My nephew had this done a few years ago. It was his first one. After a few hours( and only halfway through) the artist asked him if he'd like to finish it up another day. His response was "once I get out of this chair there's no way I'm ever …

Member Avatar for happygeek
0
287
Member Avatar for ~s.o.s~
Member Avatar for ~s.o.s~
1
244
Member Avatar for lhhippie1

I have a bit of a family thing at the moment (had to take my father-in-law to emergency) so I can't address the bigger issue just now, but I have a suggestion to simplify the username/password verification. Have the user enter both the username and password at the same time …

Member Avatar for Reverend Jim
0
352
Member Avatar for riahc3

But then someone has to go through all replies to all posts to rate how relevant each post is to the question. If the OP doesn't provide full background and someone posts >You need to provide more details such as > > 1. The exact text of the error messge …

Member Avatar for diafol
0
220
Member Avatar for jay nadeem
Member Avatar for Sneaky Pete

There are several examples of encryption/decryption in the VB.Net forum. Just click on Code Snippets and scroll through the list. As for the timer thing, based on what you have said, it would only work if the user left the program running all the time. A timer won't function when …

Member Avatar for adam_k
0
160
Member Avatar for ImZick

My Christmas gift is having my older son fly home from Long Island to spend the holidays with us. He's due here Wednesday evening.

Member Avatar for kemcar
1
351
Member Avatar for waleed.makarem

The regular expression ^\d+-\d+$ will match any string of the form "#-#" where "#" is any sequence of one or more digits. Once you have a match you can do a Split on the "-". For example Dim s As String = "123-45" Dim nums() As String = s.Split("-") nums(0) …

Member Avatar for Reverend Jim
0
716
Member Avatar for Dili1234

It is complaining because the compiler has determined that if the loop doesn't get executed then pname will not have a value to return at line 80. By assigning a null string when you Dim pname you ensure that pname will have a value no matter what execution path is …

Member Avatar for Dili1234
0
179
Member Avatar for ImZick

No, but there are certainly a few available at other sites such as [this one for VB at msdn](http://channel9.msdn.com/Series/Visual-Basic-Development-for-Absolute-Beginners). You can easily find more with a little googling. A complete list of msdn tutorials can be found [here](http://channel9.msdn.com/Browse/Series?sort=atoz)

Member Avatar for TonyG_cyprus
0
179
Member Avatar for <M/>
Member Avatar for StarTrekCafe

We don't offer help in that way. Private help doesn't benefit anyone else who might be looking for a similar solution. You also haven't given any indication what you need help with. If you are interested in help then please post your questions here.

Member Avatar for Reverend Jim
0
166
Member Avatar for Maniha

You can output the linies by displaying them in a TextBox or RichTextBox control. As a matter of convenience, the RichTextBox control has methods to read/write files. or if this is for debugging purposes you can use Debug.WriteLine, or Console.WriteLine for console applications. In this case something like Module Module1 …

Member Avatar for tinstaafl
0
9K
Member Avatar for Ghoztrider

You have to convert the string to a number first. In your case that would be If CDec(CapAmount) >= 3000 Then

Member Avatar for Ghoztrider
0
187
Member Avatar for BigPaw

IMO I would think that people who are looking for tech help are typically looking for help with programming issues or with operational (configuration, driver, virus, hardware, etc) issues. Tablets are pretty much oriented to content consumers. Programming issues are in the realm of content creators. As for operational issues, …

Member Avatar for deceptikon
1
122
Member Avatar for slash49er

Gonna take a shot in the dark. When you have your "disappearing" drive plugged in and visible, run diskmgmt.msc and try assigning a different drive letter to it (try Z:). Then see if it still disappears when another device is plugged in.

Member Avatar for slash49er
0
153
Member Avatar for aVar++

Whether or not the specs are adequate depends a lot on what you want to do with it. Document editing doesn't require much power. Hardcore gaming is another matter.

Member Avatar for aVar++
0
494
Member Avatar for JBD2

The OP hasn't been on DaniWeb for almost seven years. There is no need to revive this thread.

Member Avatar for Mr.M
0
4K
Member Avatar for ImZick

[google this](http://www.google.ca/#hl=en&tbo=d&output=search&sclient=psy-ab&q=what+is+the+difference+between+vb6+and+vb.net&oq=what+is+the+difference+between+vb6+and+vb.net&gs_l=hp.3..0j0i8i30l2.1524.11507.0.12259.45.21.0.23.23.3.1555.6606.0j9j3j4j2j1j8-1.20.0.les%3B..0.0...1c.1.lSPOqM8xzm0&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.&bvm=bv.1355534169,d.b2I&fp=1585625df7f66034&bpcl=40096503&biw=1440&bih=783) and check out the first three hits.

Member Avatar for Ancient Dragon
0
204
Member Avatar for ImZick

>how to find all data in my first listview to another Can you please explain what you mean by this?

Member Avatar for ImZick
0
290
Member Avatar for Chin6043

Not by itself, but you might find the source code for a custom control to do that [here](http://www.codeproject.com/Articles/3206/Multi-Column-ComboBox)

Member Avatar for Reverend Jim
0
195
Member Avatar for foxwizzy

Perhaps you haven't put any text into fo1. In any case you don't need to have the If. We know the current directory exists and WriteAllText will create the file if it doesn't exist.

Member Avatar for foxwizzy
0
162
Member Avatar for ImZick

Please clarify what you want to do. >i want the AM Field to input in the AccountName is unclear. >I need to get them and put it on a > >Dim AccountName as String You already have them. They are in the ListView.

Member Avatar for ImZick
0
200
Member Avatar for Foad.adnani

I'm guessing his 500 gig hard drive was flagged by Windows as unpartitioned so he boot into a linux recovery system from USB and reset the partition table. Then it was OK for a while but got reset back to unpartitioned.

Member Avatar for Reverend Jim
0
249
Member Avatar for chocomilk

You could create your own class with properties named EmployeeID, LastName and FirstName and create a new list of the new class type or you could use a [detached recordset](http://www.daniweb.com/software-development/vbnet/code/428716/using-detached-recordsets-to-sort-data). You could likely also create a database in memory as well using more modern techniques involving datasets/datatables, etc but I …

Member Avatar for chocomilk
0
193
Member Avatar for bastrop52

I think he is saying that instead of spending $50 for two new cartridges we are better off topping up our landfills with single-use printers by buying a new one whenever the ink runs dry.

Member Avatar for whipaway
0
286
Member Avatar for <M/>

The point is to make a worthwhile contribution. My following comment is not meant to point out any similarity but only to make a point. A few months ago we had a member (now banned) who was making dozens of posts daily in [Thoughts of the day](http://www.daniweb.com/community-center/geeks-lounge/threads/83726/thoughts-of-the-day). Most of the …

Member Avatar for <M/>
0
377
Member Avatar for Its.Obi
Member Avatar for Reverend Jim
0
140
Member Avatar for maaw

What is a **BondFiled column**? Do you mean a bound field column? What kind of data does it contain and what do you want to happen? How will the timer be started and stopped? Do you want one countdown for each record? Details please.

Member Avatar for TnTinMN
0
1K
Member Avatar for jakub.peciak

If you need an "all or nothing" action where if any insert fails then they all fail you will have to create a Transaction and use a Try/Catch so you can roll back the entire transaction on an error.

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

If you want to copy records from one table to another you have to do an INSERT. Update modifies columns in existing records. The syntax of this type of insert is INSERT INTO table2 (<list of column names>) SELECT <list of column names> FROM table1 If the column names are …

Member Avatar for Reverend Jim
0
165
Member Avatar for jalpesh_007

The End.