- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
4 Posted Topics
An alternative to a JavaScript resolution (if for whatever reason you want to or even just to have another way) is simply set the target of your form to a hidden frame which is much the way the AJAX lifestyle had its roots before anyone took the collection of things …
Also, Have you set the KeyPreview property of the form to true? (in the properties dialog of the gui or directly in the *.frm file under "Begin VB.Form" set "KeyPreview = -1" for true) otherwise, I believe, the KeyPress events get digested before they can filter through to the handlers …
Shena, I believe that the form must be fully shown for the SetFocus command of any of that form's children to work. Placing "Me.Show" in your Form_Load() on a line above your textbox1.SetFocus ought to clear that up. [CODE]Private Sub Form_Load() '.... me.Show textbox1.SetFocus '.... End Sub[/CODE]
VB.Net makes a task like that quite simple: [code] Public Sub text_combine( _ ByVal path_to_read_file As String, _ ByVal path_to_append_file As String _ ) System.IO.File.AppendAllText( _ path_to_append_file, _ System.IO.File.ReadAllText(path_to_read_file) _ ) End Sub [/code] A little error checking may prevent hangups: [code] Public Function text_combine( _ ByVal path_to_read_file As String, …
The End.
robert_c_guy