4,911 Posted Topics

Member Avatar for DaveAmour

>I'm always in search for new music: Try "Nothing Above My Shoulders But the Evening" by Ray Lynch and "Waterstation" by Tim Clement.

Member Avatar for Aeonix
0
687
Member Avatar for Melon Lord

TextBox.Text values are strings and should be tested/converted to numeric before trying a calculation. Either that or the operation should be done within a Try/Catch block.

Member Avatar for Melon Lord
0
221
Member Avatar for xn hunk

Are you asking how to traverse folders to look for file names? And how do you determine if a file is wanted or unwanted?

Member Avatar for weekendrockstar
0
136
Member Avatar for cgeier

I've seen the same thing. Sometimes I have to close the chat twice before it stays closed.

Member Avatar for Dani
0
265
Member Avatar for Lethugs

Is it only one one particular project or does it also happen on a new project? If just the one then you may have to recreate it from scratch and copy the code in to the new code window. If that doesn't work you may have to uninstall/reinstall Visual Studio.

Member Avatar for Reverend Jim
0
406
Member Avatar for Papa_Don

A not so often used, but sometimes useful form of the Select Case is that it can be used to select between seemingly unrelated conditions. The form Select Case True Case <condition> Case <condition> Case <condition> Case Else End Select will execute the first clause where <condition> evaluates to the …

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

Try StateSQL = "SELECT * FROM petrol_table " & " WHERE fueldate >= @sdate & " AND fueldate < @edate" Conn.Open() sqlCmd = New SqlCommand(StateSQL, Conn) sqlCmd.Parameters.AddWithValue("@sdate", M12S) sqlCmd.Parameters.AddWithValue("@edate", M12F)

Member Avatar for westsiderailway
0
321
Member Avatar for basit_3

[Here](https://msdn.microsoft.com/en-us/library/vstudio/k3bb4tfd(v=vs.100).aspx) is a walkthrough from Microsoft.

Member Avatar for basit_3
-1
151
Member Avatar for Christian_4

You need to use the same variable for the return value as well as the test. You used `responce` to save the result but your test uses `reply`. Another possibility would be If MsgBox("Are you sure you want to Logout?", vbYesNo, "Confirmation") = vbYes Then Unload Me frmAuthentication.Show else exit …

Member Avatar for Nutster
0
522
Member Avatar for chantalrdj
Member Avatar for Satyam_1

Try the KeyDown event instread Private Sub RichTextBox1_KeyDown(sender As System.Object, e As System.Windows.Forms.KeyEventArgs) Handles RichTextBox1.KeyDown If e.KeyCode = Keys.Enter And RichTextBox1.Lines.Count = MAXLINES Then e.SuppressKeyPress = True End If End Sub

Member Avatar for Satyam_1
0
1K
Member Avatar for lingam147

Try this ListBox1.Items.AddRange({"the", "quick", "brown", "fox", "jumped", "over"}) TextBox1.AutoCompleteMode = AutoCompleteMode.SuggestAppend TextBox1.AutoCompleteSource = AutoCompleteSource.CustomSource TextBox1.AutoCompleteCustomSource.Clear() For Each item In ListBox1.Items TextBox1.AutoCompleteCustomSource.Add(item) Next Just remove the first statement to use the items you already have in your listbox. There are several different AutoCompleteMode(s). Just pick the one that suits you best.

Member Avatar for Reverend Jim
0
100
Member Avatar for basit_3

You get the selected node through TreeView1.SelectedNode You can select a specific node in code by TreeView1.SelectedNode = TreeView1.Nodes(0).Nodes(4)

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

If all of the people on Facebook were considered a country, it would be the world's third largest.

Member Avatar for vegaseat
11
9K
Member Avatar for Papa_Don

There is an addin tool available for versions of Visual Studio up to 2012 that will allow you to easily test your regular expressions. You can find it [here](https://visualstudiogallery.msdn.microsoft.com/f63786bf-a137-4433-9d2c-6eea56d39927/)

Member Avatar for Reverend Jim
0
254
Member Avatar for batoolhussain

What do you mean by **html image**? By **get** do you mean save, retrieve, download or what?

Member Avatar for rubberman
0
123
Member Avatar for PinoyDev

Slno always starts at one so I suggest you make this an identity field (auto-number) and do the inserts in one statement like INSERT INTO table2 (Accountno, Narration, ...) SELECT Accountno, Narration, ... FROM table1 WHERE TranNature = 'C' ORDER BY serialno You'd have to do some playing with this …

Member Avatar for PinoyDev
0
279
Member Avatar for Santanu.Das

You are not using IIF correctly. You can not execute statements within an IIF. For example Dim a As Integer = 1 Dim b As Integer = 2 Dim c As Integer = 3 IIf(a = 1, b = 7, b = 8) b will still have the value 2, …

Member Avatar for Santanu.Das
0
190
Member Avatar for Arie_1

Here is an OleDB example using a sample database with fields of type int, int, varchar(50, int. Dim con As New OleDbConnection("Provider=SQLNCLI10;Server=.\SQLEXPRESS;Database=mydb;Trusted_Connection=Yes;Connect Timeout=15;") con.Open() For Each item As ListViewItem In ListView1.Items Dim cmd As New OleDbCommand("", con) cmd.CommandText = "INSERT INTO teams " & "(recordID, OrgID, Team, boolIsActive) " & …

Member Avatar for Reverend Jim
0
2K
Member Avatar for <M/>
Member Avatar for Gribouillis
Member Avatar for Reverend Jim

I have had this problem since I got the laptop last December. Video in full screen is erratic. In scenes where there is little motion there is no problem (or the problem exists but is not visible). The problem manifests as a horizontal "tear" about two inches down from the …

Member Avatar for Xlphos
0
511
Member Avatar for kayecng
Member Avatar for kayecng
0
261
Member Avatar for vegaseat

@ddanbe - let's take a hypothetical. You frequent an adult book store, or perhaps a bar, or even make weekly visits to a psychiatrist/therapist. Every entrance/exit to these establishments is captured on camera. These activities are all perfectly legal but do you want a record of these visits kept? For …

Member Avatar for Leigh3
0
591
Member Avatar for Dani
Member Avatar for Dani
2
444
Member Avatar for cudawella

I suppose you have already noticed this but composing a query by concatenating multiple strings is just butt ugly. For one thing you have to keep track of where to add single quotes and where not to. The first thing I can suggest is to use the full INSERT syntax …

Member Avatar for cudawella
0
8K
Member Avatar for OiAmbut

Unless you have a specific vb.net question you should be posting in some other forum.

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

As deciptikon points out, that is an hypothesis rather than a theory. In science, a hyopothesis is formed after making observations to try to explain a phenomenon. A proper hypothesis is testable and its reliability is proven either by experimentation and/or prediction. For example, Einstein's hypothesis that space would be …

Member Avatar for 45ish
0
1K
Member Avatar for happygeek

I prefer to think of Windows 8 as the new Vista. My place of business (>5000 employees) was very quick to adopt Windows XP. For an intelligent rebuttal of the linked article see [Dear Ed Bott: No, Windows 8 is not the new XP](http://www.roughlydrafted.com/2012/10/22/dear-ed-bott-no-windows-8-is-not-the-new-xp/)

Member Avatar for XP78USER
6
10K
Member Avatar for Juninho_1

Try For Each line As String In ListBox1.Items Caminho.WriteLine(line) Next

Member Avatar for Reverend Jim
0
171
Member Avatar for vapor162
Member Avatar for Reverend Jim
0
344
Member Avatar for mike_2000_17

Awesome opportunity. We just spent 8 hours driving to the cottage and we were both wishing we had a self-driving van. Congratulations on the PhD. It's well deserved.

Member Avatar for <M/>
5
356
Member Avatar for John_88

Try cmd.CommandText = "INSERT INTO POSITION " & "(positionID,stockSymbol,stockName,cashTransaction," & "lastUpdate,initialQuantity,initialValue,currentQuantity," & "currentValue,positionStatus)" & " VALUES (2,2,2,2,2,2,2,2,2,2)" You don't need quotes around numeric values.

Member Avatar for Begginnerdev
0
334
Member Avatar for PM312

You could try to reference the file as \\machine\D$\file.pdf This assumes that the server has access to your PC using the admin share. If not then you may need to set up a share (probably read only) to a folder set up strictly for that purpose.

Member Avatar for Reverend Jim
0
585
Member Avatar for tobyITguy
Member Avatar for theredhosting

I enjoy programming because I like to build things but I suck at wood-working. Also I need less room, I don't need as many tools and I have yet to lose a digit to a debugger.

Member Avatar for bordogamesdev
1
420
Member Avatar for AnandK
Member Avatar for Reverend Jim
0
63
Member Avatar for UKnod

I think your best bet would be [Named Pipes](https://support.microsoft.com/en-us/kb/871044). If both processes are on the same computer you can use a simpler method, [Anonymous Pipes](https://msdn.microsoft.com/en-us/library/bb546102(v=vs.110).aspx).

Member Avatar for UKnod
0
286
Member Avatar for CaffeineCoder

I would start by creating a class which has a string property for the question, a string list for the possible answers, and a property (your choice of type) that identifies which of the answers is the correct one. You could create a list (or Array) to contain the instances …

Member Avatar for DaveAmour
0
191
Member Avatar for Lethugs

Sometimes project files get scrambled. Try the following: * start Visual Studio and create a new project * start another Visual Studio session and load your problem project * do CTRL-A to select all the controls on the form * paste the controls in the new project form * go …

Member Avatar for Lethugs
0
301
Member Avatar for tshukela.george

When used as a single statement iNumber = 1 assigns 1 to iNumber. When used as a conditional it evaluates to a Boolean which is actually 0 or -1 so If IsNumeric(iNumber = 1) Then will always evaluate to True no matter what number you compare iNumber to. One alternative …

Member Avatar for tshukela.george
0
290
Member Avatar for altjen

The actual query would look something like SELECT * FROM tablename WHERE name LIKE '%Andrea%' AND occupation IN ('cop','butcher','baker')

Member Avatar for Reverend Jim
0
198
Member Avatar for Slavi

I'd be happy just being able to jump from Winnipeg to New York (I wouldn't miss the 3 hour layover in Toronto, which is where I am currently passing the time).

Member Avatar for Slavi
0
494
Member Avatar for iamthwee

I think Algol used that form as well. I think it was to appease mathematicians who objected to an equality statement being used for assignment. Same reason that APL uses a left arrow for assignment.

Member Avatar for vegaseat
1
845
Member Avatar for Minimalist

That's what happpens when someone goes through the older posts (likely from doing a Search) and posts: * Thanks. Just what I was looking for * A follow-up question * An unrelated question * Something actually useful to the thread Any reply at all bubbles the thread to the top …

Member Avatar for tobyITguy
0
118
Member Avatar for altjen

You keep changing formats. First you said Ani | Human, my friend, boy Now the format is Ani #friend #human #male The first thing you have to do is nail down a format. I'm guessing that what you have is a file like Ani | Human, my friend, boy Car …

Member Avatar for altjen
0
224
Member Avatar for Papa_Don
Member Avatar for vegaseat

Q: How many NRA spokesmen does it take to screw in a light bulb? A: More guns.

Member Avatar for vegaseat
0
323
Member Avatar for Reverend Jim

There are certain words and phrases that drive me absolutely bat-shit crazy. Some have been around for decades and others are relatively new. "It is what it is". Not the worst of the bunch but mostly useless. Any portmanteau beginning with "bro", e.g. "bromance". "Pre-owned", "pre-loved", etc. Used is still …

Member Avatar for vegaseat
1
318
Member Avatar for Jeysmart

You should start by reading [The Rules](https://www.daniweb.com/community/rules) and [this thread](https://www.daniweb.com/software-development/vbnet/threads/424836/please-read-this-before-posting) which appears at the top for a reason. You started off on the wrong foot in several ways * You posted in ALL CAPS * You didn't provide a meaningful title * You didn't show that you have put any …

Member Avatar for Reverend Jim
0
91

The End.