Click here to Skip to main content
15,890,579 members
Home / Discussions / C#
   

C#

 
AnswerRe: New to C# Pin
originSH3-Sep-07 22:25
originSH3-Sep-07 22:25 
AnswerRe: New to C# Pin
Thomas Stockwell4-Sep-07 6:07
professionalThomas Stockwell4-Sep-07 6:07 
QuestionThe process cannot access the file because it is being used by another process. Pin
toink toink3-Sep-07 17:36
toink toink3-Sep-07 17:36 
AnswerRe: The process cannot access the file because it is being used by another process. Pin
originSH3-Sep-07 22:29
originSH3-Sep-07 22:29 
QuestionSQL Connection String Problem Pin
Xmen Real 3-Sep-07 16:56
professional Xmen Real 3-Sep-07 16:56 
AnswerRe: SQL Connection String Problem Pin
Michael Sync3-Sep-07 17:33
Michael Sync3-Sep-07 17:33 
Questionsql checkedlistbox and insert statement Pin
falles013-Sep-07 16:53
falles013-Sep-07 16:53 
QuestionDrawing on controls Pin
udikantz3-Sep-07 16:45
udikantz3-Sep-07 16:45 
Hi , im developing an application its all working fine untill recentrly i got an error:
"error creating window handle" ,
so i was googling on the subject and i found out it happens when youre application is using 2 many controls
and thats indeed my case , so the solution was to replace the controls by drawing directly to the graphics of the parent control instead of making new child controls , for example if i have a panel , and i got like 1000 labels inside that panel , the idea is to do something like:

Graphics g = Graphics.FromHwnd(mypanel.Handle);
g.drawString(string,font....);

instead of adding 1000 labels to the panel.

ok so here is the problem i am trying to adopt this technique but i found out that in cases when i minimize
the window and then resize it back i see that all my drawings are gone , or when the panel uses the autscroll
when it appends the scroll bars same thing happens
all the drawings are gone ,

so my question is, is there any way to make these drawings stay permenently on the control , or i will have to make many eventhandlers and repaint evrything evrytime something happens....

or is there any other solution for this kind of problem thanks.

Net

AnswerRe: Drawing on controls Pin
rah_sin3-Sep-07 22:23
professionalrah_sin3-Sep-07 22:23 
GeneralRe: Drawing on controls Pin
udikantz10-Sep-07 14:50
udikantz10-Sep-07 14:50 
QuestionInterface does not alter class, or does it? [modified] Pin
mizitras3-Sep-07 15:09
mizitras3-Sep-07 15:09 
AnswerRe: Interface does not alter class, or does it? Pin
PIEBALDconsult3-Sep-07 17:11
mvePIEBALDconsult3-Sep-07 17:11 
GeneralRe: Interface does not alter class, or does it? Pin
Urs Enzler3-Sep-07 22:31
Urs Enzler3-Sep-07 22:31 
GeneralRe: Interface does not alter class, or does it? Pin
PIEBALDconsult4-Sep-07 4:59
mvePIEBALDconsult4-Sep-07 4:59 
GeneralRe: Interface does not alter class, or does it? Pin
Urs Enzler4-Sep-07 5:54
Urs Enzler4-Sep-07 5:54 
AnswerRe: Interface does not alter class, or does it? Pin
PIEBALDconsult4-Sep-07 5:03
mvePIEBALDconsult4-Sep-07 5:03 
AnswerRe: Interface does not alter class, or does it? [modified] Pin
Dave Kreskowiak4-Sep-07 5:56
mveDave Kreskowiak4-Sep-07 5:56 
GeneralRe: Interface does not alter class, or does it? Pin
mizitras5-Sep-07 17:06
mizitras5-Sep-07 17:06 
QuestionRound window and change the size and no more round Pin
AghaKhan3-Sep-07 14:44
AghaKhan3-Sep-07 14:44 
QuestionAdding onclick event to class Pin
DanB19833-Sep-07 10:04
DanB19833-Sep-07 10:04 
AnswerRe: Adding onclick event to class Pin
Christian Graus3-Sep-07 10:06
protectorChristian Graus3-Sep-07 10:06 
AnswerRe: Adding onclick event to class Pin
Ravi Bhavnani3-Sep-07 10:12
professionalRavi Bhavnani3-Sep-07 10:12 
AnswerRe: Adding onclick event to class Pin
Luc Pattyn3-Sep-07 10:23
sitebuilderLuc Pattyn3-Sep-07 10:23 
GeneralRe: Adding onclick event to class Pin
DanB19833-Sep-07 10:25
DanB19833-Sep-07 10:25 
QuestionwebBrowser control problem Pin
Opa Knack3-Sep-07 8:42
Opa Knack3-Sep-07 8: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.