473,856 Members | 1,622 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Editor Drop-Down Bug...

I wrote an editor for a web control that allows it to list all controls on a
page in a drop down box in the property grid. In the EditValue method, I
have the following (not all the code, but most of it):

^snip^
' Create the listbox to display the control id's.
listBox = New ListBox()

With listBox
.BorderStyle = BorderStyle.Non e
.Sorted = True
End With

' Get the find and replace control.
ctrl = DirectCast(cont ext.Instance, FindButton)

' Add the controls to the listbox.
AddListItems(li stBox, ctrl.Parent.Pag e.Controls)

' Turn off sorting.
listBox.Sorted = False

' Add the "None" item.
listBox.Items.I nsert(0, "None")

' If there is a value, select it.
If CStr(value) = String.Empty
listBox.Selecte dItem = "None"
Else
listBox.Selecte dIndex = listBox.FindStr ing(CStr(value) )
End If

' Display the list as a drop-down.
AddHandler _
listBox.Selecte dIndexChanged, _
AddressOf listBox_Selecte dIndexChanged
mEditorService. DropDownControl (listBox)
RemoveHandler _
listBox.Selecte dIndexChanged, _
AddressOf listBox_Selecte dIndexChanged

If listBox.Selecte dIndex >= 0
If listBox.Selecte dIndex = 0
Return String.Empty
Else
Return CStr(listBox.Se lectedItem)
End If
Else
Return CStr(value)
End If
^snip^

Now, when I compile and test it on a web page, in design mode, it works
fine. But if I select the property and open the drop-down box, then
(without selecting an item in the box) select another property the drop-down
box closes, but the property with the drop-down box gets reselected in the
property grid instead of the property I just clicked. Wierd bug and I can't
figure out how to stop it.

Can anyone help?

Thanks in advance, like always ;)

Mythran
Nov 21 '05 #1
0 1042

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

32
3707
by: Sticks | last post by:
i'm new to python and i was wondering what editors people prefer to use and why.
2
5065
by: Bharat | last post by:
My customers want to customize their website (style sheets, simple layout etc...). They want to do this using a web interface/admin site. I am trying to develop this admin website or buy/license this software. I think it comes under content management area as a WYSIWYG tool. But I am not sure. My development platform is dot net technologies. So I would like to do this using ASP.NET and other dot net technologies. Is there a good...
0
1358
by: ABrillant | last post by:
EditiX is a cross-platform and multi-purpose XML/XSLT Editor : http://www.editix.com News : - Surround CDATA action from the "edit" menu - Surround Comment action takes the place of the comment/uncomment action - Global performance improvement
2
1880
by: dado0583 | last post by:
Hi, I'm currently writing an XSLT Editor tool as part of a university project. I would like to know what those of you that use XSLT look for in an XSLT editor. Currently, the main features will be: - Load a DTD or schema, which is shown in a tree format, so that users can drag and drop desired XPaths into the .xsl text window. - Drag and drop xslt keywords into the text editor window. So for value-of, the following would be inserted....
3
1679
by: JPRoot | last post by:
Hi, When you use the Datagrid, editing TableStyles, you can add ColumnStyles using the design time editor. On the ColumnStyle design time editor, there is a Add button where there is a drop arrow where you can choose between a DataGridBoolColumn and DataGridTextBoxColumn to add. I wish to have the same exact dialog for my components with the difference that I would like to list in that drop arrow my own types. Actually I have a component...
6
1205
by: Rob T | last post by:
I need to write a 'simple' editor that will allow me to drag/drop different objects. Basically, I need it to function like a form editor similar how you would design a form in Visual Studio or Access, or work how Adobe Illustrator works where you can have handle(s) on the selected object so it can be moved or stretched. It's not going to be fancy like these program...just a simple editor I'm mostly interested in how the GUI would...
18
30874
by: siliconwafer | last post by:
I want to create a text editor using C. I want user to enter text freely without worring about what's gonig inside. I tried some combinations of fgets,fgetc with realloc and stdin as poniter.Bute can't do it successfully. What can be a way? How are editors created normally? If there are some functions in C ,welcomed. thanks.
19
2188
by: saurabh.ss | last post by:
I want a C++ editor for Linux that resembles Microsoft Visual Studio's integrated editor. I mean it should have features like auto-completion, auto-indentation and syntax highlighting. Also it should support windows like hotkeys like Ctrl-C, Ctrl-V. Please do not recomment vi or emacs. I know that those are best out there but it will take me some time to learn them to use them efficiently and I do not have that luxury. I am unsatisfied...
56
3301
by: Omar | last post by:
I'd love the perfect editor that would be: a) free b) enable me to drag and drop code snippets from a sort of browser into the code c) can run programs right from within d) can edit
0
1784
by: webmaster | last post by:
TreeStages would like to announce the first evaluation release of XEntrant XML Editor 0.1, which is available for download from our website: http://www.treestages.com XEntrant is an XML Tree Editor supporting browsing, editing, iterpreting and validating of:
0
9763
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11060
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10697
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9532
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7932
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5762
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5959
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4175
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3202
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.