|
You didn't answer me - where would the database be, local to you, or local to the tool ?
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 )
|
|
|
|
|
sorry. local to the tool.
|
|
|
|
|
I found the "SQL Server Web Data Administrator" (http://www.microsoft.com/downloads/details.aspx?FamilyID=c039a798-c57a-419e-acbc-2a332cb7f959&displaylang=en). This is exactly, what I've searched for.
Thank you!
|
|
|
|
|
I dont see in the control that i can do it.
I need to create one sun in each node - can i use List View control ?
Thanks for any help.
|
|
|
|
|
Yes, you can put icons in the left of the list view control.
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 )
|
|
|
|
|
What ? can you explain please ?
|
|
|
|
|
If you use a list view, you can associate an image list with it, and for each item, set an index into the image list for the image to show on the left corner.
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 )
|
|
|
|
|
Thanks,
But i need also that each item will be check box - can i do it also ?
|
|
|
|
|
Gosh - talk about feature creep.
Yes, it can be done, but I'm not sure if it's built in, or if you need a custom control to do it. Search the code project articles, you should find something there.
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 )
|
|
|
|
|
Works for me. With a TreeView anyway, which is my weapon of choice, I prefer it over ListBox and CheckedListBox.
|
|
|
|
|
I have method to which object of Type ICollection is getting passed.
I want to create an object of List<> (Generic List) , with object of ICollection. Is that possible?
kumar
|
|
|
|
|
You can use the ICollection interface to iterate over the collection, and then put the items into a List, or whatever.
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 )
|
|
|
|
|
thanks, but i don't want to iterate, is that direct way, like while creating ArrayList object we can directly pass ICollection object to the constructor of ArrayList so that the contents of ICollection get copied to Arraylist object, is something like possible with generic List (List<>) object?
|
|
|
|
|
I don't think so, not if the ICollection is not templated. because, the difference is, an ArrayList and an ICollection both knew they were just holding objects.
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 )
|
|
|
|
|
|
Hi,
let me explain what i want to do.
I'd like to store properties into a LinkedList (or something similar (key, value pairs)) and then
change the control property via changing the value in this list:
something like this:
Form myForm = new Form();
LinkedList<somekeyvalueclass> list = new LinkedList<somekeyvalueclass>();
list.AddLast("width", myForm.Width);
and then by changing this property i change myForm.Width:
findPropertyByName("width").value = 500;
Maybe I'm completely wrong and it cannot be done in C#
|
|
|
|
|
Is there a reason you're doing it like this? Besides, the 500 you store in the list is different from myForm.Width.
Why don't you just do myForm.Width = 500; ?
Cheers,
Vikram.
"But nowadays, it means nothing. Features are never frozen, development keeps happening, bugs never get fixed, and documentation is something you might find on wikipedia."
- Marc Clifton on betas. Join the CP group at NationStates. Password: byalmightybob
|
|
|
|
|
Yes i know it's different and that's what i'm asking, if there is a way howto store some kind of reference to that object...
(it's kind of setup, i'd like to register properties which should be changed in certain circumstances and change them on one place)
|
|
|
|
|
Well, you could store the settings in a settings file and change the value there. That's how lots of programs do it.
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Yes it is possible to do it this way, but what i intend to do is, change those settings also at runtime not only at startup (restore to defaults)...
|
|
|
|
|
Once you've stored the values in a config file, you can read them (and update them) any time you want. Am I missing something?
Cheers,
Vikram.
"But nowadays, it means nothing. Features are never frozen, development keeps happening, bugs never get fixed, and documentation is something you might find on wikipedia."
- Marc Clifton on betas. Join the CP group at NationStates. Password: byalmightybob
|
|
|
|
|
Yes, it can be done (with a bit of reflection and a class to manage the work).
That doesnt necessarily make it a good idea! Store your settings wherever you want (DB, file, Xml or wherever) and have a process that reads those settings and sets the screen.
|
|
|
|
|
Could you please show me an example
|
|
|
|
|
try exploring Hashtable or Dictionary generic?
|
|
|
|
|
I have some code which looks like that:
[DefaultValue(CornerStyle.Rounded)]
public CornerStyle RectCornerMode
{
get { return this["RectCornerMode"].GetValue<CornerStyle>(); }
set { this["RectCornerMode"].SetValue<CornerStyle>(value); }
}
in this[string] I get the attribute decorating the calling method, and used it to compute a default value.
now it seems that sometimes (when build in release mode) the property is by passed and the calling method call this[string] and GetValue directly, thus ignoring the decorating attribute....
is there a way to avoid this inlining?
any suggestion?
|
|
|
|