|
thx...i'm considering a new user interface!
rzvme
|
|
|
|
|
Hello
rzvme wrote: is it?
Sure it's not! set AutoCheck property of both RadioButtons to false. Then in the handler write the code that will Check/Uncheck the RadioButton. eg.
((RadioButton)sender).Checked = !((RadioButton)sender).Checked;
Even if you put more than a RadioButton on one container, they will be multiple selection according to the way you define in the handler.
Regards
|
|
|
|
|
Yes.
The purpose of radio buttons is to provide a single choise selection. The name comes from the mechanical push buttons used to select channel on old radio recievers. As you can only listen to one channel at a time, the previously selected button would pop up when you selected another channel.
If you want to provide a multiple choise selection, you should use checkboxes instead.
---
b { font-weight: normal; }
|
|
|
|
|
i know the kind of radio u speak, but i could always, somehow, press 2 buttons down at the same time
rzvme
|
|
|
|
|
Then use the CheckBox instead and change it's Appearance property to Button. Try it and see if you like it. It's FAR easier than custom drawing your own CheckBox control.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Yes, you could, but then you used two fingers. Perhaps if you had two mouse pointers it would be possible to press two radio buttons at the same time?
---
b { font-weight: normal; }
|
|
|
|
|
Say you have a variable named "Str" and it's value is "A", how would you change it to "B" not knowing which letter to start at? Could you use the same method for strings that represent numbers also? I have searched the net and haven't found an answer.
Thanks in advance.
Tim
|
|
|
|
|
string test = "A";
test = string.Format("{0}", (char)(test[0] + 1));
=> test = "B"
This will work, if your value is an ASCII char.
It's converted to an int , increased by 1 and converted back to a char
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I think all my values will be ASCII char's right now.
Thank you.
Tim
|
|
|
|
|
Actually it works for any character, but it's not very meaningful for all characters.
---
b { font-weight: normal; }
|
|
|
|
|
This will convert a full string. You will end up with some punctuation at the end of the alphabit.
string oldStr = "Hello";
string newStr = "";
char[] hold = oldStr.ToCharArray();
for (int i = 0; i < hold.Length; i++)
{
newStr += (char)(hold[i] + 1);
}
MessageBox.Show(oldStr + Environment.NewLine + newStr);
|
|
|
|
|
Thanks for the code Michael.
Tim
|
|
|
|
|
Here's a small recursive code for increasing a string. It's for increasing through Excel columns, so it also increases strings like "AD" or "ZZ". Use the method IncString:
private string IncString(string s)
{
if (String.IsNullOrEmpty(s)) return "A";
if (s[s.Length - 1] == 'Z')
{
if (s.Length == 1) return "AA";
else return IncString(s.Substring(0, s.Length - 1)) + "A";
}
else
{
if (s.Length == 1) return IncChar(s[0]).ToString();
else return s.Substring(0, s.Length - 1) + IncChar(s[s.Length - 1]).ToString();
}
}
private char IncChar(char c)
{
return (char)((int)c + 1);
}
|
|
|
|
|
Hi
I'm looking for a way to check the compatibility between two versions of an assembly. I know how to retrieve the version of an assembly but i'm looking for a way to check the compatibility automatically.
In exemple : 1.0.0.1 is compatible with 1.0.0.0 but 1.1.0.0 isn't with version 1.0.0.0
Do I have to verify manually or is there already a method in the Framework that does it ?
|
|
|
|
|
By Microsoft's definition, only the same version number of a strongly-named assembly is compatible. Anything else has to be redirected either through publisher policy or using a bindingRedirect in the config file.
|
|
|
|
|
A little bit late but thanks
|
|
|
|
|
|
The short answer is no. The closest analogue is "internal" (not very close).
|
|
|
|
|
That's what I thought, thanks for the confirmation.
I suppose it can be simulated with "internal" classes and small assembly groupings, but not quite the same thing.
|
|
|
|
|
Perhaps this is, what you are looking for:
Click
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Wasn't aware of that, thanks for the pointer.
|
|
|
|
|
I'm using a MessageBox to give the user a choice. The text is something like "Press 'Yes' if you want to continue or press 'No' if you want to quit". However, I know my users will have Windows OS installed in various languages, other than English.
I want to keep the message text in English, but I do want to let the 'Yes' and 'No' parts correspond to the actual texts on the messagebox button.
Is there a way to find out the text that is displayed on the Yes-button given the language of Windows? Is there a function that can give me this button text.
Thanks.
-- modified at 9:25 Thursday 28th September, 2006
|
|
|
|
|
You should use DialogResult
if( MessaseBox.Show() == DialogResult.Yes )
only two letters away from being an asset
|
|
|
|
|
Mark Nischalke wrote: You should use DialogResult
if( MessaseBox.Show() == DialogResult.Yes )
I know and I am, but in this case I'm interested in what text is visible to the user so I can incorperate the same text in my message text.
|
|
|
|
|
Wht actually do u want to do???
Thanks & Regards,
Pramod
"Everyone is a genius at least once a year"
|
|
|
|