|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
crazy UserControlcircular volume control (no actual circle is shown). The Size is 90,97 I fire up VB2005, Select Windows Application, add a couple of buttons and my user control. The buttons are just to run the code that sets the volume to a preset value. The control displayed is the correct size (90,97). Everything works as expected. I can even grab the volume pointer and drag to some other setting. Now I load up my application and go to the proper form. I place the user control, from the toolbox, onto my form. The size becomes 105, 119 (not the expected 90,97). I cannot change the size !! Notice that the aspect ratios are not the same. I've tried setting it to Autosize=True and GrowandShrink. Nothing helps. Where oh where did I go wrong? GalenS Hi Galen,
The default constructor of your control has the clue. Make sure you are putting in the right values in there. Hope this helps. -- Show quoteHide quoteRadhakrishna Banavalikar Vasant-Vihar, Thane, INDIA. "Galen Somerville" wrote: > I have a user control with a Panel and five Labels. The end result is a > circular volume control (no actual circle is shown). The Size is 90,97 > > I fire up VB2005, Select Windows Application, add a couple of buttons and my > user control. The buttons are just to run the code that sets the volume to a > preset value. > > The control displayed is the correct size (90,97). Everything works as > expected. I can even grab the volume pointer and drag to some other setting. > > Now I load up my application and go to the proper form. I place the user > control, from the toolbox, onto my form. The size becomes 105, 119 (not the > expected 90,97). I cannot change the size !! Notice that the aspect ratios > are not the same. > > I've tried setting it to Autosize=True and GrowandShrink. Nothing helps. > > Where oh where did I go wrong? > > GalenS > > > I set up this Circular Volume control using the procedures in Help. I
believe it was setting up a Clock user control. That Clock control and the way my control operates is purely coincidental. I have put the user control on my web site and I would appreciate someone looking at it to see why it doesn't resize correctly. http://home.surewest.net/galen/index.html under Downloads. The control would typically be setup using the following: CircVol1.Name = "A" CircVol1.BackColor = Me.BackColor CircVol1.VolVal = 128 Clicking any label sets the volume to that position. Clicking anywhere in the Panel (Orange color) sets the volume to that position because of Mouse events. Dragging anywhere in Panel moves the volume accordingly. Thanks GalenS "Radhakrishna Banavalikar" <RadhakrishnaBanavali***@discussions.microsoft.com> wrote in message Show quoteHide quote news:1E90C7C0-EE42-4A64-94A1-4B08A37F57DB@microsoft.com... > Hi Galen, > > The default constructor of your control has the clue. Make sure you are > putting in the right values in there. > > Hope this helps. > -- > Radhakrishna Banavalikar > Vasant-Vihar, Thane, INDIA. > > > "Galen Somerville" wrote: > >> I have a user control with a Panel and five Labels. The end result is a >> circular volume control (no actual circle is shown). The Size is 90,97 >> >> I fire up VB2005, Select Windows Application, add a couple of buttons and >> my >> user control. The buttons are just to run the code that sets the volume >> to a >> preset value. >> >> The control displayed is the correct size (90,97). Everything works as >> expected. I can even grab the volume pointer and drag to some other >> setting. >> >> Now I load up my application and go to the proper form. I place the user >> control, from the toolbox, onto my form. The size becomes 105, 119 (not >> the >> expected 90,97). I cannot change the size !! Notice that the aspect >> ratios >> are not the same. >> >> I've tried setting it to Autosize=True and GrowandShrink. Nothing helps. >> >> Where oh where did I go wrong? >> >> GalenS >> >> >> Hi Galen,
Thanks for posting! From your description, my understanding is that you drag the current control to a "proper" form, and then the size of the control will be resized. If I have misunderstood anything, please let me know. I have downloaded your control and performed the test. Unfortunately, I can not repro the current issue. So, I think maybe there is something unclearly for the "proper" form which was mentioned before. In this scenario, I attach my project here. Please indicate whether my project is correct. If not, supplying a demo which can repro the current issue is appreciated. The attachment which is zipped format is my project for the issue. Thanks for your understanding! Regards, Yuan Ren [MSFT] Microsoft Online Support ====================================================== PLEASE NOTE the newsgroup SECURE CODE and PASSWORD were updated on February 14, 2006. Please complete a re-registration process by entering the secure code mmpng06 when prompted. Once you have entered the secure code mmpng06, you will be able to update your profile and access the partner newsgroups. ====================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from this issue. ====================================================== This posting is provided "AS IS" with no warranties, and confers no rights. ====================================================== Yuan Ren
Did you get my direct Email on this subject? For some reason I couldn't make a reply via the newsgroup. GalenS ""Yuan Ren[MSFT]"" <v-y***@online.microsoft.com> wrote in message Show quoteHide quote news:F9M3k4OQGHA.5892@TK2MSFTNGXA03.phx.gbl... > Hi Galen, > > Thanks for posting! > > From your description, my understanding is that you drag the current > control to a "proper" form, and then the size of the control will be > resized. If I have misunderstood anything, please let me know. > > I have downloaded your control and performed the test. Unfortunately, I > can > not repro the current issue. So, I think maybe there is something > unclearly > for the "proper" form which was mentioned before. In this scenario, I > attach my project here. Please indicate whether my project is correct. If > not, supplying a demo which can repro the current issue is appreciated. > > The attachment which is zipped format is my project for the issue. > > Thanks for your understanding! > > Regards, > > Yuan Ren [MSFT] > Microsoft Online Support > ====================================================== > PLEASE NOTE the newsgroup SECURE CODE and PASSWORD were > updated on February 14, 2006. Please complete a re-registration process > by entering the secure code mmpng06 when prompted. Once you have > entered the secure code mmpng06, you will be able to update your profile > and access the partner newsgroups. > ====================================================== > When responding to posts, please "Reply to Group" via your newsreader > so that others may learn and benefit from this issue. > ====================================================== > This posting is provided "AS IS" with no warranties, and confers no > rights. > ====================================================== Hi Galen,
Thanks for your reply! My alias is v-y***@online.microsoft.com (remove .online). Thanks, Yuan Ren [MSFT] Microsoft Online Support As a guess (I can't see any code for your control), try overriding the
DefaultSize property to return a size of (90, 97) Show quoteHide quote "Galen Somerville" <galen@community.nospam> wrote in message news:%23q1tdNzPGHA.5592@TK2MSFTNGP11.phx.gbl... >I have a user control with a Panel and five Labels. The end result is a >circular volume control (no actual circle is shown). The Size is 90,97 > > I fire up VB2005, Select Windows Application, add a couple of buttons and > my user control. The buttons are just to run the code that sets the volume > to a preset value. > > The control displayed is the correct size (90,97). Everything works as > expected. I can even grab the volume pointer and drag to some other > setting. > > Now I load up my application and go to the proper form. I place the user > control, from the toolbox, onto my form. The size becomes 105, 119 (not > the expected 90,97). I cannot change the size !! Notice that the aspect > ratios are not the same. > > I've tried setting it to Autosize=True and GrowandShrink. Nothing helps. > > Where oh where did I go wrong? > > GalenS > >
tranferring data from Access to SQL Server Express
USB Pen Drive Detection - Retrieving Dates are Evil! HELP! Baffeled by Treeview Nodes Index!!!!! Class in a module or class in a class? What's going on in this ADO2 code Cannot add MSWord reference Countdown/pause/resume timer Very Unpredictable ListBox Behaviour Maximized form questions |
|||||||||||||||||||||||