Click here to Skip to main content
15,889,808 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Zero index won't fire change SelectedIndexChanged event -- Fixed Pin
Glacier63272-Dec-08 6:40
Glacier63272-Dec-08 6:40 
QuestionDynamacially populate a web treeviewcontrol Pin
vkumar092-Dec-08 2:30
vkumar092-Dec-08 2:30 
AnswerRe: Dynamacially populate a web treeviewcontrol Pin
Paddy Boyd2-Dec-08 4:27
Paddy Boyd2-Dec-08 4:27 
Questionsend excel attachment the second time Pin
samerh2-Dec-08 2:15
samerh2-Dec-08 2:15 
AnswerRe: send excel attachment the second time Pin
Paddy Boyd2-Dec-08 4:25
Paddy Boyd2-Dec-08 4:25 
GeneralRe: send excel attachment the second time Pin
samerh2-Dec-08 19:14
samerh2-Dec-08 19:14 
QuestionCustom Properties Pin
Dirso2-Dec-08 1:56
Dirso2-Dec-08 1:56 
AnswerRe: Custom Properties Pin
Dirso2-Dec-08 2:51
Dirso2-Dec-08 2:51 
hi,

Here is the code I've got so far, the ListBox works fine, but how do I populate it with the Labels? I can't access the Page object from it, right?

internal class LabelSelectTypeEditor : UITypeEditor
{
    public override UITypeEditorEditStyle GetEditStyle(ITypeDescriptorContext context)
    {
        return UITypeEditorEditStyle.DropDown;
    }

    public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value)
    {
        IWindowsFormsEditorService srv = null;
        if (provider != null)
            srv = (IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService));

        if (srv != null)
        {
            System.Windows.Forms.ListBox lb = new System.Windows.Forms.ListBox();
            //foreach(Control c in Pa
            lb.Items.Add("test1");
            lb.Items.Add("test2");
            srv.DropDownControl(lb);
            return lb.Text;
        }

        return value;
    }
}


Thanks,
Dirso
GeneralRe: Custom Properties Pin
Dirso2-Dec-08 6:52
Dirso2-Dec-08 6:52 
Questionhow to Align Code in aspx file?? Pin
mr_muskurahat2-Dec-08 1:23
mr_muskurahat2-Dec-08 1:23 
AnswerRe: how to Align Code in aspx file?? Pin
Ashfield2-Dec-08 1:51
Ashfield2-Dec-08 1:51 
AnswerRe: how to Align Code in aspx file?? Pin
firozu2-Dec-08 3:02
firozu2-Dec-08 3:02 
AnswerRe: how to Align Code in aspx file?? Pin
Glacier63272-Dec-08 4:50
Glacier63272-Dec-08 4:50 
AnswerRe: how to Align Code in aspx file?? Pin
Samer Aburabie2-Dec-08 11:25
Samer Aburabie2-Dec-08 11:25 
Questiondropdownlist Pin
Kissy162-Dec-08 0:40
Kissy162-Dec-08 0:40 
AnswerRe: dropdownlist Pin
Brij2-Dec-08 2:37
mentorBrij2-Dec-08 2:37 
QuestionControl radiobutton selection with keyboard down/up arrow Pin
Vinay Dornala1-Dec-08 23:54
Vinay Dornala1-Dec-08 23:54 
AnswerRe: Control radiobutton selection with keyboard down/up arrow Pin
Christian Graus1-Dec-08 23:58
protectorChristian Graus1-Dec-08 23:58 
Question[Message Deleted] Pin
Vinay Babu1-Dec-08 23:23
Vinay Babu1-Dec-08 23:23 
AnswerRe: code to implement WS-Transaction in WCF Pin
Abhijit Jana2-Dec-08 0:02
professionalAbhijit Jana2-Dec-08 0:02 
QuestionMerging Xml in word document Pin
papy-boom1-Dec-08 22:46
papy-boom1-Dec-08 22:46 
AnswerRe: Merging Xml in word document Pin
Christian Graus1-Dec-08 23:37
protectorChristian Graus1-Dec-08 23:37 
QuestionProblem with Web Refernce Pin
vijaylumar1-Dec-08 22:43
vijaylumar1-Dec-08 22:43 
AnswerRe: Problem with Web Refernce Pin
Christian Graus1-Dec-08 23:38
protectorChristian Graus1-Dec-08 23:38 
Questionhow to select multiple files at a time using Ctrl+select and upload the attachments in C# .Net 1.0? Pin
Member 57445281-Dec-08 22:43
Member 57445281-Dec-08 22:43 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.