4,911 Posted Topics
Re: This usually happens when you have failed to specify a boot device. Did you tell vmware (via the settings) to use the physical CD/DVD device on your computer? The alternative is to make an iso file from your XP CD/DVD and make sure it is mounted. Both options are set … | |
Re: If the quantity for discount varies from item to item then I suggest you add it as well as the discount to your listview as a subitem. That way you wouldn't have to hardcode a test for each type of item. Also, your insert query is independent of the item … | |
Re: Use the "Expand" method as in trvMyTree.Nodes(0).Expand | |
Re: The following code scans the first 500 rows and 20 columns of all worksheets and writes the values of all cells that start with the letter "c". [code] Imports Excel = Microsoft.Office.Interop.Excel Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim xls As … | |
Re: syncback from 2brightsparks does it for me and it comes in a free version. | |
Re: I found "Mastering Visual Basic 2008" (Evangelos Petroutsos - Wiley Publishing) to be a very good book. There is a VB 2010 edition as well. | |
Re: Can you please describe (in words instead of code) what it is you are trying to do? In other words, if I was the programmer, what would you tell me in order for me to write the program without any further input from you? | |
Re: I did exactly the same thing this summer to troubleshoot a problem with my Rogers Rocket Hub at the cottage. Do you have a question? You don't require a CMD session to execute the ping. A simple (simple enough for my purposes) ping function is [code] Private Function PingStatus(ByVal addr … | |
Re: Try this [code] Dim lines() As String = Split(My.Computer.FileSystem.ReadAllText(myfile), vbCrLf) dim flt() as string = Filter(lines,"Joe Blow") [/code] This will give you an array containing only the matching lines. | |
Re: Let's try to make it clear with an example. Take the number 9184 or 9 1 8 4. Add 7 to each digit giving 16 8 15 11 Take the remainder after dividing by 10 giving 6 8 5 1 Swap digits 1 & 3 giving 5 8 6 1 … | |
Re: A transaction is used in database processing where you want to make non-trivial changes. For example, in banking, when you want to make a transfer from one account to another you could do the following 1) deduct the given amount from the first account 2) add the given amount to … | |
Re: The easiest way would be to use Firefox with the DownloadHelper Add-On | |
Re: If you have the listview in details view you can define a custom sort. Let's say your listview is called lvwList lvwList.ListViewItemSorter = New MyCustomSorter But first you have to write the MyCustomSorter class. This is code that will compare two of your items and determine whether one is <, … | |
Re: If you use a regular expression it will do a more robust word separation. [code] Dim rex As New System.Text.RegularExpressions.Regex("\b[a-z|A-Z|']+\b") Dim s As String = "the Quick, brown's <fox> jumped?" For Each match As System.Text.RegularExpressions.Match In rex.Matches(s) Debug.WriteLine(s.Substring(match.Index, match.Length)) Next [/code] In the above regular expression "\b" matches a word … | |
Re: n-Track at [url]http://ntrack.com/[/url] is a dandy multi-track recording package. For straight audio you can't beat Audacity (free) | |
Re: As far as I know, only if you have a checksum from the original exe. | |
Re: I disagree that you have to restore a file from the backup before it can be used. I can examine files directly in my backup sets, even it the original has been deleted. I can read, print, email, etc these files directly from the backup. | |
Re: This is a starting point. You can modify it, perhaps, to start at row one and continue until it finds an empty cell. To test, populate the first four cells of column B with your test addresses then run the macro (I assigned it to CTRL-M but you can just … | |
Re: My.Computer.FileSystem.GetName(filename) Returns just the filename portion of the fully qualified file. My.Computer.FileSystem.GetParentPath(filename) Returns the path portion. For filename = "C:\Users\profile.DOMAIN", the first returns profile.DOMAIN and the second returns C:\Users | |
I wanted to upvote another user's post. When I clicked on the upvote link I got a popup which stated "[user] currently has 537 reputation points. You have the power to influence pyTony's reputation by 4 points." I felt his assistance was worth more than one point but there was … | |
Re: Are you having a problem with the SQL part, the ListView part, or both? My SQL is rusty so I'll leave that to the experts as I have no SQL implementation to play with, however, the ListView part is something I can help you with. What specifically are you having … | |
Re: First of all - the following only works on NTFS file systems and uses (as suggested by Teme64) alternate data streams which are pretty cool and very easy to work with. Funny you should bring this up. I wanted the ability to add a comment to a file (any type … | |
Re: Then why don't you tell us what specifically you are having problems with? | |
Re: Can you describe what you are trying to do in functional (non-programming) terms? | |
Re: If you are only interested in specific buttons on a page, a convenient way to distinguish them from other buttons is via the button.Tag property. Then inside the "is this a button" test you can check if button.Tag = "some value". | |
Re: I suggest you read the following article: [url]http://media.wiley.com/product_ancillary/74/04705328/DOWNLOAD/532874_both02_p2.pdf[/url] If you still have questions after that then feel free to post. But read the article a couple of times first and do a little experimenting. | |
Re: I would do everything in pennies. That is, if the input values are (for example) $250 and $127.93, I would convert that to 25000 and 12793 and go from there. That eliminates rounding when you use "\" to extract each denomination. [code=vb.net] 'provide your own input validation first Dim cost … | |
Re: Same as for printing anything else. I am just getting into printing and it isn't pretty. You have to calculate the position of every element on the page. A very good document (PDF) can be found here [url]http://media.wiley.com/product_ancillary/74/04705328/DOWNLOAD/532874_both02_p2.pdf[/url] Essentially you are going to have to do something like the following … | |
Re: Save the returned object from Process.Start and issue a Kill on that object when you are done with it. It will kill only that instance of cscript. [CODE=vb.net] Public Class Form1 Dim proc As System.Diagnostics.Process Private Sub btnStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStart.Click proc = Process.Start("d:\temp\test.vbs") … | |
I wrote this 3D Breakout game as a sample project to learn both Python and the visual module, vPython. It is based on a similar game I had on my Amiga back in the 80s. I don't expect that my Python is either standard or as elegant as it could … | |
Is anyone ever going to fix the dead link on [url]http://www.daniweb.com/community-center/daniweb-community-feedback/threads/10915[/url] with the label User Maintenance, General forum usage, Reading and posting messages. I would really like to find the guide that explains the finer points of the Daniweb user interface. I think this is it but it had been … | |
Re: There are so many things wrong here. [B]That is not "the whole code"[/B] You are concatenating A and B to strCodes but we have no idea what A and B are. Because they are not defined anywhere I must assume they are Class or global variables. [B]You are using variables … | |
Re: [code] dim str as String = "C:\Users\profile" str = str.Substring(0, 1).ToLower & str.Substring(1) [/code] | |
Re: First of all when you take the square of 4 you get 16. I presume you meant square root. I would imagine that the algorithm used to find the square root results in 2 plus a very very small fraction which is not shown because it is so much smaller … | |
Re: Some batteries have a small (can be hard to see) button which, when pressed (at least on my Dell) indicates the health of the battery depending on how many LEDs light up. Yours may have something similar. Lacking that you might try to go to Control Panel -> All Control … | |
Re: Let's say you have a listview named lvwStuff and it has three columns (indexed 0, 1 and 2). The following code adds one line to the listview (I have it in Details view) [code=vb.net] Dim item As New ListViewItem item.Text = "stuff" 'gets added as lvwStuff.Items(0).SubItems(0) item.SubItems.Add("stuff col 1") 'gets … | |
Re: Assuming that you want to do something similar with all of the textboxes within a groupbox, try the following code: [code=vb.net] Dim ctl As Windows.Forms.Control For Each ctl In Me.GroupBox2.Controls If ctl.GetType.ToString = "System.Windows.Forms.TextBox" Then ctl.Text = "splunge" End If Next [/code] I believe in some cases you may have … | |
Re: I had the same problem with Ubuntu Studio. I don't have the installation handy so I will be guessing at the name here but I think you have to cable up then install a package called (I think) widi. My problem was that every time I tried to enable the … | |
Re: [quote] Well, I do not know of a specific code but I do have some tips for you to help the overall functionality of your application. Most of which are listed here so check this out and I hope this helps! [/quote] I found that article to be quite dated … | |
Re: The first thing I would suggest is to create a two-dimensional array for the buttons. If you want to place the buttons manually (at design time) you can initialize the array at run time as follows (in the form New or Load event handlers). Just make sure you declare the … | |
Re: See if this helps: Right click "My Computer" and choose "Properties" from the context menu. Go to the "Advanced" tab Click the "Error Reporting" button near the bottom right Select "Disable Error Reporting" I don't know why the message keeps popping up but this may disable it. | |
I thought I'd play around with vPython so I wrote a 3D breakout game (I used to have one on my Amiga and I haven't seen one for Windows). Everything is done except for one wee problem. I want to idle while waiting for the user to click the left … | |
Re: I had to set up a remote desktop to provide support between Winnipeg (me) and Phoenix (user). Machines at both ends were behind routers. I spent days trying to get Remote Desktop working (something which works astonishingly well when both machines are on the same domain and not separated by … | |
Re: I'll probably get flamed for this but if you can't connect to the internet then how did you post your message? And if you are posting from another computer then why don't you download the needed file from that computer? If you are posting from a cell phone or Blackberry … | |
Re: Perhaps the purpose is to do some housecleaning, start monitoring software, etc. There are many reasons why you would want to do this. That is why Microsoft provides an easy way to do this. Of course, the easy way is easy only if you have the correct version of Windows. … | |
I was doing a little playing around with some scrollbar controls and I noticed an odd behaviour that I was hoping someone could explain. I create three horizontal scrollbar controls, one for each primary colour. Possible values for each R, G or B are 0 to 255. When I set … | |
Re: Or you can create a file with that extension, then from an Explorer window, right click on that file and choose "Open With". From there you can select your custom program and select "Always open with this program". You can also do this from Control Panel -> Default Programs Either … | |
Re: You might find it easier to do this with AutoIt using either vbScript to interface to the AutoItX control or the builtin AutoIt scripting feature. You can get more information at [url]http://www.autoitscript.com/site/autoit/[/url] It's free, by the way. |
The End.