Click here to Skip to main content
16,006,845 members
Home / Discussions / C#
   

C#

 
QuestionI need help with how to make space between the lines of code Pin
john231316-Apr-09 19:25
john231316-Apr-09 19:25 
AnswerRe: I need help with how to make space between the lines of code Pin
_Maxxx_16-Apr-09 19:45
professional_Maxxx_16-Apr-09 19:45 
AnswerRe: I need help with how to make space between the lines of code Pin
Christian Graus16-Apr-09 19:46
protectorChristian Graus16-Apr-09 19:46 
AnswerRe: I need help with how to make space between the lines of code Pin
Christian Graus16-Apr-09 19:46
protectorChristian Graus16-Apr-09 19:46 
GeneralRe: I need help with how to make space between the lines of code Pin
MumbleB16-Apr-09 20:01
MumbleB16-Apr-09 20:01 
AnswerRe: I need help with how to make space between the lines of code Pin
shashank70116-Apr-09 22:25
shashank70116-Apr-09 22:25 
QuestionSerialise Additional Members in a class inherited from collectionbase Pin
Big Star16-Apr-09 17:30
Big Star16-Apr-09 17:30 
AnswerRe: Serialise Additional Members in a class inherited from collectionbase Pin
Henry Minute17-Apr-09 1:45
Henry Minute17-Apr-09 1:45 
Have you tried assigning a value to QuestionSetVer? e.g. public string QuestionSetVer = "1.0";

BTW are you inheriting from CollectionBase for a specific reason? It is not Type-safe and will come back to bite you in the end.
If you use generics it all becomes much simpler.

Replacing:
[Serializable()]
public class Questions : CollectionBase
{
    public string QuestionSetVer = "";

    public Questions(){}

    public Ques this[int index] { get { return (Ques)List[index]; } set { List[index] = value; } }
    .
    .
    .
}

with
[Serializable()]
public class Questions : List<ques>
{
    private string questionSetVer = "";
    .
    .
    .
    public string QuestionSetVer
    {
        get
        {
            return this.questionSetVer;
        }

        set
        {
            this.questionSetVer = value;
        }
    }
}
</ques>


will make your life easier in the long run. Notice also that I have replaced your public field with a private field and a public property, so as to conform to the data-hiding principles of OOP.

Henry Minute

Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”

Questioni want execute my c# login exe without windows log in Pin
prakashamnkl16-Apr-09 17:14
prakashamnkl16-Apr-09 17:14 
AnswerRe: i want execute my c# login exe without windows log in Pin
Christian Graus16-Apr-09 17:19
protectorChristian Graus16-Apr-09 17:19 
Questionlist directories in Ftp Pin
Abdul Rahman Hamidy16-Apr-09 16:45
Abdul Rahman Hamidy16-Apr-09 16:45 
AnswerRe: list directories in Ftp Pin
Luc Pattyn16-Apr-09 17:02
sitebuilderLuc Pattyn16-Apr-09 17:02 
GeneralRe: list directories in Ftp Pin
Abdul Rahman Hamidy16-Apr-09 21:13
Abdul Rahman Hamidy16-Apr-09 21:13 
GeneralRe: list directories in Ftp Pin
Luc Pattyn17-Apr-09 1:49
sitebuilderLuc Pattyn17-Apr-09 1:49 
GeneralRe: list directories in Ftp Pin
Abdul Rahman Hamidy17-Apr-09 9:23
Abdul Rahman Hamidy17-Apr-09 9:23 
GeneralRe: list directories in Ftp Pin
Luc Pattyn17-Apr-09 9:30
sitebuilderLuc Pattyn17-Apr-09 9:30 
Questionshortcut key fired from a button Pin
khuram_younis16-Apr-09 15:18
khuram_younis16-Apr-09 15:18 
AnswerRe: shortcut key fired from a button Pin
_Maxxx_16-Apr-09 16:20
professional_Maxxx_16-Apr-09 16:20 
QuestionHow to copy some files from one folder to other with multithreading in visual C#? Pin
Hadi Basiri16-Apr-09 13:59
Hadi Basiri16-Apr-09 13:59 
AnswerRe: How to copy some files from one folder to other with multithreading in visual C#? Pin
fly90416-Apr-09 14:25
fly90416-Apr-09 14:25 
GeneralRe: How to copy some files from one folder to other with multithreading in visual C#? Pin
buachaill cliste16-Apr-09 14:40
buachaill cliste16-Apr-09 14:40 
Answerlazy lazy lazy lazy lazy Pin
Luc Pattyn16-Apr-09 14:30
sitebuilderLuc Pattyn16-Apr-09 14:30 
GeneralRe: lazy lazy lazy lazy lazy Pin
Christian Graus16-Apr-09 15:48
protectorChristian Graus16-Apr-09 15:48 
GeneralRe: lazy lazy lazy lazy lazy Pin
Luc Pattyn16-Apr-09 15:51
sitebuilderLuc Pattyn16-Apr-09 15:51 
GeneralRe: lazy lazy lazy lazy lazy Pin
Christian Graus16-Apr-09 15:55
protectorChristian Graus16-Apr-09 15:55 

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.