Questions tagged [createparams]

28 questions
22
votes
5 answers

Flickering in a Windows Forms app

I have an app that has a ton of controls on it. And it has a massive amount of flicker, particularly on startup. I applied this fix to it. protected override CreateParams CreateParams { get { CreateParams cp =…
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
4
votes
1 answer

Can overriding the CreateParams procedure allow me to still have full access to the WS_SYSMENU?

Complete source code can be found here: http://www.eyeClaxton.com/download/delphi/SkinProject.zip I'm trying to create a skinned form with no "Caption or Borders", but still leaving me with the full access to System Menu (I.E: Move, Minimize,…
eyeClaxton
  • 480
  • 4
  • 15
4
votes
1 answer

Flickering and "CreateParams"

I want to avoid flickering in a panel of my application, after googling from 4 monthgs ago, after trying subclassed panels, after asking here two or three times, after asking in other forums... nobody has the solution but today I've found the…
ElektroStudios
  • 19,105
  • 33
  • 200
  • 417
3
votes
2 answers

Is it safe to change TCreateParams.WinClassName or how to find a form handle of another own application?

I have two applications, where the first one needs to find a handle of the form from the second (also my own) but different application (not instance, but different application). I've seen some techniques, but I would like to know if it's safe what…
Martin Reiner
  • 2,167
  • 2
  • 20
  • 34
2
votes
1 answer

How to create a borderless form with System menu?

I have created a border less form, I managed to assign the system menu to it using: protected override CreateParams CreateParams { get { CreateParams param = base.CreateParams; param.Style |=…
Valentin Radu
  • 629
  • 1
  • 11
  • 26
2
votes
1 answer

CreateParams() property shows default icon on inherited form

The Task I manage a big application that is based on a main MDI form. All other forms are children of this MDI form or dialogs of the children. As it is a big application, opening and closing the child windows causes some flickering in the whole…
Weebie
  • 230
  • 1
  • 14
2
votes
1 answer

.NET Winforms Vertical Progress Bar Text

Recently, I needed a vertical progress bar for my win forms application. The derived class is like below. I also need to add text on progress bar. A label on it doesn't work beacuse of transperancy issues. After some research, I have found…
Deniz Alpaslan
  • 167
  • 2
  • 16
1
vote
2 answers

DataGridView draws wrong

I have a form and it has tones of other controls(buttons, custom controls, labels, panel,gridview). You can guess i had flickering issue. I tried doublebuffering and it couldn't solve. Finally i tried this one: protected override CreateParams…
Murat
  • 149
  • 1
  • 16
1
vote
0 answers

Is it possible to override the Form's CreateParams method/function from a C# component?

I am trying to apply a dropshadow for the bordeless winform from a component by overriding its CreateParams function but I'm getting an exception "no suitable method found to override" within the component. How best can I apply a borderless…
Russell Chidhakwa
  • 339
  • 2
  • 5
  • 16
1
vote
1 answer

Use parameter passed to form constructor in CreateParams in WinForms.NET

I have a custom form defined like this: internal class DropDownForm : System.Windows.Forms.Form { public DropDownForm(bool needShadow) { ... } } I need to enable form shadow depending on the needShadow parameter passed to the form…
TecMan
  • 2,743
  • 2
  • 30
  • 64
1
vote
2 answers

Unable to set property value VB.NET

I'm making a custom form for my library Public Class MycustomForm : Inherits Form Private Const CP_NOCLOSE_BUTTON As Integer = &H200 Private _CloseBox As Boolean = True Public Sub New() MyBase.New() End Sub …
user5395084
1
vote
2 answers

How to bring an OpenDialog hidden by another window to the front

I have an application with multiple forms and a separate taskbar button for each form. Let's say form2 displays an OpenDialog, I click away to another maximized application covering the full screen area, then I go back to form2 by selecting it's…
Steve
  • 2,510
  • 4
  • 34
  • 53
1
vote
0 answers

C# Panel is flickering. When I try CreateParams, the situation is much worse

The title pretty much says it. I have a panel inside of my form. I have lots of Shapes in the panel that bounce off of each other. The more shapes I have the worse the flickering is. After searching on this site for awhile I added this to the…
user2125899
  • 117
  • 1
  • 4
  • 9
1
vote
0 answers

CreateParams occurs - Window handle exception

I am using CreateParams on my own Tabcontrol to get rid of its flickering meanwhile resizing and loading. It's just an empty class where I implemented CreateParams. protected override CreateParams CreateParams { get { CreateParams…
bodo832
  • 11
  • 1
1
vote
1 answer

Form on top but not clickable when modal dialog is shown

What I want is a small notification message that is shown in the lower right corner when there are any messages to be shown. If there are none the notification message will not be shown. The notification message should not steal focus or block the…
Robert Persson
  • 309
  • 1
  • 2
  • 9
1
2