4,901 Posted Topics

Member Avatar for alfredo11

I just had a similar situation. I had ten controls that I wanted to access in a loop so I did the following: [code] Dim PlayerRounds(9) As System.Windows.Forms.TextBox PlayerRounds(0) = txtPlayer01Round PlayerRounds(1) = txtPlayer02Round PlayerRounds(2) = txtPlayer03Round PlayerRounds(3) = txtPlayer04Round PlayerRounds(4) = txtPlayer05Round PlayerRounds(5) = txtPlayer06Round PlayerRounds(6) = txtPlayer07Round PlayerRounds(7) …

Member Avatar for Reverend Jim
0
185
Member Avatar for get connected

This is an especially tricky problem which plagued me for years as a programmer in a real-time environment. No matter how careful you are there is always a window between when you check if the file is available and when you actually use it. In my case, one group (work …

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

I have a textbox control for which I want to fit twelve double spaced lines of text so that the textbox is optimally filled (as little whitespace at the end as possible). So far the best I have come up with is [code] Dim fh As Integer = txtCategories.Height \ …

0
99
Member Avatar for Reverend Jim

I have two forms that are called by the main form. One is named frmEdit, and is invoked by the ShowDialog (modal) method. The other is named frmSearch and is invoked by the Show (non modal) method. In both cases I want to preserve the last window position so each …

Member Avatar for Reverend Jim
0
164
Member Avatar for leo1937ca

How about moving your CSV file into another folder and changing strfilename to the fully qualified file name like "d:\temp\test.csv"

Member Avatar for Reverend Jim
0
170
Member Avatar for Reverend Jim

I would appreciate a snippet of code for adding groups at run-time to a listview. I am currently listing books (and stats) without groups via the following code which is executed in a loop (one pass per book title). [code] item = New ListViewItem item.Text = seq.ToString item.SubItems.Add(Mid(titlenode.Nodes(N_CSTAT).Text, 3)) item.SubItems.Add(Mid(titlenode.Nodes(N_JSTAT).Text, …

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

Am I missing something here? I am writing a game that requires some random number generation. I decided to use the System.Random class but I was getting strange results. The documentation says that if I have an instance of the class (let's call it r), the call r.Next(1,6) returns a …

Member Avatar for Reverend Jim
0
142
Member Avatar for DuroF1

If XP mode doesn't work you might try the full product, Virtual PC, from Microsoft. I haven't used it personally (I prefer VMWare). I believe it differs from XP mode in that XP mode lets you run the app from the Windows 7 desktop (hides the XP innards) whereas with …

Member Avatar for Miss M
0
766
Member Avatar for bigjoes

A remote possibility, I admit, but it may be possible your master boot record has been corrupted. It is easily fixed as long as the drive itself is not faulty. Download and create a dos boot disk from [url]http://www.bootdisk.com/bootdisk.htm[/url] then boot into that disk and run the command fdisk /mbr …

Member Avatar for jingda
0
114
Member Avatar for javanoob101

Pick up a copy of SpinRite (I keep recommending this software but I do not get anything for my recommendation) and create bootable media (usb stick or CD) then boot off this media. Run diagnostics on the hard drive and see what it reports. hard drive controllers have error correction …

Member Avatar for javanoob101
0
356
Member Avatar for Dani

I posted the following in the above forum this morning... I understand that recent changes to google search (supposedly in order to reduce the ranking of content farms) has also harmed legitimate sites such as [url]www.daniweb.com[/url]. This has apparently reduced traffic to the site by 50%. I have found this …

Member Avatar for Reverend Jim
3
1K
Member Avatar for esdel

Teamviewer can be run without installing so you should be able to run it from your thumb drive. Just make sure you copy the setup file to the thumbdrive. If you are concerned about your thumbdrive becoming infected then just wipe it when you are done. I suggest you set …

Member Avatar for Reverend Jim
0
229
Member Avatar for quintabelina

The recovery partition allows you to reset the computer back to the state it was in when it was purchased. I do free tech support for several people (friends/relatives). Lately this has consisted of installing Windows 7, then rescuing them when they destroy their system with crapware/trojans/etc. The steps I …

Member Avatar for Reverend Jim
0
332
Member Avatar for Fortinbra

Imsai 8080 and Data General Nova. Mass storage was dual cassette on the DG and 8" floppy on the 8080. Debugging consisted of hand assembling and toggling bits on the front panel. Next job was programming SPPCs (stored program process controllers) at two northern generating stations in Manitoba. Programs were …

Member Avatar for Kramer49
0
178
Member Avatar for vishalbhavsar

Copy the following code into a file named msgbox.vbs. Display a message from the command prompt by: C:\> msgbox "my message" C:\> msgbox "my message" "my title" If you want multiple lines then include \n as in C:\> msgbox "this\nhas\nfour\nlines" "My Message Box" [CODE] set arg = Wscript.Arguments select case …

Member Avatar for caperjack
0
399
Member Avatar for siskaj

What happens if you type "gpedit.msc" in the Run box? If the gpedit console comes up then you should be able to set the Autoplay parameters by expanding Computer Configuration Administrative Templates Windows Components then double clicking on "AutoPlay Policies" In the right panel, double click on Turn Off Autoplay …

Member Avatar for benmar
0
175
Member Avatar for striker_1

[url]http://support.microsoft.com/kb/315231[/url] Shows you how to set auto login manually and also provides Fix-It buttons to do the setup for you.

Member Avatar for Reverend Jim
0
235
Member Avatar for richecker

Before retiring I managed two server installations (primary and backup). Each site had approx 10 (Windows) servers. We used Symantec Livestate Recovery to take daily images of all primary servers. The backup servers had identical hardware and disks and were booted into a maintenance mode whereby each day's image was …

Member Avatar for Reverend Jim
0
205
Member Avatar for TheTechWookie

Our problem wasn't that the users were requesting unnecessary software and upgrades. Outside agencies would upgrade to newer versions of programs like Word, Excel and Visio and we would be unable to open the files without the appropriate upgrades. For that we had no choice but to upgrade. Our biggest …

Member Avatar for jwenting
0
359
Member Avatar for sha11e

In the registry under the first hive HKEY_CLASSES_ROOT you will find an entry with the name ".txt". I exported mine and it looks like this (without the ----- lines)... --------------------------------------------------- REGEDIT4 [HKEY_CLASSES_ROOT\.txt] "PerceivedType"="text" @="txtfile" "Content Type"="text/plain" [HKEY_CLASSES_ROOT\.txt\OpenWithProgids] "VisualStudio.txt.10.0"="" [HKEY_CLASSES_ROOT\.txt\PersistentHandler] @="{5e941d80-bf96-11cd-b579-08002b30bfeb}" [HKEY_CLASSES_ROOT\.txt\ShellNew] "ItemName"=hex(2):40,25,53,79,73,74,65,6d,52,6f,6f,74,25,5c,73,79,73,74,65,6d,\ 33,32,5c,6e,6f,74,65,70,61,64,2e,65,78,65,2c,2d,34,37,30,00 "NullFile"="" ---------------------------------------------------------------- Note the line with @="txtfile" …

Member Avatar for benmar
0
169
Member Avatar for Dani

You might want to check out Customizing Folders with Desktop.ini [url]http://msdn.microsoft.com/en-us/library/aa969337.aspx[/url]

Member Avatar for Reverend Jim
0
759
Member Avatar for guyinpv

I can write you something to use from within Excel but because you already have the csv files you can just process them from the command line. Copy the following code and save it into a file with the name "ProductReport.vbs". If your csv file is named myfile.csv you can …

Member Avatar for Reverend Jim
0
161
Member Avatar for duliduli556

Do a google search for "gparted live cd". The first one that came up on my PC was [url]http://gparted.sourceforge.net/livecd.php[/url] It states, "GParted Live is a small bootable GNU/Linux distribution for x86 based computers. It enables you to use all the features of the latest versions of the GParted application." There …

Member Avatar for Reverend Jim
0
154
Member Avatar for atikah8890

Is it possible the files could just be hidden? I have noticed that on occasion when I run the command robocopy d:\ t:\d-drive /e /r:0 /purge (which is how I back up my internal d drive to my external t drive) that the d-drive folder on the external disappears until …

Member Avatar for birellar
0
135
Member Avatar for Reverend Jim

I'm running Windows 7 Pro on a Dell Inspiron 1720. I have desktop slideshow enabled and pointed to a folder of my favourite pictures. Occasionally I will force a switch to the next picture from the desktop context menu item "Next desktop background" which appears between the "NVIDIA control panel" …

Member Avatar for Reverend Jim
0
315
Member Avatar for askhari139

I wanted to be able to boot into linux as well as Windows 7 but I didn't want to go the dual-boot route so I installed linux and grub on an external (USB) drive. When I want to run linux I just F12 at boot time and boot off the …

Member Avatar for benmar
0
181
Member Avatar for alaa sam

If you want to block specific sites you can edit the file c:\windows\system32\drivers\etc\hosts for each site that you want to block, add a line like the following 127.0.0.1 site-address for example, if you wanted to block access to the site [url]www.wired.com[/url] you would add 127.0.0.1 [url]www.wired.com[/url] Normally, if you entered …

Member Avatar for alaa sam
0
166
Member Avatar for programer25

You don't need her permission to connect with team viewer. When you install it on her computer, set up a free account on the Team Viewer site and set TV to autoload into Windows. Install on your computer and use the same registration information. This will allow you to connect …

Member Avatar for Reverend Jim
0
198
Member Avatar for jmrpjb
Member Avatar for Fortinbra

The way I would do it is to create a vbscript file that creates a Microsoft Word object and uses that in a loop to open each file in the folder and check the text. If you are not familiar with scripting or creating scripted controls then it becomes very …

Member Avatar for Fortinbra
0
135
Member Avatar for Fossaw

Just as a note (now that all the real work is done), I always enable /sos in the boot.ini. This causes Windows to display drivers as they are loaded (like you see in safe mode). I always prefer to see this instead of the no info "idiot lights". If it …

Member Avatar for Fossaw
0
151
Member Avatar for deepakmenonk

Do you get the same problem when running in safe mode? I believe this error can be caused by a video (graphics hardware/driver) problem. Check to see if you have the latest version of your video driver. Even if you do, I suggest you uninstall the current driver and re-install …

Member Avatar for benmar
0
200
Member Avatar for GrahamW2

My son's Dell was getting BSOD with increasing frequency. I eventually tracked it down to his hard drive which was failing. We didn't suspect this at first because the drive was only a few months old but when we ran SpinRite it identified problem areas. When we replaced the drive …

Member Avatar for benmar
0
205
Member Avatar for johnspill

You might try OneSwarm from the University of Washington. See the wiki article at [url]http://en.wikipedia.org/wiki/OneSwarm[/url] which, as I understand it, is a a bittorrent P@P system but which allows you to specify who may participate in the share. From what I have read you should be able to set up …

Member Avatar for Reverend Jim
0
99
Member Avatar for kes166

When you are asked a technical question and you don't know the answer it is always acceptable to say "I don't know". Making shit up is not just bad; it's plain malicious. It can cause the person who asked the question to either stop looking for the answer or waste …

Member Avatar for Reverend Jim
0
115
Member Avatar for gunbuster363

I use robocopy.exe (command line tool free from Microsoft). I do a weekly backup from my D drive to a folder on an external T drive. The command I use is robocopy d:\ t:\ddrive /e /r:0 /purge the first two parameters are the source and destination folders. /e copies all …

Member Avatar for Reverend Jim
0
150
Member Avatar for jetmcnx69

Do you know anybody who has a copy of ERD Commander? This has an option to reset the Admin password.

Member Avatar for Reverend Jim
1
121
Member Avatar for judithSampathwa

What is the parent folder of what? First of all the actual fully qualified path is not C:Report\Level 1 it is C:\Report\Level 1 So "C:\Report" is the parent folder of "C:\Report\Level 1" and "C:\" is the parent of "C:\Report" The first backslash is important. Let's take an example. Let's say …

Member Avatar for Reverend Jim
0
175
Member Avatar for Neversleepin

Copy the following code and save into the file "copy10.vbs". [CODE]'fso = for file i/o operations 'arg = for getting at command line arguments set fso = CreateObject("Scripting.FileSystemObject") set arg = Wscript.Arguments 'make sure we have two arguments if arg.count <> 2 then wscript.echo wscript.echo "copy10 fromfile tofile" wscript.echo "" …

Member Avatar for Reverend Jim
0
219
Member Avatar for Dannnn

If you really want to see the health of your hard drive I highly recommend SpinRite. My son (who now understands the importance of regular backups) almost lost a couple of years of PhD research due to a drive problem. SpinRite was able to recover the data from bad sectors. …

Member Avatar for Reverend Jim
0
261
Member Avatar for Dixy

If you do not want to physically remove your hard drive then you might want to consider downloading a linux livecd and booting into that. If you can plug an external drive into a USB port then you may be able to copy your files without having to open your …

Member Avatar for Reverend Jim
0
300
Member Avatar for alternativetoo

I agree with a previous poster who said it may be a battery problem. I used to maintain a few dozen Toshibas running Windows XP and often a problem with the battery resulted in a dead machine. You'd think it should still work with a bad battery if the AC …

Member Avatar for Reverend Jim
0
242
Member Avatar for Reverend Jim

When I try to build a C++ project I get the error message in the title line. I am trying to help my son move his development from a unix cluster to his laptop. He is running Windows XP Pro and has installed the Eclipse IDE for C/C++ Developers. The …

Member Avatar for nezachem
0
4K
Member Avatar for Reverend Jim

In the book, wxPython in Action (page 65), the following code shows how to bind an event to a frame (self) and to a button. In the case of the frame event (wx.EVT_CLOSE), no source argument is specified because the event is being bound to the object refenced as "self". …

0
77
Member Avatar for jingo1126

You could also download SQLiteSpy (free) from [url]http://www.softpedia.com/progDownload/SQLiteSpy-Download-107386.html[/url] It's a nice,small, robust SQL implementation

Member Avatar for Reverend Jim
0
109
Member Avatar for Roelof Wobben

Rather than trying to determine what the program is supposed to do by reading the code, could you please do your homework and add a few comments to the code as well as a summary of what the program is supposed to do?

Member Avatar for Reverend Jim
0
125
Member Avatar for progcomputeach

My favourite "working" language has to be Python, even though I am relatively new to it. I spent the last ten years before retirement writing glue code in vbScript - mostly pumping data, reformatting data, fetching and storing data, system maintenance and SQL maintenance. All of which would have been …

Member Avatar for MeSam0804
0
152
Member Avatar for progcomputeach

Be willing to share what you have learned when asked by others. Some people think that by hoarding knowledge they make themselves more valuable. An employee who is willing to raise the skills of his fellow employees is the valuable one.

Member Avatar for Rashakil Fol
0
155
Member Avatar for jorgmen

I suggest you get a copy of the following. It contains detailed algorithms and instructions on creating and solving Sudoku puzzles. It uses VB 2005 as a base language. Programming Sudoku Copyright © 2006 by Wei-Meng Lee ISBN-13 (pbk): 978-1-59059-662-3 ISBN-10 (pbk): 1-59059-662-5

Member Avatar for Reverend Jim
0
269
Member Avatar for Reverend Jim

Can someone please fill in the missing line of code in OnPageChange? I have a notebook control and on a page change event, I want to retrieve the label of the tab that was just selected. GetLabel and GetLabelText both return '' [CODE] import wx import wx.lib.mixins.inspection class Frame(wx.Frame): def …

Member Avatar for Reverend Jim
0
1K

The End.