I've created a Groupbox, there is a textbox in subset of it.
I've changed Groupbox's RightToLeft property to Yes, But I wanna change it for textbox to NO.
I couldn't do it , because textbox is in subset of Groupbox.
Could you please guide me , how I can change it ?
Your question is not exactly clear, but I am taking it to mean that you have created a Control which inherits from GroupBox and this control contains a TextBox.
You can set the property in design view of your control but if you want to be able to do it once your control is placed on a Form (for example), you need to surface any properties of child controls in your control. Something like this:
public Color CountryTextBoxBackColor
this.countryTextBox.BackColor = value;
I have used BackColor in this example because I couldn't remember the Type for RightToLeft but the principle is exactly the same. You will need to do the same for any properties of child controls that you need to be available at design time.
The code above should be part of the code for your control, in case you have not worked that out.
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
I will give an exmaple. We have a list box and a text box. On click of a button the text box will get enabled and the text enterd in the text box will be displayed in the label on another button click. This data is not saved. Now when i close the application and run again the labels are empty. How to store the entered data and display it in label.
I'm not going to give you the solution to your homework!
You will have to think about it a bit, but I'll give you a few clues:
System.IO.File is one way.
System.Configuration is another.
There are (probably) a dozen or so ways this could be done. Have a look at Google, and try something. When you have a specific problem (other than "I can't do my homework") post some details of where you are stuck.
No trees were harmed in the sending of this message; however, a significant number of electrons were slightly inconvenienced.
This message is made of fully recyclable Zeros and Ones
Information displayed in Windows (forms) is placed there by the application that owns the forms. Information entered by the user must be saved somewhere by the application if it is needed again. You must decide how and where to save it so that it is available next time you run the appication.
Storing it in a DataBase may be the best option; it all depends on how your application works. As I said before you must decide where is the best place to store this information. See earlier suggestions, also consider a flat file, the Registry etc.
what the hell are you talking
have you gone nuts ???
if you dont how work then go to hell, but don't waste our precious time.
if you keep on doing these stupid things i will report you as a spam
and the administrator will block you account, mind it.