Click here to Skip to main content
15,898,222 members
Home / Discussions / C#
   

C#

 
GeneralRe: moving a imagefile to a certain path in c#? Pin
biaali27-Aug-06 1:18
biaali27-Aug-06 1:18 
GeneralRe: moving a imagefile to a certain path in c#? Pin
Christian Graus27-Aug-06 1:22
protectorChristian Graus27-Aug-06 1:22 
QuestionTextBox border Pin
TAREQ F ABUZUHRI26-Aug-06 9:22
TAREQ F ABUZUHRI26-Aug-06 9:22 
AnswerRe: TextBox border Pin
TAREQ F ABUZUHRI26-Aug-06 9:23
TAREQ F ABUZUHRI26-Aug-06 9:23 
AnswerRe: TextBox border Pin
Nader Elshehabi26-Aug-06 22:27
Nader Elshehabi26-Aug-06 22:27 
GeneralRe: TextBox border Pin
mav.northwind27-Aug-06 6:10
mav.northwind27-Aug-06 6:10 
GeneralRe: TextBox border Pin
Nader Elshehabi27-Aug-06 7:38
Nader Elshehabi27-Aug-06 7:38 
GeneralRe: TextBox border Pin
mav.northwind27-Aug-06 21:29
mav.northwind27-Aug-06 21:29 
ReHi!
Nader Elshehabi wrote:
Well, last time I checked my GC wasn't on vacation! My graphics objects are local variables, they will be disposable once the call to the handler is over

It's not that the GC isn't working correctly, you're not calling Dispose()!
You shoud use:
using (Graphics g = textBox.CreateGraphics())
{
}
Nader Elshehabi wrote:
Unfortunately, no! This is not a webpage where the user may click refresh, and almost all the causes of paint are mouse involved. Once the mouse is out of the box, it doesn't matter!!


Sorry to say that, but this is exactly the cause for many questions in this forum when people ask why they are having problems when they paint directly on top of controls.
The paint event is the only correct place to perform painting.
With your suggestion, just move another window over the textbox (or part of it) and you'll see what I mean.


Regards,
mav

--
Black holes are the places where god divided by 0...

GeneralRe: TextBox border Pin
Nader Elshehabi28-Aug-06 1:02
Nader Elshehabi28-Aug-06 1:02 
GeneralRe: TextBox border Pin
mav.northwind28-Aug-06 3:07
mav.northwind28-Aug-06 3:07 
GeneralRe: TextBox border Pin
Nader Elshehabi28-Aug-06 5:10
Nader Elshehabi28-Aug-06 5:10 
AnswerRe: TextBox border Pin
Nader Elshehabi28-Aug-06 5:19
Nader Elshehabi28-Aug-06 5:19 
GeneralRe: TextBox border Pin
mav.northwind28-Aug-06 8:26
mav.northwind28-Aug-06 8:26 
Questionhow to add checkbox column in datagrid Pin
iramg26-Aug-06 7:35
iramg26-Aug-06 7:35 
AnswerRe: how to add checkbox column in datagrid Pin
Ed.Poore26-Aug-06 8:58
Ed.Poore26-Aug-06 8:58 
GeneralRe: how to add checkbox column in datagrid Pin
iramg26-Aug-06 9:16
iramg26-Aug-06 9:16 
GeneralRe: how to add checkbox column in datagrid Pin
Ed.Poore26-Aug-06 9:37
Ed.Poore26-Aug-06 9:37 
QuestionHTTPS Proxy Pin
WillemM26-Aug-06 7:09
WillemM26-Aug-06 7:09 
QuestionInvoking an event... Pin
Shy Agam26-Aug-06 6:56
Shy Agam26-Aug-06 6:56 
AnswerRe: Invoking an event... Pin
Ed.Poore26-Aug-06 9:37
Ed.Poore26-Aug-06 9:37 
GeneralRe: Invoking an event... Pin
Shy Agam26-Aug-06 12:34
Shy Agam26-Aug-06 12:34 
GeneralRe: Invoking an event... Pin
Ed.Poore27-Aug-06 8:21
Ed.Poore27-Aug-06 8:21 
AnswerRe: Invoking an event... Pin
Nader Elshehabi26-Aug-06 21:57
Nader Elshehabi26-Aug-06 21:57 
QuestionHow to check a DataGridViewCheckBoxCell? Pin
printscreen1234526-Aug-06 5:55
printscreen1234526-Aug-06 5:55 
AnswerRe: How to check a DataGridViewCheckBoxCell? Pin
Nader Elshehabi26-Aug-06 22:05
Nader Elshehabi26-Aug-06 22:05 

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.