Click here to Skip to main content
15,922,696 members
Home / Discussions / C#
   

C#

 
AnswerRe: Using classes on windows forms Pin
stancrm27-Jun-06 4:02
stancrm27-Jun-06 4:02 
AnswerRe: Using classes on windows forms Pin
Robert Rohde27-Jun-06 4:05
Robert Rohde27-Jun-06 4:05 
Questionhow to find all ip Pin
Bozhuk27-Jun-06 3:52
Bozhuk27-Jun-06 3:52 
AnswerRe: how to find all ip Pin
Judah Gabriel Himango27-Jun-06 4:18
sponsorJudah Gabriel Himango27-Jun-06 4:18 
QuestionWrong data - Network Stream Pin
shadow0127-Jun-06 2:57
shadow0127-Jun-06 2:57 
Questionhow can i send sms ... Pin
mostafa_h27-Jun-06 2:56
mostafa_h27-Jun-06 2:56 
AnswerRe: how can i send sms ... Pin
Judah Gabriel Himango27-Jun-06 4:19
sponsorJudah Gabriel Himango27-Jun-06 4:19 
QuestionLoading embedded cursor through ResourceManager Pin
jjansen27-Jun-06 2:55
jjansen27-Jun-06 2:55 
I'm able to retrieve embedded resources like Bitmaps and Strings using the properties that Visual Studio 2005 adds to Resources.Designer.cs (or using the ResourceManager in that same file). But for some reason I have not succeeded in doing the same with a Cursor. Visual Studio only accepts a cursor as a file, thus giving me a byte array instead of a Cursor object.

Of course I can do it the "old-fashioned" way, like this:
System.Reflection.Assembly MyAssembly = System.Reflection.Assembly.GetExecutingAssembly();<br />
Cursor MyCursor = new Cursor(MyAssembly.GetManifestResourceStream("MyProject.MyCursor.cur"));

But still, I would prefer it I could treat cursor the same other resource types.

Am I missing something or is this simply an ommision on the part the Visual Studio crew?

Speaking of cursors, why does C# only seems to support monochrome cursors?
AnswerRe: Loading embedded cursor through ResourceManager Pin
Robert Rohde27-Jun-06 3:08
Robert Rohde27-Jun-06 3:08 
JokeRe: Loading embedded cursor through ResourceManager Pin
jjansen27-Jun-06 3:47
jjansen27-Jun-06 3:47 
AnswerRe: Loading embedded cursor through ResourceManager Pin
Josh Smith27-Jun-06 3:48
Josh Smith27-Jun-06 3:48 
GeneralRe: Loading embedded cursor through ResourceManager Pin
jjansen27-Jun-06 3:59
jjansen27-Jun-06 3:59 
GeneralRe: Loading embedded cursor through ResourceManager Pin
Josh Smith27-Jun-06 4:14
Josh Smith27-Jun-06 4:14 
QuestionInterfaces and factories Pin
Harvey Turtle27-Jun-06 2:42
Harvey Turtle27-Jun-06 2:42 
AnswerRe: Interfaces and factories Pin
Robert Rohde27-Jun-06 2:55
Robert Rohde27-Jun-06 2:55 
GeneralRe: Interfaces and factories Pin
Harvey Turtle27-Jun-06 3:08
Harvey Turtle27-Jun-06 3:08 
GeneralRe: Interfaces and factories Pin
Robert Rohde27-Jun-06 3:46
Robert Rohde27-Jun-06 3:46 
GeneralRe: Interfaces and factories Pin
Harvey Turtle27-Jun-06 3:51
Harvey Turtle27-Jun-06 3:51 
GeneralRe: Interfaces and factories Pin
Robert Rohde27-Jun-06 4:01
Robert Rohde27-Jun-06 4:01 
GeneralRe: Interfaces and factories Pin
Harvey Turtle27-Jun-06 4:05
Harvey Turtle27-Jun-06 4:05 
AnswerRe: Interfaces and factories Pin
Guffa27-Jun-06 4:02
Guffa27-Jun-06 4:02 
GeneralRe: Interfaces and factories Pin
BoneSoft27-Jun-06 4:05
BoneSoft27-Jun-06 4:05 
Questionhowto list running processes ? Pin
cmpeng3427-Jun-06 2:38
cmpeng3427-Jun-06 2:38 
AnswerRe: howto list running processes ? Pin
stancrm27-Jun-06 3:42
stancrm27-Jun-06 3:42 
AnswerRe: howto list running processes ? Pin
wasife27-Jun-06 3:48
wasife27-Jun-06 3:48 

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.