C# WINFORM怎么加载本地地图API?
1个回答
展开全部
//创建显示加载地图
PictureBox pictureB1;
Label lb1;
public void JiaZai_CheLoad()
{
int tabcheight = int.Parse((this.tabControl1.Size.Height / 2).ToString())-70;
int tabwidth = int.Parse((this.tabControl1.Size.Width / 2).ToString())-20;
pictureB1 = new PictureBox();
try
{
pictureB1.Image = Image.FromFile(Application.StartupPath + "\\Image\\indicator_medium.gif");
}
catch { }
pictureB1.Size = new Size(48, 37);
pictureB1.Location = new Point(tabwidth, tabcheight);
lb1 = new Label();
lb1.AutoSize = false;
lb1.Font = new System.Drawing.Font("宋体", 12.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
lb1.Location = new Point(tabwidth-40, tabcheight+40);
lb1.Size = new System.Drawing.Size(160, 17);
lb1.Text = "正在载入车辆....";
this.tabPage1.Controls.Add(pictureB1);
this.tabPage1.Controls.Add(lb1);
}
PictureBox pictureB1;
Label lb1;
public void JiaZai_CheLoad()
{
int tabcheight = int.Parse((this.tabControl1.Size.Height / 2).ToString())-70;
int tabwidth = int.Parse((this.tabControl1.Size.Width / 2).ToString())-20;
pictureB1 = new PictureBox();
try
{
pictureB1.Image = Image.FromFile(Application.StartupPath + "\\Image\\indicator_medium.gif");
}
catch { }
pictureB1.Size = new Size(48, 37);
pictureB1.Location = new Point(tabwidth, tabcheight);
lb1 = new Label();
lb1.AutoSize = false;
lb1.Font = new System.Drawing.Font("宋体", 12.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
lb1.Location = new Point(tabwidth-40, tabcheight+40);
lb1.Size = new System.Drawing.Size(160, 17);
lb1.Text = "正在载入车辆....";
this.tabPage1.Controls.Add(pictureB1);
this.tabPage1.Controls.Add(lb1);
}
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询