PC Review


Reply
Thread Tools Rate Thread

combobox SelectedIndexChanged event

 
 
biffo71
Guest
Posts: n/a
 
      11th Jan 2007
.... 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 !!

 
Reply With Quote
 
 
 
 
Morten Wennevik [C# MVP]
Guest
Posts: n/a
 
      11th Jan 2007
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]
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
combobox SelectedIndexChanged event biffo71 Microsoft C# .NET 2 11th Jan 2007 08:03 AM
combobox selectedindexchanged event tbrown Microsoft C# .NET 6 31st Dec 2006 02:14 PM
Suspend ComboBox SelectedIndexChanged event Joe Microsoft C# .NET 2 19th Feb 2005 12:28 AM
RE: Combobox SelectedIndex and SelectedIndexChanged event Bug =?Utf-8?B?RGV4dG9y?= Microsoft C# .NET 0 2nd Feb 2004 09:21 PM
ComboBox - SelectedIndexChanged Event Bug Neelima Godugu Microsoft Dot NET Compact Framework 4 8th Oct 2003 12:02 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:49 AM.