... From the "no code" is "good code" department: If the "Cancel" property of a button is True, then pressing escape will call the Click event handler for the...
I told you I was a novice as per Adelle (the down under surfer girl) we have to ways to get the skin off the Cat so that I am clear Adelle for your code to...
Hi Dwight, I think it is 'sleep time' in Australia. If I recall correctly, only one button, on each form, is allowed to have its Cancel Property set to 'True'....
Reading the Question is such an integral part of answering the question Question The control does not seem to want to give up focus. and would like to select...
If the CANCEL property of the COMMAND BUTTON object is set to TRUE, then the COMMAND BUTTO will automatically receive the focus when the ESCAPE key is pressed,...
Another thing to try is putting a little conditional statement in the KEYPRESS event of the textbox that won't give up the focus. Put this at the top of the...
Dwight: If you don't want to allow the user to load and alter the document, get Prof. Smiley's "LTP: VB: Objects" book (ISBN: 1-9296-8516-5) and check out...
I might be missing what you asking, but how about this: Assuming the textbox is named txtMyBox, and you want to stop the run if the word "monkey" is typed in: ...
Dwight: Error 429 is resolved in Prof. Smiley's LTP: VB OBJECTS I mentioned earlier. If you don't already have a copy of it, I would highly recommend it. ...
Dwight, system-wise, that part is done at the installation of Office. In a VB project, add it through Project->Reference, and select the Microsoft Word object...
Dwight, system-wise, that part is done at the installation of Office. In a VB project, add it through Project->Reference, and select the Microsoft Word object...
Glad to See I have created much confusion about this. Again, the Problem, Form loaded, Visible, TxtOne (text box) has focus TxtOne Validation says it must have...
Oh great more learning Now can we hide the e-mails before the surfer girl gets up She will make me learn a new way to use the code for sure So the Cat is able...
Joe the experts will be here to correct me if I am wrong I would say No you should be able to exit the Object at any time unless you demand the Object (text...
I want to let the end user exit the Application without entering data ? _____ From: helpwithvb@yahoogroups.com [mailto:helpwithvb@yahoogroups.com] On Behalf Of...
Yep I have it loaded here is the code with the modification I have made sofar Sub ShowMyFile() Dim PrintReport As String Dim PreviewReport As String Response =...
Hi Joe, ... I think the following code is the minimalist example that demonstrates your problem. Private Sub Text1_Validate(Cancel As Boolean) 'You will never...
You probably noticed in in windows applications, certain procedures won't let you exit and leave something hanging. The user must chose something that is...
Hi Folks I have 3 Introductory programming courses beginning on Monday, May 7th, including one on VB.Net. (I have a VB.Net Express course beginning on Monday,...
I made a listbox and set its style to checked. I can't seem to see any way to programically check or uncheck or detect if an individual item in its list has...
Anthony, If you're using VB in one of the .NET versions, you can iterate through the CheckedItemCollection of the CheckedListBox. This collection contains the ...
... In VB6, the ListBox control has a Selected property that takes the item's index as a parameter. eg. Private Sub Form_Load() List1.AddItem "thing" ...
I am using the OpenTextFile method of FileSystemObject to open a file. The problem is that the carriage return (Chr 13) is not recognized. When I open the...
I am writing an application that allows students to register for classes on-line. Once the student registers for the class, their registration is checked...
Just a shot, but possibly your text file has CRs but not LFs? Try this (just for the giggles) Set objFSO = CreateObject("Scripting.FileSystemObject") Set...
Is "intRecordCount" supposed to be "intFSOCount"? Rather than re-dimension an array in a loop, I suggest declaring a an array of strings with a set number and...