|
Sabarish_s wrote: but the issue is that we have toi change in about 50 project
Well, if it solves your problem, perhaps that is the best bet.
|
|
|
|
|
References to strong-named assemblies are bound to that specific version number. There's no other way because there could be multiple versions of the assembly in the GAC.
However, you can redirect the assembly bindings using a publisher policy[^].
|
|
|
|
|
i working with c# 2005
i have toolbar in the form that contain nevigations button(first row -last row -next row -previous row)
i want to select rows not by mouse but with theses buttons how?!
and if the selected row is not appear the datagrid scrollbar scrolls to show selectd row
plz answer me quickly ?!!
ma_refay
|
|
|
|
|
ma_refay wrote: plz answer me quickly ?!!
How quickly do you need it?
|
|
|
|
|
How quickly do you need it?
Today in any way
thanks alot
ma_refay
|
|
|
|
|
|
Don't be hard on him Martin
his English seems to be some how poor.
|
|
|
|
|
Are you doing anything other than scrolling the data? Are you placing data from the grid into other controls to edit them?
Either way, I'd suggest this article here[^] as a good reference.
|
|
|
|
|
Hi,
Is it possible to launch the Windows ODBC Data Source Administrator from within an application?
|
|
|
|
|
Hi,
I'm writing a COM interop interface in C# (VS2005) to be used in VC++, and got into problem of proper exporting enum-s in such interface.
When i previously used C++ for writing COM interfaces, i would just declare the enum within IDL file, and then within the library section also declare it, that way way making my enum accessible when TLB file is imported using #import in C++;
Now in C# if i declare: public enum MyEnymType {val1, val2,...}, then such object when imported into C++ project is declared as: enum MyEnymType {MyEnymType_val1, MyEnymType_val2,...} instead of enum MyEnymType {val1, val2,...}
Is there a way to make C# embed my enum type into the object in such a way that it exports original enum declaration during import instead of such an ugly Type_Value thing?
Thank you,
Vitaly
|
|
|
|
|
I don't know enough C++ to give a definite answer, but this is what I think:
I think that each enum value has to be a unique identifier in C++, while in C# they only have to be unique within the enum. That would account for the need of prepending each value with the name of the enum.
---
Year happy = new Year(2007);
|
|
|
|
|
This is true, C++ doesn't allow the same enum variables within different enum declarations, but if i'm sure that i have unique variables within my enum, shouldn't there be a way to override for C# compiler to use original names instead for variables within enum? 'Cos this is what i'm looking for, if it is possible....
Free C++ libraries with source code on www.neatcpp.com: TWAIN, DirectShow, Interprocess Communications, etc...
|
|
|
|
|
Just because you're sure that the enums will be unique in your class doesn't guarantee that it will be unique against another class. Here the compiler is trying to protect you from yourself (even though you don't want it to).
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
My question was "Is this C# behavior overridable?"...
Free C++ libraries with source code on www.neatcpp.com: TWAIN, DirectShow, Interprocess Communications, etc...
|
|
|
|
|
VitalyTomilov wrote: My question was "Is this C# behavior overridable?"...
And my answer is no. In it's infinite wisdom, MS has decided that you thinking you know best is a bad thing. Hence, my answer above.
How dare you know your own mind
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Possibly if you use a custom modified version of the mono compiler. Otherwise no.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
Nice icon GUFFA
Congratulations for the MVP
|
|
|
|
|
What im trying to do is work my way down a tree style graph and delete each node (not to be confused with a .NET TreeView).
E.g: a user clicks on the top node, and deletes it, from that it should delete every node that is related to that top node. I can delete the nodes that are directly related to the top node, eg the children of that node, but i cant seem to figure out how to delete the children of the children, eg at level 3 onwards.
At the moment, my code gets the selected node, and looks in a dataset and goes through the dataset looking for any rows that match, and then deletes that child node.
Any ideas how i would go about doing this?
Regards,
Gareth.
|
|
|
|
|
One way to do this would be to recurse to the bottom nodes and then delete from the bottom up. The pseudo logic would look like this:
function LoopItem(Node parentNode)
{
for each Node childNode in parentNode
{
LoopItem(childNode)
childNode.Delete
}
parentNode.Delete
}
All you would need to do then, is to call LoopItem with the parent node.
the last thing I want to see is some pasty-faced geek with skin so pale that it's almost translucent trying to bump parts with a partner - John Simmons / outlaw programmer
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Cheers, it seems the key to why my code wasnt working was i was deleting the node then looping, instead of looping and then deleting.
Regards,
Gareth.
|
|
|
|
|
Does the datagridview in vs2005 work like outlook. ie I know it works the same when you click the column headings but in outlook you can move to rows in that column by pressing say 's' to move the record selector to the beginning of all the 'S' in the column you have just ordered by. if it does how do you active that functionality. If not is there one can buy that will do the same?
|
|
|
|
|
robmays wrote: If not is there one can buy that will do the same?
Wow! You go for the cash pretty quickly!!
Even though DataGridView doesn't support this feature natively, you can make it by two simple steps:
1- Change the DataGridView.EditMode to EditOnEnter for example -ie. Anything that doesn't include KeyStroke-.
2- Handle the DataGridView.KeyPress event -or any other key event-, and put the code that goes through the rows -using a foreach loop- to check your desired column if it starts with the specific key the user entered.
PS.
You can add the feature of supporting two-or three strokes search -like the windows explorer. ie. searching for "sam" not just "s"-, by storing the keystrokes in a temp string and clear that string after a small timer elapse to start over a new search if the user presses a key.
Regards
|
|
|
|
|
excellent ,dont like to spend money. can you give me some simple c# code to steer me in the right direction? that you would use in the events.
|
|
|
|
|
Ummm.... Did you notice point number 2 in my previous post? What is it that's not clear about it?
Regards
|
|
|
|
|
Hi,
I am bulding a simple windows application. the forms read data from the database and show it. the user can modify the data through the forms and the data is updated. it works fine as long as it is used by single user on a single machine.
But I want this to be used by different users on the network. There may be an instance where two or more users can open the same form. So any changes made to a record by one user can not be reflected on the other end
but i want changes to be reflected on all machines where the same form is opened.
How can i achieve this ? Please suggest me a way ?
thanks in advance
kss
|
|
|
|