how can I press "Enter" on c# and WPF without pressing enter on hardware keyboard ?
Assuming that you're working with WindowsForms... by using SendKeys.Send("{ENTER}");
See this documentation here as well: http://msdn.microsoft.com/de-de/library/system.windows.forms.sendkeys.send.aspx
Ah, so you're saying SendKeys is unavailable?
Check these threads, on the MSDN forums: http://social.expression.microsoft.com/Forums/en-US/wpf/thread/915cb53a-704b-4047-8fd0-e7c5a8feae5e/
http://social.msdn.microsoft.com/forums/en-US/wpf/thread/6557c1eb-6eb5-4f4a-84d6-4ae4fb5b9dab/
Sounds like you can trap KeyDown events, but that's not exactly what you want...
Oh, wait! Check this SO thread: http://stackoverflow.com/questions/1645815/how-can-i-programmatically-generate-keypress-events-in-c
Beyond that, How and why do you need to send "Enter" without a keyboard press? There may be a different solution lurking there. :)