VS 2010 Saving Colour Of A Brush To Settings?
Jul 23, 2010i need to do is how do i create a brush color in my.settings? because System.Drawing.Color is not for Brushes is it?
View 2 Repliesi need to do is how do i create a brush color in my.settings? because System.Drawing.Color is not for Brushes is it?
View 2 Replieswhen i click a button i want to get the fore colour(text colour) of a label on the form, then use this colour as a brush
View 4 RepliesVB 2010 Express, Windows 7 The settings on the main form save properly. My problem is that I have a usercontrol that is changed to a tabpage that I use to 'clone' tabs. Is there a way to save the cloned tabs along with there settings?
Multiple people use the program and the number of tabs and settings are different for each person.
I have made a dock bar program
So when I drag programs in I get this
But when I restart my program all the dragged in applications are gone.
save my settings,
I'm having trouble saving, or better yet, retrieving a datatable from user settings My.Settings. I've created a user setting of type System.Data.Datatable, and am able to save the datatable to it at run-time by setting it as an instance of the datatable I am trying to save, and assigning it that datatable as such:
[Code]....
I have a function that i use to save a datagridview row to an access database (which works fine) but i was wondering any one know what i should look up to figure out how to set the row that i am saving to a colour IN the access database. So the row that i save is say red in the access database.
View 10 RepliesI have an MDI form on which I have placed a ToolStripContainer. I have set the BackColor of the toolstripcontainer.contentpanel to an ApplicationsSettings property binding for BackColor. At design time the background colour of the contentpanel reflects the colour in the saved Applications Settings. However at run-time the background colour of the content panel is not the colour that has been saved in the applications settings (in this case DarkSeaGreen). It continues to display the colour from the current
View 2 RepliesI'm having trouble getting the objects of the PageSetupDialog and the PrintDialog to persist in my.settings Is there an example of this anywhere? Seems like it should be something there is a boiler plate for so I can see where I have gone wrong.Added a System.Drawing.Printing.PageSettings and System.Drawing.Printing.PrinterSettings entries in my.settings but even trying to save these form the results of the dialogs they show as nothing with out a error.
I need to create hex color to visualize wit it a number on google earth. Moreover I would like to create a small image file that depicts the color used in google earth. so I convert hex color from ARGB to brush color This is my
dim oo=new random()
Dim filecolori = New StreamWriter(dir_colori + "lista_colori.txt")
Dim b = Nothing
[Code]....
Is there any way to change the colour (background colour or text colour) of just a certain item or item(s)?
View 2 RepliesI am looking for the best way for settings within settings. Example would be an IRC network list. Which will be displayed as desired writing. If i clicked edit on that network it would bring up another form with that networks setting. Take xchat for example. what would you say would be best suited? XML seems more suited.
View 12 RepliesI've a project called G.S.S. There's a 2 forms in the G.S.S and a checkbox on the form2. I added these codes:[code]Then I created an another example project to try these on, added 2 forms, a checkbox on form2 and wrote same codes. I wondered when I run the app because it's running perfect. It saves the settings.So what's wrong with my G.S.S project?
View 5 RepliesUnfortunately my settings do not get saved.[code]...
View 3 RepliesI have been trying to get this to work for the past hour, I have an arraylist that contains string() items inside of it, I want to be able to save it and retrieve it.. When I try to save something to it and then close my application and turn it back on, everything I saved is gone.
View 3 RepliesI need to have my application to prompt the user to see if he wants to save the settings or not before the application exits.I got this to work this way: I added an event handler to My.Application.Shutdown. This event handler does prompt the user and save the settings if the user answers "Yes".But in order to stop the application to save the settings anyway via its regular way, I have to set My.Application.SaveMySettingsOnExit to falseAs I said, it works, but it just look like a bad logic to set SaveMySettingsOnExit to false to have it to save the settings saved on exit with a prompt.
My question is: is there a way to get it work like this:
-SaveMySettingsOnExit =true -- PromptBeforeSave =True ( Save and Prompt)
-SaveMySettingsOnExit =true -- PromptBeforeSave =false ( Save and no Prompt)
[code]......
I'm working on a project that users can add new tabs, buttons, textboxes, Excel forms(existing or new) or sth. else to the application. How could it be possible to save these changes?
P.S. : I started to learn SQL usage, and planning to use SQL in my project to save additional inforamtion that users have added.(for example informations about team members)
I would like to save my connectionstring in my.settings but this property is only readonly.When i would save it as a String, then I can't find it with the wizard for building a report. [code] is there also another way to build a connectionstring? this works, but the type of My.Settings. Data base String is a string and not a ConnectionString.
View 1 RepliesOkay, i have this program that gives the user some settings that need to be saved and loaded when the program runs. Can anyone help me with this?
View 15 RepliesIm studying vb coding at the moment and im designing a reasonably small text based game using the windows console and so far i have a nice working game but the main problem is that the game restarts when you end the console, obvious i know. Been trawling through pages looking at different ways to save multiple variables for multiple uses such as a save/load feature and most pages have confused me, people asking for help with commands im not common with. So far i've tried using my settings to save the variables in a test program but can't get it to work?I have in settings a variable called gold with a scope of user as an integer and i have this code to try and utilise it
Module Module1
Sub Main()
Dim answer As String
[code]....
I recently noticed that exceptions were not getting caught by Visual Studio (I'm using VS 2008 Standard) - e.g I could do this and run the program[code]...
and the debugger would not kick in and tell me something had gone wrong, the program would just continue running as normal.I remembered someone on here helping me fix this a while ago by pressing Ctrl + Alt + E to bring up the exception handling settings, so I did that again and ticked the Common Runtime Language exceptions box (Throw) and then all worked fine again.The problem is, this setting does not seem to be getting saved - each time I restart VS I have to set it again, which is annoying to say the least... especially when I forget and then get confused when my program isnt working properly.
I'm trying to save a setting I've defined under Project -> Settings -> FirstRun, type boolean, scope Application, default value, false,But it doesn't seem to work, this is my(the text box does not stop, every time I open the program it shows)
Private Sub Form1_Shown(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Shown
If Not My.Settings.FirstRun Then
[code]....
I'm writing a search tool. Setting the search parameters requires adjusting the values of over 70 different controls on my form.I want to make a list of saved searches. Is there an easy way to do so? Does VB have any built in features to save and load the current values of every control on the form?I could code it by hand. But this would be tedious, especially up to 15 listboxes, where I would need to save each item in the list and note whether they are checked or not. I really hope VB has a way of saving the entire form at once.
View 4 RepliesTo .NET after getting tired of using VB6 due to the lack of functionality. I'm trying to create a log on method for a system which will involve users selecting a colour from a paint panel and then placing/drawing the colour in 1 or more tiles of a grid, basically a 3x3 grid in which for example they selected the blue colour and drew in the top left tile and the bottom left tile. The logon is selecting the correct colour and placing the colour in the appropriate tile. What i want them to be able to do is place even a single pixel of colour so it has a high accuracy. So far i have a timer which loops from the width of the grid to the height of the grid.
Private Sub Timer1_Tick(sender As System.Object, e As System.EventArgs) Handles Timer1.Tick
Dim BMP As New Drawing.Bitmap(1, 1)
Dim GFX As System.Drawing.Graphics = System.Drawing.Graphics.FromImage(BMP)
GFX.CopyFromScreen(New Drawing.Point(MousePosition.X, MousePosition.Y), _
[CODE]...
To start with i have just hard coded the colour i want it to detect. At present it produces an error. Parameter must be positive and < Width the error is on System.Drawing.Point(i,j). If i place the mouse over the colour then run the program it will say it has been found, but otherwise it wont find the colour. I believe i am not updating the location of the pixel or something to that effect.
I've got a combobox which loads the system colour list, the selected colour is stored in the registry (i've tried storing the index number value aswell as the colour name - how can i get the combobox to display the stored colour as the default colour when the form loads? It always defaults to the first item in the colour list I've tried
[Code]....
So I have got a program with a timer on, a few labels displaying coordinates, and two buttons. Here is my
[code]...
It displays the color of the pixel at the coordinate typed into the text boxes.I have a video of a tennis ball which is bouncing on the spot, and the background in brown, so when the tennis ball comes into view there is a significant color change and i want it to start and stop a timer each time the colour changes significantly.So my question is, how do i get it to check whether the colour chas changed significantly?
this is my very first posting and I must say I am desperate. I have a VB assignment due in 2 days and I am so lost. I have written a code to draw some graphic, just a basic house, tree, sun etc. I have also written a code to magnify said graphics which were all the specifications of my Assignment 1 part A. Now for Part B I am being asked to extend my program so that: A - My graphic can be drawn using different colour schemes designed by me but chosen by the user B - My graphic or an appropriate part of it can be animated around the picture box if the user chooses to do so. C - Error checking is included.
[Code]....
1. I can't find the file which reflects changes to user settings. This might be because I just can't find it (I can see a bunch of user.config files but they are all empty - weird!), or...
2. I'm not actually saving them when I think I am.
Regarding 2. - do I need to invoke
Is this all I need? And if so, why are my user.configs empty?
I'm working with an Treeview and i'm new at it and i have 2 questions.
1. How can i save the treeview items, to settings (my.settings.history)
2. How can i save the treeview items as an TXT or XML file or another exception.
I have two different 2-dimensional arrays. I assume the setting i need to save them to is a string setting, as is the cast with regular integer arrays. The first 2-d array I need to save is an integer, the second a decimal.
Let's say the settings are called my.settings.2darray1 and my.settings.2darray2
Let's also say the arrays are:
vb
dim 2darray1(50, 99) as integer dim 2darray2(50, 99) as decimal
What would the code be to load each array and save each array?
i need to save time.forecolor's color setting and form1.backcolor's color setting eighter to a registry key or to a application setting any ideas how i can do this? [code]
View 5 Replies