C#运行时显示无法获取“AxDrawingControl”控件的窗口句柄

qq_34704182 2016-05-11 10:48:31
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(1060, 629);
this.Controls.Add(this.axDrawingControl1);
this.Controls.Add(this.menuStrip1);
this.Location = new System.Drawing.Point(2, 41);
this.MainMenuStrip = this.menuStrip1;
this.Name = "主界面";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "运行系统";
this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.axDrawingControl1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
...全文
312 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
赵4老师 2016-05-12
  • 打赏
  • 举报
回复
在64位Windows下: 64位exe和dll在目录c:\windows\system32目录下; 32位exe和dll在目录c:\windows\syswow64目录下; 所以要注意: 在win64位系统下注册32位ocx或dll需要将32位ocx或dll拷贝到c:\windows\syswow64\目录下。 且注册要用c:\windows\syswow64\regsvr32 xxxxxxx.ocx或dll

69,373

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧