Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / September 2004

Tip: Looking for answers? Try searching our database.

Capturing CTRL + S

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alex Glass - 19 Sep 2004 07:33 GMT
Can anyone explain why keypress events arent detected by my form if there
are text controls on it and how to set it up so the form will handle the
keypress events?

Thanks in advance..

-Alex
Jared - 19 Sep 2004 13:14 GMT
Make sure the forms KeyPreview property is set to true.

> Can anyone explain why keypress events arent detected by my form if there
> are text controls on it and how to set it up so the form will handle the
[quoted text clipped - 3 lines]
>
> -Alex
FUCKTARD - 20 Sep 2004 07:04 GMT
Well after testing this, using keypreview works for textboxes but not for
comboboxes... Is there another property that I need to set?

-Alex

> Make sure the forms KeyPreview property is set to true.
>
[quoted text clipped - 5 lines]
> >
> > -Alex
Jared - 20 Sep 2004 12:06 GMT
That should work, make sure the DropDownStyle property is set to something
that accepts input.

> -Alex
>
[quoted text clipped - 9 lines]
>> >
>> > -Alex
FUCKTARD - 20 Sep 2004 22:03 GMT
If dropdownstyle = dropdownlist keypreview works, if dropdownstyle =
dropdown, it doesnt work...
I actually use both.  Any idea how to make it work with
dropdownstyle.dropdown without having to create event handlers for each
individual control?

-Alex

> That should work, make sure the DropDownStyle property is set to something
> that accepts input.
[quoted text clipped - 12 lines]
> >> >
> >> > -Alex
FUCKTARD - 20 Sep 2004 06:55 GMT
Thanks for the info Jared

> Can anyone explain why keypress events arent detected by my form if there
> are text controls on it and how to set it up so the form will handle the
[quoted text clipped - 3 lines]
>
> -Alex

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.