|
-
Aug 23rd, 2003, 08:28 PM
#1
Thread Starter
Addicted Member
Text and Ontop - 2 ?'s !!
OK i have two ?'s
First one is Is a way to make an app "show" or be active like say that a user has Internet Explorer Open and i want to make my program be the one that is active.
Number two.
How can i get rid of all of the "spaces" in a text box.
Thanks
Sean
-
Aug 23rd, 2003, 08:36 PM
#2
Addicted Member
1: If you mean make your program be on top of all other programs, set the form property "TopMost" to true
2: What spaces are you refering to?
Take my love
Take my land
Take me where I cannot stand
I don't care, I'm still free
You can't take the sky from me...
-
Aug 24th, 2003, 02:54 AM
#3
Sleep mode
This removes white spaces from the beginning and the end of the string contained in TextBox1
-
Aug 24th, 2003, 09:38 AM
#4
Thread Starter
Addicted Member
On Top
I want it to BE ACTIVE. Like the Internet Explorer is ACTIVE when you are typing in it. Say if i were to open another program mine program would not be the active one anymore so i need a code that would make mine active again with out the user clicking to reopen it.
Thanks
Sean
-
Aug 24th, 2003, 09:42 AM
#5
Sleep mode
The Phoenix asnwered this question above .
-
Aug 25th, 2003, 04:05 AM
#6
Lively Member
Hmmm...
Hi,
Try this:
Replace(myText," ", "")
-
Aug 30th, 2003, 06:34 AM
#7
Lively Member
Stick:
Did you work the first one out? I've come across this as well.
While "TopMost" keeps it on top ok, if you click on the other program it loses focus of course and in my case i want to access some keypress events on this form but i have to select it to get the focus.
Anyone know how i can trigger the keypress events...Threading, perhaps?
Anyone?
-
Aug 30th, 2003, 10:40 AM
#8
Thread Starter
Addicted Member
Yea....
What i did was had the Topmost = True and then i did the Form.Activate. I did this in a timer and it seems to work great.
VB Code:
Me.TopMost = True
Me.Activate()
Hopefully that is what you want.
sean
-
Aug 31st, 2003, 05:14 AM
#9
Lively Member
Hmmmm....no sadly it didn't help. While it work the way you said, what i need is to be able to use the another program and then press a key... "\"..... and show my form (frmDisplay) and then i want to be able to cycle through some dataviews that i have printed out to the picture box's with the keys..."[" and "]".
This works well the way it is now when the other program isn't running but i need to be able access the keypress events on the frmDisplay but i can't as it doesn't have focus and it's not very practical to alt-tab to it all the time.
Anyone? any suggestions at all on how this can be done? (processing key inputs on a form that doesn't have focus)
Anyone at all?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|