4,911 Posted Topics
Re: >I'm always in search for new music: Try "Nothing Above My Shoulders But the Evening" by Ray Lynch and "Waterstation" by Tim Clement. | |
Re: 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. | |
Re: Are you asking how to traverse folders to look for file names? And how do you determine if a file is wanted or unwanted? | |
Re: I've seen the same thing. Sometimes I have to close the chat twice before it stays closed. | |
Re: 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. | |
Re: 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 … | |
![]() | Re: 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) ![]() |
Re: [Here](https://msdn.microsoft.com/en-us/library/vstudio/k3bb4tfd(v=vs.100).aspx) is a walkthrough from Microsoft. | |
Re: 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 … | |
Re: If you have access to another machine I suggest you download [Trend Micro Housecall](http://housecall.trendmicro.com/) (free) and burn it to a CD/DVD then boot your computer to the disc. Information Security amazon-web-services api apple apple-hardware audio data-protection file-stream google-api microsoft-office microsoft-windows office-suite pdf printer user-interface vbscript video-card virus-malware visual-basic visual-studio web-browser webcam windows-api windows-virus windows-vista wireless-networking | |
Re: 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 | |
Re: 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. | |
Re: You get the selected node through TreeView1.SelectedNode You can select a specific node in code by TreeView1.SelectedNode = TreeView1.Nodes(0).Nodes(4) | |
Re: If all of the people on Facebook were considered a country, it would be the world's third largest. | |
Re: 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/) | |
Re: What do you mean by **html image**? By **get** do you mean save, retrieve, download or what? | |
Re: 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 … | |
Re: 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, … | |
Re: 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) " & … | |
| |
| |
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 … | |
Re: What line is giving the error? By the way, you may want to open the connection before you try to use it. | |
Re: @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 … | |
Re: I know how much fun migration can be. Congrats on a successful op. | |
![]() | Re: 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 … ![]() |
Re: Unless you have a specific vb.net question you should be posting in some other forum. | |
Re: 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 … | |
Re: 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/) | |
Re: Try For Each line As String In ListBox1.Items Caminho.WriteLine(line) Next | |
Re: How about posting the xml and an example of what you want the tool strip to look like? | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: It's a small seven-legged marsupial. | |
Re: 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. | |
Re: A TreeNode already has a Text property. Why do you want to add a TextBox? | |
Re: 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). | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: The actual query would look something like SELECT * FROM tablename WHERE name LIKE '%Andrea%' AND occupation IN ('cop','butcher','baker') | |
Re: 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). | |
![]() | Re: 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. |
Re: 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 … | |
Re: 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 … | |
Re: I don't see how we can help without seeing the code. | |
Re: Q: How many NRA spokesmen does it take to screw in a light bulb? A: More guns. | |
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 … | |
Re: 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 … |
The End.