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

C#

 
AnswerRe: loop dictionary Pin
Judah Gabriel Himango8-May-07 5:57
sponsorJudah Gabriel Himango8-May-07 5:57 
AnswerRe: loop dictionary Pin
Martin#8-May-07 6:06
Martin#8-May-07 6:06 
QuestionCreating a Windows Service account... Pin
ccitt8-May-07 5:19
ccitt8-May-07 5:19 
AnswerRe: Creating a Windows Service account... Pin
ccitt8-May-07 6:45
ccitt8-May-07 6:45 
Questionproblem to change color of custom words in RichTextBox Pin
hdv2128-May-07 5:17
hdv2128-May-07 5:17 
AnswerRe: problem to change color of custom words in RichTextBox Pin
Judah Gabriel Himango8-May-07 5:24
sponsorJudah Gabriel Himango8-May-07 5:24 
QuestionPlease Help Me: DataBinding Pin
Phoenix1018-May-07 4:44
Phoenix1018-May-07 4:44 
QuestionPropertyGrid & TimeSpan type Pin
michaelbarner8-May-07 4:34
michaelbarner8-May-07 4:34 
Hi,

I have a propertyholding object, that I use a PropertyGrid to view and edit.

The property I am having problems with is of type TimeSpan.
When the property is displayed in the PropertyGrid, it is done in the format hh:mm:ss, and nothing I do can convince the Grid, that I should be allowed to enter TimeSpans greater than 23:59:59!

If I programmatically enter a greater value and then bind to the grid, it correctly displays the value and even lets me edit it...

Please help out poor, simple noob!

Here's the (pseudo-)code of the object, I pass to the PropertyGrid:

public class PropertyHolder
{
Private TimeSpan _Duration;

PropertyHolder(){}

[...]
Using System;
Using System.ComponentModel;

[CategoryAttribute("Base Properties"), Browsable(true),
BindableAttribute(false), DescriptionAttribute("The time this Activity is planned to take.")]
public TimeSpan Duration
{
get { return _Duration; }
set { _Duration = (TimeSpan)value; }
}
}








Sincerely

Michael Barner

AnswerRe: PropertyGrid & TimeSpan type Pin
visualhint31-May-07 3:18
visualhint31-May-07 3:18 
QuestionReflections Pin
eunderwo008-May-07 4:31
eunderwo008-May-07 4:31 
AnswerRe: Reflections Pin
Jon Hulatt8-May-07 4:53
Jon Hulatt8-May-07 4:53 
GeneralRe: Reflections Pin
Paul Conrad12-May-07 11:08
professionalPaul Conrad12-May-07 11:08 
AnswerRe: Reflections Pin
Colin Angus Mackay12-May-07 7:54
Colin Angus Mackay12-May-07 7:54 
Questionhow to toggle network connection in c# Pin
aviron1238-May-07 4:09
aviron1238-May-07 4:09 
AnswerRe: how to toggle network connection in c# Pin
Paul Brower8-May-07 4:27
Paul Brower8-May-07 4:27 
GeneralRe: how to toggle network connection in c# Pin
aviron1239-May-07 5:16
aviron1239-May-07 5:16 
QuestionDoubleBuffer problem Pin
Eduard Keilholz8-May-07 3:40
Eduard Keilholz8-May-07 3:40 
AnswerRe: DoubleBuffer problem Pin
Gil.Schmidt8-May-07 3:54
Gil.Schmidt8-May-07 3:54 
QuestionL2 Cache Programming Pin
kkchh8-May-07 3:27
kkchh8-May-07 3:27 
AnswerRe: L2 Cache Programming Pin
Dan Neely8-May-07 3:44
Dan Neely8-May-07 3:44 
GeneralRe: L2 Cache Programming Pin
kkchh8-May-07 4:10
kkchh8-May-07 4:10 
QuestionCrystal / MySQL / VS2005 Pin
Russell Jones8-May-07 3:16
Russell Jones8-May-07 3:16 
AnswerRe: Crystal / MySQL / VS2005 Pin
Gopal.S8-May-07 10:39
Gopal.S8-May-07 10:39 
QuestionHelp with looping thru a dataset with a binding navigator. Pin
Phoenix1018-May-07 3:03
Phoenix1018-May-07 3:03 
QuestionSearching string Pin
pavya_Cool8-May-07 2:30
pavya_Cool8-May-07 2:30 

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.