ParsX.com
پذیرش پروژه از دانشجویی ... تا سازمانی 09376225339
 
   ProfileProfile   Log in to check your private messagesLog in to check your private messages  |  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups Log inLog in   RegisterRegister 

رویدادkeypress وعمل نکردن دکمه تحریری

 
Post new topic   Reply to topic    ParsX.com Forum Index -> ويژوال بيسيك .NET
View previous topic :: View next topic  
Author Message
zi_na
مهمون يكي دو روزه


Joined: 02 Mar 2009
Posts: 4

PostPosted: Tue Feb 09, 2010 12:46 pm    Post subject: رویدادkeypress وعمل نکردن دکمه تحریری Reply with quote

با سلام و تشکر یک سوال دارم
در ویژوال بیسیک 6بروی فرم دو دکمه فرمان قرار داده ایم و دستورات زیر را در رویداد keypress فرم نوشته ایم ولی با زدن دکمه های تحریری مانند a هیچ مقداری چاپ نمی شود.علت چیست؟چگونه می توان مشکل را حل کرد.

Private Sub Form_KeyPress(KeyAscii As Integer) Print Chr(KeyAscii)End Sub
Back to top
vahid
بي تو هرگز


Joined: 26 Nov 2004
Posts: 3067
Location: Tehran

PostPosted: Wed Feb 10, 2010 10:58 am    Post subject: Reply with quote

اگر یک کنترل روی فرم اضافه کنی این مشکل پیش میاد . برای این کار پیشنهاد می کنم keypreview فرم را بحالت true در بیاری
Back to top
Display posts from previous:   
Post new topic   Reply to topic    ParsX.com Forum Index -> ويژوال بيسيك .NET All times are GMT + 3.5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum