Jump to content

Control that can't get focus

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
Blaze

Blaze

    Programmer

  • Members
  • PipPipPipPip
  • 117 posts
How can I create a control that doesn't get focus? I remember in VB 6 you could just set CanGetFocus property to false. Anything like that in C#?

#2
hoser2001

hoser2001

    Programmer

  • Members
  • PipPipPipPip
  • 173 posts
try
control.TabStop = true;

#3
Ronin

Ronin

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 309 posts
You mean control.tabstop = false;

#4
hoser2001

hoser2001

    Programmer

  • Members
  • PipPipPipPip
  • 173 posts
Yes you're right, thanks for the correction :)

#5
Nightracer

Nightracer

    Programmer

  • Members
  • PipPipPipPip
  • 131 posts
Why would you want a control that couldn't get focus? Just curious