Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: c# sharpdevelop keydown event/ drag window  (Read 4292 times)

0 Members and 1 Guest are viewing this topic.

zaryk

  • Guest
c# sharpdevelop keydown event/ drag window
« 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:

Code: [Select]
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.

Sidewinder



    Guru

    Thanked: 139
  • Experience: Familiar
  • OS: Windows 10
Re: c# sharpdevelop keydown event/ drag window
« Reply #1 on: April 18, 2008, 12:24:02 PM »
I'm guessing your search bar is a control you put on the form. Microsoft can explain this better than me. Well maybe not better, but with more authority.

 8)
The true sign of intelligence is not knowledge but imagination.

-- Albert Einstein

zaryk

  • Guest
Re: c# sharpdevelop keydown event/ drag window
« Reply #2 on: April 20, 2008, 01:02:26 PM »
cool, thanks.