Questions tagged [createparams]

28 questions
1
vote
0 answers

Aero drop - shadow on a borderless form?

I tried the following code to override the CreateParams. protected: virtual property System::Windows::Forms::CreateParams^ CreateParams { System::Windows::Forms::CreateParams^ get() override { …
Hemendra Sharma
  • 1,063
  • 9
  • 21
0
votes
3 answers

How to set minimum Size of Custom Control with "CreateParams"

I am trying to make a draggable, resizable panel with a minimum size. I have used CreateParams for the Resize and now the Minimum size property doesn't work. My question is how to set the minimum size in this case? I have tried Limit resizable…
Stefan27
  • 845
  • 8
  • 19
0
votes
0 answers

How to prevent WinForms app from flickering

I found the following code which cancels the flickering in a WinForms application: Protected Overrides ReadOnly Property CreateParams() As CreateParams Get Dim cp As CreateParams = MyBase.CreateParams cp.ExStyle = cp.ExStyle Or…
fpuglap
  • 109
  • 1
  • 2
  • 15
0
votes
0 answers

Does there have to be one createparameter per variable

I have a SQL statement that has a variable in it that is used twice because of an or in the statement. The question is when I create a CreateParameter statement for the var, do I need 2 statements one for each variable or can I use the same…
user8053788
0
votes
0 answers

CreatParams to remove titlebar (vb.net)

I'm trying to build a custom form. I plan on building my own titlebar, so, I need to remove the standard one. Here is the code so far. Protected Overrides ReadOnly Property CreateParams() As CreateParams Get Dim cp As CreateParams =…
JDF
  • 129
  • 1
  • 12
0
votes
1 answer

Valid use of bitwise operators for CreateParams, undesired behavior?

I am writing a wrapper for the ProgressBar control (not really a true wrapper, but implementing Vista features properly). And here is my code: /// /// Encapsulates the information needed when creating a control ///
David Anderson
  • 13,558
  • 5
  • 50
  • 76
0
votes
0 answers

Is there a way to change Window style to none using override of CreateParams?

I am trying to create application with window style set to "None". As far as I know, I can change style and extended style using override of CreateParams: protected override CreateParams CreateParams { get { …
Sergey Dudkin
  • 169
  • 1
  • 10
0
votes
0 answers

CreateParams and XP

I have searched it on internet and on stackoverflow as well but i haven't got any correct/reliable solution. I want to remove flickering from one of my c# Windows Form. So I have overriden CreateParams method in following manner protected…
0
votes
0 answers

CreateParams Confusion

I am creating a class to simplify designing controls. It's called ControlDrawer and has three private fields: a Point named _location a Bitmap named _innerImage a NativeWindow named _window I have most of the class done, but here's my snagging…
notagull
  • 113
  • 1
  • 1
  • 11
0
votes
0 answers

Using CreateParams and SetWindowTheme on a ListView at the same time

I'm using the SetWindowTheme function (uxtheme.dll) to make my ListView look like Windows 7 native. I had to use the CreateParams stuff to prevent that ListView flickering when I sort it. It worked, but when I use that CreateParams code, the…
zdimension
  • 977
  • 1
  • 12
  • 33
0
votes
1 answer

overriding CreateParams in a custom ListView has no effect?

I know that there are available Properties for ListView to change the common styles but I just want to test this. That is for example the View = View.LargeIcon applies the style LVS_ICON = 0 to the ListView or GridLines = true applies the style…
King King
  • 61,710
  • 16
  • 105
  • 130
0
votes
1 answer

bitwise meaning in createparams class

I'm trying to understand the meaning of each bit in the createparams class. i tried to find any information about it, even in msdn web site, but nowhere explains the meaning for the bits. Does someone has any idea?
TVC
  • 452
  • 1
  • 6
  • 12
-1
votes
1 answer

How to use WM_NCHITTEST and WS_EX_LAYOUTRTL together?

I have SizableUserControl Class using WM_NCHITTEST message and CustomUserControl Class that use WS_EX_LAYOUTRTL and WS_EX_NOINHERITLAYOUT for mirror on RightToLeft. When I'm using both the resize on runtime is reversed. How can I fix it? Thanks for…
user6466445
  • 11
  • 1
  • 5
1
2