进度条位置不正确 [英] Progress bar does not position properly

查看:97
本文介绍了进度条位置不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的项目中有一个进度条,第一次看起来它总是太大而且太远而且部分偏离屏幕。 然后我使用它似乎做得很好。


我在放置它之前和之后尝试使用Show(),并将visible设置为true。 但是没有任何工作。


(我已经离开我的电脑七年了,感觉我是一只蹒跚的腿蜷缩在一起蹒跚着等待我的腿长大的蜥蜴......但是喜欢这个代码!)


BadButBit




我的代码是完美的,直到我找不到一个错误

解决方案


为了解决这个问题,您可以尝试修复progressBar的位置并设置其大小。您可以使用以下代码来实现它:

 progressBar1.Location = new System.Drawing.Point(100,100); 
progressBar1.Size = new System.Drawing.Size(300,20);

问候,


Stanly


i have a progress bar in my project and the first time it appears its always too big and too far to the right and partly off the screen.  then subsequent times i use it it seems to be doing fine.

I've tried using Show() before and after placing it, as well as setting visible to true.  but nothing is working.

(I've been away from my computer for seven years and it feels like i'm a lizard with a torn leg hobbling around waiting for my leg to grow back... lovin' the code though!)

BadButBit


my code is perfect until i don't find a bug

解决方案

Hi,

In order to solve this problem, you can try to fix the position of progressBar and set its size. You can use the following code to achieve it:

    progressBar1.Location = new System.Drawing.Point(100, 100);
    progressBar1.Size = new System.Drawing.Size(300, 20);

Regards,

Stanly


这篇关于进度条位置不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆