4,901 Posted Topics
Re: You might want to have a look at [Kill-a-Watt](http://www.thinkgeek.com/product/7657/) | |
Re: If you can't explain your problem in text then a video is not going to help. Personally, I wouldn't waste my time or the bandwidth. | |
Re: Microsoft has an article, [Walkthrough: Deploying a Winidows Based Application](http://msdn.microsoft.com/en-us/library/k3bb4tfd%28v=vs.100%29.aspx) which should help. | |
Re: Please read [this](http://www.daniweb.com/software-development/vbnet/threads/424836/read-this-before-posting). Particularly points 4 and 8. What did your working code look like? | |
Re: What variable is it complaining about? Please post the exact text of the error message. Also, please use the "Code" tool to insert code that is properly formatted. | |
Re: Use "&" instead of "+" when concatenating your string and numeric values. Also, inside your Class, you should declare properties as Public or Private instead of using Dim. And declare Subs and Functions as Public or Private as well. | |
Re: DateAdd(DateInterval.Day,-1,Now()) The first parameter is the interval and you can specify other values for month, year, etc. | |
Re: Because the code in the Finally is always executed you might wonder what's the point. The point is that the code in the Finally block is logically associated with the code in the Try and Catch blocks. If you saw Try 'some statements Catch ex As Exception 'some more statements … | |
Re: When you can remember getting into trouble for typewriter hacking as a teenager. | |
Re: Imports System.Text.RegularExpressions Public Class Form1 Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click Dim text As String = System.IO.File.ReadAllText("d:\temp\test.html") Dim pattern1 As String = "<h4><b>File Name:</b>(.*)</h4>" Dim m As Match = Regex.Match(text, pattern1) If m.Success Then MsgBox(m.Groups(1).Value) End If End Sub End Class The regular expression, pattern1 will … | |
Re: As far as I know this is not possible in VB 2010 or earlier but I seem to recall reading that this might be a feature in VB 2012. It is, however, available in vbScript. | |
Re: > Is it also possible to stop it when I start up another programm ? A particular program? Is it one that you have the source code for? You could always create a cmd file to start that particular program then create a shortcut to the cmd file and always … | |
Re: Could be an overheating problem. Games are much more CPU intensive and cause your system to run hotter. | |
Re: One thing you can do is to display a message to the user stating that some email systems with aggressive spam filters may block the receipt of your email. You could warn them to either whitelist your address or check the spam box. Alternately, you could send two messages. One … | |
Re: Try this: Private Sub frmMain_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing 'If there are unsaved changes to the active library, ask user what to do. Dim msgTitle As String = "You have unsaved changes" Dim msgPrompt As String = "Do you want to save your changes before … | |
Re: If you need an example of pseudo-code lets take the example of how to find the largest element in an array [code] pick the first element as the current largest for each element in the array if this element is bigger than the current largest save this element as the … | |
Re: Problems: 1. No comments 1. No description of any kind as to what you want to do 1. Incomplete error message 1. No posting of the value of sampque | |
Re: Correct me if I am wrong but on my profile page is says "Power to affect someone's reputation positively +11" and "negatively -2". I always assumed that these points are only applied if I do an up or down vote with a comment, and if I do not leave a … | |
Re: Please do not hijack threads. Especially old ones. Repost this as a new thread and I'll delete this one. | |
Re: Before I give my opinion on that, let's look at how downloads occur. Your computer requests a file from a remote computer The remote computer sends the file via TCP/IP. This protocol has resend logic built in such that packets that are not received or are corrupted are resent. The … | |
Re: I prefer option 2. Most of the comments I've seen consist of one-liners and most posts do not have comments so it's not like the comments will overwhelm the other content. It's not an issue at home where my internet connection is fast and reliable but here at the cottage, … | |
Re: "it doesn't work" doesn't help us to narrow it down. There are a thousand and one ways for something **not** to work. In what way does it not work? Are you getting a runtime error message? Are you getting an error on build? If you are getting an error message … | |
Re: My two cents is that it belongs at the bottom. When I go to a thread, the most important thing is **that** thread. The first thing I want to read is the thread I just opened. Related threads are what I might consider reading once I am done reading the … | |
Re: I'm not that familiar with using data adapters, etc (I tend to go with basic ADO) but what reason do you have to assume that Name is not a primary key? | |
Re: Sample input and output please. | |
Re: In what way doesn't it work? Are you getting incorrect data? Are you getting an error message? Please post the actual string value of the variable, Sql. | |
Re: I took the liberty of changing your post type from "Code Snippet" to "Discussion Thread". Code Snippets are for when you are posting working code. When you post code with a question you should use the default of "Discussion Thread". I know, it's confusing because when you add code the … | |
Re: It would help to see the code. Check to see that the identifier after the "Handles" keyword matches the correct control by name. | |
Re: In English, please, what are you trying to do? Give us some sample input. | |
![]() | Re: Simple types such as Integer, Boolean, etc (i.e. types that do not require instantiation with "New") are value types. Anything that is used to access an object is a reference type. In your example, Graphics refers to an object (as indicated by the fact that you can access methods/properties via … |
Re: Private Sub DataGridView1_CellClick(sender As System.Object, e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick If e.RowIndex < 0 Then Exit Sub Dim dgv As DataGridView = sender TextBox1.Clear() For i As Integer = 0 To dgv.ColumnCount - 1 TextBox1.AppendText(dgv.Rows(e.RowIndex).Cells(i).Value & vbCrLf) Next End Sub The above code will copy all cells in the selected … | |
Re: If you don't mind spending a few $$ on a good book I recommend Mastering Microsoft Visual Basic 2010 by Evangelos Petroutsos (Sybex). If you just want to get your feet wet for free you can work through the video series [here](http://channel9.msdn.com/Series/Visual-Basic-Development-for-Absolute-Beginners) | |
Re: A ListView is usually used for display only. If you want to be able to select columns I suggest you try a DataGridView. | |
Re: Use a Date variable like Dim mydate As Date Dim con As New ADODB.Connection Dim rec As New ADODB.Recordset con.Open("Driver={SQL Server};Server=.\SQLEXPRESS;Database=mydb;Trusted_Connection=yes;") rec.Open("select * from attendance where EmployeeID = 1", con) mydate = rec("LoginDateTime").Value rec.Close() con.Close() MsgBox(mydate) | |
Re: To everyone who has posted code so far: We generally do not post solutions unless the OP has gone to some effort to solve the problem on his/her own. In this case, the OP has posted what is quite likely a homework assignment and provided no proof that any attempt … | |
Re: I'm going to take a guess at your problem. I'm thinking you have a form with a button and a picturebox. You want to repeatedly move the picturebox left in small steps with a wraparound to the right side of the form. You also want to make the button invisible … | |
Re: You don't need quote characters around numeric fields. | |
Re: A Sub is a piece of code that takes zero or more parameters and does something. It does not return a value. A Function is the same thing except it returns a value that can be assigned to another variable. For example Private Function AddTwo(firstNum As Integer, secondNum As Integer) … | |
Re: Since you know the starting folder, you could get the path to the parent folder and save it in a string (let's call it rootparent). Then when you get the full path and file name in the for loop you could do mypath = fullpath.Replace(rootparent,"") or mypath = fullpath.Replace(rootparent,"..") depending … | |
Re: You can't replace the current form because it is the topmost window and closing it will close the application. But what you could do is make the main form invisible until it is needed again. | |
Re: Unless ID = %. This will delete all records because % matches any value. | |
Re: For the following code I created a blank form and added one textbox. I also added a tab control with two pages. Each page has two textbox controls. When you run the code, whenever you type in any taxtbox the complete text in that box will be displayed in the … | |
Re: Congratulations on your day of celebration. I hope your country achieves a future of peace. My condolances on the loss of your brother. | |
Re: Similar to the redneck vasectomy (light the fuse and count to 15). | |
Re: On Error Resume Next will not help you. You need to know what line is generating the error. If you know the line then you can trace it back to a particular cell in the DataGridView and possibly back to the database table. | |
Re: I think it's worthwhile to post the answer here so everyone can see it. | |
Re: [Audacity](http://audacity.sourceforge.net/) is free and open source, and it is available on multiple platorms. You do not need a video converter for mp3 files. You can load the file into Audacity and export each section as a separate mp3 file. I suggest you make a copy of your original file and … | |
Re: You can find the code [here](http://www.daniweb.com/software-development/vbnet/code/366392/encryption-and-decryption-functions-in-vb.net) | |
Re: That's a good assignment. I imagine you'll learn something by doing it. | |
Re: As far as I know, VB 2012 is available as a Release Candidate only. I would suggest sticking with VB 2010 for now. As for sample codes, there is quite a lot available here and elsewhere depending on what you are looking for. As a software engineer, you should know … |
The End.