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 477039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:33:03+00:00 2026-05-13T00:33:03+00:00

To recreate this behaviour, you need to create a pop-up form with the following

  • 0

To recreate this behaviour, you need to create a pop-up form with the following properties:

(1) ShowInTaskBar = False

(2) Display the form with the Show method and loop until the form is not Visible.

(3) In order to close the form when the mouse is clicked out of it, override OnDeactivate, and set visible to False.

Next, create another form that will display the pop-up when a button is clicked:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As Syste
    Using pop As New PopUp
        pop.Visible = True
        Do While pop.Visible
            Application.DoEvents()
            NativeMethods.MsgWaitForMultipleObjectsEx(0, IntPtr.Zero, 250, &HFF, 4)
        Loop
        Me.Activate()
    End Using
End Sub

Start the project, expand the form to fill the screen, and click the button to open the pop-up.
Next click back onto anywhere in the original form.
Most times, but not always, the original form will disappear for a split second before reappearing again – thus causing a flicker effect.

Delving into reflector and System.Windows.Forms.Design.DropDownHolder I found the following in CreateParams that solves the flicker issue:

createParams.Style = (createParams.Style Or -2139095040)

Unfortunately, it also puts a black border around the form. (You’ll have to set FormBorderStyle = System.Windows.Forms.FormBorderStyle.None to see this.)

Does anyone have any idea what this style does apart from putting the black border round the form?

I’ve searched google with the number and the hex equivalent but can find nothing.

Thanks.

ETA: I’ve had a look at a list of style constants at pinvoke.net but I’m non the wiser.

  • 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-13T00:33:03+00:00Added an answer on May 13, 2026 at 12:33 am
    -2139095040 = 0x80800000 = WS_POPUP | WS_BORDER
    

    This seems to be the culprit for the border too.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to recreate this table in my rails 3 app. I believe
How can I recreate this, something found throughout native iPhone apps such as Safari
Can anyone recreate this issue? It seems to me like a quite serious bug
This is only occurring on a user's machine, not mine. I cannot recreate this
this may sound funny, but i spent hours trying to recreate a knob with
I've been trying to recreate an effect from this tutorial: http://jqueryfordesigners.com/jquery-look-tim-van-damme/ Unfortunately, I want
I have the following tabs on certain div on my page: (this code is
Im trying to recreate this page http://psdtowp.com/order-now but for another purpose, Im very new
I want to recreate the stickiness and snapping of windows, like it is implemented
I want to recreate the the update panel postback without using an update panel

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.