| 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: |
- Pages:
- 1
- 2
| [Support]Activtiy 3 c#; who needs help? | |
|---|---|
| Tweet Topic Started: Jul 3 2010, 10:38 PM (841 Views) | |
| malufett | Jul 3 2010, 10:38 PM Post #1 |
|
Pentium 4
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Just post your questions and we are proud to help you...^^ |
![]() Ragnarok 3rd Jobs Development : http://svn6.assembla.com/svn/ReAM_ Accepting Paid Services Limit Ragnarok Online(LimitRO) The Quality Maker powered by: rudolp | |
![]() |
|
| insolence | Jul 4 2010, 07:20 PM Post #2 |
![]()
Dual Core
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
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 | |
![]() |
|
| Fuzzy Wuzzy | Jul 4 2010, 07:23 PM Post #3 |
![]()
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) ![]() 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 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.
|
![]() Q: What do you call a programmer with super powers? A: Super Montes | |
![]() |
|
| insolence | Jul 4 2010, 09:30 PM Post #4 |
![]()
Dual Core
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
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 | |
![]() |
|
| malufett | Jul 4 2010, 09:50 PM Post #5 |
|
Pentium 4
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
anu ba ang ibig mong sabihin sa highlight? yung my ibang kulay? |
![]() Ragnarok 3rd Jobs Development : http://svn6.assembla.com/svn/ReAM_ Accepting Paid Services Limit Ragnarok Online(LimitRO) The Quality Maker powered by: rudolp | |
![]() |
|
| insolence | Jul 4 2010, 10:18 PM Post #6 |
![]()
Dual Core
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
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 | |
![]() |
|
| scisadmin | Jul 4 2010, 10:56 PM Post #7 |
![]()
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!
|
![]() "Failure doesn't mean you won't succeed, it means you haven't succeeded yet" | |
![]() |
|
| insolence | Jul 4 2010, 11:07 PM Post #8 |
![]()
Dual Core
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
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 | |
![]() |
|
| scisadmin | Jul 5 2010, 07:23 AM Post #9 |
![]()
Administrator
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
pwede rin nman gnun.. palitan mo nlang ung back color.. hahaha.. yup.. alam ko magkaiba un. |
![]() "Failure doesn't mean you won't succeed, it means you haven't succeeded yet" | |
![]() |
|
| mynameismorrie | Jul 5 2010, 05:12 PM Post #10 |
![]()
Pentium 2
![]() ![]() ![]() ![]()
|
Mga kuya, bakit daw po ung columns may extrang isa?? Pwede ba un na alisin po?? |
TEGAN RAIN QUIN is my happiness. :] | |
![]() |
|
| insolence | Jul 5 2010, 07:21 PM Post #11 |
![]()
Dual Core
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
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 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 | |
![]() |
|
| mynameismorrie | Jul 6 2010, 09:33 PM Post #12 |
![]()
Pentium 2
![]() ![]() ![]() ![]()
|
thank you po :] |
TEGAN RAIN QUIN is my happiness. :] | |
![]() |
|
| Firestarter- | Jul 6 2010, 09:38 PM Post #13 |
|
Celeron 2
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
master rudolp
|
| |
![]() |
|
| iamYASSER | Jul 9 2010, 07:49 PM Post #14 |
|
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? |
![]() |
|
| scisadmin | Jul 9 2010, 07:57 PM Post #15 |
![]()
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. GOD BLESS! |
![]() "Failure doesn't mean you won't succeed, it means you haven't succeeded yet" | |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| Go to Next Page | |
| « Previous Topic · Programming · Next Topic » |
- Pages:
- 1
- 2





![]](http://z3.ifrm.com/static/1/pip_r.png)











3:01 AM Jul 12