I'm having a small issue with this, under VB6, it was simple. I have a
combo box and 2 textboxes, tb1 and tb2. Well, when a certian action is
performed, I need to select (activate) tb2, leaving the combobox and tb1
alone. I do data entry appz, and the less mouse reaching and key strokes,
the faster things can go.
Thanks,
JLW 19 1132
"JLW" <as***@someplace.com> wrote in message
news:uK**************@TK2MSFTNGP10.phx.gbl... I'm having a small issue with this, under VB6, it was simple. I have a combo box and 2 textboxes, tb1 and tb2. when a certian action is performed, I need to select (activate) tb2
Depends partially on the "certain action", but
Me.tb2.Focus()
should do the trick.
HTH,
Phill W.
Unfortunatly, that did not do the trick. I'm just trying to figure out WTF,
but, let's try it from this aproach. Say you have a button, and when you
click it, in the code, how do you set tb2 active, putting the cursor in it.
I've tried in vein, and it's gotten to the point where it's required I have
this functionality.
Thanks,
JLW
"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message
news:ca**********@yarrow.open.ac.uk... "JLW" <as***@someplace.com> wrote in message news:uK**************@TK2MSFTNGP10.phx.gbl... I'm having a small issue with this, under VB6, it was simple. I have a combo box and 2 textboxes, tb1 and tb2. when a certian action is performed, I need to select (activate) tb2
Depends partially on the "certain action", but
Me.tb2.Focus()
should do the trick.
HTH, Phill W.
I have even tried Me.ActiveControl=tb2 and still no joy. And I threw in an
Application.DoEvents() for good measure....
"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message
news:ca**********@yarrow.open.ac.uk... "JLW" <as***@someplace.com> wrote in message news:uK**************@TK2MSFTNGP10.phx.gbl... I'm having a small issue with this, under VB6, it was simple. I have a combo box and 2 textboxes, tb1 and tb2. when a certian action is performed, I need to select (activate) tb2
Depends partially on the "certain action", but
Me.tb2.Focus()
should do the trick.
HTH, Phill W.
Here's an added twist, if I Mouse Click to another app, then Click back, it
set's the focus to tb2, but not if I use ALT-TAB switching. WTF is going on
here!
"Phill. W" <P.A.Ward@o-p-e-n-.-a-c-.-u-k> wrote in message
news:ca**********@yarrow.open.ac.uk... "JLW" <as***@someplace.com> wrote in message news:uK**************@TK2MSFTNGP10.phx.gbl... I'm having a small issue with this, under VB6, it was simple. I have a combo box and 2 textboxes, tb1 and tb2. when a certian action is performed, I need to select (activate) tb2
Depends partially on the "certain action", but
Me.tb2.Focus()
should do the trick.
HTH, Phill W.
* "JLW" <as***@someplace.com> scripsit: Unfortunatly, that did not do the trick. I'm just trying to figure out WTF,
Just FMI: What does WTF mean?
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
What The Fuck, usually. Or Why The Fuck in this case... :D
(I might not be a good programmer, but I know me swearin' :)) )
________________________
The Grim Reaper
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2i************@uni-berlin.de... * "JLW" <as***@someplace.com> scripsit: Unfortunatly, that did not do the trick. I'm just trying to figure out
WTF, Just FMI: What does WTF mean?
-- Herfried K. Wagner [MVP] <URL:http://dotnet.mvps.org/>
What The F^ck
It's a nice way of just loosing it...
JLW
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:2i************@uni-berlin.de... * "JLW" <as***@someplace.com> scripsit: Unfortunatly, that did not do the trick. I'm just trying to figure out
WTF, Just FMI: What does WTF mean?
-- Herfried K. Wagner [MVP] <URL:http://dotnet.mvps.org/>
Hi JLW,
This does really sets the focus from box1 to box2 try it.
Did you know that Herfried is very young so take care what you say?
I hope this helps?
Cor
\\\
This should really do the trick
Private Sub Button1_Click(ByVal sender _
As System.Object, ByVal e As System.EventArgs) _
Handles Button1.Click
Me.TextBox1.Focus()
End Sub
Private Sub Button2_Click(ByVal sender _
As System.Object, ByVal e As System.EventArgs) _
Handles Button2.Click
Me.TextBox2.Focus()
End Sub
////
I currently have that code in, and I have to leave focus from my form, then
go back for the control focus to change. Weirdest damn thing I've ever seen
Thanks again Cor, and for the Tip,
JLW
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:e$**************@TK2MSFTNGP11.phx.gbl... Hi JLW,
This does really sets the focus from box1 to box2 try it.
Did you know that Herfried is very young so take care what you say?
I hope this helps?
Cor \\\ This should really do the trick Private Sub Button1_Click(ByVal sender _ As System.Object, ByVal e As System.EventArgs) _ Handles Button1.Click Me.TextBox1.Focus() End Sub
Private Sub Button2_Click(ByVal sender _ As System.Object, ByVal e As System.EventArgs) _ Handles Button2.Click Me.TextBox2.Focus() End Sub ////
Apologies... must be getting old... I don't think of programmers as being
young any more!!
Not that I can remember being young - I've been drunk since I was 11...lol
_______________________________
The Grim Reaper
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:e$**************@TK2MSFTNGP11.phx.gbl... Hi JLW,
This does really sets the focus from box1 to box2 try it.
Did you know that Herfried is very young so take care what you say?
I hope this helps?
Cor \\\ This should really do the trick Private Sub Button1_Click(ByVal sender _ As System.Object, ByVal e As System.EventArgs) _ Handles Button1.Click Me.TextBox1.Focus() End Sub
Private Sub Button2_Click(ByVal sender _ As System.Object, ByVal e As System.EventArgs) _ Handles Button2.Click Me.TextBox2.Focus() End Sub ////
Cor,
After looking into the links on Herfried's signature, he seems to be a very
qualified programmer.
Unless the "rules" of getting qualified in your country are really strange,
I don't think Herfried could be of MVP status AND be too young to know the
ins and outs of rude words...
Where did you get the idea Herfried was very young?!?!
____________________________
Grim (The Rude Reaper)
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:e$**************@TK2MSFTNGP11.phx.gbl... Hi JLW,
This does really sets the focus from box1 to box2 try it.
Did you know that Herfried is very young so take care what you say?
I hope this helps?
Cor \\\ This should really do the trick Private Sub Button1_Click(ByVal sender _ As System.Object, ByVal e As System.EventArgs) _ Handles Button1.Click Me.TextBox1.Focus() End Sub
Private Sub Button2_Click(ByVal sender _ As System.Object, ByVal e As System.EventArgs) _ Handles Button2.Click Me.TextBox2.Focus() End Sub ////
Hi Grim Raper,
I know the age of Herfried, you can see it on his site, it was just to
prickle him.
Normaly he react with a kind of agressive message (I know that it is not)
However he seems to be very bussy at the moment.
:-)
Cor
Aren't we all :(
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:uj*************@TK2MSFTNGP11.phx.gbl... Hi Grim Raper,
I know the age of Herfried, you can see it on his site, it was just to prickle him. Normaly he react with a kind of agressive message (I know that it is not) However he seems to be very bussy at the moment.
:-)
Cor
* "The Grim Reaper" <gr*********@btopenworld.com> scripsit: I know the age of Herfried, you can see it on his site, it was just to prickle him.
Where did you see my age on my website?
:-)
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Do I have to tell all. Where did you see my age on my website?
:-)
You are a student my dear Herfried, age is not only a real date.
As I always tell, you have still a lot to learn, however that goes fast.
:-)
Cor
That's not a good assesment Cor, because my mother was 54 when she finally
became a student. Besides, judging from Herfried's pic, I'd say he's
between 17 and 21. Also, the whole morality stuff that us americans hold so
dear, europeans see things different. I'm not saying it's better or worse,
just different. For instance, when I was growing up in southern Germany, it
was acceptable for a woman to go topless at a public swimming pool. To us,
it's morally offensive, to them, it's natural.
Just food for thought,
JLW
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... Do I have to tell all. Where did you see my age on my website?
:-)
You are a student my dear Herfried, age is not only a real date.
As I always tell, you have still a lot to learn, however that goes fast.
:-)
Cor
You are right, I know,
However I know his age, but it is not to me to tell what it is.
He is in Europe more than old enough for what you told, as I told, I was
only prickling Herfried, because in past he was sending everytime a message
to this newsgroup when there where messages like yours. "Keep in mind there
are young people as well watching this newsgroup".
By the way, it is in almost in the whole of continental western Europe north
from Italy and Spain normal to swim topless for a woman. (In Spain it is
normal for not Spanish citizens, in Italy not).
Although, it is acceptable for a woman to swim not topless.
:-)
Cor
"JLW" <as***@someplace.com> schreef in bericht
news:u3**************@TK2MSFTNGP09.phx.gbl... That's not a good assesment Cor, because my mother was 54 when she finally became a student. Besides, judging from Herfried's pic, I'd say he's between 17 and 21. Also, the whole morality stuff that us americans hold
so dear, europeans see things different. I'm not saying it's better or
worse, just different. For instance, when I was growing up in southern Germany,
it was acceptable for a woman to go topless at a public swimming pool. To
us, it's morally offensive, to them, it's natural.
Just food for thought, JLW
"Cor Ligthert" <no**********@planet.nl> wrote in message news:%2****************@tk2msftngp13.phx.gbl... Do I have to tell all. Where did you see my age on my website?
:-)
You are a student my dear Herfried, age is not only a real date.
As I always tell, you have still a lot to learn, however that goes fast.
:-)
Cor
You are too funny Cor, I didn't mean anything by it, just making sure
everyone knew you weren't trying to be an a$$ and that others shouldn't be
one back. Everyone's got their opinions.
Anyhew, I'm going to check on my post in the VC group, hopefully I can
figure this crap out!
JLW
"Cor Ligthert" <no**********@planet.nl> wrote in message
news:es**************@TK2MSFTNGP12.phx.gbl... You are right, I know,
However I know his age, but it is not to me to tell what it is.
He is in Europe more than old enough for what you told, as I told, I was only prickling Herfried, because in past he was sending everytime a
message to this newsgroup when there where messages like yours. "Keep in mind
there are young people as well watching this newsgroup".
By the way, it is in almost in the whole of continental western Europe
north from Italy and Spain normal to swim topless for a woman. (In Spain it is normal for not Spanish citizens, in Italy not).
Although, it is acceptable for a woman to swim not topless.
:-)
Cor
"JLW" <as***@someplace.com> schreef in bericht news:u3**************@TK2MSFTNGP09.phx.gbl... That's not a good assesment Cor, because my mother was 54 when she
finally became a student. Besides, judging from Herfried's pic, I'd say he's between 17 and 21. Also, the whole morality stuff that us americans
hold so dear, europeans see things different. I'm not saying it's better or worse, just different. For instance, when I was growing up in southern
Germany, it was acceptable for a woman to go topless at a public swimming pool. To us, it's morally offensive, to them, it's natural.
Just food for thought, JLW
"Cor Ligthert" <no**********@planet.nl> wrote in message news:%2****************@tk2msftngp13.phx.gbl... Do I have to tell all. > > Where did you see my age on my website? > > :-) > You are a student my dear Herfried, age is not only a real date.
As I always tell, you have still a lot to learn, however that goes
fast. :-)
Cor
Hi JLW,
There was nothing funny in my last message, just as it is, sorry wen I did
give you the wrong idea.
Cor This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: james.dixon |
last post by:
Hi
I was wondering if anyone else had had this problem before (can't find
anything on the web about it).
I have three select elements (list boxes - from here on I'll refer to
them as 'the...
|
by: Steven W |
last post by:
I'm trying to setup a datagrid in a custom control where I can select the row
with the Select column hidden and have it call the "SelectIndexChanged"
event. In the "SelectIndexChanged" I just want...
|
by: Dino M. Buljubasic |
last post by:
I have a form and a panel on the form that holds 24 user controls each one
representing an hour (0 - 23). The panel is completelly covered with the
user controls.
I need to be able to select...
|
by: JLW |
last post by:
I've tried everyone's suggestion, and the only way it works is if I click
out of the app windows, then back in. WTF is going on with that?
JLW
|
by: Stephen.Schoenberger |
last post by:
I have a windows form that has a panel on it. At runtime a custom
control is added multiple times to this panel. (anywhere from 1-50 of
them are added). I am trying to figure out how I can "select"...
|
by: Matt B |
last post by:
I know this is a bit of nonstandard behavior, but I would like the
Enter key to move focus through a group of radiobuttons without
selecting them. The user would then have to use Space or actually...
|
by: Lyn |
last post by:
I thought that in an earlier project I was able to click or double-click in
the detail section of a row in a continuous form and use the event to open
a detail form for that row.
However, now a...
|
by: is49460 |
last post by:
Hello,
I have a form with various controls but to simplify the problem let’s say I have 2 listboxes. The selection in listbox1 controls RowSource of the listbox2. For example lstCars contains car...
|
by: hollyquinn |
last post by:
Hi I am working with a web application where I am selecting values from a SQL Server 2005 database and then loading the values into different controls on my page. Most of the values load with no...
|
by: techno58 |
last post by:
In my form i want to be able to fill all my controls with a particular record by selecting that record from my datagridview.If i select a particular record after clicking on it all my controls like...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |