Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
GeneralRe: Increasing Functionality Pin
jtmtv1830-Oct-03 11:01
jtmtv1830-Oct-03 11:01 
QuestionHow to build a discussion board using c# and ASP.NEt Pin
Ranze Dobbins29-Oct-03 7:07
Ranze Dobbins29-Oct-03 7:07 
AnswerRe: How to build a discussion board using c# and ASP.NEt Pin
Not Active29-Oct-03 8:53
mentorNot Active29-Oct-03 8:53 
AnswerRe: How to build a discussion board using c# and ASP.NEt Pin
Mike Ellison29-Oct-03 14:25
Mike Ellison29-Oct-03 14:25 
GeneralCustom Cursor from Bytes Pin
jspano29-Oct-03 5:49
jspano29-Oct-03 5:49 
GeneralRe: Custom Cursor from Bytes Pin
Heath Stewart29-Oct-03 11:12
protectorHeath Stewart29-Oct-03 11:12 
GeneralRe: Custom Cursor from Bytes Pin
jspano30-Oct-03 1:37
jspano30-Oct-03 1:37 
GeneralRe: Custom Cursor from Bytes Pin
Heath Stewart30-Oct-03 2:50
protectorHeath Stewart30-Oct-03 2:50 
Why did you use the ResourceManager? You simply grab the manifest resource stream. The ResourceManager is for ResX files.

VS.NET has a great resource editor, far better than VS6. It still handles cursors, icons, and bitmaps internally. Instead of string resources, you're supposed to use ResX files. The great thing is that you can embed any file as an embedded resource. If you right-click, you can select "Open with..." to open ANY resource with ANY program (and keep a cached list of programs you use). In VS6, if the resource wasn't understood / handled by the IDE, you had to export the resource, browse to it and open it with the associated application (or open the application then open the file). That was a pain.

In any case, 'tis far easier to just embed the .cur file as an embedded resource and use the Cursor constructor I mentioned, not the ResourceManager. Besides, binary files are stored as bse64 encodings by default. The ResourceManager has overhead for setting things up, then has to find the resource and decode it. The other way is quick and is closer to how it would be done in Win32 when loading a cursor from a persistent file.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralSqrt() method Pin
oOomen29-Oct-03 5:33
oOomen29-Oct-03 5:33 
GeneralRe: Sqrt() method Pin
Daniel M. Edwards29-Oct-03 5:40
Daniel M. Edwards29-Oct-03 5:40 
GeneralRe: Sqrt() method Pin
oOomen29-Oct-03 6:13
oOomen29-Oct-03 6:13 
GeneralRe: Sqrt() method Pin
scadaguy29-Oct-03 7:29
scadaguy29-Oct-03 7:29 
GeneralRe: Sqrt() method Pin
oOomen29-Oct-03 9:26
oOomen29-Oct-03 9:26 
GeneralRe: Sqrt() method Pin
Christian Graus29-Oct-03 9:34
protectorChristian Graus29-Oct-03 9:34 
GeneralRe: Sqrt() method Pin
oOomen30-Oct-03 6:34
oOomen30-Oct-03 6:34 
GeneralRe: Sqrt() method Pin
Christian Graus29-Oct-03 9:57
protectorChristian Graus29-Oct-03 9:57 
GeneralRe: Sqrt() method Pin
Christian Graus30-Oct-03 8:49
protectorChristian Graus30-Oct-03 8:49 
GeneralRe: Sqrt() method Pin
oOomen29-Oct-03 10:06
oOomen29-Oct-03 10:06 
GeneralRe: Sqrt() method Pin
oOomen30-Oct-03 11:54
oOomen30-Oct-03 11:54 
GeneralRe: Sqrt() method Pin
Christian Graus29-Oct-03 10:11
protectorChristian Graus29-Oct-03 10:11 
GeneralRe: Sqrt() method Pin
Christian Graus30-Oct-03 11:56
protectorChristian Graus30-Oct-03 11:56 
GeneralRe: Sqrt() method Pin
J. Dunlap29-Oct-03 10:19
J. Dunlap29-Oct-03 10:19 
GeneralRe: Sqrt() method Pin
Christian Graus29-Oct-03 10:24
protectorChristian Graus29-Oct-03 10:24 
GeneralRe: Sqrt() method Pin
oOomen30-Oct-03 6:45
oOomen30-Oct-03 6:45 
GeneralRe: Sqrt() method Pin
oOomen29-Oct-03 11:18
oOomen29-Oct-03 11:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.