Deployment - Pre load

J

Jibu George

Hi

I'm developing a deployment package using Visual Studio.Net. I have a custom
user interface with a text box. How can I load the text box with some data
at run time.

Thanks & Regards,
JIB
 
N

Nicholas Paldino [.NET/C# MVP]

Jibu,

What do you mean load the textbox with data? You can set the Text with
the Text property, and technically, that is considered loading data into it.

Can you be more elaborate about what you are trying to do?
 
J

Jibu George

Hi

Here I'm trying to load data in the runtime using some program.

eg: I want to get some value from registry at runtime and show it in the
text box, which is there in the user interface.

--

Thanks & Regards,
JIB

Nicholas Paldino said:
Jibu,

What do you mean load the textbox with data? You can set the Text with
the Text property, and technically, that is considered loading data into it.

Can you be more elaborate about what you are trying to do?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


Jibu George said:
Hi

I'm developing a deployment package using Visual Studio.Net. I have a custom
user interface with a text box. How can I load the text box with some data
at run time.

Thanks & Regards,
JIB
 
N

Nicholas Paldino [.NET/C# MVP]

Jibu,

In this case, you will want to use the RegistryKey class that is in the
Microsoft.Win32 namespace and then just set the text property to the value
you read from the key.

Also, if you are doing this for configuration information, you might
want to use XML files instead of the registry. The move in .NET for
configuration information is to move away from the registry as a way of
storing preferences.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jibu George said:
Hi

Here I'm trying to load data in the runtime using some program.

eg: I want to get some value from registry at runtime and show it in the
text box, which is there in the user interface.

--

Thanks & Regards,
JIB

in message news:[email protected]...
Jibu,

What do you mean load the textbox with data? You can set the Text with
the Text property, and technically, that is considered loading data into it.

Can you be more elaborate about what you are trying to do?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


Jibu George said:
Hi

I'm developing a deployment package using Visual Studio.Net. I have a custom
user interface with a text box. How can I load the text box with some data
at run time.

Thanks & Regards,
JIB
 
J

Jibu George

Hi

How will I refer this text box in run time from a custom action application.
That too when I load the installation application. In the custom action
window there is only option for calling some program when the install event
is fired. I think this only happens after clicking next of the final window.
But I need to populate the text box in the initial screens. Hope you got the
question.

Thanks & Regards,
JIB




Nicholas Paldino said:
Jibu,

In this case, you will want to use the RegistryKey class that is in the
Microsoft.Win32 namespace and then just set the text property to the value
you read from the key.

Also, if you are doing this for configuration information, you might
want to use XML files instead of the registry. The move in .NET for
configuration information is to move away from the registry as a way of
storing preferences.

Hope this helps.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Jibu George said:
Hi

Here I'm trying to load data in the runtime using some program.

eg: I want to get some value from registry at runtime and show it in the
text box, which is there in the user interface.

--

Thanks & Regards,
JIB

in message news:[email protected]...
Jibu,

What do you mean load the textbox with data? You can set the Text with
the Text property, and technically, that is considered loading data
into
it.
Can you be more elaborate about what you are trying to do?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)


Hi

I'm developing a deployment package using Visual Studio.Net. I have a
custom
user interface with a text box. How can I load the text box with some
data
at run time.

Thanks & Regards,
JIB
 
M

Mike Wade [MSFT]

Through the Launch Conditions Editor, you can add a registry search which will
look up a value in the registry, and write that value to a property (for example,
REGISTRYVALUE1). You can then use that property in your custom dialog, for
instance by setting the Edit1Value of TextBoxes(A) to [REGISTRYVALUE1].
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top