Click here to Skip to main content
15,920,632 members
Home / Discussions / C#
   

C#

 
GeneralRe: TabControl Pin
Luis Alonso Ramos26-Jul-05 13:50
Luis Alonso Ramos26-Jul-05 13:50 
GeneralRe: TabControl Pin
zaboboa27-Jul-05 6:51
zaboboa27-Jul-05 6:51 
GeneralRe: TabControl Pin
Luis Alonso Ramos27-Jul-05 7:01
Luis Alonso Ramos27-Jul-05 7:01 
GeneralRe: TabControl Pin
zaboboa27-Jul-05 7:34
zaboboa27-Jul-05 7:34 
GeneralRe: TabControl Pin
Luis Alonso Ramos27-Jul-05 7:40
Luis Alonso Ramos27-Jul-05 7:40 
GeneralRe: TabControl Pin
zaboboa27-Jul-05 7:53
zaboboa27-Jul-05 7:53 
GeneralRe: TabControl Pin
Luis Alonso Ramos27-Jul-05 7:58
Luis Alonso Ramos27-Jul-05 7:58 
GeneralCustom cursor as resource Pin
Will L Pittenger26-Jul-05 6:26
Will L Pittenger26-Jul-05 6:26 
In the topic
Cursor Constructor (Type, String) it tells how to add a cursor as a resource to your project so you can open it at runtime without copying around a second file.

There are two parts of it I do not understand. One is that it only talks about the command line changes. What command line? I build from the IDE. The other is the GetType call. What am I supposed to get the type of?

The sample from the help system:
Using the C# compiler:<br />
csc /resource:"MyWaitCursor.cur","MyCursors.MyWaitCursor.cur" MyCursor.cs<br />
Using the Visual Basic compiler:<br />
vbc /resource:"MyWaitCursor.cur","MyCursors.MyWaitCursor.cur" MyCursor.vb


(This sample is in VB rather than C#. Blame MS.
    ' Looks namespace.MyCursor.cur in the assemblies manifest.<br />
    <br />
    ' The following generates a cursor from an embedded resource.<br />
    ' To add a custom cursor, create or use an existing 16x16 bitmap<br />
    '        1. Add a new cursor file to your project: <br />
    '                File->Add New Item->Local Project Items->Cursor File<br />
    '        2. Select 16x16 image type:<br />
    '                Image->Current Icon Image Types->16x16<br />
    ' --- To make the custom cursor an embedded resource  ---<br />
    ' In Visual Studio:<br />
    '        1. Select the cursor file in the Solution Explorer<br />
    '        2. Choose View->Properties.<br />
    '        3. In the properties window switch "Build Action" to "Embedded"<br />
    ' On the command line:<br />
    '        Add the following flag:<br />
    '            /res:CursorFileName.Cur,Namespace.CursorFileName.Cur<br />
    '<br />
    ' The following line uses the namespace from the passed-in type<br />
    ' and looks for CustomCursor.MyCursor.Cur in the assemblies manifest.<br />
' NOTE: The cursor name is acase sensitive.        <br />
<br />
    Me.Cursor = New Cursor(Me.GetType(), "MyCursor.Cur")


--------------
Will Pittenger
GeneralRe: Custom cursor as resource Pin
[Marc]26-Jul-05 8:37
[Marc]26-Jul-05 8:37 
GeneralRe: Custom cursor as resource Pin
Will L Pittenger26-Jul-05 13:18
Will L Pittenger26-Jul-05 13:18 
GeneralRe: Custom cursor as resource Pin
[Marc]26-Jul-05 14:11
[Marc]26-Jul-05 14:11 
GeneralRe: Custom cursor as resource Pin
Will L Pittenger27-Jul-05 7:18
Will L Pittenger27-Jul-05 7:18 
GeneralRe: Custom cursor as resource Pin
[Marc]27-Jul-05 8:21
[Marc]27-Jul-05 8:21 
GeneralRe: Custom cursor as resource Pin
Will L Pittenger27-Jul-05 10:02
Will L Pittenger27-Jul-05 10:02 
GeneralRe: Custom cursor as resource Pin
[Marc]27-Jul-05 10:50
[Marc]27-Jul-05 10:50 
GeneralRe: Custom cursor as resource Pin
Will L Pittenger27-Jul-05 17:44
Will L Pittenger27-Jul-05 17:44 
GeneralRe: Custom cursor as resource Pin
[Marc]27-Jul-05 20:12
[Marc]27-Jul-05 20:12 
GeneralMemory Leak Pin
dbetting26-Jul-05 6:06
dbetting26-Jul-05 6:06 
GeneralRe: Memory Leak Pin
Steve Maier26-Jul-05 7:18
professionalSteve Maier26-Jul-05 7:18 
GeneralRe: Memory Leak Pin
S. Senthil Kumar26-Jul-05 7:43
S. Senthil Kumar26-Jul-05 7:43 
GeneralRe: Memory Leak [EDITED] Pin
Dave Kreskowiak26-Jul-05 10:14
mveDave Kreskowiak26-Jul-05 10:14 
GeneralRe: Memory Leak [EDITED] Pin
Dan Neely27-Jul-05 2:52
Dan Neely27-Jul-05 2:52 
GeneralRe: Memory Leak [EDITED] Pin
Dave Kreskowiak27-Jul-05 6:33
mveDave Kreskowiak27-Jul-05 6:33 
QuestionHow to Convert Microsoft Excel sheet data into XML data Pin
dsrao26-Jul-05 5:58
dsrao26-Jul-05 5:58 
AnswerRe: How to Convert Microsoft Excel sheet data into XML data Pin
Dan Neely26-Jul-05 6:51
Dan Neely26-Jul-05 6:51 

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.