Computer Hope
Software => Computer programming => Topic started by: zaryk on April 18, 2008, 10:17:23 AM
-
Im creating a search bar that doesnt have a button. So im figuring i need a keydown event to take whats in the search. How would I go about creating:
if(enter is pressed)
{
}
I can do the other stuff after that.
Also, I am wanting to be able to drag the window from a panel at the top of the window, and not from the windows title, and controlbox.
how can this be done? Thanks.
-
I'm guessing your search bar is a control you put on the form. Microsoft (http://msdn2.microsoft.com/en-us/library/system.windows.forms.control.keydown.aspx) can explain this better than me. Well maybe not better, but with more authority.
8)
-
cool, thanks.