Symbianize Forum

Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.

All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!

[HELP] C# - Pass Items From Listview to Another Form in Listview

borandiie

Recruit
Basic Member
Messages
17
Reaction score
0
Points
16
Mga boss patulong po. Sa form1 may listview ako dun na nilalagayan ko ng laman. Tapos yung laman nung listview ko sa Form1 kailangan maipasa ko sa Form2 Listview. Sobrang maapreciate ko po kung sino man makakatulong sakin. Badly need mga boss dalawang oras ng kong nag se-search pero di ko talaga mahanap. TIA! :)
 
Last edited:
e d gawin mo din ung query na ginamit mo dun sa Listview1 mo.
 
ang maganda jan gawa ka ng class jan mo sasave yung mga data tapos kapag ilalagay mo sa form 2 doon mo na lang kunin hindi na sa form 1
 
lagyan mo ng getter/setter methods yung classes mo (public dapat). halimbawa kung person yung class, getAge, getFullName, setAge, setFirstName, setLastName, etc..
this way, pwede ma access ng ibang class yung class na gusto mong kunan ng value..
 
lagyan mo ng getter/setter methods yung classes mo (public dapat). halimbawa kung person yung class, getAge, getFullName, setAge, setFirstName, setLastName, etc..
this way, pwede ma access ng ibang class yung class na gusto mong kunan ng value..

Boss di ko ma gets yung getter/setter methods. Meron bang tutorial nun dito? Or kung pwede po paki explain lang ng very light? Pasensya sa demand boss ah di ko talaga sya ma gets e. Salamats!
 
getter/setter are just functions that enable you to give or accept data from your Object to other Objects, like for example you have a abstraction of a Computer object, to get its memory, you have to call it like
float memKB = ComputerObjectInstance.getMemoryInKiloBytes();
where getMemoryInKiloBytes is a function inside your class then setter will be like initializing that abstraction's data in which in this case like
setComputerMemoryInKiloBytes(float memorySize))
, assuming na nasa Form yung ListView mo, bale gagawan mo ng way para magkaroon ng setter and getter si local listview that way, you can pass it to other Objects/Classes. malaking subject yung OOP, malamang baka di mo ko ma gets, lalo na kung wala kang background sa CS, pero if you focus lilinaw din yan.
 
Back
Top Bottom