Well congrats. Looks like you actually found one with some initiative.
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
Sometimes it takes a lot of work to be lazy
Individuality is fine, as long as we do it together - F. Burns
I want to develop a C File using C#3.0 which will create the header file with structures, enums, macros..and all other features of the C..
I want to develop a tool in which i have a GUI and i have to select the options from GUI and accordingly i have to create a C file for the same
So is it possible in C#3.0?
thanks for ur reply..
Basically I am doing a project in which i will be designing a GUI and from there by taking the input I want to generate the C code in a file with ".C" extension. I will be using a different compiler to compile that C File.
So is it possible?
My last team leader used to say "everything is possible with software", and I would agree. The question you really need to ask is whether you are able to translate user input selections into a valid C program.
I would recommend using an XML file to represent your C file. If you manipulate a .c file directly when you add or remove something like and include you have to do a whole lot more to find the correct line and insert or remove the text you want.
If you use an XML file you could have an includes node, and in C# you just add and remove nodes to the tree as you please. You can also have class nodes which in turn have method nodes and so on. Then you use XSLT to turn the XML into a .c file.
How to disable selection in datagridview?
I used datagridview1.ClearSelection();
it cleared the selection. But, I would like to restrict the user not to select the data. Please let me know how to achieve this. Thanks in advance.
1. If you want to allow selection for certain rows and disable selection
for other rows then try following.
If SelectionMode is FullRowSelect, then you'll need to override SetSelectedRowCore for that DataGridView, and not call the base SetSelectedRowCore for rows you don't want selected.
If SelectionMode is not FullRowSelect, you'll want to additionally override SetSelectedCellCore (and not call the base SetSelectedCellCore for rows you don't want selected), as SetSelectedRowCore will only kick in if you click the row header and not an individual cell.
I have a lot of URLS / web programs. I need to create a default page which consist of
two columns. Left column which has link button will call the url and display the existing url to
the right column of my default page. It can be done using html.
Is there a way to do it in .NET version? using web.
I'm playing with some kind of SMS service which should be automated, and I have already developed an application, which can send AT codes to a device through the Serial port COMx.
Now I want to expand that application a bit, so I from a desktop can send commands to the serial device on the server.
So PC1 can access Server1 (with serial device connected to com1) provided they are connected in same network.
Is it possible to make some C# code in a desktop application, which connect to a serialport on another machine? In this case the remote server. And how?
Is it possible to make some C# code in a desktop application, which connect to a serialport on another machine? In this case the remote server.
I don't think it is possible to connect directly to another PC's serial port via a lan connection. You will probably need some program on the server that takes commands from your client PC and forwards them to the COM port.
I'm affraid that you are right about that. I ended up with using a web service hosted on the com hosted server, and then call the get HTTP request needed in URL form to send message. Using webBrowser object in my desktop application (without opening it visually ofc), and it seems to work this way. Then there is just a request about keep the webhosting service running on the server.