我的项目中有一个进度条,第一次看起来它总是太大而且太远而且部分偏离屏幕。然后我使用它似乎做得很好。
我在放置它之前和之后尝试使用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
更多推荐
进度条位置不正确
发布评论