VS 2008 Changing And Saving Backcolor?
Aug 22, 2010what im trying to do now is allow the user to change the backcolor on each form if they would like a different color.The application im working on has 6 forms in it.
View 4 Replieswhat im trying to do now is allow the user to change the backcolor on each form if they would like a different color.The application im working on has 6 forms in it.
View 4 RepliesThis should work, and I know I'm grabbing the correct rows in the DataGridView, but I cannot see why the color of the row is not changing.
Private Sub LoadDGV_InsertCommercial()
Try
'first task is to add rows to the DGV's dataso
[code].....
I am using the following code to change my backcolor before I print the page.Is there a way to restor the controls to the orginal backcolor they were before I changed them, the reason I ask is not all of them are the default systemcolors.control, so instead of coding each one individually i was hoping for some kind of "REstore" code?[code]....
View 9 RepliesI want to change the background color of the DevXpress's XtraGridView's particular cell.
And the cell must be current focused cell.
I'm making a C++ code editor application using VB.NET. I'd like to change the color of the keywords as the user types it. Also I'm looking for a way to highlight some lines of the code.
Is there a way to change the forecolor and backcolour of a piece of text inside a textbox or a rich textbox?
Using VB/VS 2010 and am trying to provide the user with a way to change the color of the control buttons on my main windows form. I'm starting with the button click event that then calls another sub-form (code shown respectively below).
I was testing with DirectCast as I need to deal with a multitude of button controls (i.e., will have more than the two shown below).
I would like to know how to deal with the following:
1. How do I save the BackColor so when the user opens the form for the first time (or any other time thereafter) the color set earlier appears (the default via properties is green).
2. When I click on the button for the first time and change the color it doesn't change until I click the button again.
[Code].....
Well i just tried to turn Rows cells that contain the word Yes into green on form load when i put that code into a button it worked but on a form load i didn't work !
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim j As Integer = 0
[Code]......
Is there a more efficient/easier way changing the backcolor of a control when it has focus and lost focus? Let's say I've got 10 text boxes. Right now I would have 20 different events...10 for Enter event and 10 for Leave event. Of course, entering would change the back color to "green" and leaving would change it back to "white".
[Code]....
Is it possable to create a save document and control its font type?
im trying to create a .txt file, but when i/someone else opens it comes up in another font type like Arial.
So my textbox is in say Arial font but when i save and recall it, it comes up as say webdings.
[Code]...
I do apologies for all the question say example I had text file with this string it
ifconfig eth0 down; ifconfig eth0 hw ether 00:29:38:43:ff:30; ifconfig eth0 up and i wanted to put textbox where the user can change mac address and resave the file in same format how would i do it.
I'm new to VB and trying to figure out how I can replace a bit of descriptive text in a binary file. I presume its binary as I cant open it with anything but a hex editor. I've changed the text (file description) in the hex editor and saved it fine but I'm unsure how I go about saving just the section of information I need. I can work out the saving bit later.In the attached file you'll see the highlighted bit I want to edit. I need to replace the whole line or the file corrupt but I can fill it up with null characters and the numbers are just
View 3 RepliesI've created a Form with 1600 Panels. Which are all called Panel (1-1600).
E.g. Panel1, Panel2, Panel500, Panel1000, Panel1600
I want a code so that if you click one of the Panels, the BackColor of the panel you clicked on, turns from Control to Red
I think there is an easier code than just adding this:
Private Sub Panel1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Panel1.Click
If Panel1.BackColor = "Control" Then
Panel1.BackColor = "Red"
Else
Panel1.BackColor = "Control"
End If
End Sub
To every single panel.
I'm trying to make the BackColor of each row the same when a certain field is equal. When it reaches a row where this field is not equal to the previous one, it changes the BackColor property of the row.
Below is what I've come up with... but all the rows are remaining the same color. From what I can tell i'm changing the DefaultCellStyle.BackColor property and that applies to all cells, not just the current row in the loop. What property do I change to only affect the current row in the loop?
vb
Private Sub CommonSiteDGVBackColor()
Dim switchBackColor As Boolean = False
Dim prevSite As String = Nothing
[code]....
I'm trying to chnage listview group backcolor and font.
I can't find any way to do that... There has to be a way to control these settings. I'm able to change headers properties but not group.
I've set a label's BackColor property to 'Transparent' but its just White? It's not going transparent?
View 3 RepliesI'm changing the backcolor of the monthcalendar to 208; 211; 217, but the backcolor of the monthcalendar doesn't turn "grey" according the given RGB. Instead it stays white.
View 4 RepliesI wan't to know how to make a labels backcolor invisible.Like it only shows the caption but the backcolor is "nothing".i have put some labels on a many colored picture so I can color the label one color, I just need to get the back color invisible.
View 8 RepliesI am trying to change to form backcolor from one colour to another with a time delay of 1 second. I have tried various things without success and this is the best I can come up with:[code]The problem I am getting is the colour is not changing until the loop has finished.
View 3 Repliesrewriting a class I use for saving Treeview data to a XML file for use of saving ListView data I can't really figure out the rewrite, I'm stucked, unfortunately Listviews seems to be a big problem for me in general.
Option Strict On
''' <summary>
''' The TreeViewDataAccess class allows the nodes within a TreeView to be
''' persisted to xml for later retrevial.
''' </summary>
[Code]....
I use some code to successfully resize and save images - but I want to save the image to 800x800 px size on a canvas of 900x900px so it has a white border type thing around it.
View 8 RepliesI have a form and on it there is listbox. What I want to do is to make the listbox's backcolor transparent. I really do not understand. I have searched many sites but I couldn't find an exact answer. Is it really that hard to make it??? I found this code on a few sites:
[Code]...
I'm searching for a way to change the font size of selected text in a RichTextBox (rtf) having different font families (e.g. Arial and MS SansSerif) and font styles (underline, bold...) using the FontDialog, but without changing the families and styles. The following code resets all the font attributes, which is not what I want:
[Code]...
I have a webbrowser1 and textbox and button is there anyway i can put an proxy in textbox1 and change mine to it ? so webbrowser1 can browse a website under that ip and not mine ?
View 2 RepliesI need to change my .exe's icon easily without having to rebuild it unless I can compile my code AND change exe through command line.
Reason for needing to change exe is for a small game creator so everyone doesn't have same exe.
How would I change the process name? Like if the program is named Program.exe, how will I change it so that in task manager it shows up as something like Program2.exe
View 7 Replieswith vb.net 2008 expressmy intention is to change the value of a variable to dbnull.value if the variable = ""so that i can insert null values in to the data base
Module sonsilaxa
Public Function deFcheck(ByVal i As String)
If Not i = "" Then
[code].....
I've read alot where users have disabled the UAC or tried to set the level higher in the manifest file. My application uses a control that requires admin user rights and I'm trying not to have it prompt the user each time. I read more about using the Impersonate another user in Windows for vb.net. Would using the impersonate user method not prompt for admin and give the user admin rights as long as it has the username and password? I hate to disable the UAC - not good at all!
View 14 RepliesI have a label where several sentences of text is displayed, 2 radio buttons below it and then a Button. Instead of making the radio buttons display a MsgBox, would it be possible to make the radio button (depending on which you choose) alter the Label where the text is?
View 6 RepliesCurrently I am saving data from my applications by saving a text file via a stream reader as a string. I have come to a problem. In my current application, I have an array of the following structure:
[Code]...
I am trying to change the computer name and IP address of a client computer, doing so locally.Ideally, I would like it to look something like thisNew Computer Name: [TextBox]New IP Address: [Textbox][Button]That comes up when you click the executable and the program changes the computer name and ip and automatically reboots the computer to apply said computer nameI think have figured most of it, but I can't figure out how to get the my.computer.name out of "readonly" mode.
View 3 Replies