4,911 Posted Topics

Member Avatar for harinath_2007

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 …

Member Avatar for caperjack
1
3K
Member Avatar for anonimous

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 …

Member Avatar for adam_k
0
2K
Member Avatar for x38class
Member Avatar for deepanbecse

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 …

Member Avatar for Reverend Jim
0
1K
Member Avatar for skypilotpete
Member Avatar for Reverend Jim
0
394
Member Avatar for saba kausar

I found "Mastering Visual Basic 2008" (Evangelos Petroutsos - Wiley Publishing) to be a very good book. There is a VB 2010 edition as well.

Member Avatar for Netcode
0
163
Member Avatar for theonebit

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?

Member Avatar for theonebit
0
206
Member Avatar for OblibSystems

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 …

Member Avatar for Reverend Jim
0
123
Member Avatar for rbrnkr

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.

Member Avatar for Reverend Jim
0
159
Member Avatar for moparman426

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 …

Member Avatar for Reverend Jim
0
222
Member Avatar for pennywise134

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 …

Member Avatar for Reverend Jim
0
131
Member Avatar for casey_sunako
Member Avatar for Reverend Jim
0
142
Member Avatar for raaif

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 <, …

Member Avatar for raaif
0
1K
Member Avatar for debuggger

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 …

Member Avatar for Reverend Jim
0
186
Member Avatar for oseijy

n-Track at [url]http://ntrack.com/[/url] is a dandy multi-track recording package. For straight audio you can't beat Audacity (free)

Member Avatar for Reverend Jim
0
135
Member Avatar for kylelendo
Member Avatar for Reverend Jim
0
140
Member Avatar for ausgurl

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.

Member Avatar for Reverend Jim
0
152
Member Avatar for moone009

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 …

Member Avatar for Reverend Jim
0
130
Member Avatar for jonoman

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

Member Avatar for Reverend Jim
0
183
Member Avatar for Reverend Jim

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 …

Member Avatar for Dani
0
148
Member Avatar for iefilec

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 …

Member Avatar for MartinPlatt
0
485
Member Avatar for Oneryavuz

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 …

Member Avatar for Reverend Jim
0
183
Member Avatar for macvere
Member Avatar for Reverend Jim
0
150
Member Avatar for Reverend Jim
Member Avatar for TIP.Synergy

Can you describe what you are trying to do in functional (non-programming) terms?

Member Avatar for NetJunkie
0
197
Member Avatar for Jesus Jacques

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".

Member Avatar for Jesus Jacques
0
1K
Member Avatar for hackerjackie

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.

Member Avatar for Reverend Jim
0
83
Member Avatar for pfm200586

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 …

Member Avatar for Reverend Jim
0
398
Member Avatar for hackerjackie

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 …

Member Avatar for Reverend Jim
0
117
Member Avatar for slenno1

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") …

Member Avatar for Reverend Jim
0
207
Member Avatar for Reverend Jim

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 …

Member Avatar for Reverend Jim
0
499
Member Avatar for Reverend Jim

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 …

Member Avatar for Dani
0
339
Member Avatar for TIP.Synergy

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 …

Member Avatar for Pgmer
0
702
Member Avatar for jonoman

[code] dim str as String = "C:\Users\profile" str = str.Substring(0, 1).ToLower & str.Substring(1) [/code]

Member Avatar for jonoman
0
93
Member Avatar for hackit

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 …

Member Avatar for Reverend Jim
0
184
Member Avatar for Whilliam

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 …

Member Avatar for jingda
0
142
Member Avatar for Lek Plepi

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 …

Member Avatar for Lek Plepi
0
175
Member Avatar for uamahmood

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 …

Member Avatar for Reverend Jim
0
361
Member Avatar for parameswaran
Member Avatar for fish234

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 …

Member Avatar for khakilang
0
190
Member Avatar for bluejacketpin

[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 …

Member Avatar for Reverend Jim
0
95
Member Avatar for mkalinic

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 …

Member Avatar for Reverend Jim
0
453
Member Avatar for shredder2794

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.

Member Avatar for shredder2794
0
362
Member Avatar for Reverend Jim

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 …

Member Avatar for Reverend Jim
0
275
Member Avatar for Borzoi

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 …

Member Avatar for Reverend Jim
0
387
Member Avatar for fargfarbot

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 …

Member Avatar for Reverend Jim
0
120
Member Avatar for keval_hack

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. …

Member Avatar for Reverend Jim
0
267
Member Avatar for Reverend Jim

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 …

Member Avatar for Reverend Jim
1
214
Member Avatar for kylelendo

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 …

Member Avatar for codeorder
0
451
Member Avatar for M.Waqas Aslam

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.

Member Avatar for Reverend Jim
0
811

The End.