What's new

Help Paano po mawala error na to? c# prog

Status
Not open for further replies.

shion_

Eternal Poster
Established
Joined
Apr 28, 2016
Posts
1,176
Reaction
381
Points
465
1111.png
 

Attachments

alising mo yung new kasi nasa loob ka ng main saka ilagay mo sa baba yang global variable mo.

like this


C#:
public frm_student_entry() {
    InitializeComponent();
}

public Student _student;


void YourFunction(){
    _student = new Student();
}
 
alising mo yung new kasi nasa loob ka ng main saka ilagay mo sa baba yang global variable mo.

like this


C#:
public frm_student_entry() {
    InitializeComponent();
}

public Student _student;


void YourFunction(){
    _student = new Student();
}
ayaw pa din po
 
Need mo ba talaga gawing global variable yang Student?
I do suggest make a function that will get and return the students
 
Status
Not open for further replies.

Similar threads

Back
Top