VB 6.0 - msflexgrid - Asked By Khaleel Ahmed on 11-Feb-12 04:36 AM

how to go next row when press Enter key
kalpana aparnathi replied to Khaleel Ahmed on 11-Feb-12 04:51 AM
hi,

Set the property of textbox http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.textboxbase.acceptsreturn%28VS.85%29.aspx to true like this within msflexgrid.
<TextBox AcceptsReturn="True">Test</TextBox>

This http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.textboxbase.acceptsreturn%28VS.85%29.aspx property inherits form TextBoxBase, so you can create your DataTemplate as a TextBox, then you can change the type of your Enter Key.

Thanks,
Khaleel Ahmed replied to kalpana aparnathi on 11-Feb-12 05:38 AM
sir, im thankful to u for ur answer but i need vb code
kalpana aparnathi replied to Khaleel Ahmed on 11-Feb-12 05:42 AM
try this way in vb

textbox1.AcceptsReturn=true; or set it by using the property window

Thanks,
Khaleel Ahmed replied to kalpana aparnathi on 11-Feb-12 12:13 PM
Sir, Can we go next row in msflexgrid without using text box, is it possible?
kalpana aparnathi replied to Khaleel Ahmed on 11-Feb-12 12:23 PM
use this link for your flexgrid http://www.pbdr.com/vbtips/gen/Article-UsingFlexGrids%282%29.htm