使用vb6在vsflexgrid中的ComboBox [英] ComboBox in vsflexgrid using vb6

查看:409
本文介绍了使用vb6在vsflexgrid中的ComboBox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建1个VSFlexGrid,每个行的特定列中包含comboBox,每行的ComboBox具有不同的值。



怎么可能?



有人能帮帮我吗?



提前致谢。

I want to create 1 VSFlexGrid which contain comboBox in a particular column for each row and each row''s ComboBox have different value.

how is it possible?

can anybody help me?

Thanks in advance.

推荐答案

没有直接的方法可以做到这一点。然而,有一种方法,这里是逻辑。



1.有一个FlexGrid,更改单元格高度以匹配组合框的高度

2.将CombBox放到Form上并适当地设置其边框样式。

3.然后单击(rowcolchange)检测单击了哪个单元格并将组合框移动到相应的单元格。

4.然后当组合框失去焦点时,将组合框中的文本写入相应的单元格。



请请点击以下链接:)



[ ^ ]
There is no direct way to do this. However there is one method and here''s the logic.

1. Have a FlexGrid, change the cell height to match the combo box''s height
2. Drop a CombBox onto the Form and set its border style approriately.
3. Then on click (rowcolchange) detect which cell has been clicked and move the combo box to the corresponding cell.
4. Then when the combo box loses focus then write the text in the combo box into the corresponding cell.

Please go with below link :)

[^]


这篇关于使用vb6在vsflexgrid中的ComboBox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆