Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
AnswerRe: Threading for multicore applications Pin
Luc Pattyn21-Aug-10 10:02
sitebuilderLuc Pattyn21-Aug-10 10:02 
GeneralRe: Threading for multicore applications Pin
Steven Solberg22-Aug-10 8:17
Steven Solberg22-Aug-10 8:17 
GeneralRe: Threading for multicore applications Pin
Luc Pattyn22-Aug-10 8:47
sitebuilderLuc Pattyn22-Aug-10 8:47 
GeneralRe: Threading for multicore applications Pin
Steven Solberg22-Aug-10 8:57
Steven Solberg22-Aug-10 8:57 
QuestionC# Getting Responce From Form1 Pin
C.CoderCreator21-Aug-10 2:24
C.CoderCreator21-Aug-10 2:24 
AnswerRe: C# Getting Responce From Form1 Pin
Abhinav S21-Aug-10 2:51
Abhinav S21-Aug-10 2:51 
GeneralRe: C# Getting Responce From Form1 Pin
C.CoderCreator21-Aug-10 2:55
C.CoderCreator21-Aug-10 2:55 
AnswerRe: C# Getting Responce From Form1 Pin
venomation21-Aug-10 3:16
venomation21-Aug-10 3:16 
systemerror121 wrote:
Error 2 An object reference is required for the non-static field, method, or property 'Gadgets.Form1.CheckboxPublicName.get' C:\Users\Kyle\documents\visual studio 2010\Projects\Gadgets\Gadgets\Time.cs 130 17 Gadgets


Its because (I think) that "CheckboxPublicName" is not static, so trying to access it from the class "Form1" (unless its an object then you need to change your naming convention) wont work.

Try Form1 form = new Form1(); somewhere and then you can get the reference for the property form.CheckboxPublicName :P

Also instead of :

if (e.KeyData == Keys.Escape)
{
this.Visible = false;
Form1.CheckboxPublicName.Checked = false;
}

try this for a better code structure:

bool result = (e.KeyData == Keys.Escape);
Visible = form.CheckboxPublicName = result;

Big Grin | :-D
GeneralRe: C# Getting Responce From Form1 Pin
C.CoderCreator21-Aug-10 3:24
C.CoderCreator21-Aug-10 3:24 
GeneralRe: C# Getting Responce From Form1 Pin
venomation21-Aug-10 3:33
venomation21-Aug-10 3:33 
AnswerRe: C# Getting Responce From Form1 Pin
DaveyM6921-Aug-10 6:14
professionalDaveyM6921-Aug-10 6:14 
GeneralRe: C# Getting Responce From Form1 Pin
Pete O'Hanlon21-Aug-10 7:59
mvePete O'Hanlon21-Aug-10 7:59 
GeneralRe: C# Getting Responce From Form1 Pin
C.CoderCreator21-Aug-10 14:00
C.CoderCreator21-Aug-10 14:00 
GeneralRe: C# Getting Responce From Form1 Pin
Pete O'Hanlon21-Aug-10 21:13
mvePete O'Hanlon21-Aug-10 21:13 
GeneralRe: C# Getting Responce From Form1 Pin
C.CoderCreator21-Aug-10 21:51
C.CoderCreator21-Aug-10 21:51 
GeneralRe: C# Getting Responce From Form1 Pin
Pete O'Hanlon22-Aug-10 3:17
mvePete O'Hanlon22-Aug-10 3:17 
GeneralRe: C# Getting Responce From Form1 Pin
DaveyM6922-Aug-10 4:32
professionalDaveyM6922-Aug-10 4:32 
GeneralRe: C# Getting Responce From Form1 Pin
DaveyM6922-Aug-10 5:14
professionalDaveyM6922-Aug-10 5:14 
GeneralRe: C# Getting Responce From Form1 Pin
Pete O'Hanlon22-Aug-10 5:28
mvePete O'Hanlon22-Aug-10 5:28 
GeneralRe: C# Getting Responce From Form1 Pin
DaveyM6922-Aug-10 5:45
professionalDaveyM6922-Aug-10 5:45 
QuestionWindows service cannot able to start Pin
sekannak21-Aug-10 1:18
sekannak21-Aug-10 1:18 
AnswerRe: Windows service cannot able to start Pin
OriginalGriff21-Aug-10 2:11
mveOriginalGriff21-Aug-10 2:11 
AnswerRe: Windows service cannot able to start Pin
PIEBALDconsult21-Aug-10 4:24
mvePIEBALDconsult21-Aug-10 4:24 
QuestionItems in ComboBox Pin
igalep13221-Aug-10 0:56
igalep13221-Aug-10 0:56 
AnswerRe: Items in ComboBox Pin
Dave Kerr21-Aug-10 1:17
mentorDave Kerr21-Aug-10 1:17 

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.