几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   SolidWorks二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=111)
-   -   【转帖】access combobox from outside the userpmpage (http://www.dimcax.com/hust/showthread.php?t=4988)

yang686526 2009-04-12 10:56 PM

【转帖】access combobox from outside the userpmpage
 
access combobox from outside the userpmpage
i used the addin wizard to create a new addin.
in the userpmpage.vb (in class userpmpage) i added two combo boxes.
i fill first combobox with items, when my user pmpage is created.
combobox2 is emty.
now i want to fill combobox2 with new items if user change selection in combobox1, but how can i do this.
on the oncomboboxselectionchanged (pmphandler) i have no access to combobox2.
can somebody help me pleas?
answer ok, solved my problem myself:
instead of normal variable declaration use:
friend shared combobox2 as propertymanagerpagecombobox
edited: 03/06/2009 at 05:36 pm by georg draxler
quick


所有的时间均为北京时间。 现在的时间是 06:10 PM.