Welcome Guest [Log In] [Register]
Welcome to Scisforums. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
[Support]Activtiy 3 c#; who needs help?
Topic Started: Jul 3 2010, 10:38 PM (841 Views)
malufett
Member Avatar
Pentium 4
[ *  *  *  *  * ]
Just post your questions and we are proud to help you...^^
Posted Image
Ragnarok 3rd Jobs Development : http://svn6.assembla.com/svn/ReAM_
Accepting Paid Services
Limit Ragnarok Online(LimitRO)


The Quality Maker
powered by: rudolp
Offline Profile Quote Post Goto Top
 
insolence
Member Avatar
Dual Core
[ *  *  *  *  *  *  * ]
malufett
Jul 3 2010, 10:38 PM
Just post your questions and we are proud to help you...^^
pahelp po... panu ung pag sinelect mo sa tree eh mahihighlight ung nasa listview?? tnx
I Played RF online and Became on of the TOP players
Then I got banned permanently cause of the DDM SK bug
I Played RF Olympic and Owned the Highlevels
Then I got banned for Camping Once
Yet the CW urge is still coming back to me
Offline Profile Quote Post Goto Top
 
Fuzzy Wuzzy
Member Avatar
Pentium 1
[ * ]
pwede tutorial?

Creating a listview with an "excel" look (lolz not sure about the term)

add a listview to your form (grouped under the common controls)
under the "view" property, set it to detail mode (see image below)
Posted Image

then just add the columns and their corresponding items using the columns and items property

Think of the list view item as the "title" of the row,
which means that its "Text" property will set the text of the first column (more info on this later)
(Take note that list view items will not show when there are no columns)

Now, for adding values to the next columns, of course, well have to add more columns first
then go to a list view item and look for the "Subitems", adding subitems corresponds to adding
an item for each column, for example: you have 3 columns, then you add a list item with
"woot" as its text. "woot" will show in the first column, if you add two subitems to "woot",
in this case "woot woot" and "weew woot", these two will show up in the second and third
column respectively. So thats all for today, tomorrow ill post a tutorial on how
to add an image to the first column (as seen in sir montes' program) as well as the coding aspect
such as how to set the texts to the list view item and how to toggle between largeiconist and detail view

insolence
Jul 4 2010, 07:20 PM
malufett
Jul 3 2010, 10:38 PM
Just post your questions and we are proud to help you...^^
pahelp po... panu ung pag sinelect mo sa tree eh mahihighlight ung nasa listview?? tnx
if (your condition here)
{ listviewitem1.Items.Selected = true; }

like

for( i = 0; i < listviewitem1.Items.Count; i++){

if (listviewitem1.items.Text.equals("angie"))
{ listviewitem1.Items.Selected = true; }

}
Edited by Fuzzy Wuzzy, Jul 4 2010, 07:37 PM.
Posted Image
Q: What do you call a programmer with super powers?
A: Super Montes
Offline Profile Quote Post Goto Top
 
insolence
Member Avatar
Dual Core
[ *  *  *  *  *  *  * ]
Fuzzy Wuzzy
Jul 4 2010, 07:23 PM
pwede tutorial?

Creating a listview with an "excel" look (lolz not sure about the term)

add a listview to your form (grouped under the common controls)
under the "view" property, set it to detail mode (see image below)
Posted Image

then just add the columns and their corresponding items using the columns and items property

Think of the list view item as the "title" of the row,
which means that its "Text" property will set the text of the first column (more info on this later)
(Take note that list view items will not show when there are no columns)

Now, for adding values to the next columns, of course, well have to add more columns first
then go to a list view item and look for the "Subitems", adding subitems corresponds to adding
an item for each column, for example: you have 3 columns, then you add a list item with
"woot" as its text. "woot" will show in the first column, if you add two subitems to "woot",
in this case "woot woot" and "weew woot", these two will show up in the second and third
column respectively. So thats all for today, tomorrow ill post a tutorial on how
to add an image to the first column (as seen in sir montes' program) as well as the coding aspect
such as how to set the texts to the list view item and how to toggle between largeiconist and detail view

insolence
Jul 4 2010, 07:20 PM
malufett
Jul 3 2010, 10:38 PM
Just post your questions and we are proud to help you...^^
pahelp po... panu ung pag sinelect mo sa tree eh mahihighlight ung nasa listview?? tnx
if (your condition here)
{ listviewitem1.Items.Selected = true; }

like

for( i = 0; i < listviewitem1.Items.Count; i++){

if (listviewitem1.items.Text.equals("angie"))
{ listviewitem1.Items.Selected = true; }

}
yah the thing is if i did that it wont be highlited for the focus is not on that control, its on the tree view... kaya wala padin ung highlight na gs2 kong lumabas... hows dat? T_T or do I just have to change the back color of that listview item to illustrate a highlight event? XD
I Played RF online and Became on of the TOP players
Then I got banned permanently cause of the DDM SK bug
I Played RF Olympic and Owned the Highlevels
Then I got banned for Camping Once
Yet the CW urge is still coming back to me
Offline Profile Quote Post Goto Top
 
malufett
Member Avatar
Pentium 4
[ *  *  *  *  * ]
anu ba ang ibig mong sabihin sa highlight? yung my ibang kulay?
Posted Image
Ragnarok 3rd Jobs Development : http://svn6.assembla.com/svn/ReAM_
Accepting Paid Services
Limit Ragnarok Online(LimitRO)


The Quality Maker
powered by: rudolp
Offline Profile Quote Post Goto Top
 
insolence
Member Avatar
Dual Core
[ *  *  *  *  *  *  * ]
malufett
Jul 4 2010, 09:50 PM
anu ba ang ibig mong sabihin sa highlight? yung my ibang kulay?
tignan mo sa sample ni sir... palabas ka muna ng mga listahan ng pangalan... tas select ka ng pangalan sa tree view tas un mahihighlight ung nasa kabilang panel... diba hindi pwd mag select ng dalawang item na magkaiba ung container nila?? correct me if im right XD
I Played RF online and Became on of the TOP players
Then I got banned permanently cause of the DDM SK bug
I Played RF Olympic and Owned the Highlevels
Then I got banned for Camping Once
Yet the CW urge is still coming back to me
Offline Profile Quote Post Goto Top
 
scisadmin
Member Avatar
Administrator
[ *  *  *  *  *  * ]
yup, hindi nga pwedeng dalawa ung nakafocus. kasi laging isang control lang nakafocus. pero about dun sa proj ni sir, you can (parang) focus 2 objects by first setting the property of the list view which is (HideSelection) to False..

then do the processing.. parang ganito

if(may nagclick sa tree view)
kunin mo ung category nung tao na yun
idisplay mo ung category sa listview
tapos idetermine mo kung similar ung nick name nung nasa treeview sa list view.. then kung similar, get the index then set its "Selected" property to true.

*NOTE! cenxa kung ganito ko inexplain... para naman may challenge.. hahaha..
*NOTE ULIT! d ako sure kung possible ung ("tapos idetermine mo kung similar ung nick name nung nasa treeview sa list view.. then kung similar, get the index then set its "Selected" property to true.").. basing on my observations lang kasi eh. ehehe

HAPPY POSTING! :D
Posted Image

"Failure doesn't mean you won't succeed, it means you haven't succeeded yet"
Offline Profile Quote Post Goto Top
 
insolence
Member Avatar
Dual Core
[ *  *  *  *  *  *  * ]
scisadmin
Jul 4 2010, 10:56 PM
yup, hindi nga pwedeng dalawa ung nakafocus. kasi laging isang control lang nakafocus. pero about dun sa proj ni sir, you can (parang) focus 2 objects by first setting the property of the list view which is (HideSelection) to False..

then do the processing.. parang ganito

if(may nagclick sa tree view)
kunin mo ung category nung tao na yun
idisplay mo ung category sa listview
tapos idetermine mo kung similar ung nick name nung nasa treeview sa list view.. then kung similar, get the index then set its "Selected" property to true.

*NOTE! cenxa kung ganito ko inexplain... para naman may challenge.. hahaha..
*NOTE ULIT! d ako sure kung possible ung ("tapos idetermine mo kung similar ung nick name nung nasa treeview sa list view.. then kung similar, get the index then set its "Selected" property to true.").. basing on my observations lang kasi eh. ehehe

HAPPY POSTING! :D
tried that po sir pero kasi walang nickname sa list view, full name ung nandun hehe eh sa treelist lng ung may nickname... pero na associate ko nmn ung dalawang un gamit ung nasa generic list ko ng users... so reading that its impossible to select 2 items from different controls... backcolor nlng po ung papalitan ko no? XD

uhm kasi po pag nawala ung focus nia sa list view mawawala rin mo ung selected eh... kumbaga parang wala padin nangyari... di nmn nahihighlight ung item sa list view o_0 parang bang pag may 2 folder ka tas nagselect ka sa isang folder tas punta ka sa kabilang folder diba mag gregrey padin ung selected item dun sa folder na hindi nkafocus
ay kuya admin... ung IndexKey ba same as var.name?
Edited by insolence, Jul 4 2010, 11:09 PM.
I Played RF online and Became on of the TOP players
Then I got banned permanently cause of the DDM SK bug
I Played RF Olympic and Owned the Highlevels
Then I got banned for Camping Once
Yet the CW urge is still coming back to me
Offline Profile Quote Post Goto Top
 
scisadmin
Member Avatar
Administrator
[ *  *  *  *  *  * ]
pwede rin nman gnun.. palitan mo nlang ung back color.. hahaha.. :D

yup.. alam ko magkaiba un.

Posted Image

"Failure doesn't mean you won't succeed, it means you haven't succeeded yet"
Offline Profile Quote Post Goto Top
 
mynameismorrie
Member Avatar
Pentium 2
[ *  * ]
Mga kuya, bakit daw po ung columns may extrang isa?? Pwede ba un na alisin po??
Posted Image
TEGAN RAIN QUIN is my happiness. :]
Offline Profile Quote Post Goto Top
 
insolence
Member Avatar
Dual Core
[ *  *  *  *  *  *  * ]
mynameismorrie
Jul 5 2010, 05:12 PM
Mga kuya, bakit daw po ung columns may extrang isa?? Pwede ba un na alisin po??
sis adjust mo lng ung size ng colums mo parent control size / 3 ^^ tas do the necessary adjustments nlng para sumakto ung edge nung listview mo sa 3rd column... tas lagyan mo ng event handler ung listview mo when resized tas do the same computations
scisadmin
Jul 4 2010, 10:56 PM
yup, hindi nga pwedeng dalawa ung nakafocus. kasi laging isang control lang nakafocus. pero about dun sa proj ni sir, you can (parang) focus 2 objects by first setting the property of the list view which is (HideSelection) to False..

then do the processing.. parang ganito

if(may nagclick sa tree view)
kunin mo ung category nung tao na yun
idisplay mo ung category sa listview
tapos idetermine mo kung similar ung nick name nung nasa treeview sa list view.. then kung similar, get the index then set its "Selected" property to true.

*NOTE! cenxa kung ganito ko inexplain... para naman may challenge.. hahaha..
*NOTE ULIT! d ako sure kung possible ung ("tapos idetermine mo kung similar ung nick name nung nasa treeview sa list view.. then kung similar, get the index then set its "Selected" property to true.").. basing on my observations lang kasi eh. ehehe

HAPPY POSTING! :D
tnx po hehe naka di ko lng pla na false ung hideselection... tnx mo ng marami ^^
Edited by insolence, Jul 5 2010, 08:05 PM.
I Played RF online and Became on of the TOP players
Then I got banned permanently cause of the DDM SK bug
I Played RF Olympic and Owned the Highlevels
Then I got banned for Camping Once
Yet the CW urge is still coming back to me
Offline Profile Quote Post Goto Top
 
mynameismorrie
Member Avatar
Pentium 2
[ *  * ]
thank you po :]
Posted Image
TEGAN RAIN QUIN is my happiness. :]
Offline Profile Quote Post Goto Top
 
Firestarter-
Member Avatar
Celeron 2
[ *  *  *  *  *  * ]
master rudolp :D
Posted Image
Offline Profile Quote Post Goto Top
 
iamYASSER
Member Avatar
Pentium 1
[ * ]
Helloooo, do you have any idea kung bakit ayaw mag-appear nung form na niloload ko?

here's the code

private void contactDetailsToolStripMenuItem_Click(object sender, EventArgs e)
{
frmDetails details = new frmDetails();
details.Show();
}
i tried showDialog() method pero ayaw din. Can anybody help me with this?
Offline Profile Quote Post Goto Top
 
scisadmin
Member Avatar
Administrator
[ *  *  *  *  *  * ]
hmmmm??.. it is correct in its syntax...

try commenting out the codes inside the method then replace it by
messagebox.show("hello");
if this appears then the form is the flaw.. but if it does not appear, then the method is wrong.... If you can't debug it, you can send me the whole program.. I will be glad to debug it for you. :D

GOD BLESS!
Posted Image

"Failure doesn't mean you won't succeed, it means you haven't succeeded yet"
Offline Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Programming · Next Topic »
Add Reply


Latest posts is now loading...Please wait...
Free Domain Name Service