If ArcReaderControl application loses focus while opening and WindowState is Maximized, then map display gets clipped.
上次发布: August 31, 2014ArcGIS for Desktop
漏洞 ID 编号
NIM042359
已提交
February 12, 2009
上次修改时间
June 5, 2024
适用范围
ArcGIS for Desktop
找到的版本
9.3
编程语言
C#
操作系统
Windows OS
操作系统版本
XP
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
解决办法
1. Click “Restore Down” on top left corner of the application (middle button) and click again same button (Maximize) to get the correct map display.2. Another workaround: a. Comment-out code line, “this.WindowState = FormWindowState.Maximized;” in Form1_Load event. b. Comment/Uncomment code of Program.cs as following. The key thing here is to “minimize” and then “maximize”. If comment-out code line, “Form1.WindowState = FormWindowState.Minimized;” then you’ll see the same (clipped map display) behavior.static void Main(){ Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Form1 Form1 = new Form1(); ApplicationContext applicationContext = new ApplicationContext(); applicationContext.MainForm = Form1; Form1.Show(); Form1.WindowState = FormWindowState.Minimized; Form1.WindowState = FormWindowState.Maximized; Application.Run(applicationContext); //Application.Run(new Form1());}