Images And Others Settings And Configutation Files To Use From Program?
Jul 12, 2011How can I add to a class library (.dll) various icons, images and others settings and configutation files to use from my program?
View 4 RepliesHow can I add to a class library (.dll) various icons, images and others settings and configutation files to use from my program?
View 4 RepliesIs there a way to maintain application modified Settings in the settings files after a program update? i.e. I have 10 or so values in the settings file and the users can modify them... when I send a program update they revert back to what I initially programmed them to be.
View 3 RepliesI'm making a program and in which the user can select a background image from their computer, but I have not found a way to save the picture to my.settings or my.resources
View 3 Repliesis it possible by 1 program to save settings to another program without running the program that is being edited?
View 6 RepliesMy program will need to store some settings for when the program gets closed then opened again. I would then like to reload the settings?
- Flat file
- Database
- Registry
- Other
how to use the .settings files and was wondering several items.(for this example let's call the settings file SettingsFile.settings)
1) After a call like
settingsfile.default.highscore = 100
settingsfile.default.save()
When you graphically set up the settings file (in the settings grid) in the solution explorer you can give initial values... is there a way to get those values back after the above call?
2) If you send a software update and the user installs it, will the settings file values persist or reset?
3) Is there a way to iterate through every setting in your .settings file? like a:
for each X in settingsfile
I want to hear some discussion regarding what is the best way to persist program parameter and variable settings from one run of the program to the next. I used to often use the ubiquitous INI type file in VB6 programs but I am aware that these are not formally supported in .Net programs. I also have a major aversion to adding to the already overwhelming bloat of the Windows registry by using that to store values.
[Code]...
Is there a way that I can create images (bitmap, tiffs, whatever) from txt,docx,pdf,or rtf files?
One idea that I found was creating a Metafile from the file. However I am get GDI+ errors with the palette. how to get around that? Do you think this is the right track?
Dim
gr As Graphics = Me.picFile.CreateGraphics() 'i am really not using a picture box, but I thought if it helps, why not?
[Code]....
I would like to know how to enable my programs to rip image files off the web to display them in a picture box. all i know is how to use the web browser object to load the site with the image file on it
[URL]
i would like to know how to now transfer that image from the web browser to a picture box or just save it locally
I am currently using vb 2008 and want it so when a user registers it will unlock all the extra features and stay that way even after the user quits and restarts the program... I already have everything set exept for the save feature. I don;t know exactly what to do. I just want to save the settings of my program so that they are the same every time somebody uses the program. I heard that you need to go into Project , then properties and then settings... But I don't understand what to do there...
View 2 RepliesI'm trying to make a V.O.S, (don't ask) and I have 2 questions:
1: how would I run programs in my resources files? (For example, if i included "Random.exe" could i do Process.start("Random.exe")? or what would i do?) Also, how would i add resources and settings files at runtime? is this possible?
Every .NET project I've worked on uses an app.config file for its configuration. Fair enough. "is there a better way?" (in the spirit of continual learning of course)I guess my specific questions are:
Does it matter either way if I use app.config or settings file?Are there any scenarios where settings files should not be used e.g web sites where you should use a web.config instead?Other than not having to edit xml, are there any other benefits gained by using settings instead of app.config, e.g. its easier to deploy or maintain apps etc.
Clarification: I'll put this question another way: Can I completely ignore app.config files if I want to and keep all the configuration in a settings.cs file and interact with configuration via the designer only?
How to create video from some image files? if can add some audio, it will be better.
View 2 Repliesim using this MP3 tagging library called TagLib# or TagLibSharp.
Unfortunately the documentation is a bit patchy to say the least and their (Official) website, which contains all the documentation seems to have closed down, leaving me to download this MP3 tagging library from the link below.
http://developer.novell.com/wiki/index.php/TagLib_Sharp
Everything so far works, including tagging the 'Artist, Title, Album' etc. but I want to include an image in my MP3 files, like album art.I have found some sample code to read the image back from the tag using their library, I just can't work out what it would look like the other way around.
If filetotag.Tag.Pictures.Length >= 1 Then
Dim bin = DirectCast(filetotag.Tag.Pictures(0).Data.Data, Byte())
AlbumArt.Image = Image.FromStream(New MemoryStream(bin)).GetThumbnailImage(115, 115, Nothing, System.IntPtr.Zero)
End If
This code above will read an existing tag and load the image into a picture box called 'Album Art'.how to 'flip' it so that it would look something like ...
filetotag.Tag.Pictures = AlbumArt.Image
Obviously using the memory stream functions etc.
ok, so i've built an application that iterates through some folders that i specified and adds any image files to a datagridview Image Columnhowever, .ico files pose an issue: ones that were specifically designed for WinVista Throw an Exception:"Paramater Not Specified"
View 3 RepliesIs it possible to set the image windows displays when viewing a file created in a VB.NET application? In my case I have files saved that store info on football plays for a play creator program. Can I use the image of that play as what the user will see when he searches through windows explorer?
Let me further explain with an analogy: photo files in windows have their images displayed as the user cycles through them; he chooses which one he wants to doubleclick based on the thumbnail image of the actual photo. I'd like to have a "photo" of the play itself shown instead of what is now just a blank generic grey icon for the play files that I save.
Say I have a Class Library project with its own .dll.config, and a forms application. I want to confirm that it is impossible to reference the .dll.config file from the .exe.config file and still use My.Settings.
For example: I have SomeClassLibrary project, with SomeSetting that I can access through My.Settings.SomeSetting. I also have SomeFormsApp project. This is what I want my SomeFormsApp.exe.config to look like:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
[Code].....
From my readings, this seems impossible. I either need to copy the content of SomeClassLibrary.dll.config into SomeFormsApp.exe.config, which is tedious and error prone when copying from multiple class libraries, or I need to use ConfigurationManager, which bypasses My.Settings and its typed, Intellisensed goodness.
Is there a possibility of extracting a rar file using the file specified in a textbox?
Is it also possible to show the progress of the extraction on a progress bar?
Is it also possible to extract it to a directory mentioned in the Settings?
I want to make a program that uses text files (or whatever I choose the extension to be) for settings. I have an example from someone's SVN updater for a game. The following is in customaddons.ini. I want to be able to do something similar. [Code]
View 10 Repliesi've been busy with a program and it has worked out quite well. The only thing I still want is that it is possible to customize things and save that in a text file. Normally if i want an other background for one day, i need to change it in VB or make a checkbox to do that. if i then restart the program all the settings are lost and i have to set it again. so i was wondering if the program can make a text file and put codes like 1 for theme 1 and 2 for theme 2 etc. in it, then save it and load that file when it starts up again. and is this also possible for a login form? if yes, i can also add a "Create Account" button for my program instead of adding codes in VB.
View 6 RepliesI'm working on a program where I've got a WebBrowser control that displays an HTML file from my 'Resources' folder. Like so... WebBrowser1.DocumentText = My.Resources.MyHTMLFile That displays the text from the HTML file just fine, but it does not display the CSS styles or images that the HTML file uses (even though I've added the CSS file and images to the 'Resources' folder as well).
[Code]...
I want it to do the following: When they click the import button, open multiple files (done) then save them as a settings. Then on form load, open those files so I do not have to re-import them!
I have tried this
CODE:
on form load and settings.txt included 2 file names and locations. It is only opening the 2nd file NOT the first. How can I make it open ALL files in that settings file? I also tied ReadLines
I have VB project and I tried to use PUBLISH feature.It seems to create nicely some kind of setup program, but the setup program does not ask where to copy files (it does not seem to copy filesto target machine "PROGRAM FILES".)Is this setup program somehow different from usual installers?
NOTE: I want that app files are installed to Hard disk( from USB stick source)Is the signing recommended or necessary? My App is pretty simple, its just using access DB + printer api, should I still sign?
I am trying to retrieve file details from files in the Program Files folder. I receive an error while trying to retrieve file details.
Dim sFileName As String = ("%ProgramFiles%Windows DefenderMSASCui.exe")
Dim Info As FileVersionInfo
Info = FileVersionInfo.GetVersionInfo(sFileName)
Msgbox(Info.ProductName.ToString())
I receive file not found error at 3rd line. But if I change the path from "%ProgramFiles%Windows DefenderMSASCui.exe" to "c:Program FilesWindows DefenderMSASCui.exe" it works fine.
What should I do if I want to retrieve file details from the path which includes a "%" character?
Having a slight permission problem with Win 7 I am guessing it will be the same on Vista but work fine on XP (yet to try)But my program is sitting in: C:Program FilesCompanyProgram And its trying to create new files alongside itself in the Program Files area but bombing out which I know is permissions. If I go there to create the file myself it comes up with a UAC prompt and when I hit allow it works fine but obv the program can't do that byiteslf so bombs out.Is there anyway I can over come that without the user having to grant admin rights to the program each time it starts or do I have to write data to another place?
View 4 RepliesHow can i get my program to remember settings?I have made it so that they click on a register button, if they enter the correct registration code, it will unlock these features. How can i make it so it remembers that the key has been inserted, so when the user next uses the program, they dont have to re enter the key. I think it has something to do with ini files, but im not sure how i can implement it.Here is the
Private Sub Register_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Register.Click
If UserID.Text * (KeyID.Text / 2654) > "2234047144494" And UserID.Text * (KeyID.Text / 994) < "213725721516" Then
MsgBox("The User ID and Key are Correct! Registration is now complete. You now have full access to EVERY feature.
Base.CalenderToolStripMenuItem.Enabled = True
Base.ShowTrackBarToolStripMenuItem.Enabled = True
Base.HideTrackBarToolStripMenuItem.Enabled = True[code].....
How would I be able to encorporate an ini file that is full of this...
<?xml version="1.0" encoding="UTF-8"?>
<IpceloynProject CompactMode="1">
<ThemeInfo Caption="Common">
<Class Name="Documentation">
[code]....
I have a autoit script that I am using for automation testing. My autoit script is called from a vb.net file. Dialog box of UAC settings will appear and is stopping the execution of test scripts. Currently I am trying process.startinfo.username and password to give specifically username so it may execute the script. Please guide how can I avoid that UAC during my tests execution.
View 2 RepliesI have 2 Forms: (1. MainForm.vb and 2.Settings.vb). MainForm.vb is the Startup form and Settings.vb shows when the MainForm.vb loads. Settings.vb has a CheckBox that allows the user to check if they never want to see the form (Settings.vb) at startup again. When I check it and close the program, then restart the program the checkbox is unchecked. How do I get the program to remember the user selection of the checkbox? [code]Is this a "Writing to Registry" matter?
View 17 RepliesOn the printer preferences side, paper size is Letter. So when i try printing a Rectangle it is cutting from the bottom, using following code. The reason i found is Printer is not listening the code to change the size from Letter to A4. Only then Length of page will be increased.[code]...
View 4 Replies