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. thread splach screen !!!

thread splach screen !!!

Scheduled Pinned Locked Moved C#
questionwcf
1 Posts 1 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.
  • M Offline
    M Offline
    mrcooll
    wrote on last edited by
    #1

    hello all. m working on windows application uses web services to insert and retreave data what m trying to do when the application call web service a thread splash screen appear , i did it fine but sometime i get unhandeled exception : "Thread was being aborted" how can i overcome this problime ? thanks in advance My Code: Users user = new Users();//web service LoadingIndicator.ShowLoading(); int employeeId = user.Login(userName, passWord); LoadingIndicator.HideLoading(); class LoadingIndicator { static Thread LoadingThread; public static void ShowLoading() { LoadingThread = new Thread(new ThreadStart(DoShowSplash)); LoadingThread.Start(); } public static void HideLoading() { try { if (LoadingThread.IsAlive) LoadingThread.Abort(); } catch (ThreadAbortException ex) { Thread.ResetAbort(); } } private static void DoShowSplash() { frmLoading frm = new frmLoading(); frm.ShowDialog(); } }

    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