½Ð°Ý VB grid ,treeview ¸Ó¦p¦óÀ³¥Î©O¡H
- ©«¤l
- 3
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 4
- ÂI¦W
- 0
- §@·~¨t²Î
- OSX
- ³nÅ骩¥»
- 10.1
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2016-12-6
- ³Ì«áµn¿ý
- 2016-12-21
|
½Ð°Ý VB grid ,treeview ¸Ó¦p¦óÀ³¥Î©O¡H
¤j®a¦n¡A¥±`¤u§@¤W³£¬O¨Ï¥ÎVBA¤ñ¸û¦h¡A¥B¤w¥i¥HÀ³¥I¦h¼Æ»Ý¨D
³o¦¸«h¬O§Æ±æ¥i¥H§â¥L¥´¥]¦¨exe¤è«K¤j®a¨Ï¥Î
©Ò¥H·Q¥Î¢ä¢Ð°õ¦æ¡A
¤Wºô¬ã¨s¤F¤@¤U¦Û¤vªº»Ý¨D
¤jP¤W¾ã²z»Ýn¥Î¨ìªº¬O grid , ¯x°} , ±_¦¡°j°é , treeview ´XÓ¥\¯à
¦ýn§â¥LÌ´ê°_¨Ó¹ê¦b¨S¦³ÀYºü¡A¦]¦¹·Qn¤W¨Ó½Ð±Ð¤j®a¬O§_¥i¥Hµ¹ÂI°g¬z©O¡H·PÁ¦U¦ì¡I
»Ý¨D»¡©ú¡G
1.§Ú¥´ºâÅý¨Ï¥ÎªÌ¦Û°Ê¿é¤JEXCELÀɮ׶i¥hgrid
2.°Â¤@Ó¤å¦r¿é¤Jªk®Ø
3.¨Ì·Ó¨Ï¥ÎªÌ¿é¤Jªº¤å¦r¥h grid ´M§ä ¡A¨Ã§âµ²ªG¥Îtree§e²{
·j´M³W«h¦p¹Ï
¦pªG¨Ï¥ÎªÌ¿é¤J¢Ðªº¸Ü
«h¥h·j´M¤å¦r¢Ð¡A±a¥X«á¤è¤å¦r¬°¾ðª¬²Ä¤G¼h¡u3+C+F¡v
¥Ñ©ó¡u¡u3+C+F¡v¤S¦³ÃöÁä¦r¡A©Ò¥Hsplit C ¸ò ¢Ô¡A¦A¥h·j´M¢Ñ±o¨ì¡u4¡v¡A©M·j´MF±o¨ì¡u6+G¡v
¨Ì¦¹Ãþ±À¤@ª½§ä¨ì¨S¦³^¤å¦r¡A«h¬O¾ð®Ú³Ì¥½ºÝµ²§ô¡I |
|
|
|
|
|
|
- ©«¤l
- 552
- ¥DÃD
- 3
- ºëµØ
- 0
- ¿n¤À
- 578
- ÂI¦W
- 0
- §@·~¨t²Î
- win7
- ³nÅ骩¥»
- office 2010
- ¾\ŪÅv
- 50
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2015-2-8
- ³Ì«áµn¿ý
- 2024-7-9
|
¦^´_ 1# xfp4oqu
n§¹¦¨datagridview¡Btreeview¡Aº¥ýnÁA¸Ñ"¸ê®Æµ²ºc"¡A¨Ì§AExcelÀɮ׹Ϩӻ¡n§¹¦¨treeview¬O«Ü§xÃøªº¦]¬°¾ãÓµ²ºc´N¬O¿ùªº
treeview¤¤ªº¨CÓ¸`ÂI³sµ²»Ýn¦³¸ê®ÆÃöÁp©Ê¡A¦p¤U¹Ï¡GParentCode¥i¥H¹ïÀ³¨ìCode¡A¹Ï¤¤ParentCode=0 ªº ¬O"¤÷¸`ÂI"(©Î®Ú¸`ÂI)
´N¬O©ñ¦b®ÚÃþ¤¤¡A¦ÓParentCode=1ªº«h¬O¹ïÀ³¨ìCode= 1¡A¤]´N¬O»¡ParentCode=1¬OCode= 1ªº¤l¸`ÂI¡A¨Ì¦¹Ãþ±À¡C
¦A¹B¥Î±_ª¬»¼Âk¥[¸ü¼Æ¾Ú¡A´N¥i¥H¸ü¤J
¦A¨Ó¬O"±¦Vª«¥ó"(¤j³°¥Î»y¬O"±¦V¹ï¶H")¡A¹ï "Ãþ" ªº»{ª¾ ¨äÃþ¤¤ªºÄÝ©Ê¡B¤èªk¡B¨Æ¥ó¤]n¦³¬Û·íªº²z¸Ñ¤~¦æ¡C
³o¨ÇY¬O³£¤£²M·¡µ¹§A¥N½X§A¤]¤£·|קï¨ì§A»Ýnªºµ{«×¡C
datagridview´N¤ñ¸û²³æ"¨Ç"¡A¥un¹ï"±¦Vª«¥ó"ÁA¸Ñ¡A¦A¨Ó´Nª«¥ó¸j©wª«¥ó§Y¥i¤F
¥H¤WÁöµM¥u´X¥y¸Ü¡A¦ý¸Ì±©Òn¾Ç²ßªºª¾ÃѶW¦h¡A¤£¬O¤T¨¥¨â»y´N¥i¥H»¡ªº©ú¥Õ
³Ì«á¦Aµ¹§AÓ«Øij¡A¤£n¥ÎExcel¥h°µ¡A¥Î¸ê®Æ®w§a¡IExcel¥i¥H¥Î¦b³Ì«áªº¹Ïªí¡Bpºâ¡B²Îp¤W¡A¦ý¤£n¥Î¦b¸ê®Æµ²ºc¤W¡A²¦³º¥L¤£¬O¸ê®Æ®w |
-
-
aa.png
(19.78 KB)
|
|
|
|
|
|
- ©«¤l
- 3
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 4
- ÂI¦W
- 0
- §@·~¨t²Î
- OSX
- ³nÅ骩¥»
- 10.1
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2016-12-6
- ³Ì«áµn¿ý
- 2016-12-21
|
«D±`·PÁ±zªº¦^ÂÐ
§Ú«Ü»{¯uªº¬ãŪ±zªº¦^ÂÐ,
¬Ý¨Ó§Ú§âtreeview·Q±o¤Ó²³æ¤F
§Ú¤@ª½¥H¬°§Ú¥i¥H§â·j´Mªºµ²ªG¥á¶i¥h¯x°} , µM«á¾ðª¬¦A¥Îi+ªº¤è¦¡¤@¼h¤@¼hªº¥hªø¥X¥Lªº®Ú¸`ÂI
¦]¬°¬On¼¶¼g²{³õPLCªºµ{¦¡¤ÀªR
¥¼¨Ó¥i¯àn§â¥¦µo®i¦¨¤@Ó¬d¸ß¤u¨ã
¥Î¸ê®Æ®w¬O³Ì¦nªº¤è¦¡~¦ý²{¶¥¬q¬[ºc¤W¦ü¥G¤£¤¹³\§Ú´Â³o¤è¦V¶i¦æ XD |
|
|
|
|
|
|
- ©«¤l
- 3
- ¥DÃD
- 1
- ºëµØ
- 0
- ¿n¤À
- 4
- ÂI¦W
- 0
- §@·~¨t²Î
- OSX
- ³nÅ骩¥»
- 10.1
- ¾\ŪÅv
- 10
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2016-12-6
- ³Ì«áµn¿ý
- 2016-12-21
|
«D±`·PÁ±zªº¦^ÂÐ
§Ú«Ü»{¯uªº¬ãŪ±zªº¦^ÂÐ,
¬Ý¨Ó§Ú§âtreeview·Q±o¤Ó²³æ¤F
§Ú¤@ª½¥H¬°§Ú¥i¥H§â·j´Mªºµ² ...
xfp4oqu µoªí©ó 2016-12-21 13:19
A I+8
B G
C E
D H+I
E A+D
F F+H
G I+6
H 4
I J+1
J 9
¿é¤J¼ÆÈ : ¢Ò
D
¢Ú H+I
¢Ú H
¢Ú 4
I
¢Ú J+1
¢Ú 1
¢Ú J
¢Ú 9 |
|
|
|
|
|
|