Hi,
By Zoom, do you mean "blowing up" the items inside the ComboBox? If so,
how are you sizing the items (font size or ownerdraw or ?). Are you
certain you don't specify the zoom value at some point, effectively
overriding the user.
On Thu, 11 Jan 2007 08:57:30 +0100, biffo71 <(E-Mail Removed)> wrote:
> ... it's driving me crazy ...
>
> I trying to make a zoom-combo like word :
> I have my items:
> 10%
> 50%
> 100%
> fit to page
>
> and I want, after the user has selected "fit to page", to set the
> combo text to a calculated value .
>
> It's impossible !!!
>
> private void cmbZoom_SelectedIndexChanged(object sender,
> System.EventArgs e)
> {
> int newtext=calcVal();
> cmbZoom.Text=newtext.ToString() //after this point the new text is
> set, and I can see it
> } //at this point the old "fit to page" is come back.
>
> thank you for any suggestion !!
>
--
Happy Coding!
Morten Wennevik [C# MVP]
|