Click here to Skip to main content
15,906,261 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to get contents of cache memory in c#? Pin
Swapnil 200926-Oct-09 0:04
Swapnil 200926-Oct-09 0:04 
Questionproblem with custom control properties value Pin
Lyon Sun25-Oct-09 23:18
Lyon Sun25-Oct-09 23:18 
Hi, all,

I am doing with a custom control in WinForms, and there is one customed integer type property, say, currentLine, declared in that custom control class with the following code:
private int currentLine;

public int CurrentLine
{
    get { return currentLine; }
    set { currentLine = value; }
}

but this property's value should be restricted between 1 and 100.
How to make this happen, so that a value smaller than 1, or bigger than 100 is rejected to be entered in properties window at designer time?
Any suggestions are so much appreciated!! Thanks.

Br!

Sun
AnswerMessage Closed Pin
25-Oct-09 23:35
stancrm25-Oct-09 23:35 
GeneralRe: problem with custom control properties value Pin
Lyon Sun25-Oct-09 23:45
Lyon Sun25-Oct-09 23:45 
GeneralRe: problem with custom control properties value Pin
Lyon Sun26-Oct-09 0:01
Lyon Sun26-Oct-09 0:01 
AnswerRe: problem with custom control properties value Pin
Abhishek Sur25-Oct-09 23:42
professionalAbhishek Sur25-Oct-09 23:42 
GeneralRe: problem with custom control properties value Pin
Lyon Sun25-Oct-09 23:59
Lyon Sun25-Oct-09 23:59 
QuestionHow to get contents of cache memory in c#? Pin
snakeway42025-Oct-09 23:17
snakeway42025-Oct-09 23:17 
AnswerRe: How to get contents of cache memory in c#? Pin
Abhishek Sur25-Oct-09 23:34
professionalAbhishek Sur25-Oct-09 23:34 
QuestionOpening one file by two processes at same time in C# Pin
MikeSharp25-Oct-09 23:05
MikeSharp25-Oct-09 23:05 
AnswerRe: Opening one file by two processes at same time in C# Pin
Not Active25-Oct-09 23:16
mentorNot Active25-Oct-09 23:16 
AnswerRe: Opening one file by two processes at same time in C# Pin
Abhishek Sur25-Oct-09 23:29
professionalAbhishek Sur25-Oct-09 23:29 
QuestionHow to reference a DLL from a custom folder Pin
hirajhil25-Oct-09 22:22
hirajhil25-Oct-09 22:22 
AnswerRe: How to reference a DLL from a custom folder Pin
Christian Graus25-Oct-09 22:33
protectorChristian Graus25-Oct-09 22:33 
GeneralRe: How to reference a DLL from a custom folder Pin
hirajhil25-Oct-09 22:36
hirajhil25-Oct-09 22:36 
GeneralRe: How to reference a DLL from a custom folder Pin
Abhishek Sur25-Oct-09 22:52
professionalAbhishek Sur25-Oct-09 22:52 
GeneralRe: How to reference a DLL from a custom folder Pin
Giorgi Dalakishvili25-Oct-09 22:55
mentorGiorgi Dalakishvili25-Oct-09 22:55 
QuestionPowerShell Cmdlets Pin
satsumatable25-Oct-09 21:02
satsumatable25-Oct-09 21:02 
QuestionThanks for all Pin
Abdaqader25-Oct-09 20:37
Abdaqader25-Oct-09 20:37 
AnswerRe: Thanks for all Pin
Christian Graus25-Oct-09 21:17
protectorChristian Graus25-Oct-09 21:17 
AnswerRe: Thanks for all Pin
Pete O'Hanlon25-Oct-09 22:04
mvePete O'Hanlon25-Oct-09 22:04 
JokeRe: Thanks for all Pin
musefan25-Oct-09 23:00
musefan25-Oct-09 23:00 
AnswerRe: Thanks for all Pin
Nagy Vilmos25-Oct-09 23:04
professionalNagy Vilmos25-Oct-09 23:04 
GeneralRe: Thanks for all Pin
Richard MacCutchan26-Oct-09 4:29
mveRichard MacCutchan26-Oct-09 4:29 
GeneralRe: Thanks for all Pin
Nagy Vilmos26-Oct-09 6:07
professionalNagy Vilmos26-Oct-09 6:07 

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.