Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8908447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T03:10:49+00:00 2026-06-15T03:10:49+00:00

Consider a form with a TextBox and a Button . When you click that

  • 0

Consider a form with a TextBox and a Button. When you click that button you should get the Font properties dialog at run-time.

During designer you can click the button off to the right of the property in the PropertyGrid and get the editor window to manipulate the Font for this TextBox. During run-time, if you add a PropertyGrid to the form and point it to the TextBox you can also get the editor window.

How can I get this editor window at run-time through say, a button click without having a PropertyGrid on the form?

Though I’ve gotten the PropertyDescriptor and the UITypeEditor from this descriptor, I don’t know what to call to get the instances of ITypeDescriptorContext and IServiceProvider when calling UITypeEditor.EditValue.

EDIT – Since I asked this problem of a control that has an easy solution, I’ve asked another question related to this topic: How to open the properties dialog for a Complex Property without a PropertyGrid at runtime

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T03:10:50+00:00Added an answer on June 15, 2026 at 3:10 am

    You can use FontDialog to show the standard font dialog box:

    new FontDialog().ShowDialog();
    

    To read/write fonts:

    var dlg = new FontDialog();
    dlg.Font = textBox1.Font;
    if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
    {
        textBox1.Font = dlg.Font;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider the following: <form runat=server> <div> <asp:TextBox runat=server ID=tb1 /> <asp:Button runat=server ID=b1 OnClick=b1_Click
Consider this snippet of code... <form runat=server> <asp:TextBox runat=server ID=TextBoxOne /> <asp:Button runat=server ID=SubmitOne
Consider the following code: HTML <a href='#' id='the-button'>Submit</a> JavaScript $(#the-button).click(function(e) { e.preventDefault(); $(#the-form).submit(); });
Consider this HTML: <form id=MyForm> <input name=Input1/> </form> To get the form, I would
What should i consider when switching a simple(user+pass) login form from http to https?
Consider the following simple WinForms form with a textbox and a webbrowser control. Whenever
Consider: <form action="?login" method="post"> <button>Login with Google</button> </form> I usually see the action refer
Consider the following code : class TestTimerGC : Form { public TestTimerGC() { Button
Consider the following form containing textfield and submit button: <form method=POST action=<?php isValid();?> class=urln>
Consider the following code; it's basically a form that sends some data via HTTP

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.