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

C#

 
GeneralRe: How to implement IDocHostUIHandler with c# ? Pin
Heath Stewart25-Feb-04 2:40
protectorHeath Stewart25-Feb-04 2:40 
GeneralWithout a RDBMS or XML Pin
Sheriff Botros23-Feb-04 18:52
Sheriff Botros23-Feb-04 18:52 
GeneralRe: Without a RDBMS or XML Pin
Mazdak24-Feb-04 3:26
Mazdak24-Feb-04 3:26 
GeneralRe: Without a RDBMS or XML Pin
Heath Stewart24-Feb-04 4:37
protectorHeath Stewart24-Feb-04 4:37 
GeneralRe: Without a RDBMS or XML Pin
Nemanja Trifunovic24-Feb-04 6:23
Nemanja Trifunovic24-Feb-04 6:23 
GeneralQualifying Static Members With Type Names Pin
Eric Houser23-Feb-04 16:15
Eric Houser23-Feb-04 16:15 
GeneralRe: Qualifying Static Members With Type Names Pin
Not Active23-Feb-04 16:53
mentorNot Active23-Feb-04 16:53 
GeneralRe: Qualifying Static Members With Type Names Pin
Heath Stewart24-Feb-04 4:22
protectorHeath Stewart24-Feb-04 4:22 
Besides what Mark said, you don't want your controls static. You actually attempted to fix the original problem in exactly the opposite way that the compiler error implied. You shouldn't make your instance members static, but make your instance qualifier for your static method a Type like Mark said.

Trying to add static controls to a form won't work. With some careful handling, you might be able to get it to work for one form, but additional instances of the form will throw exceptions or even kill your app because window handles (which back the controls in Windows Forms) cannot be shared by parent windows.

 

Microsoft MVP, Visual C#
My Articles
Questionhow to use dll(mfc) in web service Pin
wangxuefeng23-Feb-04 14:51
wangxuefeng23-Feb-04 14:51 
AnswerRe: how to use dll(mfc) in web service Pin
Heath Stewart24-Feb-04 4:19
protectorHeath Stewart24-Feb-04 4:19 
GeneralRe: how to use dll(mfc) in web service Pin
wangxuefeng24-Feb-04 23:26
wangxuefeng24-Feb-04 23:26 
GeneralRe: how to use dll(mfc) in web service Pin
Heath Stewart25-Feb-04 2:43
protectorHeath Stewart25-Feb-04 2:43 
GeneralRe: how to use dll(mfc) in web service Pin
wangxuefeng25-Feb-04 13:36
wangxuefeng25-Feb-04 13:36 
AnswerRe: how to use dll(mfc) in web service Pin
wangxuefeng24-Feb-04 21:43
wangxuefeng24-Feb-04 21:43 
Generalfile processing Pin
Rob Tomson23-Feb-04 12:47
Rob Tomson23-Feb-04 12:47 
GeneralRe: file processing Pin
je_gonzalez23-Feb-04 15:27
je_gonzalez23-Feb-04 15:27 
GeneralRe: file processing Pin
Heath Stewart24-Feb-04 4:14
protectorHeath Stewart24-Feb-04 4:14 
GeneralRe: file processing Pin
je_gonzalez24-Feb-04 5:04
je_gonzalez24-Feb-04 5:04 
GeneralRe: file processing Pin
Rob Tomson24-Feb-04 17:45
Rob Tomson24-Feb-04 17:45 
GeneralRe: file processing Pin
je_gonzalez24-Feb-04 19:40
je_gonzalez24-Feb-04 19:40 
Questionhow to clear a combobox? Pin
Anonymous23-Feb-04 11:56
Anonymous23-Feb-04 11:56 
AnswerRe: how to clear a combobox? Pin
Werdna23-Feb-04 14:27
Werdna23-Feb-04 14:27 
QuestionHow to get number of running threads? Pin
CWIZO23-Feb-04 11:32
CWIZO23-Feb-04 11:32 
AnswerRe: How to get number of running threads? Pin
Heath Stewart24-Feb-04 4:03
protectorHeath Stewart24-Feb-04 4:03 
GeneralRe: How to get number of running threads? Pin
CWIZO24-Feb-04 4:08
CWIZO24-Feb-04 4:08 

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.