public delegate void hd(string s);
public class class1
public void hello(string s)
public class program
static void Main()
class1 c= new class1();
hd d=new hd(c.hello);
i saved this program with .cs extension and run the program.but at the time of compilation it is showing the following error
the syntax of the command is incorrect
runned with csc :del.cs
compiled with: del
I am working in c sharp i am new with c# i am facing very basic problems i need to ask please tell me how i can use message to display any this if true or false i mean to say just guide me is their any class required to import in c# and then message can be display easily or no class or names peace required for using message in c sharp language please send me code of display message and also guide me what to do?
If you're doing a windows project, then MessageBox.Show("This is my message") is the easiest way to get a message on screen. If you're new, you should probably start with console apps. Console.WriteLine("hello world"); will work here. Note, your console app needs to end with Console.ReadLine() so it will stop long enough for you to read the output.
dear i am using web application but when i am typing for message intelisence window does not showing me MessageBox.Show why i also worked in vb.net application but this is very different what should i say
1 - you should learn your language BEFORE learning ASP.NET.
I have an application (Application A) which will launch another application (Application B) by passing some arguments in same machine.
One of the argument is language use in Application A.
When Application A run in Italian.lang, then Application B will launched in Italian.lang as well.
Now, if Application A change language to English.lang, then running Application B need to change language to English as well. So i decide to use some inter-process communication method to solve this problem. I have limited time to do this changes.
Application A will send notice to Application B when change language.
Application B just need to listen to Application A.
If possible i would like to have 2 way communication to adapt future change request.
What method is suit with my project? Pipe or socket? Or any other method suit for it?
A quick suggestion here would be to use windows messaging. The SendMessage API in windows..But for this you need to know the windows handle..Since it is in a same machine .. this technique will be the easest and light weight way. than going for tcp
I would suggest a different approach, as it is obvious that TCP channels are wasteful when the two applications run on the same machine.
There's an article I wrote which explains how to do IPC in C#.
It's not the main purpose of the article, but you can use it to get ideas...
It's called A Pure .NET Single Instancing Solution[^]
I need to do drap and drop in virtual mode.
1. I use virtual mode to display large number of contact in icon view in my application.
Currently my application need to support drag and drop. I can't found any solution. Is that anyway to do so?
2. If i want to drag and drop a list to any location (not align to grid), how can i implement it?
Hope some one can help me to solve this problem. If can provide me some example to refer.
I need some help in the final year project.Can somebody give me the idea of dynamic content generation in C#.
Can somebody also tell me how to search a topic from a book which is in RDF format and generating a book(here by book, i mean definition, explanation and exmaples...) of the topic i am searching. The algorithm i am working on should perform following steps:
1 Parsing the file(RDF)
2 Forming Semantic structure(graph)
3.On the basis of some reordering algorithm, generating the text out of the graph
Can you please guide me how to perform these steps in C#.Please help me....
Sounds like a lot of work. You have a year to get this done tho, right ? So, start by doing some research on the RDF format, and then consider how to turn that data into something you can build a graph from.
I think you posted in the wrong forum, this is C#.
And its probably because you cant have the function fopen() as a variable.
I'm also not so sure you can make pointers on the same line like that either, but I've never tried.