I want as the installer runs, it pauses and asks for the serial key to continue installing. Just as Windows XP or Office does. I understand that this might not be related to C Sharp coding exactly but i did my software with C Sharp! I am using Visual Studio 2005. How can one configure the installer to do that?
Wamuti: Any man can be an island, but islands to need water around them!
Edmund Burke: No one could make a greater mistake than he who did nothing because he could do only a little.
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.