Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / September 2005

Tip: Looking for answers? Try searching our database.

PrePopulate TextBox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mdex@online.nospam - 27 Sep 2005 15:58 GMT
Hi,

I want to pre-populate a textbox in one of the standard dialogs that come
with the VS installer. I can pass data from the dialog box to my custom
action, but I cannot go the other way, go from the custom action to the
dialog box.

Basically, I am doing this, overriding Install in my custom action, and
trying everything to set the dialog box value from the custom action. I want
to prepopulate the dialog box with some data that is being read from the
web.config file, then allowing the user to save the values they want and
write them out to the web.config file.

The last issue I have is this prepopulate of the textbox with a value from
the web.config file.

Can anyone help?
Thanks in advance,
Buzz
Luke Surace - 28 Sep 2005 08:34 GMT
> Hi,
>
[quoted text clipped - 15 lines]
> Thanks in advance,
> Buzz
Luke Surace - 28 Sep 2005 08:35 GMT
You should be able to set the text box to use a property. You can then set
this property with the value you require
> Hi,
>
[quoted text clipped - 15 lines]
> Thanks in advance,
> Buzz
mdex@online.nospam - 28 Sep 2005 15:53 GMT
Hi Luke,

I believe I have done this.
I have put  the Textboxes dialog in the End stage. For a textbox, I have
tried to set Edit1Value to both [EDITA1] and "[EDITA1]", the Edit1Property
is EDITA1.

For the custom action, I have set the CustomActionData to /EDITA1=[EDITA1]
and /EDITA1="[EDITA1]". In the custom action dll, I override the Install
method and try to change the value by Context.Parameters["EDITA1"] = "text".
The UI window pops up, and it's value is 1.

Thanks,
Buzz

> You should be able to set the text box to use a property. You can then set
> this property with the value you require
[quoted text clipped - 17 lines]
>> Thanks in advance,
>> Buzz
mdex@online.nospam - 28 Sep 2005 22:02 GMT
I decided to write my own form in the dll, thanks anyways!!!!!!!!

> Hi Luke,
>
[quoted text clipped - 32 lines]
>>> Thanks in advance,
>>> Buzz

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.