Click here to Skip to main content
15,881,812 members
Home / Discussions / C#
   

C#

 
GeneralRe: How To change mouse cursor Pin
BobJanova16-Dec-13 0:12
BobJanova16-Dec-13 0:12 
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 
Hi all,

using online converters, the C# snippet
{
  this.listView.Items.Add(new ListViewItem(dc.Line)
  {<pre>
    SubItems = {dc.Sign},
    Tag = (object) dc
   });
gets converted to
Me.listView.Items.Add(New ListViewItem(dc.Line) With { _
    Key .SubItems = {dc.Sign}, _
    Key .Tag = DirectCast(dc, Object) _
})
Ok, it's obvious that "Key" results in a Syntax Error in VB (amazing why all the converters I tried still put it). But after removing this, I have another error saying "The property 'SubItems' is ReadOnly". Also, IntelliSense doesn't give it as an option in VB, while it does in C#...

My question now: Would it be possible that the property isn't ReadOnly in C#, while it is in VB? Or has it been converted errorous?

Thank you in advance,
Mick
AnswerRe: VB Conversion: 'ReadOnly' Error in VB Pin
Ron Beyer14-Dec-13 4:05
professionalRon Beyer14-Dec-13 4:05 
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 

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.