Click here to Skip to main content
16,009,643 members
Home / Discussions / C#
   

C#

 
GeneralXml attributes in a combobox Pin
bertcox30-Mar-04 2:52
bertcox30-Mar-04 2:52 
GeneralRe: Xml attributes in a combobox Pin
Heath Stewart30-Mar-04 4:49
protectorHeath Stewart30-Mar-04 4:49 
GeneralRandom in C# Pin
bouli30-Mar-04 2:43
bouli30-Mar-04 2:43 
GeneralRe: Random in C# Pin
John Fisher30-Mar-04 4:07
John Fisher30-Mar-04 4:07 
GeneralRe: Random in C# Pin
Heath Stewart30-Mar-04 4:10
protectorHeath Stewart30-Mar-04 4:10 
GeneralRe: Random in C# Pin
bouli30-Mar-04 4:21
bouli30-Mar-04 4:21 
GeneralRe: Random in C# Pin
Heath Stewart30-Mar-04 4:26
protectorHeath Stewart30-Mar-04 4:26 
GeneralRe: Random in C# Pin
bouli30-Mar-04 4:32
bouli30-Mar-04 4:32 
yeap, it works that way Smile | :)

Thanks.

For, the brushes, is it possible to create only 1 brush instead of an array that contains all brushes? I want to create the brush at run time to do something similar to the following C++ code:

<br />
void CBlock::InitializeBrush()<br />
{<br />
	SAFE_DELETE(m_pBrush);<br />
	<br />
	switch (m_bt)<br />
	{<br />
	case BrushTypeSolidColor:<br />
		m_pBrush=new SolidBrush(m_clrForeground);<br />
		break;<br />
<br />
	case BrushTypeLinearGradient:<br />
		m_pBrush=new LinearGradientBrush(m_rect, m_clrForeground, m_clrBackground, m_lgm);<br />
		break;<br />
<br />
	case BrushTypeHatchFill:<br />
		m_pBrush=new HatchBrush(m_hs, m_clrForeground, m_clrBackground);<br />
		break;<br />
	}<br />
}<br />


while m_bt is a BrushType, m_lgm is a LinearGradientMode.

I guess I have to create an array with all the "BrushType" in a similar way to
what you show me with the LinearGradientMode?
GeneralRe: Random in C# Pin
Heath Stewart30-Mar-04 4:41
protectorHeath Stewart30-Mar-04 4:41 
GeneralRe: Random in C# Pin
Anonymous30-Mar-04 5:54
Anonymous30-Mar-04 5:54 
GeneralRe: Random in C# Pin
bouli30-Mar-04 5:58
bouli30-Mar-04 5:58 
GeneralRe: Random in C# Pin
Heath Stewart30-Mar-04 6:20
protectorHeath Stewart30-Mar-04 6:20 
GeneralRe: Random in C# Pin
bouli30-Mar-04 6:27
bouli30-Mar-04 6:27 
GeneralRe: Random in C# Pin
Heath Stewart30-Mar-04 8:30
protectorHeath Stewart30-Mar-04 8:30 
GeneralAssemblies Pin
Skylo30-Mar-04 0:22
Skylo30-Mar-04 0:22 
GeneralRe: Assemblies Pin
Colin Angus Mackay30-Mar-04 0:40
Colin Angus Mackay30-Mar-04 0:40 
GeneralRe: Assemblies Pin
Skylo30-Mar-04 0:48
Skylo30-Mar-04 0:48 
GeneralRe: Assemblies Pin
Colin Angus Mackay30-Mar-04 1:05
Colin Angus Mackay30-Mar-04 1:05 
GeneralRe: Assemblies Pin
Skylo30-Mar-04 1:30
Skylo30-Mar-04 1:30 
GeneralRe: Assemblies Pin
Heath Stewart30-Mar-04 4:00
protectorHeath Stewart30-Mar-04 4:00 
GeneralRe: Assemblies Pin
Skylo30-Mar-04 4:22
Skylo30-Mar-04 4:22 
GeneralRe: Assemblies Pin
Heath Stewart30-Mar-04 4:29
protectorHeath Stewart30-Mar-04 4:29 
GeneralEnabling Transparent Backgrounds in custom components Pin
Tristan Rhodes29-Mar-04 22:55
Tristan Rhodes29-Mar-04 22:55 
GeneralRe: Enabling Transparent Backgrounds in custom components Pin
LongRange.Shooter30-Mar-04 7:19
LongRange.Shooter30-Mar-04 7:19 
GeneralRe: Enabling Transparent Backgrounds in custom components Pin
Tristan Rhodes30-Mar-04 12:02
Tristan Rhodes30-Mar-04 12:02 

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.