当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

    摘要: 我现在要写一个音量控制的滑块控件,想做成类似windows mediaplayer 中的那种,三角形,拖动时伴随颜色变化。不知怎么做?不知谁有代码?100分相送!!! ......
 ·控件使用高手    »显示摘要«
    摘要: 现在我在网页上要使用自己做的控件,控件的事件里面带有参数,我该怎么获得事件里面的参数呢。 ......


DataGrid中能不能显示图片

WinForm中的DataGrid能不能在某些cell中显示图片?

NO.1   作者: snof

这儿有例子和源码?  
  http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q1019q  
   
  5.81   How   can   I   have   a   column   of   bitmaps   in   a   DataGrid?            
   
  You   can   derive   a   custom   columnstyle   and   override   its   Paint   method   to   draw   the   image.   Here   are   both   C#   and   VB.Net   samples.    
   
  The   Paint   override   offers   three   ways   to   draw   the   bimap   in   the   cell;   size   it   to   fit   the   cell   bounds,   size   it   proportionally   to   fit   the   cell   bounds,   and   draw   it   with   its   original   size   (clipping   the   bitmap   to   fit   in   the   cell   bounds).   In   the   sample,   the   DataGrid   is   anchored   on   all   four   sides,   so   as   you   size   the   form,   the   DataGrid   sizes   as   well.   The   dataGrid1_Resized   event   is   handled   to   dynamically   change   the   PreferredRowHeight   and   PreferredColumnWidth   so   the   cells   occupy   all   of   the   datagrids   client   area.   So,   as   you   size   the   form,   the   grid   cells   size   also   so   you   can   easily   see   the   bitmaps.  
     
 


 ·还是vc对word 的控制问题    »显示摘要«
    摘要: 我打算在程序里生成一些数据,在word中一表格(报表)的形式表现出来。报表的格式可以是word的一个模板,也可以是在vc动态生成。需要解决的问题是:vc如何透明的控制word(或word模板),如何对特定表格写数据(表格是不规范的),写完后,打开word可供用户修改,或打印。谢谢大家! ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE