Click here to Skip to main content
15,881,882 members
Home / Discussions / C#
   

C#

 
GeneralRe: auto+indentation feature Pin
leppie22-Apr-04 7:29
leppie22-Apr-04 7:29 
GeneralRe: auto+indentation feature Pin
kumaru_san22-Apr-04 18:32
kumaru_san22-Apr-04 18:32 
QuestionHow to float window over application properly Pin
Michael Wolski21-Apr-04 18:10
Michael Wolski21-Apr-04 18:10 
AnswerRe: How to float window over application properly Pin
Heath Stewart22-Apr-04 3:42
protectorHeath Stewart22-Apr-04 3:42 
GeneralRe: How to float window over application properly Pin
Michael Wolski22-Apr-04 4:20
Michael Wolski22-Apr-04 4:20 
Generalusercontrol Pin
Member 102128921-Apr-04 16:42
Member 102128921-Apr-04 16:42 
QuestionHow can I send an Image over a socket connection? Pin
Gakujin21-Apr-04 16:20
Gakujin21-Apr-04 16:20 
AnswerRe: How can I send an Image over a socket connection? Pin
Michael Wolski21-Apr-04 18:40
Michael Wolski21-Apr-04 18:40 
One of the overloads for the Image.Save() method takes a System.IO.Stream. You could stream it memory, then send those bits via socket. Something like...

using System.IO;
using System.Net.Sockets;

Bitmap bmp = new Bitmap(@"c:\mypic.gif");
System.IO.MemoryStream memImage = new MemoryStream();
bmp.Save(memImage,System.Drawing.Imaging.ImageFormat.Gif);

byte[] data = memImage.ToArray();
Socket socket = new Socket(...your options here...);
socket.Send(data,0,data.Length,SocketFlags.None);

Hope that gets you started!

Michael
Developer, Author, Chef
GeneralRe: How can I send an Image over a socket connection? Pin
Tim Kohler22-Apr-04 1:32
Tim Kohler22-Apr-04 1:32 
GeneralList box line spacing Pin
interlocked21-Apr-04 15:26
interlocked21-Apr-04 15:26 
GeneralAuto complete in custom web browser Pin
Weiye Chen21-Apr-04 15:22
Weiye Chen21-Apr-04 15:22 
GeneralRe: Auto complete in custom web browser Pin
Roman Rodov21-Apr-04 17:36
Roman Rodov21-Apr-04 17:36 
GeneralSetup & Deployment project - "All User" installation Pin
Ruchi Gupta21-Apr-04 13:47
Ruchi Gupta21-Apr-04 13:47 
GeneralRe: Setup & Deployment project - "All User" installation Pin
sreejith ss nair21-Apr-04 18:59
sreejith ss nair21-Apr-04 18:59 
GeneralRe: Setup & Deployment project - "All User" installation Pin
Ruchi Gupta22-Apr-04 5:00
Ruchi Gupta22-Apr-04 5:00 
GeneralRe: Setup & Deployment project - "All User" installation Pin
Heath Stewart22-Apr-04 3:52
protectorHeath Stewart22-Apr-04 3:52 
GeneralRe: Setup & Deployment project - "All User" installation Pin
Ruchi Gupta22-Apr-04 4:52
Ruchi Gupta22-Apr-04 4:52 
QuestionHow can i make an event on the scrollbar of the TreeView Pin
amr_tahlawi21-Apr-04 11:49
amr_tahlawi21-Apr-04 11:49 
AnswerRe: How can i make an event on the scrollbar of the TreeView Pin
Heath Stewart21-Apr-04 12:26
protectorHeath Stewart21-Apr-04 12:26 
GeneralForms.ComboBox Pin
yaakov7721-Apr-04 11:02
yaakov7721-Apr-04 11:02 
GeneralRe: Forms.ComboBox Pin
Michael Wolski21-Apr-04 18:23
Michael Wolski21-Apr-04 18:23 
GeneralRe: Forms.ComboBox Pin
yaakov7721-Apr-04 22:55
yaakov7721-Apr-04 22:55 
Generalc# RSACryptoServiceProvider encryption - stored passwords Pin
judyvjudy21-Apr-04 9:57
judyvjudy21-Apr-04 9:57 
GeneralRe: c# RSACryptoServiceProvider encryption - stored passwords Pin
Heath Stewart21-Apr-04 10:14
protectorHeath Stewart21-Apr-04 10:14 
GeneralRe: c# RSACryptoServiceProvider encryption - stored passwords Pin
judyvjudy21-Apr-04 11:56
judyvjudy21-Apr-04 11:56 

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.