c# - Open .net windows form after event finishes -


i'm having windows mobile ce application written in c# .net cf.

consider have 2 forms in application:

  1. list of objects (has listview)
  2. details page (should appear when selected in previous listview)

currently i'm attaching callback listview's selectedindexchanged event, , open new form there.

new form opens okay (in midde of event callback), when close form(this.close()), list page isn't clickable first time, after first click ui interactable again.

also the listviewitem clicked @ first step doesn't selected(blue background).

here's short (12s) video showing problem: http://take.ms/urkme see video, after coming details screen, refresh button doesn't click on first click..

i'm showing details form so:

private void listview_selectedindexchanged(object sender, eventargs e) {     (new formdetails()).showdialog(); } 

is there way show details form after event finishes, or doing wrong?

ps! tried same button , it's click event, worked nicely..

as know listview's selectedindexchanged event fired twice on case not button's click event fired once, maybe cause weird interaction. maybe try changing itemselectionchanged event suggested in here.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -