Click here to Skip to main content
15,917,702 members
Home / Discussions / C#
   

C#

 
GeneralRe: Shifting from .net 2.0 to .net 3.0 Pin
thenewbee20-Feb-08 21:12
thenewbee20-Feb-08 21:12 
GeneralRe: Shifting from .net 2.0 to .net 3.0 Pin
Gareth H21-Feb-08 0:44
Gareth H21-Feb-08 0:44 
GeneralSaving Bitmap in HashTable Pin
vivekphlp18-Feb-08 23:53
vivekphlp18-Feb-08 23:53 
GeneralRe: Saving Bitmap in HashTable Pin
free_soul42419-Feb-08 0:12
free_soul42419-Feb-08 0:12 
GeneralRe: Saving Bitmap in HashTable Pin
Martin#19-Feb-08 0:33
Martin#19-Feb-08 0:33 
GeneralRe: Saving Bitmap in HashTable Pin
free_soul42419-Feb-08 0:39
free_soul42419-Feb-08 0:39 
GeneralRe: Saving Bitmap in HashTable Pin
thenewbee19-Feb-08 19:27
thenewbee19-Feb-08 19:27 
AnswerRe: Saving Bitmap in HashTable Pin
Martin#20-Feb-08 20:21
Martin#20-Feb-08 20:21 
Hello,

As the Hashtable holds the Bitmap instance as an object, you will get an compiletime error telling you that an implicit conversion from object to Bitmap is not possible!
Therefor you would have to do the casting yourselfe.
If you are 100% sure that the Hashtable only holds Bitmaps:
if(ht.Contains("1"))
{
    Bitmap bmp2 = (Bitmap)ht["1"];
}
 
or:
 
Bitmap bmp2 = obmp as Bitmap;
if(bmp2!=null)
{
 				
}


All the best,

Martin

GeneralRe: Saving Bitmap in HashTable Pin
thenewbee20-Feb-08 21:02
thenewbee20-Feb-08 21:02 
GeneralRe: Saving Bitmap in HashTable Pin
Martin#21-Feb-08 2:45
Martin#21-Feb-08 2:45 
GeneralRe: Saving Bitmap in HashTable Pin
thenewbee21-Feb-08 3:16
thenewbee21-Feb-08 3:16 
GeneralOpening Internet Shortcut in default browser from C# [modified] Pin
__DanC__18-Feb-08 23:48
__DanC__18-Feb-08 23:48 
GeneralRe: Opening Internet Shortcut in default browser from C# Pin
Mircea Puiu19-Feb-08 1:58
Mircea Puiu19-Feb-08 1:58 
GeneralRe: Opening Internet Shortcut in default browser from C# Pin
__DanC__19-Feb-08 2:45
__DanC__19-Feb-08 2:45 
GeneralRe: Opening Internet Shortcut in default browser from C# Pin
Mircea Puiu19-Feb-08 3:18
Mircea Puiu19-Feb-08 3:18 
GeneralRe: Opening Internet Shortcut in default browser from C# Pin
__DanC__19-Feb-08 4:59
__DanC__19-Feb-08 4:59 
GeneralRe: Opening Internet Shortcut in default browser from C# Pin
Mircea Puiu19-Feb-08 5:08
Mircea Puiu19-Feb-08 5:08 
GeneralRe: Opening Internet Shortcut in default browser from C# Pin
__DanC__19-Feb-08 5:12
__DanC__19-Feb-08 5:12 
Questionhow to block website Pin
Tahir Abbasi18-Feb-08 23:39
Tahir Abbasi18-Feb-08 23:39 
AnswerRe: how to block website [modified] Pin
Mircea Puiu19-Feb-08 1:32
Mircea Puiu19-Feb-08 1:32 
GeneralRe: how to block website Pin
Tahir Abbasi19-Feb-08 3:37
Tahir Abbasi19-Feb-08 3:37 
GeneralRe: how to block website Pin
Mircea Puiu19-Feb-08 3:53
Mircea Puiu19-Feb-08 3:53 
Generalthis.MaximumSize issue Pin
Harvey Saayman18-Feb-08 23:09
Harvey Saayman18-Feb-08 23:09 
AnswerRe: this.MaximumSize issue Pin
Martin#18-Feb-08 23:15
Martin#18-Feb-08 23:15 
GeneralRe: this.MaximumSize issue Pin
Harvey Saayman18-Feb-08 23:28
Harvey Saayman18-Feb-08 23:28 

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.