Click here to Skip to main content
15,886,579 members
Home / Discussions / C#
   

C#

 
QuestionRetrieve all the controls of any window with their types and value Pin
delphix514-Dec-13 5:59
delphix514-Dec-13 5:59 
AnswerRe: Retrieve all the controls of any window with their types and value Pin
Richard MacCutchan14-Dec-13 6:58
mveRichard MacCutchan14-Dec-13 6:58 
GeneralRe: Retrieve all the controls of any window with their types and value Pin
delphix514-Dec-13 7:19
delphix514-Dec-13 7:19 
GeneralRe: Retrieve all the controls of any window with their types and value Pin
Richard MacCutchan14-Dec-13 7:28
mveRichard MacCutchan14-Dec-13 7:28 
GeneralRe: Retrieve all the controls of any window with their types and value Pin
delphix514-Dec-13 8:07
delphix514-Dec-13 8:07 
GeneralRe: Retrieve all the controls of any window with their types and value Pin
Richard MacCutchan14-Dec-13 21:33
mveRichard MacCutchan14-Dec-13 21:33 
QuestionVB Conversion: 'ReadOnly' Error in VB Pin
Sonhospa14-Dec-13 3:48
Sonhospa14-Dec-13 3:48 
AnswerRe: VB Conversion: 'ReadOnly' Error in VB Pin
Ron Beyer14-Dec-13 4:05
professionalRon Beyer14-Dec-13 4:05 
Converters are not perfect, some are better than others and I find the online ones to be the worst.

Why? Because the best converters will compile the code first, get down to MSIL and then convert back up to whatever you want. Online converters typically don't take compiled code so they attempt to do conversions with text replacements. The one you found isn't bad, but it made up the Key part somewhere, your conversion should be:

VB
Me.listView.Items.Add(New ListViewItem(dc.Line) With { _
    .SubItems = dc.Sign _
    .Tag = dc _
})


(The original code the scoping around dc.Sign is unnecessary as well as casting dc to object).

So if you change it, I'm sure you'll see SubItems come back up in Intellisense, as well as Tag. Key is not a property of ListViewItem so that's why nothing comes up in Intellisense.
GeneralRe: VB Conversion: 'ReadOnly' Error in VB Pin
Sonhospa14-Dec-13 6:03
Sonhospa14-Dec-13 6:03 
GeneralRe: VB Conversion: 'ReadOnly' Error in VB Pin
Ron Beyer14-Dec-13 10:05
professionalRon Beyer14-Dec-13 10:05 
GeneralRe: VB Conversion: 'ReadOnly' Error in VB Pin
Sonhospa14-Dec-13 20:25
Sonhospa14-Dec-13 20:25 
GeneralRe: VB Conversion: 'ReadOnly' Error in VB Pin
BobJanova16-Dec-13 0:37
BobJanova16-Dec-13 0:37 
GeneralRe: VB Conversion: 'ReadOnly' Error in VB Pin
Ron Beyer16-Dec-13 3:15
professionalRon Beyer16-Dec-13 3:15 
GeneralRe: VB Conversion: 'ReadOnly' Error in VB Pin
BobJanova16-Dec-13 4:48
BobJanova16-Dec-13 4:48 
Questionhow snapshot object(The object can be window, control, windows shortcut menu etc) Pin
delphix513-Dec-13 23:49
delphix513-Dec-13 23:49 
AnswerRe: how snapshot object(The object can be window, control, windows shortcut menu etc) Pin
Ravi Bhavnani14-Dec-13 5:33
professionalRavi Bhavnani14-Dec-13 5:33 
GeneralRe: how snapshot object(The object can be window, control, windows shortcut menu etc) Pin
delphix514-Dec-13 5:55
delphix514-Dec-13 5:55 
GeneralRe: how snapshot object(The object can be window, control, windows shortcut menu etc) Pin
Sonhospa14-Dec-13 21:29
Sonhospa14-Dec-13 21:29 
Questionserialport datareceived event Pin
Member 1026351913-Dec-13 22:51
Member 1026351913-Dec-13 22:51 
AnswerRe: serialport datareceived event Pin
Dave Kreskowiak14-Dec-13 3:41
mveDave Kreskowiak14-Dec-13 3:41 
QuestionHow grab all text from active window c# Pin
delphix513-Dec-13 21:47
delphix513-Dec-13 21:47 
AnswerRe: How grab all text from active window c# Pin
OriginalGriff13-Dec-13 22:06
mveOriginalGriff13-Dec-13 22:06 
GeneralRe: How grab all text from active window c# Pin
delphix513-Dec-13 23:24
delphix513-Dec-13 23:24 
GeneralRe: How grab all text from active window c# Pin
BillWoodruff13-Dec-13 23:40
professionalBillWoodruff13-Dec-13 23:40 
AnswerRe: How grab all text from active window c# Pin
BillWoodruff13-Dec-13 22:52
professionalBillWoodruff13-Dec-13 22:52 

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.