C# 상태바에서 프로그래스 컨트롤 사이즈변경(Autosize a progress bar within a status strip)

C# 상태바에 놓여 있는 ProgressBar의 크기를 변경하는 코드

먼저 컨트롤의 크기를 자동조절하지 못하도록 설정한다
toolStripStatus.AutoSize = false;
toolStripProgress.AutoSize = false;
그리고 Form의 Resize 이벤트 핸들러에 다음과 같이 코딩한다.
단 여기서 주의 해야 할 것은 StatusStrip에 놓여진 컨트롤들은 실제 윈도우의 폭이 지정된 폭보다 적으면 컨트롤을 숨긴다.
예를 들어 프로그래스바의 넓이를 설정했을 떼 우측부분이 윈도우의 우측끝을 벗어나게 되면 잘려서 표시되는 것이 아니라 컨트롤 자체를 숨기게 된다.
이부분 때문에 혼란이 있을 수 있으므로 화면사이즈 보다 적게 너비를 설정해야 한다는 것 명심하자.

private void Form_Resize(object sender, EventArgs e)
{
  toolStripStatus.Width = statusStrip.Width / 3; //Progress Bar 앞에 있는 컨트롤의 넓이를 조절
  toolStripProgress.ProgressBar.Left = toolStripStatus.Bounds.Right+1;//Progress Bar의 위치를 이동하고
  toolStripProgress.Width = statusStrip.Width - (toolStripStatus.Width+ toolStripTime.Width + 75); //Progress Bar의 폭을 설정한다.
}

“C# 상태바에서 프로그래스 컨트롤 사이즈변경(Autosize a progress bar within a status strip)”의 159개의 댓글

  1. I simply want to tell you that I am beginner to weblog and really loved you’re blog site. Probably I’m likely to bookmark your website . You certainly come with incredible article content. With thanks for sharing with us your webpage.

  2. I was really pleased to locate this web-site. I intended to thanks for your time for this remarkable read!! I definitely enjoying every little of it and I have you bookmarked to have a look at new things you post.

  3. Greetings! This is my first comment here so I just wanted to give a quick shout out and say I really enjoy reading your blog posts. Can you suggest any other blogs/websites/forums that cover the same topics? Thank you!

  4. I don’t even know how I stopped up here, but I believed this post was great. I don’t recognise who you might be however definitely you’re going to a well-known blogger in the event you are not already. Cheers!

  5. 핑백: Topcamtube.com

  6. 핑백: https://sun-plumbing.info/water-heater-services-in-sunset-beach-ca-90742

  7. 핑백: fun88

  8. 핑백: VR80 12ga Shotgun

  9. 핑백: XFINITY Store by Comcast

  10. 핑백: dơi bay vào nhà báo điềm gì

  11. I simply want to tell you that I am newbie to blogging and site-building and really savored you’re web blog. Almost certainly I’m going to bookmark your blog . You amazingly have outstanding well written articles. Thanks a lot for sharing your web page.

  12. 핑백: nằm mơ thấy dòi

  13. 핑백: tải bắn cá siêu thị cuamobi

  14. 핑백: đứt tay chảy máu là điềm gì

  15. Good site! I really love how it is simple on my eyes and the data are well written. I’m wondering how I might be notified when a new post has been made. I’ve subscribed to your RSS which must do the trick! Have a nice day!

  16. I simply want to say I am just beginner to weblog and certainly enjoyed your page. Almost certainly I’m want to bookmark your blog post . You certainly come with wonderful posts. Bless you for sharing your web-site.

  17. Today, I went to the beach front with my kids. I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She placed the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear. She never wants to go back! LoL I know this is totally off topic but I had to tell someone!

  18. hello there and thanks in your info – I have certainly picked up anything new from proper here. I did however expertise some technical issues using this website, since I experienced to reload the website a lot of occasions previous to I could get it to load correctly. I had been pondering if your web hosting is OK? Now not that I’m complaining, but sluggish loading instances occasions will often impact your placement in google and could harm your high-quality ranking if advertising and ***********|advertising|advertising|advertising and *********** with Adwords. Well I am adding this RSS to my email and can glance out for a lot extra of your respective exciting content. Ensure that you replace this again very soon..

  19. Hey I am so grateful I found your blog page, I really found you by error, while I was looking on Bing for something else, Anyhow I am here now and would just like to say thank you for a fantastic post and a all round exciting blog (I also love the theme/design), I don’t have time to go through it all at the moment but I have bookmarked it and also added your RSS feeds, so when I have time I will be back to read much more, Please do keep up the fantastic job.

  20. What i don’t understood is actually how you are not really much more well-liked than you may be now. You are so intelligent. You realize thus significantly relating to this subject, made me personally consider it from a lot of varied angles. Its like men and women aren’t fascinated unless it is one thing to accomplish with Lady gaga! Your own stuffs nice. Always maintain it up!

  21. I just want to mention I am just very new to blogs and certainly enjoyed your page. Probably I’m going to bookmark your website . You really have fabulous well written articles. Thanks for sharing with us your web-site.

  22. I discovered your weblog site on google and examine a couple of of your early posts. Proceed to keep up the very good operate. I just additional up your RSS feed to my MSN News Reader. In search of ahead to studying more from you afterward!? I’m typically to running a blog and i actually admire your content. The article has really peaks my interest. I’m going to bookmark your site and hold checking for brand new information.

  23. Aw, this was an extremely good post. Finding the time and actual effort to produce a great article… but what can I say… I procrastinate a lot and don’t seem to get nearly anything done.

  24. I have learned some important things through your website post. One other point I would like to express is that there are several games available and which are designed specifically for toddler age children. They incorporate pattern identification, colors, family pets, and designs. These generally focus on familiarization in lieu of memorization. This will keep children engaged without sensing like they are learning. Thanks

  25. I am curious to find out what blog platform you’re using? I’m having some minor security problems with my latest site and I would like to find something more secure. Do you have any recommendations?

  26. Thanks for giving your ideas. I might also like to express that video games have been at any time evolving. Technology advances and enhancements have assisted create reasonable and active games. All these entertainment games were not really sensible when the actual concept was being attempted. Just like other forms of technological innovation, video games way too have had to progress via many decades. This itself is testimony to the fast progression of video games.

  27. It’s a pity you don’t have a donate button! I’d without a doubt donate to this fantastic blog! I suppose for now i’ll settle for book-marking and adding your RSS feed to my Google account. I look forward to new updates and will talk about this blog with my Facebook group. Talk soon!

  28. Youre so cool! I dont suppose Ive read anything like this before. So good to search out anyone with some unique thoughts on this subject. realy thank you for beginning this up. this web site is something that’s needed on the internet, someone with a little originality. useful job for bringing one thing new to the web!

  29. There are some interesting points in time in this article however I don’t know if I see all of them middle to heart. There’s some validity however I’ll take maintain opinion until I look into it further. Good article , thanks and we wish extra! Added to FeedBurner as nicely

  30. I found your blog web site on google and test a number of of your early posts. Continue to keep up the superb operate. I simply extra up your RSS feed to my MSN Information Reader. Seeking forward to reading extra from you later on!…

  31. Today, I went to the beachfront with my children. I found a sea shell and gave it to my 4 year old daughter and said “You can hear the ocean if you put this to your ear.” She put the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear. She never wants to go back! LoL I know this is totally off topic but I had to tell someone!

  32. Aw, this was a really nice post. In idea I would like to put in writing like this additionally – taking time and precise effort to make a very good article… but what can I say… I procrastinate alot and not at all seem to get something done.

  33. Wow that was odd. I just wrote an very long comment but after I clicked submit my comment didn’t show up. Grrrr… well I’m not writing all that over again. Anyway, just wanted to say fantastic blog!

  34. What i don’t realize is actually how you’re now not actually much more smartly-preferred than you might be right now. You are so intelligent. You understand therefore significantly when it comes to this subject, produced me in my opinion imagine it from numerous varied angles. Its like women and men are not interested until it is something to do with Lady gaga! Your own stuffs excellent. Always care for it up!

  35. Oh my goodness! Incredible article dude! Thank you so much, However I am encountering troubles with your RSS. I don’t understand the reason why I cannot subscribe to it. Is there anyone else having the same RSS problems? Anybody who knows the solution will you kindly respond? Thanx!

  36. Hello I am so grateful I found your blog, I really found you by error, while I was searching on Aol for something else, Anyhow I am here now and would just like to say thanks a lot for a marvelous post and a all round entertaining blog (I also love the theme/design), I don’t have time to look over it all at the minute but I have bookmarked it and also added your RSS feeds, so when I have time I will be back to read a great deal more, Please do keep up the fantastic job.

  37. You can certainly see your enthusiasm within the work you write. The sector hopes for even more passionate writers like you who aren’t afraid to say how they believe. At all times follow your heart.

  38. Good post. I learn something totally new and challenging on websites I stumbleupon on a daily basis. It will always be exciting to read through articles from other authors and use something from their websites.

  39. I’m amazed, I have to admit. Rarely do I encounter a blog that’s equally educative and interesting, and without a doubt, you have hit the nail on the head. The issue is something that not enough people are speaking intelligently about. Now i’m very happy I stumbled across this in my hunt for something concerning this.

  40. You could certainly see your expertise in the paintings you write. The world hopes for more passionate writers like you who are not afraid to say how they believe. At all times go after your heart.

  41. I loved as much as you will receive carried out right here. The sketch is tasteful, your authored material stylish. nonetheless, you command get got an edginess over that you wish be delivering the following. unwell unquestionably come more formerly again since exactly the same nearly a lot often inside case you shield this hike.

  42. Nice read, I just passed this onto a colleague who was doing a little research on that. And he actually bought me lunch because I found it for him smile So let me rephrase that: Thank you for lunch!

  43. Hello There. I discovered your blog the usage of msn. This is a really neatly written article. I will make sure to bookmark it and come back to learn extra of your useful information. Thank you for the post. I will definitely comeback.

  44. I’m also commenting to make you be aware of of the fine experience my friend’s child experienced using your web page. She noticed a wide variety of details, most notably what it’s like to possess an awesome teaching nature to let a number of people without problems know just exactly certain complicated things. You truly did more than our own desires. Many thanks for displaying the interesting, trustworthy, explanatory and as well as cool guidance on this topic to Lizeth.

  45. I would like to thnkx for the efforts you have put in writing this site. I am hoping the same high-grade blog post from you in the future too. In fact your creative writing abilities has encouraged me to get my own blog going now. Actually blogging is spreading its wings and growing fast. Your write up is a good example.

  46. Great website you have here but I was wanting to know if you knew of any forums that cover the same topics talked about in this article? I’d really love to be a part of group where I can get suggestions from other experienced people that share the same interest. If you have any recommendations, please let me know. Thanks!

  47. Undeniably imagine that that you stated. Your favorite justification appeared to be on the internet the easiest thing to consider of. I say to you, I certainly get annoyed even as other folks think about issues that they plainly do not understand about. You managed to hit the nail upon the top and also defined out the whole thing with no need side effect , other folks could take a signal. Will probably be back to get more. Thanks

  48. hello there and thank you for your info – I have certainly picked up anything new from right here. I did however expertise a few technical issues using this web site, as I experienced to reload the site a lot of times previous to I could get it to load correctly. I had been wondering if your web host is OK? Not that I am complaining, but slow loading instances times will often affect your placement in google and could damage your quality score if advertising and marketing with Adwords. Anyway I am adding this RSS to my email and can look out for a lot more of your respective fascinating content. Make sure you update this again soon..

  49. It’s really a nice and helpful piece of information. I’m glad that you shared this useful information with us. Please keep us up to date like this. Thanks for sharing.

  50. You really make it seem so easy with your presentation but I find this topic to be really something that I think I would never understand. It seems too complicated and extremely broad for me. I’m looking forward for your next post, I will try to get the hang of it!

  51. Hey There. I discovered your weblog the use of msn. That is an extremely neatly written article. I will make sure to bookmark it and return to learn extra of your useful information. Thank you for the post. I will certainly comeback.

  52. Hey There. I found your blog using msn. This is an extremely well written article. I’ll make sure to bookmark it and return to read more of your useful information. Thanks for the post. I’ll definitely return.

  53. After looking at a handful of the blog posts on your web site, I honestly appreciate your technique of blogging. I added it to my bookmark site list and will be checking back soon. Take a look at my website as well and let me know how you feel.

  54. I am really impressed with your writing skills as well as with the layout on your weblog. Is this a paid theme or did you modify it yourself? Anyway keep up the excellent quality writing, it is rare to see a great blog like this one these days..

  55. There are a handful of intriguing points on time in this post but I don’t know if I see these center to heart. There is certainly some validity but I’ll take hold opinion until I look into it further. Excellent post , thanks and that we want a lot more! Added onto FeedBurner likewise

  56. 핑백: regression testing

  57. Hello there! This is my 1st comment here so I just wanted to give a quick shout out and say I really enjoy reading through your posts. Can you suggest any other blogs/websites/forums that go over the same subjects? Many thanks!

  58. I’m really enjoying the theme/design of your blog. Do you ever run into any web browser compatibility issues? A couple of my blog readers have complained about my site not working correctly in Explorer but looks great in Opera. Do you have any suggestions to help fix this problem?

  59. Hmm it looks like your blog ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well am an aspiring blog writer but I’m still new to everything. Do you have any helpful hints for newbie blog writers? I’d really appreciate it.

  60. With everything which seems to be building inside this particular subject material, your perspectives happen to be relatively radical. However, I beg your pardon, because I can not give credence to your entire plan, all be it stimulating none the less. It appears to us that your commentary are not completely rationalized and in reality you are generally yourself not even wholly certain of your argument. In any event I did enjoy looking at it.

  61. Thanks for sharing excellent informations. Your website is very cool. I’m impressed by the details that you’ve on this blog. It reveals how nicely you perceive this subject. Bookmarked this website page, will come back for more articles. You, my pal, ROCK! I found just the info I already searched everywhere and just could not come across. What a perfect web-site.

  62. You actually make it seem really easy together with your presentation but I find this topic to be actually one thing which I believe I would by no means understand. It seems too complex and very huge for me. I am looking forward in your next put up, I’ll attempt to get the cling of it!

  63. I’m really enjoying the theme/design of your weblog. Do you ever run into any internet browser compatibility problems? A few of my blog audience have complained about my website not operating correctly in Explorer but looks great in Safari. Do you have any tips to help fix this problem?

  64. Have you ever considered about including a little bit more than just your articles? I mean, what you say is important and everything. However imagine if you added some great photos or video clips to give your posts more, “pop”! Your content is excellent but with pics and video clips, this website could definitely be one of the greatest in its niche. Awesome blog!

  65. Greetings from Colorado! I’m bored to tears at work so I decided to check out your blog on my iphone during lunch break. I really like the information you provide here and can’t wait to take a look when I get home. I’m amazed at how fast your blog loaded on my cell phone .. I’m not even using WIFI, just 3G .. Anyways, awesome site!

  66. Undeniably imagine that that you stated. Your favorite reason seemed to be at the web the simplest factor to take into accout of. I say to you, I definitely get irked even as people think about concerns that they plainly do not realize about. You managed to hit the nail upon the top and outlined out the whole thing without having side-effects , other folks could take a signal. Will probably be again to get more. Thank you

  67. I have been exploring for a bit for any high quality articles or blog posts on this sort of area . Exploring in Yahoo I at last stumbled upon this site. Reading this information So i am happy to convey that I have an incredibly good uncanny feeling I discovered just what I needed. I most certainly will make sure to do not forget this website and give it a glance on a constant basis.

  68. Attractive component to content. I simply stumbled upon your weblog and in accession capital to assert that I get in fact enjoyed account your blog posts. Any way I’ll be subscribing for your augment or even I achievement you access persistently rapidly.

  69. Throughout this awesome design of things you get an A just for effort and hard work. Exactly where you lost us was first on your particulars. You know, as the maxim goes, details make or break the argument.. And it couldn’t be more correct here. Having said that, allow me tell you exactly what did deliver the results. The authoring is certainly very engaging and this is probably the reason why I am making an effort to opine. I do not make it a regular habit of doing that. Second, whilst I can easily see a jumps in reasoning you come up with, I am not necessarily confident of how you seem to connect the ideas which inturn produce the actual conclusion. For now I will, no doubt yield to your point however wish in the foreseeable future you actually link the facts better.

  70. Thanks for your whole efforts on this blog. Ellie really likes making time for research and it is simple to grasp why. Many of us notice all about the lively ways you create functional suggestions through your web site and as well as encourage contribution from the others on the matter while our child is always learning so much. Have fun with the remaining portion of the year. You have been performing a useful job.

  71. Great goods from you, man. I have understand your stuff previous to and you’re just too wonderful. I really like what you’ve acquired here, certainly like what you are stating and the way in which you say it. You make it entertaining and you still take care of to keep it sensible. I cant wait to read much more from you. This is actually a great site.

댓글 남기기