|
Hello
I have a usercontrol with a number of childcontrols. One of these control's got a 'EnabledSpecial' property. I would like for this to be set instead of the controls 'Enabled' property when the usercontrols 'Enabled' property is changed.
How do I go about achieving this?
/regards Magnus
EDIT: Fixed, used OnEnableChange on usercontrol and looped through all childcontrols.
-- modified at 8:42 Friday 31st March, 2006
|
|
|
|
|
Hello,
I am new to this site and new to programming. I am stuck. My assignment states the following: We need to write a program that will read in a string of any length and then display the reverse of the original string, the original string in all Caps and in all Lowercase letters. When reversing the string, the letters should be reversed with the appropriate capitalization applied to all letters.
Sample output in bold.
What string would you like to convert? John Smith
Reversed String: htimS nhoJ
All Uppercase: JOHN SMITH
All Lowercase: john smith
I figured out Uppercase and Lowercase but not reverse or even how to tie it in to the rest. We are using the console applications in Microsoft Visual Studio .NET 2003. Any Help would be greatly appreciated. Thank You!
__________________
This is hurting my Head !
Shadow Sprite
|
|
|
|
|
You are lucky that I had this code lying on my computer becouse I usually don't do other people's homework;)
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Input a string:");
string inputString = Console.ReadLine();
Console.WriteLine("All lowercase: " + inputString.ToLower());
Console.WriteLine("All uppercase: " + inputString.ToUpper());
Console.Write("Reveresed string: ");
for (int i = inputString.Length - 1; i >= 0; i--)
Console.Write(inputString[i].ToString());
Console.ReadLine();
}
}
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Congratulations!!! You just did his homework assignment for him!! He's well on his way to failing the class now!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi!
try using string.LastIndexOf
abhinav
|
|
|
|
|
And what woudl you do with this method in this case?
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Thank You guys for the help. I think I was trying to make it more complicated than it really was. Our Instructor likes to give us the assignment before we go over the chapters or examples that explian the solution. Thank You.
Shadow Sprite
|
|
|
|
|
I have an image 100x100
i want to set the pixel at the coord 20,35 just transparent.
How can i do?
|
|
|
|
|
Use the SetPixel method of the Bitmap class and provide a transparent pixel.
--------------------------------------------------------
My development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hi,
- Are there any methods to get the shares of a computer in a network?
- Ex: when we type \\192.168.0.1\ in windows explorer, it will output the share of the computer wich has the IP 192.168.0.1
Thanks,
|
|
|
|
|
Is it possible to open a contextmenu inside of the program?
|
|
|
|
|
Hello!
I have one solution file that consist of three project.
One project that build the exe file.
One project that build a class library dll
One project that build a windows control dll
In the windows control c-tor is there a call to a method in the class
libarary.
So in the project referense settings for the windows control I have a
project referens to the class library.
In the exe file c-tor I have a call to a method in the class library.
So in the project reference settings for the exe file I have a project
reference to the class library and to
the windows control because I can drag the windows control from the toolbox
to a form in the project that build the exe file.
Now to my problem if I now rebuild the project only for the class library
and then try to drag the windows control to a form I get the following error
"An exception occured while trying to create an instance of Middle.Middle.
The execption was "?"."
But if I rebuild the windows control instead then I can drag the windows
control from the toolbox to a form in the project that build the exe file.
My first question why do I get this error.
My second question is what is the recommended setting for copy local that
exist on each project. It it to have true or false.
My third question is what requirement is it about the version that each dll
have. I mean when an exe file will call a dll or when a dll will call
another dll.
//Tony
|
|
|
|
|
I'm writing a program on C# with PocketPC.
I have a picture box and I want the image bound to picture box must be transparent!( I tried but that seem VS.NET 2005 for Pocket PC don't support it!)
How can I do ?
Thanks,
Hung.
Hung
|
|
|
|
|
Is it possible to draw a Control as DataGridViewCell. I wan't to use for that an existing control...
Regards
Hansjörg
|
|
|
|
|
Hello,
I need an object which is inherited from a control.to simulate some things. The problem is that the object makes the last initializations during the OnPaint event. But in my case I don't want to display the object on the screen, because I need it only as helper object.
Is there an way to do that?
Regards
Hansjörg
Edit/Delete Message
|
|
|
|
|
Visible = false;
or
Height = 0;
Width = 0;
or
dont add the control to the Controls collection
|
|
|
|
|
NewbieDude wrote: foreach (OurRadioButton cb in this.Parent.Controls)
you 100% sure that every control in "this.Parent.Controls" is of type "OurRadioButton"?
I doubt it is!
Also, please try to use descriptive subject lines in posts, as it helps find posts you are able to answer.
|
|
|
|
|
How can i define a rectangle area of an image where i want to delete all the pixel just as a rubber does in Photoshop?
|
|
|
|
|
You just draw a rectangle over the top of the image with the background colour! There's no magic "Eraser" tool in GDI like there is in, say, photoshop.
|
|
|
|
|
|
|
Hello everybody,
How can I read/write a .pdf file?
After I read two .pdf files I want to write them on a one file.
Thanks.
|
|
|
|
|
|
Hello,
I am working on a c# project. I have a datagrid in which I have genereted a datatable with datarows and datacolumns at run time. Now I want to insert data from that datatable into a MySql database. How can I do the same.
With Regards
Meenakshi
|
|
|
|
|
few links
http://dev.mysql.com/doc/refman/5.0/en/connector-net-architecture-commandbuilder.html
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=1288&lngWId=10
http://www.vbmysql.com/articles/vb_mysql_tutorials/vb_mysql_tutorial-part6.html#sample1
|
|
|
|