Click here to Skip to main content
15,907,913 members
Home / Discussions / C#
   

C#

 
GeneralRe: Draw one control onto another Pin
nickspacek18-Oct-06 5:02
nickspacek18-Oct-06 5:02 
AnswerRe: Draw one control onto another Pin
Wjousts18-Oct-06 4:27
Wjousts18-Oct-06 4:27 
GeneralRe: Draw one control onto another Pin
nickspacek18-Oct-06 4:46
nickspacek18-Oct-06 4:46 
QuestionHow to set opacity of picturebox ? Pin
hdv21218-Oct-06 2:39
hdv21218-Oct-06 2:39 
AnswerRe: How to set opacity of picturebox ? Pin
Christian Graus18-Oct-06 4:02
protectorChristian Graus18-Oct-06 4:02 
GeneralRe: How to set opacity of picturebox ? Pin
hdv21218-Oct-06 6:09
hdv21218-Oct-06 6:09 
GeneralRe: How to set opacity of picturebox ? Pin
Christian Graus18-Oct-06 8:14
protectorChristian Graus18-Oct-06 8:14 
QuestionNullables in type parameters? Pin
Dominik Reichl18-Oct-06 2:07
Dominik Reichl18-Oct-06 2:07 
Hello! I'm trying to write a function that checks whether a given value is in a range defined by a minimum and a maximum. I tried this:

public static bool ValidateNumber<T>(T tNum, T? tMinimum, bool bMinInclusive,
	T? tMaximum, bool bMaxInclusive)
	where T : IComparable<T>

I think it's pretty obvious what I'm trying to do Wink | ;) The minimum and the maximum should be optional, therefore nullables. Anyway, the declaration above gives me a compiler error CS0453 ("Type T must not allow NULL values, if it is used as T parameter in the generic type or in the generic method System.Nullable<T>").

How does the correct declaration look like in this case?

Best regards
Dominik



_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? Wink | ;)
(doesn't work on NT)

AnswerRe: Nullables in type parameters? Pin
Christian Graus18-Oct-06 4:02
protectorChristian Graus18-Oct-06 4:02 
GeneralRe: Nullables in type parameters? Pin
Dominik Reichl18-Oct-06 5:11
Dominik Reichl18-Oct-06 5:11 
AnswerRe: Nullables in type parameters? Pin
Colin Angus Mackay18-Oct-06 4:39
Colin Angus Mackay18-Oct-06 4:39 
GeneralRe: Nullables in type parameters? Pin
Dominik Reichl18-Oct-06 5:09
Dominik Reichl18-Oct-06 5:09 
GeneralRe: Nullables in type parameters? Pin
Christian Graus18-Oct-06 8:15
protectorChristian Graus18-Oct-06 8:15 
AnswerRe: Nullables in type parameters? Pin
Vega0219-Oct-06 17:19
Vega0219-Oct-06 17:19 
QuestionMultiple Conditions in DataView.ROWFILTER Pin
PaulaM18-Oct-06 1:51
PaulaM18-Oct-06 1:51 
AnswerRe: Multiple Conditions in DataView.ROWFILTER Pin
Robert Rohde18-Oct-06 2:02
Robert Rohde18-Oct-06 2:02 
Question[Solved]Setting Bold Fonts on Nodes of a TreeView Pin
Sebastian Schneider18-Oct-06 1:51
Sebastian Schneider18-Oct-06 1:51 
AnswerRe: Setting Bold Fonts on Nodes of a TreeView Pin
Robert Rohde18-Oct-06 2:04
Robert Rohde18-Oct-06 2:04 
GeneralRe: Setting Bold Fonts on Nodes of a TreeView Pin
Sebastian Schneider18-Oct-06 2:06
Sebastian Schneider18-Oct-06 2:06 
Questionmerging files Pin
Yustme18-Oct-06 1:49
Yustme18-Oct-06 1:49 
AnswerRe: merging files Pin
Christian Graus18-Oct-06 2:03
protectorChristian Graus18-Oct-06 2:03 
GeneralRe: merging files Pin
Yustme18-Oct-06 2:16
Yustme18-Oct-06 2:16 
GeneralRe: merging files Pin
Christian Graus18-Oct-06 4:07
protectorChristian Graus18-Oct-06 4:07 
AnswerRe: merging files Pin
Larantz19-Oct-06 12:10
Larantz19-Oct-06 12:10 
Questionhow to insert picture in MS ACCESS table Pin
PavanPareta18-Oct-06 1:32
PavanPareta18-Oct-06 1:32 

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.