Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Some Questions about Compact Framework and TabControl

Some Questions about Compact Framework and TabControl

Scheduled Pinned Locked Moved C#
helplounge
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    RizwanSharp
    wrote on last edited by
    #1

    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

    N 1 Reply Last reply
    0
    • R RizwanSharp

      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

      N Offline
      N Offline
      Nader Elshehabi
      wrote on last edited by
      #2

      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, or TabPage.MouseDown. In your case you probably consumed TabPage's not the TabControl's event. Handle TabControl.MouseDown event and check TabControl.SelectedIndex Regards:rose:

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups