|
you need to write your own control, a listbox can only display text.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
a ListBox contains an ItemCollection which holds objects; these can be user drawn,
(MeasureItem, DrawItem events) and are not limited to text...
|
|
|
|
|
Damn - for some reason, I thought he said a combo box. I must have been tired...
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
use grid control not list box for it.
|
|
|
|
|
You can also use the ListView control.
|
|
|
|
|
Hi. I'm using an XmlTextWriter to write some stuff to an xml file.
I get this exception when I try to write the second node: Token StartElement in state Epilog would result in an invalid XML document.
This code snippet is for illustration purposes:
XmlTextWriter writer = new XmlTextWriter("test.xml", Encoding.UTF8);<br />
<br />
writer.WriteStartDocument();<br />
writer.WriteWhitespace(Environment.NewLine);<br />
<br />
for (int i = 1; i <= 10; i++)<br />
{<br />
writer.WriteStartElement("node" + i.ToString());<br />
writer.WriteValue("CodeProject");<br />
writer.WriteEndElement(); <br />
}<br />
<br />
writer.Close();
What am I missing or doing wrong?
It should be pretty straightforward, yet...
Thanks.
|
|
|
|
|
Every XML document has to have one ( and only one ) root node. Add a single root node, and you can have as many sibling or nested nodes inside that as you like.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I'm ashamed with myself.
Thank you, Christian.
|
|
|
|
|
Glad to help
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Christian Graus wrote: Glad to help
Help with the XML problem or shaming himself?
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
hey my friend made the tic tac toe game and i will add the intelligent part to make it oneplayer Vs computer
i want to find a way to make a prolog dll and to access it using c#or c++
for example i have
predicate : player1(Move,Cpu_response)
so say i did the Dll file of visual prolog 5.1 now i need to access it through the C# or C++
in brief (how to link the prolog to C# or C++ )
FOR ISLAM
|
|
|
|
|
http://www.dcs.ed.ac.uk/home/stg/Psharp/[^]
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
yes i've seen this P# in google ,,and i'll try it ,but i wanted to know if there is conventional way using the visual prolog it self.. cause p# is quite new compiler and i donno if it will help in quite bigger situations?
FOR ISLAM
|
|
|
|
|
Unless prolog creates DLLs that p/invoke can call, the answer is probalby no.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
If your prolog compiler can build a standard c++ style dll you can p/invoke it the same way. If not you're sol without p#.
--
CleaKO The sad part about this instance is that none of the users ever said anything [about the problem].
Pete O`Hanlon Doesn't that just tell you everything you need to know about users?
|
|
|
|
|
fine . it may be do , but could you tell me please what's the p/invoke?
FOR ISLAM
|
|
|
|
|
If there is no other probles you can use other controls.....
eg: C1flexGid is a good tool, in that you can do all these things
My small attempt...
|
|
|
|
|
can you tell me wht's C1flexGid ?? my search on it didn't comeup with benificial info...
FOR ISLAM
|
|
|
|
|
Its a tool. like gridview
i think you can download it from net
My small attempt...
|
|
|
|
|
|
What is your problem ? Your previous requests are still visible. Why do you keep posting them ? Why not spend the time googling for an answer instead ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
You have asked this 3 times in the space of around 2.5 hours! Seriously, you need to learn some patience. If it is that urgent why not take a support call out with Microsoft. For a small feel they'll help you as a matter of priority.
|
|
|
|
|
Hi!
I am developing application in C# (winform).I am reading data from a text file and storing it in a DataTable, then adding that DataTable to a DataSet and making that DataSet as DataSource of DataGridView control.
DataTable contains 5 columns, and one of them contains boolean value. i want to add a checkbox column in DataTable which will represent that boolean column.
i tried to add DataGridViewCheckBoxColumn into DataTable but error occured saying that DataTable can only have a column of type DataColumn.
Can any body tell me how can i add such column in DataTable. I cannot add a checkbox column in datagridview because mostly my datagridview displays more than 100000 records and when i try to add 100000 rows into datagridview it takes too much time.
Thanks in advance...
Regards,
Affan Ahmad Toor
|
|
|
|
|
Try to change the DataType og the particular column
like DataGridView.Clumns[index].. You can change the type to boolean
My small attempt...
|
|
|
|
|
Hi!
Thanks for reply, i tried your mentioned technique but no result...! is there any other way to do it...?
Regards,
Affan Ahmad Toor
|
|
|
|