|
Hi,
I have some question about running threads in C#.
I have some thread that running on my system. The thread will stop in one case ... if some boolean variable will turn on.
So, in some places in the code i read the value of this boolean and only in one place in the code i write a value to this boolean.
When i writing the value to this boolean i lock the variable ( because its critical section ) but when i read from this boolean I'm not lock this variable.
I not sure i doing the right thing in this case - i mean that I'm not sure that reading without locking the boolean is the right way.
Do i need to lock the boolean in the reading also ?
|
|
|
|
|
Yanshof wrote: Do i need to lock the boolean in the reading also ?
No you don't. You even need the lock if more than one thread writes to the boolean.
Regards
|
|
|
|
|
Hi, what modifications should I do to add "editing" functionality to DataGridViewImageCell. I need a cell that has Image external representation and Text internal representation. I know how to get a Text string from Image name and vice versa for my case.
What class should I derive from and what I need to modify?
|
|
|
|
|
You are in the right direction. You should derive from DataGridViewImageCell class, and set your DataGridViewImageColumn.Template property to that class.
For the editing support, there is a control associated with each DataGridViewCell. I believe you should set MyNewImageCellType.EditType = typeof(TextBox); or something!
Regards
|
|
|
|
|
I was in the production of a C / S procedures, in the left up a tree structure,
Click on the left want a project, the right to show the specific features of the item (the corresponding interface)
If the B / S procedures, I can create a frame directly on the left click on the link
If I can use Notebook delphi such a container control, in the production of many panel then Notebook.ActivePage = panelX on the ~!
The VS2005 how to achieve this function should be »
|
|
|
|
|
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
|
|
|
|
|