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

  • Home
  • SEARCH
  • 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 3996776
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T07:19:13+00:00 2026-05-20T07:19:13+00:00

I just don’t know how to explain my problem. So I have created an

  • 0

I just don’t know how to explain my problem. So I have created an image.

(I am not using WPF)


So now I have problem connected with my old problem.

Now I have the new “cool” border around my form.

But it is working only when I use FormBorderStyle.SizableToolWindow or FormBorderStyle.Sizable otherwise it is “borderless”.

But I wanna have non-resizable form…

My poor solution:

I can use maximumsize = this.size; and minimumsize = this.size but when I put my cursor over the border then my cursor changes to “resize” cursor… and that is ugly…

I hope you will understand me.

Thanks

  • 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-05-20T07:19:14+00:00Added an answer on May 20, 2026 at 7:19 am

    You need to set your form to have no title and also to, as you say, hide the control box. You can change both of these in the Properties panel for your form.

    Or, in code:

    public Form1()
    {
        InitializeComponent();
    
        ControlBox = false;
        Text = "";
    }
    

    Note that this will cause your form to be undraggable (if it’s not already resizable), and you need to add your own control to handle closing the form.

    EDIT: one way to prevent the window from being resizable and prevent the cursor from changing to the resize handles is to override the WndProc() handler for the form and intercept WM_NCHITTEST.

    Place this method in your form class, and keep the FormBorderStyle as FormBorderStyle.Sizable or FormBorderStyle.SizableToolWindow:

    protected override void WndProc(ref Message message) 
    { 
        const int WM_NCHITTEST = 0x0084; 
    
        if (message.Msg == WM_NCHITTEST)
        {
            return; 
        }
    
        base.WndProc(ref message);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Maybe I just don't know .NET well enough yet, but I have yet to
i think its an regular problem, answered several times, but I just don't know
<div id=divItems><div id=divItemsContent></div></div> I think i know what the problem is, just don't know
i have a problem with the Twitter API. I just don't see how to
I'm beginning to fall in love with Extension Methods, but I just don't know
I don't know if anyone has seen this issue before but I'm just stumped.
I don't want to know how... Just how complicated.... I'm thinking of securing a
I don't care what the differences are. I just want to know whether the
I just don't know. I mean, there are a few topics that point me
So I have close to 300 variables (just right now), and I have numerically

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.