Click here to Skip to main content
16,005,121 members
Home / Discussions / C#
   

C#

 
AnswerRe: DataGridView question Pin
BobJanova20-Oct-11 3:05
BobJanova20-Oct-11 3:05 
GeneralRe: DataGridView question Pin
Tom Paronis20-Oct-11 9:06
Tom Paronis20-Oct-11 9:06 
QuestionAdvice on running event log watcher as a service Pin
CCodeNewbie19-Oct-11 9:45
CCodeNewbie19-Oct-11 9:45 
AnswerRe: Advice on running event log watcher as a service Pin
André Kraak19-Oct-11 11:46
André Kraak19-Oct-11 11:46 
GeneralRe: Advice on running event log watcher as a service Pin
CCodeNewbie19-Oct-11 11:52
CCodeNewbie19-Oct-11 11:52 
GeneralRe: Advice on running event log watcher as a service Pin
SledgeHammer0119-Oct-11 12:16
SledgeHammer0119-Oct-11 12:16 
GeneralRe: Advice on running event log watcher as a service Pin
CCodeNewbie19-Oct-11 21:55
CCodeNewbie19-Oct-11 21:55 
QuestionHow to Return Structure in C# Pin
AmbiguousName19-Oct-11 8:30
AmbiguousName19-Oct-11 8:30 
hello guys.. I have a struct in class A. In one of its function, I returned this struct. I tried something like this (all the getters and setters are there properly)
C#
class A
{
  struct MyStruct
  {};

  public MyStruct func()
  {
    MyStruct struc = new MyStruct();
    // did some coding here
    return struc;
  }
}

class B
{
  struct MyStruct
  {};

  A = new A();
  MyStruct result = new MyStruct();
  result = A.func(); // here i get error ... 
}

But I get the error
Cannot implicitly convert type 'A.MyStruct' to 'B.MyStruct'. Whats wrong with it? thnx
AnswerRe: How to Return Structure in C# Pin
fjdiewornncalwe19-Oct-11 8:42
professionalfjdiewornncalwe19-Oct-11 8:42 
AnswerRe: How to Return Structure in C# Pin
AmbiguousName19-Oct-11 8:56
AmbiguousName19-Oct-11 8:56 
GeneralRe: How to Return Structure in C# Pin
fjdiewornncalwe20-Oct-11 3:46
professionalfjdiewornncalwe20-Oct-11 3:46 
AnswerRe: How to Return Structure in C# Pin
Mark Salsbery19-Oct-11 8:45
Mark Salsbery19-Oct-11 8:45 
GeneralRe: How to Return Structure in C# Pin
AmbiguousName19-Oct-11 8:57
AmbiguousName19-Oct-11 8:57 
AnswerRe: How to Return Structure in C# Pin
SledgeHammer0119-Oct-11 9:42
SledgeHammer0119-Oct-11 9:42 
QuestionC# Web service quiestions Pin
Philby6319-Oct-11 6:30
Philby6319-Oct-11 6:30 
AnswerRe: C# Web service quiestions Pin
BobJanova19-Oct-11 6:40
BobJanova19-Oct-11 6:40 
AnswerRe: C# Web service quiestions Pin
PIEBALDconsult19-Oct-11 6:48
mvePIEBALDconsult19-Oct-11 6:48 
AnswerRe: C# Web service quiestions Pin
Philby6320-Oct-11 5:09
Philby6320-Oct-11 5:09 
Question[WinForms] Check box with Appearance=Button has inconsistent border width Pin
BobJanova19-Oct-11 2:37
BobJanova19-Oct-11 2:37 
QuestionHow do I put my window at the top of your desktop (by analogy - the task bar)? Pin
Slavik_ns19-Oct-11 0:59
Slavik_ns19-Oct-11 0:59 
AnswerRe: How do I put my window at the top of your desktop (by analogy - the task bar)? Pin
V.19-Oct-11 2:27
professionalV.19-Oct-11 2:27 
JokeRe: How do I put my window at the top of your desktop (by analogy - the task bar)? Pin
Manfred Rudolf Bihy19-Oct-11 2:43
professionalManfred Rudolf Bihy19-Oct-11 2:43 
AnswerRe: How do I put my window at the top of your desktop (by analogy - the task bar)? Pin
Pascal Ganaye19-Oct-11 5:03
Pascal Ganaye19-Oct-11 5:03 
GeneralRe: How do I put my window at the top of your desktop (by analogy - the task bar)? Pin
Slavik_ns19-Oct-11 18:58
Slavik_ns19-Oct-11 18:58 
AnswerRe: How do I put my window at the top of your desktop (by analogy - the task bar)? Pin
Eddy Vluggen19-Oct-11 7:46
professionalEddy Vluggen19-Oct-11 7:46 

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.