borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (treeview problem)Next Topic (Run as admin) New Topic New Poll Post Reply
AndreaVB Forum : VB General : menu handle in vb
Poster Message
vivek_g27
Level: Sage

Registered: 06-04-2005
Posts: 57

icon menu handle in vb

how is menu handled in vb. can any one guide me to some intro or article on this. i need this to solve a problem.

whether any process would be interupted  when menu is clicked. or will it wait for current process to be completed.

iam using vb5. so multithreading is not possible.

  
vivek

25-04-2005 at 11:02 AM
View Profile Send Email to User Show All Posts | Quote Reply
humberto
Level: VB Lord

Registered: 13-01-2005
Posts: 246
icon Re: menu handle in vb

Do you will wait for 2 sec to process you function..?

25-04-2005 at 11:07 AM
View Profile Send Email to User Show All Posts | Quote Reply
vivek_g27
Level: Sage

Registered: 06-04-2005
Posts: 57
icon menu responds after 2minutes

iam using this to get instrument data  using a serial port (rs 232). i send a command from PC and i execute a

delay with doeventsto receive data. but for sending a command from pc i wait for 250 ms without doevents.

sometimes, after clicking my menu responds after 2-5 minutes .

is it due to long procedures?

or does it need code optimization?

so should i

1.write some menu handle for this ?

2. reduce the delay (it takes me some time for receiving data)

3. or is there anything wrong in my approach. if so guide me

26-04-2005 at 04:26 AM
View Profile Send Email to User Show All Posts | Quote Reply
humberto
Level: VB Lord

Registered: 13-01-2005
Posts: 246
icon Re: menu handle in vb

You can use a timer
for example
you wait for 5 sec to get a msgbox

Private Sub mnuEditUndo_Click()
Timer1.Enabled = True
'Search Interval in seconds:
Timer1.Interval = 5 * 1000
End Sub

Private Sub Timer1_Timer()
count1 = 0
MsgBox "Place Copy Code here!"

End Sub


[Edited by admin on 06-05-2005 at 06:47 PM GMT]

26-04-2005 at 10:06 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB General : menu handle in vb
Previous Topic (treeview problem)Next Topic (Run as admin) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder