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. embed cursor

embed cursor

Scheduled Pinned Locked Moved C#
hardwaretutorialquestion
4 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.
  • T Offline
    T Offline
    Try
    wrote on last edited by
    #1

    I need to embed a cursor file into the application. How to do it? The procedure what i have followed is: * I added a existing cursor file into project. * Changed the "Build Action" to "Embedded Resources". * Code: Cursor newCur = new Cursor("xyz.cur"); this.Cursor = newCur; But it is throwing exception "Could not find file C:\App\rotate.cur". I want to embed the cursor in my application.

    V T 2 Replies Last reply
    0
    • T Try

      I need to embed a cursor file into the application. How to do it? The procedure what i have followed is: * I added a existing cursor file into project. * Changed the "Build Action" to "Embedded Resources". * Code: Cursor newCur = new Cursor("xyz.cur"); this.Cursor = newCur; But it is throwing exception "Could not find file C:\App\rotate.cur". I want to embed the cursor in my application.

      V Offline
      V Offline
      Vikram A Punathambekar
      wrote on last edited by
      #2

      In the solution explorer, go to the cursor file's properties and set Copy to output directory to Copy if newer.

      Cheers, Vikram.


      "I will put my new found knolage to good use" - Captain See Sharp. "Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed." - Gary Wheeler.

      T 1 Reply Last reply
      0
      • V Vikram A Punathambekar

        In the solution explorer, go to the cursor file's properties and set Copy to output directory to Copy if newer.

        Cheers, Vikram.


        "I will put my new found knolage to good use" - Captain See Sharp. "Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed." - Gary Wheeler.

        T Offline
        T Offline
        Try
        wrote on last edited by
        #3

        It does NOT work.. Thanks for your reply.

        1 Reply Last reply
        0
        • T Try

          I need to embed a cursor file into the application. How to do it? The procedure what i have followed is: * I added a existing cursor file into project. * Changed the "Build Action" to "Embedded Resources". * Code: Cursor newCur = new Cursor("xyz.cur"); this.Cursor = newCur; But it is throwing exception "Could not find file C:\App\rotate.cur". I want to embed the cursor in my application.

          T Offline
          T Offline
          Try
          wrote on last edited by
          #4

          I got the answer. http://www.codeprof.com/dev-archive/37/9-31-373566.shtm Thank you.

          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