NAV 2009 R2 Add-In problem resize panel in a page

Spycoclown
Member Posts: 13
Hallo,
I have an Add-In it rezise when i pull the page bigger, the width size is working without any problem but the height isn't working.
If i make the page bigger in small steps it works but if maximize the page it cut off the half Add-In in the height, the width still work.
in my Add-In i have a the Event:
and in the methode panel_Resize i have:
if i put a MessageBox.Show(Convert.ToString(panel.Size.Height)); after the new Size it shows the right height but it don't update in the page.
maybe any one have an idea how i can get this problem solved.
With kind regards,
Leo
I have an Add-In it rezise when i pull the page bigger, the width size is working without any problem but the height isn't working.
If i make the page bigger in small steps it works but if maximize the page it cut off the half Add-In in the height, the width still work.
in my Add-In i have a the Event:
panel.Resize +=new EventHandler(panel_Resize);
and in the methode panel_Resize i have:
this.panel.Size = new Size(panel.Size.Width, (panel.Size.Width / 3));
if i put a MessageBox.Show(Convert.ToString(panel.Size.Height)); after the new Size it shows the right height but it don't update in the page.
maybe any one have an idea how i can get this problem solved.
With kind regards,
Leo
0
Comments
-
I don't know the Size constructor, but isen't that width and height?
Because now I only see width and width as parameters0 -
that's true, if i maximize the Page it only change the width. It never change the height so i have to cheat. and that is the problem.
i want the width and the height to be changed but NAV only change the width so i use the width to change the height, it works but i have now the problem with the update of the page, that i still see the panel cut off at the height of the previous size, after change the size again it get show in the right way for 1 second and then it get cut off again.0 -
after you set the height, do you call a redraw of the add-in?0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions