Forum  Core :: SDK (Vi...  Bug Reports  NumericUpDown ValueChanged Event trigger on LostFocus
Previous Previous
 
Next Next
New Post 7/3/2009 8:32 AM
  duco
6 posts
No Ranking


NumericUpDown ValueChanged Event trigger on LostFocus 

Hi.

I'm using Visual WebGui 6.3.7a for .NET 3.5, trying to use the ValueChanged event in the NumericUpDown, but the event fires when the control lose the focus.

 This is the Control i'm using and it's propertyes:

            //
            // tbPercDescto
            //
            this.tbPercDescto.DecimalPlaces = 2;
            this.tbPercDescto.HideButtons = true;
            this.tbPercDescto.Increment = new decimal(new int[] {
            1,
            0,
            0,
            0});
            this.tbPercDescto.Location = new System.Drawing.Point(374, 48);
            this.tbPercDescto.Maximum = new decimal(new int[] {
            99999,
            0,
            0,
            0});
            this.tbPercDescto.Minimum = new decimal(new int[] {
            0,
            0,
            0,
            0});
            this.tbPercDescto.Name = "tbPercDescto";
            this.tbPercDescto.Size = new System.Drawing.Size(75, 20);
            this.tbPercDescto.TabIndex = 1;
            this.tbPercDescto.TextAlign = Gizmox.WebGUI.Forms.HorizontalAlignment.Left;
            this.tbPercDescto.ThousandsSeparator = true;
            this.tbPercDescto.UpDownAlign = Gizmox.WebGUI.Forms.LeftRightAlignment.Left;
            this.tbPercDescto.Value = new decimal(new int[] {
            1,
            0,
            0,
            0});
            this.tbPercDescto.ValueChanged += new System.EventHandler(this.tbPercDescto_ValueChanged);

 

And this is the code i'm trying to use in the Event:

            if ((tbPercDescto.Focused) && (tbPercDescto.Value > 0))
            {
                tbVlrDesconto.Value = (tbPreco.Value * tbPercDescto.Value) / 100;
            }

 

Any help is appreciated, Thanks.

 

Giovanni

 

 
New Post 7/3/2009 7:11 PM
  palli
11189 posts
1st Level Poster




Re: NumericUpDown ValueChanged Event trigger on LostFocus 

Hi Giovanni and welcome to the forums,

I tested NumericUpDown ValueChanged event both in 6.3.7a and 6.3.8 and I could not reproduce what you describe.

Best way to describe those problems is by creating a most minimal application that demonstrates the problem(s) and then send your application to support [at] visualwebgui [dot] com (see my signature at the bottom) with a link to this forum thread, along with some description about how to reproduce the problem.

Please also clean the solution before compressing it and reply to this post after sending, so we will know to check for your support request.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 7/6/2009 6:08 AM
  duco
6 posts
No Ranking


Re: NumericUpDown ValueChanged Event trigger on LostFocus 

I'm doing some more tests, but it seens my installation was Bugged.


I had an old version of the WebGui SDK that allowd to use design mode in Visual studio, i have uninstalled this old version and installed the new one over, and it was still allowing me to use the Design mode in VS2008, i have only noticed that the Design mode cannot be used in VS2008 when i installed the sdk at home.

I'm using the express version now and i'll test all over again, Binding a class with a datamember was not working before and it's working fine now, soon i'll test the numeric up/down value changed event and if anything goes wrong, ill report.

 

Ty for your attention and sorry for my bad English :P

 
New Post 7/7/2009 4:15 PM
  palli
11189 posts
1st Level Poster




Re: NumericUpDown ValueChanged Event trigger on LostFocus 

Hi Giovanni,

You are most welcome... I have absolutely no problem with your english, just glad you got it fixed.

Please reply here if you need any more help on the subject,

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  Core :: SDK (Vi...  Bug Reports  NumericUpDown ValueChanged Event trigger on LostFocus
Azure banner
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS