Some Questions about Compact Framework and TabControl
-
Hello Devs, I'm new to Compact Framework Programming. I'm porting a Chat application to Window Mobile. I noticed that whenever I create and oshow a new instance f Form, its shown as a seperate procees in Running Prgrams. 10 forms means 10 Processes in Running Programs :wtf:. To avoid this to happen, I thought to work with tab controls and adding a tab page to the tab control when a user initiates chat with a new person. What I want is that I want to add and remove pages dynamically. For this when I tap and hold on the node of the tab page (equal to Right Click) a context menu should open "Close Tab" and Taping this menu item that specific Tabpage should be closed. I have tried to do it with Context Menu but It does appear when you tap and hold on the tab page, not its node :(( I have tried to be clear in telling my problem but even if you need some more clarity and info please ask me. I really want to get a solution (Its so urgent) I hope to get a positive response from you people. Best Regards, Rizwan
-
Hello Devs, I'm new to Compact Framework Programming. I'm porting a Chat application to Window Mobile. I noticed that whenever I create and oshow a new instance f Form, its shown as a seperate procees in Running Prgrams. 10 forms means 10 Processes in Running Programs :wtf:. To avoid this to happen, I thought to work with tab controls and adding a tab page to the tab control when a user initiates chat with a new person. What I want is that I want to add and remove pages dynamically. For this when I tap and hold on the node of the tab page (equal to Right Click) a context menu should open "Close Tab" and Taping this menu item that specific Tabpage should be closed. I have tried to do it with Context Menu but It does appear when you tap and hold on the tab page, not its node :(( I have tried to be clear in telling my problem but even if you need some more clarity and info please ask me. I really want to get a solution (Its so urgent) I hope to get a positive response from you people. Best Regards, Rizwan
Hello
dotnetdev83 wrote:
but It does appear when you tap and hold on the tab page, not its node
It depends on which event you handled. Either
TabControl.MouseDown
, orTabPage.MouseDown
. In your case you probably consumed TabPage's not the TabControl's event. HandleTabControl.MouseDown
event and checkTabControl.SelectedIndex
Regards:rose: