Click here to Skip to main content
15,915,094 members
Home / Discussions / C#
   

C#

 
QuestionHow to create a datagrid in property grid Pin
Sangeetha2330-Apr-10 2:28
Sangeetha2330-Apr-10 2:28 
AnswerRe: How to create a datagrid in property grid Pin
Eddy Vluggen30-Apr-10 5:11
professionalEddy Vluggen30-Apr-10 5:11 
GeneralRe: How to create a datagrid in property grid Pin
Henry Minute30-Apr-10 6:52
Henry Minute30-Apr-10 6:52 
GeneralRe: How to create a datagrid in property grid Pin
Eddy Vluggen30-Apr-10 7:43
professionalEddy Vluggen30-Apr-10 7:43 
GeneralRe: How to create a datagrid in property grid Pin
Sangeetha232-May-10 18:17
Sangeetha232-May-10 18:17 
GeneralRe: How to create a datagrid in property grid Pin
Sangeetha232-May-10 19:29
Sangeetha232-May-10 19:29 
GeneralRe: How to create a datagrid in property grid Pin
Henry Minute3-May-10 3:15
Henry Minute3-May-10 3:15 
QuestionString formatting? Pin
Dirk C De Winnaar30-Apr-10 2:03
Dirk C De Winnaar30-Apr-10 2:03 
C# Problem:

I have a string: " DH#2010-04-30-13:45:33"

Within this string a have certain charactes I want to use, and some I dont want to use:

2010 is my year,04 is my month,30 is my day,13 is my Hour,45 is my Minutes,33 is my Seconds

That string can come to me in many ways but this is the example for now.

I want to spesify the string to be used with another string, like a format guide.

This string is in my textboxbox and looks like this:

"___yyyy-MM-dd HH:mm:ss"

The first 3 underscores tells it to ignore the DH# part (3 Charactors)'
Then it needs to recognize the 2010 as yyyy, then 04 as MM etc.

The string can also be "#04#2010#30#13#45#33#
Then my format string will look like this: "_MM_yyyy_dd_HH_mm_ss_"

or

"DT04042010-134533"
Then my Format string will look like this: "__ddMMyyyy_HHmmss"

The format string I can specify, but the original string comes from a PLC in anyway it likes.

My format string specifies what each charactor in the string represents.

The underscore basicly tells the code to ignore the charactor in that place, in either:
yyyy,MM,dd or etc takes that digit and place it in the format I specify.

So I can use it to place it into the DateTime object.

Please help
AnswerRe: String formatting? [modified] Pin
Luc Pattyn30-Apr-10 2:33
sitebuilderLuc Pattyn30-Apr-10 2:33 
GeneralRe: String formatting? Pin
Not Active30-Apr-10 2:51
mentorNot Active30-Apr-10 2:51 
GeneralRe: String formatting? Pin
Luc Pattyn30-Apr-10 3:13
sitebuilderLuc Pattyn30-Apr-10 3:13 
GeneralRe: String formatting? Pin
Not Active30-Apr-10 4:06
mentorNot Active30-Apr-10 4:06 
GeneralRe: String formatting? Pin
Luc Pattyn30-Apr-10 4:21
sitebuilderLuc Pattyn30-Apr-10 4:21 
GeneralRe: String formatting? Pin
Not Active30-Apr-10 4:49
mentorNot Active30-Apr-10 4:49 
GeneralRe: String formatting? Pin
Luc Pattyn30-Apr-10 4:54
sitebuilderLuc Pattyn30-Apr-10 4:54 
AnswerRe: String formatting? Pin
Not Active30-Apr-10 2:47
mentorNot Active30-Apr-10 2:47 
GeneralRe: String formatting? Pin
Dirk C De Winnaar30-Apr-10 3:34
Dirk C De Winnaar30-Apr-10 3:34 
GeneralRe: String formatting? Pin
Not Active30-Apr-10 4:18
mentorNot Active30-Apr-10 4:18 
GeneralRe: String formatting? Pin
Luc Pattyn30-Apr-10 4:22
sitebuilderLuc Pattyn30-Apr-10 4:22 
AnswerRe: String formatting? Pin
V.30-Apr-10 3:47
professionalV.30-Apr-10 3:47 
GeneralRe: String formatting? Pin
Luc Pattyn30-Apr-10 4:50
sitebuilderLuc Pattyn30-Apr-10 4:50 
GeneralRe: String formatting? Pin
Not Active30-Apr-10 5:22
mentorNot Active30-Apr-10 5:22 
AnswerRe: String formatting? Pin
PIEBALDconsult30-Apr-10 6:40
mvePIEBALDconsult30-Apr-10 6:40 
QuestionGridvIewCell Click Pin
jitendra sandu30-Apr-10 1:57
jitendra sandu30-Apr-10 1:57 
AnswerRe: GridvIewCell Click Pin
Richard MacCutchan30-Apr-10 2:21
mveRichard MacCutchan30-Apr-10 2:21 

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.