Click here to Skip to main content
15,561,980 members
Home / Discussions / C#
   

C#

 
AnswerRe: Is there a way to connect to Hotmail (donwloading messages from html mail server)? Pin
Daniel Turini16-Oct-02 1:16
Daniel Turini16-Oct-02 1:16 
GeneralShared memory in C# Pin
Joao Vaz15-Oct-02 7:07
Joao Vaz15-Oct-02 7:07 
GeneralRe: Shared memory in C# Pin
Daniel Turini15-Oct-02 15:11
Daniel Turini15-Oct-02 15:11 
GeneralRe: Shared memory in C# Pin
Joao Vaz15-Oct-02 22:37
Joao Vaz15-Oct-02 22:37 
GeneralReplacement for SetRedraw Pin
Zombies with Coffee, LLC15-Oct-02 7:06
professionalZombies with Coffee, LLC15-Oct-02 7:06 
GeneralRe: Replacement for SetRedraw Pin
Russell Morris15-Oct-02 7:41
Russell Morris15-Oct-02 7:41 
GeneralRe: Replacement for SetRedraw Pin
Zombies with Coffee, LLC15-Oct-02 7:52
professionalZombies with Coffee, LLC15-Oct-02 7:52 
GeneralRe: Replacement for SetRedraw Pin
leppie15-Oct-02 8:41
leppie15-Oct-02 8:41 
I had a similar type of problem with a RichTextBox where I had to "pause" the drawing, so I could do some formatting. It goes as follows, just drop into class and define SendMessage and the WM_SETDRAW constant:

[Browsable(false),
DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public bool FreezePainting 
{
	get {return mFreezePainting > 0;}

	set 
	{
		if (value & base.IsHandleCreated & base.Visible)
		{
			if (mFreezePainting == 0)
			{
				User32.SendMessage(base.Handle, Constants.WM_SETREDRAW, 0, 0);
			}
			mFreezePainting++;
		}
		if (!value)
		{
			if (mFreezePainting > 0)
			{
				if (mFreezePainting == 1) 
				{
					FreezePaintingEnd();
				}
				else
				{
					mFreezePainting--;
				}
			}
		}
	}
}

int mFreezePainting;

private void FreezePaintingEnd()
{
	if (mFreezePainting > 0)
	{
		mFreezePainting = 0;
		User32.SendMessage(base.Handle, Constants.WM_SETREDRAW, 1, 0);
	}
	this.Invalidate(true);
}


[edit] &^%&^$&^% VS.NET's crap formatting Mad | :mad: [/edit]

Hope it works Smile | :)

Before you criticize a man, walk a mile in his shoes. That way, when you do criticize him, you'll be a mile away and have his shoes.
GeneralRe: Replacement for SetRedraw Pin
Zombies with Coffee, LLC15-Oct-02 9:25
professionalZombies with Coffee, LLC15-Oct-02 9:25 
GeneralRe: Replacement for SetRedraw Pin
leppie15-Oct-02 10:44
leppie15-Oct-02 10:44 
GeneralHBITMAP problem (interop)... Pin
Anonymous15-Oct-02 6:08
Anonymous15-Oct-02 6:08 
Generalras idle timeout Pin
David Le Bas15-Oct-02 4:09
sussDavid Le Bas15-Oct-02 4:09 
QuestionRichTextBox > HTML? MailFormat.RTF? Pin
rendle15-Oct-02 3:53
rendle15-Oct-02 3:53 
AnswerRe: RichTextBox > HTML? MailFormat.RTF? Pin
Stephane Rodriguez.15-Oct-02 3:59
Stephane Rodriguez.15-Oct-02 3:59 
GeneralProblem with frames using .NET & webbrowser control Pin
GriffonRL15-Oct-02 0:14
GriffonRL15-Oct-02 0:14 
GeneralRe: Problem with frames using .NET & webbrowser control Pin
Stephane Rodriguez.15-Oct-02 1:36
Stephane Rodriguez.15-Oct-02 1:36 
GeneralRe: Problem with frames using .NET & webbrowser control Pin
GriffonRL15-Oct-02 2:01
GriffonRL15-Oct-02 2:01 
GeneralRe: Problem with frames using .NET & webbrowser control Pin
Stephane Rodriguez.15-Oct-02 3:58
Stephane Rodriguez.15-Oct-02 3:58 
GeneralRe: Problem with frames using .NET & webbrowser control Pin
GriffonRL15-Oct-02 5:35
GriffonRL15-Oct-02 5:35 
GeneralRe: Problem with frames using .NET & webbrowser control Pin
Stephane Rodriguez.15-Oct-02 5:56
Stephane Rodriguez.15-Oct-02 5:56 
GeneralRe: Problem with frames using .NET & webbrowser control Pin
Andrew Connell15-Oct-02 6:57
Andrew Connell15-Oct-02 6:57 
GeneralRe: Problem with frames using .NET & webbrowser control Pin
GriffonRL15-Oct-02 10:36
GriffonRL15-Oct-02 10:36 
GeneralRe: Problem with frames using .NET & webbrowser control Pin
Stephane Rodriguez.15-Oct-02 11:06
Stephane Rodriguez.15-Oct-02 11:06 
GeneralIPC Pin
CSharpDavid14-Oct-02 13:22
CSharpDavid14-Oct-02 13:22 
GeneralRe: IPC Pin
Stephane Rodriguez.15-Oct-02 1:45
Stephane Rodriguez.15-Oct-02 1:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.