473,387 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Driving me nuts

Okay, I have my controls, and in each one's key_down even, I have:

Me.SelectNextControl(Me.ActiveControl,True,True,Fa lse,True)

All controls I need do have the TabStops and do have Index's set. I have
stuff that each control has to do(Validation) before it moves on, so the
Form.KeyPreview is out.

Thank,
Sueffel
Nov 20 '05 #1
7 1419
* "Sueffel" <so*****@somewhere.com> scripsit:
Okay, I have my controls, and in each one's key_down even, I have:

Me.SelectNextControl(Me.ActiveControl,True,True,Fa lse,True)

All controls I need do have the TabStops and do have Index's set. I have
stuff that each control has to do(Validation) before it moves on, so the
Form.KeyPreview is out.


What's your question?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #2

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:c4*************@ID-208219.news.uni-berlin.de...
* "Sueffel" <so*****@somewhere.com> scripsit:
Okay, I have my controls, and in each one's key_down even, I have:

Me.SelectNextControl(Me.ActiveControl,True,True,Fa lse,True)

All controls I need do have the TabStops and do have Index's set. I have stuff that each control has to do(Validation) before it moves on, so the
Form.KeyPreview is out.


What's your question?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Oh scheister! SelectNextControl is not working. I have verified that the
KeyDown events themselves are working, but SelectNextControl, which is in a
seperate Sub, is not working. I get the SystemBeep, but that's it.

Sorry for that,
Sueffel
Nov 20 '05 #3
Cor
Hi Sueffel,

I do not know if you speak German, I do it not real good, but that word you
wrote can have a very personal meaning to do with "Sh*t" about the sender of
your message. I think you did not want to do that and maybe it was just the
German meaning of "Sh*t" you did wanted to write.

I have seen this done by someone who did not speak German real adressed to
Herfried. Herfried was absolutly not happy with it.

Because I think it was only an incident, have I looked at your problem.

This routine works fine for me.

Cor

\\\
Private Sub Form1_Load(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
doSet(Me)
End Sub
Private Sub doSet(ByVal parentCtr As Control)
Dim ctr As Control
For Each ctr In parentCtr.Controls
AddHandler ctr.Click, AddressOf meClick
doSet(ctr)
Next
End Sub
Private Sub meClick(ByVal sender As Object, ByVal e As System.EventArgs)
If Me.ActiveControl Is sender Then
Me.SelectNextControl(DirectCast(sender, Control), _
True, True, True, True)
End If
End Sub
////





Nov 20 '05 #4
Yeah, I speak some German, and I meant it in reference to myself, sorry
Herfried if you took it any other way, but reading over my message I see
where Cor is coming from. Old habits are hard to squash sometimes.

Just tried your suggestion, and still nadda. Everything worked last
night... I have the controls in perticular on a panel, but they worked
before :( I'm going to have to try something a little different.

Thank again Cor, and once again, sorry if I wasn't clear in my self-bashing.

Sueffel
"Cor" <no*@non.com> wrote in message
news:u5**************@TK2MSFTNGP09.phx.gbl...
Hi Sueffel,

I do not know if you speak German, I do it not real good, but that word you wrote can have a very personal meaning to do with "Sh*t" about the sender of your message. I think you did not want to do that and maybe it was just the German meaning of "Sh*t" you did wanted to write.

I have seen this done by someone who did not speak German real adressed to
Herfried. Herfried was absolutly not happy with it.

Because I think it was only an incident, have I looked at your problem.

This routine works fine for me.

Cor

\\\
Private Sub Form1_Load(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
doSet(Me)
End Sub
Private Sub doSet(ByVal parentCtr As Control)
Dim ctr As Control
For Each ctr In parentCtr.Controls
AddHandler ctr.Click, AddressOf meClick
doSet(ctr)
Next
End Sub
Private Sub meClick(ByVal sender As Object, ByVal e As System.EventArgs) If Me.ActiveControl Is sender Then
Me.SelectNextControl(DirectCast(sender, Control), _
True, True, True, True)
End If
End Sub
////




Nov 20 '05 #5
Also, on a brandnew form, this all works very nicely. I even put them in a
panel, and still works. I'm going to scour throught the designer code and
see if there's something there......

"Sueffel" <so*****@somewhere.com> wrote in message
news:#S*************@tk2msftngp13.phx.gbl...

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:c4*************@ID-208219.news.uni-berlin.de...
* "Sueffel" <so*****@somewhere.com> scripsit:
Okay, I have my controls, and in each one's key_down even, I have:

Me.SelectNextControl(Me.ActiveControl,True,True,Fa lse,True)

All controls I need do have the TabStops and do have Index's set. I have stuff that each control has to do(Validation) before it moves on, so the Form.KeyPreview is out.
What's your question?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Oh scheister! SelectNextControl is not working. I have verified that the
KeyDown events themselves are working, but SelectNextControl, which is in

a seperate Sub, is not working. I get the SystemBeep, but that's it.

Sorry for that,
Sueffel

Nov 20 '05 #6
Yeah, I speak some German, and I meant it in reference to myself, sorry
Herfried if you took it any other way, but reading over my message I see
where Cor is coming from. Old habits are hard to squash sometimes.

Just tried your suggestion, and still nadda. Everything worked last
night... I have the controls in perticular on a panel, but they worked
before :( I'm going to have to try something a little different.

Thank again Cor, and once again, sorry if I wasn't clear in my self-bashing.

Sueffel
"Cor" <no*@non.com> wrote in message
news:u5**************@TK2MSFTNGP09.phx.gbl...
Hi Sueffel,

I do not know if you speak German, I do it not real good, but that word you wrote can have a very personal meaning to do with "Sh*t" about the sender of your message. I think you did not want to do that and maybe it was just the German meaning of "Sh*t" you did wanted to write.

I have seen this done by someone who did not speak German real adressed to
Herfried. Herfried was absolutly not happy with it.

Because I think it was only an incident, have I looked at your problem.

This routine works fine for me.

Cor

\\\
Private Sub Form1_Load(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
doSet(Me)
End Sub
Private Sub doSet(ByVal parentCtr As Control)
Dim ctr As Control
For Each ctr In parentCtr.Controls
AddHandler ctr.Click, AddressOf meClick
doSet(ctr)
Next
End Sub
Private Sub meClick(ByVal sender As Object, ByVal e As System.EventArgs) If Me.ActiveControl Is sender Then
Me.SelectNextControl(DirectCast(sender, Control), _
True, True, True, True)
End If
End Sub
////




Nov 20 '05 #7
Also, on a brandnew form, this all works very nicely. I even put them in a
panel, and still works. I'm going to scour throught the designer code and
see if there's something there......

"Sueffel" <so*****@somewhere.com> wrote in message
news:#S*************@tk2msftngp13.phx.gbl...

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:c4*************@ID-208219.news.uni-berlin.de...
* "Sueffel" <so*****@somewhere.com> scripsit:
Okay, I have my controls, and in each one's key_down even, I have:

Me.SelectNextControl(Me.ActiveControl,True,True,Fa lse,True)

All controls I need do have the TabStops and do have Index's set. I have stuff that each control has to do(Validation) before it moves on, so the Form.KeyPreview is out.
What's your question?

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>


Oh scheister! SelectNextControl is not working. I have verified that the
KeyDown events themselves are working, but SelectNextControl, which is in

a seperate Sub, is not working. I get the SystemBeep, but that's it.

Sorry for that,
Sueffel

Nov 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Keiron Waites | last post by:
Please see the problem in action here: http://www.leadbullet.biz/contact.php If you mouse over the fields, you will see that text is shown on the right. The text makes the other fields move when...
12
by: Marty | last post by:
It seems all of the sudden that user controls that contain images are referencing image sources relative to the document that I drop the control on. This obviously does not work beacuase the...
0
by: Simon Harris | last post by:
Ok, this really is driving me nuts!!! :( 'All' I am trying to do is get the value of a named element. My XML doc is: <?xml version="1.0" encoding="utf-16" standalone="yes" ?> - <Page>...
2
by: ipmccun | last post by:
Hello all: Perhaps someone can shed some light on this: I'm trying to create a situation, while debugging, where a long running request (sleeps for 15s) and a short running request execute...
4
by: trond | last post by:
Hello all, Before I start I'd like to point out that I am a complete novice when it comes to asp.net - My background is in network and operating systems, and although I have been doing a bit of...
2
by: mitsura | last post by:
Hi, I need to read a simle XML file. For this I use the SAX parser. So far so good. The XML file consist out of number of "Service" object with each object a set of attributes. I read...
5
by: jason.neo | last post by:
Hi all experts, I am going nuts with this Invalid postback or callback argument thingy with .Net 2.0 I am building a file attachment module which relays on a Datatable stored in session (yeah...
4
by: mattlightbourn | last post by:
Hi all, I have a problem which has been driving me nuts. Crosstab queries! I have a database witch a few different tables to do with garment manufacturing. I have a table for a client...
3
by: DuncanIdaho | last post by:
Hello experts IE 7.0.5730.11 Opera 9.27 Firefox 2.0.0.14 This problem only occurs in Opera and Firefox (amazing, IE does something right, or maybe not) Anyway, the problem is that when I...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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$) { } ...
0
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...
0
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...
0
BarryA
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.