screen flicker

T

Tom

I've got a TabControl, and I need to add and remove tabs
after initial screen load. (Customer wants this) How do
I prevent the screen flicker when adding or removing the
tabs?

I've been messing around with SuspendLayout and
ResumeLayout, but that doesn't seem to work.

Thanks,
Tom
 
T

Tom

Usually I don't have much trouble converting VB to C#,
but I need some help with this:


Private Declare Function SendMessage Lib "user32.dll" _
Alias "SendMessageA" ( _
ByVal hwnd As IntPtr, _
ByVal wMsg As Int32, _
ByVal wParam As Int32, _
ByVal lParam As Int32 _
) As Int32

Thank you,
Tom
 
H

Herfried K. Wagner [MVP]

* "Tom said:
Usually I don't have much trouble converting VB to C#,
but I need some help with this:

Private Declare Function SendMessage Lib "user32.dll" _
Alias "SendMessageA" ( _
ByVal hwnd As IntPtr, _
ByVal wMsg As Int32, _
ByVal wParam As Int32, _
ByVal lParam As Int32 _
) As Int32

Have a look at 'DllImportAttribute' in the docs. If this doesn't solve
your problem, feel free to reply to this post.
 
B

Bob Powell [MVP]

T

Tom

Thank you both, I really appreciate the help. It
actually works!

Tom
-----Original Message-----
Here ya go!

[DllImport("User32.dll")]

public static extern int SendMessage(System.IntPtr hWnd,

int Msg,

int wParam,

System.IntPtr lParam);


--
Bob Powell [MVP]
Visual C#, System.Drawing

Check out February's edition of Well Formed.
Non-client drawing, Graphics Transform stack and Flood- Filling
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

Read my Blog at http://bobpowelldotnet.blogspot.com

Usually I don't have much trouble converting VB to C#,
but I need some help with this:


Private Declare Function SendMessage Lib "user32.dll" _
Alias "SendMessageA" ( _
ByVal hwnd As IntPtr, _
ByVal wMsg As Int32, _
ByVal wParam As Int32, _
ByVal lParam As Int32 _
) As Int32

Thank you,
Tom


How
do


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top