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

 ·addin开发提问兼    »显示摘要«
    摘要: 1、codefunction的parameters集合中的codeelement可转换为哪种接口?换种说法是如何获取参数的类型? 2、如果获取事件代理的定义? 3、如何增加事件响应代码到当前类中? 4、为何自定义方法或其它元素的注释代码不能获取?包括在代码窗口引用自己的类库时无法看见提示? 5、哪里有vsusercontrolhostlib.dll下载? ......
    摘要: 我的数据库用的是sql,我写了个存储过程,每当新增一条记录时,都用output参数返回这条记录的主键,主键是自增的。但在页面代码中调用这个存储过程的时候,返回来的结果总是为空,郁闷! ......


DrawImage出错,不知道哪里错了。

private   int   oo,uu;  
                  private   Graphics   gs;  
   
   
  private   void   Form1_Load(object   sender,   System.EventArgs   e)  
  {  
  oo=100;  
  uu=200;  
  }  
   
  private   void   cxh()  
  {  
  gs.Clear(this.BackColor);  
  gs.DrawImage(this.imageList1.Images[0],oo,uu);  
  }  
   
  private   void   Form1_KeyDown(object   sender,   System.Windows.Forms.KeyEventArgs   e)  
  {  
  switch(e.KeyCode)  
  {  
  case   Keys.Left:  
  oo=oo-5;  
  cxh();  
  break;  
  case   Keys.Right:  
  oo=oo+5;  
  cxh();  
  break;  
  case   Keys.Up:  
  uu=uu-5;  
  cxh();  
  break;  
  case   Keys.Down:  
  uu=uu+5;  
  cxh();  
  break;  
  }  
  }  
   
  private   void   Form1_Paint(object   sender,   System.Windows.Forms.PaintEventArgs   e)  
  {  
          gs=e.Graphics;  
  cxh();  
  }

NO.1   作者: weisunding

加入以下代码就解决  
   
    private   void   Form1_KeyDown(object   sender,   KeyEventArgs   e)  
                  {  
                          //加入这行!!!!!!!!!!!!!!!!  
                          gs   =   this.CreateGraphics();  
   
                          switch   (e.KeyCode)  
                          {  
                            ...  
                  }


 ·指针问题,谁能给点解释    »显示摘要«
    摘要: #include "stdafx.h" #include <iostream.h> void main( int argc, char **argv ) { void strcopy(char *,char*); char a[]="hello,world!"; char b[20]; strcopy(b,a); cout<<......
» 本期热门文章:

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