进度条位置不正确

编程入门 行业动态 更新时间:2024-10-28 04:25:00
本文介绍了进度条位置不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

我在放置它之前和之后尝试使用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

更多推荐

进度条位置不正确

本文发布于:2023-10-08 02:12:29,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1471213.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:不正确   进度条   位置

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!