|
You question is totally unclear. If you're asking about visual studio itself, then this is the wrong forum. There is another forum for Visual Studio language-independent questions. Here is for questions about C# -C Sharp- language only!
Regards
|
|
|
|
|
i want to change the DGV event calling sequence but dunno how to do ? here is current DGV event calling sequence :
Mouse Down <br />
Selection Changed <br />
Mouse Click<br />
Mouse Up
what i want is :
Mouse Down <br />
Mouse Up<br />
Selection Changed <br />
Mouse Click <br />
that mean if Mouse Up event not called then other rest should not call also
is there anyway to change this or any other way to solve this?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Xmen wrote: is there anyway to change this
Nope! Post your real problem. The one you want to change the sequence of events to solve. Maybe we can figure that out.
Regards
|
|
|
|
|
yes i posted but noone replied, my problem is i want to drag selected rows from a DGV but when mouse button down on a selected and keep down then all selected rows get unselected and the clicked row become selected only, it works good when i use right mouse button but when i drop rows a small context menu popups (i.e. Move here, copy here) but i dont want this menu popup, so anyway to solve this ?
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
|
all articles in entire google dropping only single row, i have been searching this thing for weeks and still not get anyone, some questions asked same as me but no reply
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
What works for one row works for a collection. you just have to go through them one by one.
Regards
|
|
|
|
|
no its too different, i tried, i had an idea but that idea became useless
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Oh at last i did, now going to optimize the code
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN%
Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y<p?jxsg-b$f4ia>
--------------------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Hi.
I want to convert rechTextBox's content to HTML code.
How can I do it ?
Are you have a suggestion ?
Freshman
|
|
|
|
|
If you can't find code to do this, you need to write something that parses the RTF format and creates HTML. Word will do it, if you don't mind your user having to have word installed.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Christian Graus wrote: Word will do it
Wow
Please explain more .
Freshman
|
|
|
|
|
You can control word from C# code. Word can save and load RTF and can save HTML, so you could load a RTF and save as HTML, by using the Microsoft tools for office to control Word on the client machine.
Christian Graus
Please read this if you don't understand the answer I've given you. If you're still stuck, ask me for more information.
|
|
|
|
|
Christian Graus wrote: by using the Microsoft tools for office to control Word on the client machine.
What do we search to find the reference about it ?
Freshman
|
|
|
|
|
|
Thank you Luc .
Regards.
Freshman
|
|
|
|
|
Hi All,
How to Append images and text in RichText Box .Thanks In Advance.
|
|
|
|
|
|
Hi everybody!
How to elegantly give the same effect as
Element last = getLastElementOfType<typeof(elem)>();
should give, but seems not to work? Without using reflection of course.
elem is an object of a type which derives from Element , but the type itself is unknown as it is passed to the method just as an Element.
I solved it by a switch statment which cases are all types deriving from Element , but it is ugly because it needs to be modified everytime a new derivative class is created.
Thanks in advance.
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
modified on Sunday, July 6, 2008 7:03 AM
|
|
|
|
|
|
There is no generic class here. There is a generic method only. Sorry for bad title.
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
I am not really sure what you are trying to do
Sounds to me like a visitor pattern, but I am not sure how generics will fit in. Maybe supply some more detail, and we can solve the problem
|
|
|
|
|
Situation has changed, because it turned out that different types requiere different methods, so a bunch of "is" cases was needed anyway.
But the subject is interesting, so assuming that I need the same thing which I needed before, the situation comes out as follows.
Let be an Element class and a set A of n XElement classes deriving from Element .
Let be a sequence of objects s and for each object o in s { type of o is in A }.
Let be a method M(start, end) .
Let be a function f(o) which returns some data related to an object o from sequence s.
The method M iterates through a part [start,end] of s and needs some information of every element o. So it calls function f(o) for each o in s. f is defined as follows:
internal T lastElementOfType<T>(int start) where T : Element
{
int index = elements.FindLastIndex(start, el => el is T);
return index == -1 ? null : (T)elements[index];
}
internal T lastElementOfType<T>(Element start) where T : Element
{
return lastElementOfType<T>(findIndex(start));
}
int findIndex(Element element)
{
return elements.FindIndex(el => object.ReferenceEquals(el, element));
}
Now.
In the implementation, s is a list of Element s, but objects of this list aren't of type Element but of one of types from A (from the definition of s given above). So I made f generic method which takes typeof(o) as a generic parameter. Unfortunately, passing an expression typeof(o) as T generates a compilation error. This is reasonable because typeof is evaluated at runtime. So what to do?*
* - I've got some ideas but I don't want to be a killjoy you know.
Greetings - Gajatko
Portable.NET is part of DotGNU, a project to build a complete Free Software replacement for .NET - a system that truly belongs to the developers.
|
|
|
|
|
gajatko wrote: I've got some ideas but I don't want to be a killjoy you know.
Interesting problem, but I am not sure I understand completely. Sometimes generics are not worth it IMO
|
|
|
|
|
Hi,
I've been able to generate RSA key pair, and exporting them to XML files, (thanks to tutorials found in this forum)
The problem I'm facing is that I want to send the public key via socket communication to another server.
I will then use the public key to encrypt a password, which will be use for symmetric encryption communication between the two hosts.
I try sending the xml file, but I cannot seem to be able convert back to XML in the other end.
so then I thought if I could send the public key as a "string" which I could just load on the other end.
is this possible?
or is there a better way to share this "password key" for symmetric encryption.
Sorry if this is simple, I'm completely new to c# and programming.
Thanks,
JC
|
|
|
|