Hi
i would like to embed an small GIF, & a couple of jscript files, so that users wont have to reference these files manually during run time.
i guess in C# you add the files to the resources folder and then package the project so is this possible in powershellstudio?
Embed images, files in Form Project
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- touchstone_81
- Posts: 75
- Last visit: Sat Dec 24, 2016 1:08 pm
Re: Embed images, files in Form Project
You can add files as 'Content' but it will not embed them into the script.
As for images, if you use a Picture box control you can display the image. If you look at the exported code, these images are embedding in the script (Base64 encoding) and you could use a similar method to embed your own files into any script.
David
As for images, if you use a Picture box control you can display the image. If you look at the exported code, these images are embedding in the script (Base64 encoding) and you could use a similar method to embed your own files into any script.
David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
- touchstone_81
- Posts: 75
- Last visit: Sat Dec 24, 2016 1:08 pm
Re: Embed images, files in Form Project
Thx David, that was a good tip, after a bit of trial and error i got it working with both images and text files.
have a question that isnt related to the above.
I made a form with a blue background color for the column headers in datagridview which does not work in windows 7 but works on windows 2008 server and also some things that work on win 7 dont work on windows 2008 r2 like cell background color .
both servers are running .net 4 extended with powershell version 3.
have a question that isnt related to the above.
I made a form with a blue background color for the column headers in datagridview which does not work in windows 7 but works on windows 2008 server and also some things that work on win 7 dont work on windows 2008 r2 like cell background color .
both servers are running .net 4 extended with powershell version 3.
Re: Embed images, files in Form Project
How are you setting the colors?
David
David
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.
Re: Embed images, files in Form Project
Try this:
PowerShell Code
Double-click the code block to select all.$datagridview1.EnableHeadersVisualStyles = $falseDavid
David
SAPIEN Technologies, Inc.
SAPIEN Technologies, Inc.