Click here to Skip to main content
15,905,025 members
Home / Discussions / C#
   

C#

 
GeneralAssociating shortcut key with a button Pin
paulb13-Feb-02 15:59
paulb13-Feb-02 15:59 
GeneralProgrammatically pressing F1 key on keyboard Pin
kyledunn13-Feb-02 10:12
kyledunn13-Feb-02 10:12 
GeneralRe: Programmatically pressing F1 key on keyboard Pin
15-Feb-02 9:44
suss15-Feb-02 9:44 
QuestionSending multiple items to the clipboard? Pin
13-Feb-02 8:25
suss13-Feb-02 8:25 
AnswerRe: Sending multiple items to the clipboard? Pin
James T. Johnson13-Feb-02 12:22
James T. Johnson13-Feb-02 12:22 
GeneralRe: Sending multiple items to the clipboard? Pin
14-Feb-02 4:42
suss14-Feb-02 4:42 
GeneralPorting MFC Container into C# Pin
13-Feb-02 7:58
suss13-Feb-02 7:58 
Generaldrawing an icon on a form Pin
Senkwe Chanda13-Feb-02 2:34
Senkwe Chanda13-Feb-02 2:34 
Hi guys, I'm trying to draw an icon onto the surface of a form. What I do is create the icon in the bitmap editor in VS.NET and then perform the following in my Form's code
private Icon myIcon
...
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1));		
myIcon = ((System.Drawing.Icon)(resources.GetObject("icon1.ico")));
...
myIcon however is always null

It's a simple matter I'm sure but I'm brain dead at the moment. How can I make sure that I have a valid icon instance in this case?

Regards

Senkwe



Just another wannabe code junky
GeneralRe: drawing an icon on a form Pin
Peter Stephens13-Feb-02 10:30
Peter Stephens13-Feb-02 10:30 
GeneralRe: drawing an icon on a form Pin
Senkwe Chanda13-Feb-02 19:15
Senkwe Chanda13-Feb-02 19:15 
GeneralAuthenticating request from another machine Pin
bcooper13-Feb-02 2:29
bcooper13-Feb-02 2:29 
GeneralTransparent backgrounds for controls Pin
Profox Jase13-Feb-02 2:11
Profox Jase13-Feb-02 2:11 
GeneralRe: Transparent backgrounds for controls Pin
Senkwe Chanda13-Feb-02 3:16
Senkwe Chanda13-Feb-02 3:16 
GeneralRe: Transparent backgrounds for controls Pin
Profox Jase13-Feb-02 5:38
Profox Jase13-Feb-02 5:38 
GeneralRe: Transparent backgrounds for controls Pin
James T. Johnson13-Feb-02 8:11
James T. Johnson13-Feb-02 8:11 
GeneralRe: Transparent backgrounds for controls Pin
Profox Jase17-Feb-02 0:46
Profox Jase17-Feb-02 0:46 
GeneralC# and .NET books Pin
Oyvind Bratland13-Feb-02 0:42
Oyvind Bratland13-Feb-02 0:42 
GeneralRe: C# and .NET books Pin
Mazdak13-Feb-02 2:15
Mazdak13-Feb-02 2:15 
GeneralRe: C# and .NET books Pin
Oyvind Bratland13-Feb-02 2:21
Oyvind Bratland13-Feb-02 2:21 
GeneralRe: C# and .NET books Pin
Peter Stephens13-Feb-02 10:29
Peter Stephens13-Feb-02 10:29 
GeneralRe: C# and .NET books Pin
Oyvind Bratland13-Feb-02 19:57
Oyvind Bratland13-Feb-02 19:57 
GeneralRe: C# and .NET books Pin
James T. Johnson13-Feb-02 20:00
James T. Johnson13-Feb-02 20:00 
GeneralRe: C# and .NET books Pin
Peter Stephens14-Feb-02 8:45
Peter Stephens14-Feb-02 8:45 
GeneralRe: C# and .NET books Pin
TigerNinja_18-Feb-02 7:31
TigerNinja_18-Feb-02 7:31 
GeneralRe: C# and .NET books Pin
Tom Archer18-Feb-02 15:42
Tom Archer18-Feb-02 15:42 

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.