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

C#

 
GeneralRe: Another TCP Issue Pin
pradnya_k21-Sep-09 21:15
pradnya_k21-Sep-09 21:15 
QuestionPassword field in datagridview,C# Pin
sampath_dr20-Sep-09 20:04
sampath_dr20-Sep-09 20:04 
AnswerRe: Password field in datagridview,C# Pin
Ravi Mori20-Sep-09 20:59
Ravi Mori20-Sep-09 20:59 
GeneralRe: Password field in datagridview,C# Pin
sampath_dr20-Sep-09 21:21
sampath_dr20-Sep-09 21:21 
QuestionTiming Out the User Session Using the MouseMove Event Pin
Richard Andrew x6420-Sep-09 19:23
professionalRichard Andrew x6420-Sep-09 19:23 
AnswerRe: Timing Out the User Session Using the MouseMove Event Pin
Christian Graus20-Sep-09 19:39
protectorChristian Graus20-Sep-09 19:39 
Questionreducing image file size Pin
michael@cohen20-Sep-09 19:09
michael@cohen20-Sep-09 19:09 
AnswerRe: reducing image file size Pin
Christian Graus20-Sep-09 19:41
protectorChristian Graus20-Sep-09 19:41 
michael@cohen wrote:
b = new Bitmap(width, height);
i = Image.FromHbitmap(b.GetHbitmap());
g = Graphics.FromImage(i);


How utterly bizarre. This is a waste of time. You can call Graphics.FromImage on a Bitmap, in fact, because of bugs in .NET, even if you create an Image, a Bitmap is created.

You should use using blocks to auto dispose where you can.

If you want images to be smaller, try saving them as jpeg or another compressed format. Otherwise, they are the size of the number of pixels x 3, you can't change that.

Christian Graus

Driven to the arms of OSX by Vista.

Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

AnswerRe: reducing image file size Pin
Luc Pattyn21-Sep-09 1:01
sitebuilderLuc Pattyn21-Sep-09 1:01 
Questionhow to count printed total pages [modified] Pin
scoket20-Sep-09 17:48
scoket20-Sep-09 17:48 
QuestionThread scheduling [modified] Pin
Kwonhyung Roh20-Sep-09 16:58
Kwonhyung Roh20-Sep-09 16:58 
AnswerRe: Thread scheduling Pin
Dave Kreskowiak20-Sep-09 17:02
mveDave Kreskowiak20-Sep-09 17:02 
GeneralRe: Thread scheduling Pin
Kwonhyung Roh20-Sep-09 18:15
Kwonhyung Roh20-Sep-09 18:15 
GeneralRe: Thread scheduling Pin
Dave Kreskowiak21-Sep-09 2:11
mveDave Kreskowiak21-Sep-09 2:11 
GeneralRe: Thread scheduling Pin
Kwonhyung Roh21-Sep-09 17:31
Kwonhyung Roh21-Sep-09 17:31 
GeneralRe: Thread scheduling Pin
Dave Kreskowiak22-Sep-09 4:30
mveDave Kreskowiak22-Sep-09 4:30 
GeneralRe: Thread scheduling Pin
Kwonhyung Roh22-Sep-09 16:14
Kwonhyung Roh22-Sep-09 16:14 
QuestionError using tao framework Pin
billy_iii20-Sep-09 11:42
billy_iii20-Sep-09 11:42 
AnswerRe: Error using tao framework Pin
Henry Minute20-Sep-09 12:40
Henry Minute20-Sep-09 12:40 
GeneralRe: Error using tao framework Pin
billy_iii20-Sep-09 13:23
billy_iii20-Sep-09 13:23 
GeneralRe: Error using tao framework Pin
Dave Kreskowiak20-Sep-09 16:59
mveDave Kreskowiak20-Sep-09 16:59 
AnswerRe: Error using tao framework Pin
carlecomm29-Sep-09 1:25
carlecomm29-Sep-09 1:25 
QuestionCorsor position Pin
Muammar©20-Sep-09 10:29
Muammar©20-Sep-09 10:29 
AnswerRe: Corsor position Pin
Abhishek Sur20-Sep-09 10:32
professionalAbhishek Sur20-Sep-09 10:32 
AnswerRe: Corsor position Pin
Luc Pattyn20-Sep-09 11:01
sitebuilderLuc Pattyn20-Sep-09 11:01 

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.