|
There are plenty of results here[^]
Cheers,
Vikram.
If the radiance of a thousand suns
Were to burst at once into the sky
That would be like the splendor of the Mighty one—
I am become Death,
The shatterer of Worlds.
|
|
|
|
|
Thanks pal,
Actually I'm stuck with passing parameters in two projects. Not in a same project(between classes.)
I appreciate your help all the time...
Eranga
|
|
|
|
|
while dubugging C# windows application i want to view the list of threads that are running. How can i view it in the output window
|
|
|
|
|
That's what the Threads window is for. Ctrl + Alt + H.
Cheers,
Vikram.
If the radiance of a thousand suns
Were to burst at once into the sky
That would be like the splendor of the Mighty one—
I am become Death,
The shatterer of Worlds.
|
|
|
|
|
wow..thanks for that. i've been looking for this window, too.
btw: i still cannot find in in the menu bar
|
|
|
|
|
I thank Ennis Ray Lynch, Jr for his reply to my previous post but even in the declaration for "aspectRatio" it still says that the keyword aspectRatio "does not exist in the current context"
modified on Wednesday, February 27, 2008 11:22 PM
|
|
|
|
|
I have had the same problem with many of the tutorials. It seems most of the authors take pride in concealing where they hide their declarations. Look and you should find it buried in a single-line declaration on some unrelated tutorial most likely.
Need a C# Consultant? I'm available.
Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
|
|
|
|
|
Hello,
I am not sure how to tackel this, what I have is a data grid view with two columns 1. an unbound check box column and 2. a bound data column. What I want to do is for each check box that is check i want to get the value of the bound column in that same row. what i was thinking is some thing like this:
foreach (DataGridViewRow row in datagridview)
{
if(datagridview.Columns[0] (here is where i am not sure how to see if the check box is checked)
{
}
}
any help would be great...
Thanks, J
|
|
|
|
|
Value
something like
if (dataGridView1[0, 0].Value = 0)
{
}
1 for true, 0 for false
hope this will help
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
|
|
|
|
|
|
glad to know
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!
Does anyone knows how can I show a messagebox, after a user tries to change a radiobutton, and cancel that action if needed? I already tried to do it inside several events, but without success.
I would like to do something like this:
<br />
private void radioButton_TMP_Validating(object sender, CancelEventArgs e)<br />
{<br />
if (MessageBox.Show("Are you sure?", "Attention", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)<br />
{<br />
e.Cancel;<br />
}<br />
}<br />
I appreciate if someone could help me with this. I didn't find any solution when "gOOgling"
Thanks!!!
|
|
|
|
|
try this :
if (MessageBox.Show("Are you sure?", "Attention", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
radioButton.Checked = false;
else
radioButton.Checked = true;
and do not put this code in Validating event, Click event will be good for it
hope this will help
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
|
|
|
|
|
Thanks for the post Xmen!
Although, I don't think that this is the right way to do this. First because using the click event, the radiobutton on that time is already changed and, like this, I will need to rollback that action, unchecking that radiobutton and checking the previous one.
What I really want is to have the chance to cancel and prevent the radionbutton to be checked.
This must be done before the radiobutton is checked.
And by the way, using the click event is not enough because the radiobuttons can be check using the keyboard. There must be a simple and efficient way to do this.
Any ideas?
|
|
|
|
|
hmm... i think only CheckedChanged event can help but it may cause of iteration, but you can use some logic of bool or you should make a custom event.
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
|
|
|
|
|
you could use the CheckedChanged event which is called when the checked property is changed, so that should work for the key board as well as the mouse. hope that helps
|
|
|
|
|
That's true jasper018. But even like this, the CheckedChanged event is called only after the radio button is checked. I still need to rollback that action if needed. There must be an event that is called right before the radiobutton is checked.
|
|
|
|
|
I know there is a AutoCheck propery, the default is set to true, and what that does it when a raido button is checked, it clears all the other raido buttons in the group...
I have never used it, but it might be help full, but then you would have to clear the the raido buttons manually on user confirmation...
|
|
|
|
|
It's a very hard coded idea but, until now, the only one that might work (i think)
I will give a try, at least until i can't find a better and efficient way to do this (because there must be a simple way).
Thanks!
|
|
|
|
|
Thank you all!
Finally a solution. I will post the code here for future people with the same problem.
Like jasper suggest before, i did set the AutoCheck property to false on all radiobuttons (4 in my case) and add just 1 event on all of them (the Click event).
It works when the user click the radiobutton or even when using the keyboard.
Perfectly as it seems to me, and not so hard coded anyway.
<br />
<br />
private void radioButton_tipo_Click(object sender, EventArgs e)<br />
{<br />
if (((RadioButton)sender).Checked == true)<br />
{<br />
return;<br />
}<br />
else if (MessageBox.Show("Are you sure?", "Attention", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)<br />
{<br />
((RadioButton)sender).Checked = true;<br />
<br />
if (sender.Equals(radioButton_tipo_SA))<br />
{<br />
radioButton_tipo_SQ.Checked = false;<br />
radioButton_tipo_ACE.Checked = false;<br />
radioButton_tipo_SQU.Checked = false;<br />
}<br />
else if (((RadioButton)sender) == radioButton_tipo_SQ)<br />
{<br />
radioButton_tipo_SA.Checked = false;<br />
radioButton_tipo_ACE.Checked = false;<br />
radioButton_tipo_SQU.Checked = false;<br />
}<br />
else if (((RadioButton)sender) == radioButton_tipo_ACE)<br />
{<br />
radioButton_tipo_SQ.Checked = false;<br />
radioButton_tipo_SA.Checked = false;<br />
radioButton_tipo_SQU.Checked = false;<br />
}<br />
else<br />
{<br />
radioButton_tipo_SQ.Checked = false;<br />
radioButton_tipo_ACE.Checked = false;<br />
radioButton_tipo_SA.Checked = false;<br />
}<br />
}<br />
}<br />
Thanks everybody for the help !!!
|
|
|
|
|
|
EventArgs e of CheckedChanged event dont have Cancel property
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
|
|
|
|
|
Thanks for help bicphuong!
I understand your idea but in CheckedChange event, using "EventArgs e" I will not have the possibility to use the "Cancel" property. Until now, I only found that property when using the Validating event, and the behavior was not so far way from what I want. Anyway, what happened was that sometimes he reacts like I was expecting, but sometimes not. Seems that this event occurs lately.
|
|
|
|
|
I want to have a GridView like this. But it seems DataGridView only support one line head, is there anyway to do this?
By the way, I have tried NetVantage. But I think it's a little bit slow when loading controls, so I'm wondering if I can just using DataGridView to do this?
Personal Info Contact Info
Name Age Gender Mobile Phone Email
Data Data Data Data Data Data
Data Data Data Data Data Data
Data Data Data Data Data Data
|
|
|
|
|
DataGridView doesnt supports multiple headers for a column, however you can separate the text of header by this ( | ) that will look like a line multiple headers
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
|
|
|
|