Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
backcolor
- Page 1
blinking label based on backcolor
Programming
Software Development
12 Years Ago
by timosoft
….SendToBack() End If If (time2 = 2) And Label18.
BackColor
= Color.LimeGreen Then Label18.BringToFront() time1 = 0 End ….SendToBack() End If If (time2 = 2) And Label20.
BackColor
= Color.LimeGreen Then Label20.BringToFront() time1 = 0 End …
Retaining the changes made to the backcolor property
Programming
Software Development
14 Years Ago
by S2009
… DialogResult.OK) { bkc = c1.Color; this.
BackColor
= bkc; MessageBox.Show(Convert.ToString(bkc)); } … Form2_Load(object sender, EventArgs e) { this.
BackColor
= Form1.bkc; } [/code] In Form3…
Change BackColor
Programming
Software Development
15 Years Ago
by Jennifer84
…help of a Button turning to a Gray
BackColor
like this. textBox1->
BackColor
= Color::Gray; Under this textBox I … will turn "Red" like this: textBox1->
BackColor
= Color::Red; The problem and what I want to… was from the beginning. Is it possible to save the
BackColor
in anyway, to a `String^` or something else ? …
Re: how to change the backcolor of a form so that apppears 'flashing'...
Programming
Software Development
13 Years Ago
by edgareatis
…break; case 5: this.
BackColor
= Color.Khaki; break; case 6: this.
BackColor
= Color.LightSlateGray; break; case 7: this.
BackColor
= Color.Peru; break; case…
Problem with Win Form Transparent BackColor
Programming
Software Development
12 Years Ago
by Behseini
…Form1.Designer.cs, InitializeComponent() like : [CODE] private void InitializeComponent() { this.
BackColor
= System.Drawing.Color.Transparent; } [/CODE] but I recived the following….[/COLOR] I already tried to set both
BackColor
and TransparencyKey to same color like: [CODE]
BackColor
= Color.Lime; TransparencyKey = Color.Lime; [/…
Re: Change BackColor
Programming
Software Development
15 Years Ago
by Jennifer84
… this: [code] String^ SaveCurrentColor = textBox1->
BackColor
.ToString() [/code] If "SaveCurrentColor" holds…" in a code to turn the
BackColor
in textBox1 to "Gray" ?…code] String^ SaveCurrentColor = textBox1->
BackColor
.ToString() textBox1->
BackColor
= Color::SaveCurrentColor; //This is wrong [/…
Re: Better way to change backcolor ?
Programming
Software Development
11 Years Ago
by Reverend Jim
….Focused Then sender.Tag = sender.
BackColor
sender.
BackColor
= Color.LightGray Else sender.
BackColor
= sender.Tag End If End ….Focused Then txt.Tag = txt.
BackColor
txt.
BackColor
= Color.LightGray Else txt.
BackColor
= txt.Tag End If End Sub…
Re: [win32] - how changing the window\DC backcolor?
Programming
Software Development
9 Years Ago
by cambalinho
…, or the text will show me it's rectangle
backcolor
SelectObject(hdc, GetStockObject(DC_BRUSH)); //selecting the brush SetDCBrushColor(… //changing the brush color (in these case is the
backcolor
) SelectObject(hdc, GetStockObject(DC_PEN)); //selecting the pen SetDCPenColor(hdc…
Re: Change BackColor
Programming
Software Development
15 Years Ago
by mitrmkar
…, save the current color first [icode]ColorSaved = textBox1->
BackColor
; textBox1->
BackColor
= Color::Gray;[/icode] Then when you check the unchecked… checkbox, restore the saved color [icode]textBox1->
BackColor
= ColorSaved;[/icode…
Re: Change BackColor
Programming
Software Development
15 Years Ago
by Jennifer84
…, save the current color first [icode]ColorSaved = textBox1->
BackColor
; textBox1->
BackColor
= Color::Gray;[/icode] Then when you check the unchecked… checkbox, restore the saved color [icode]textBox1->
BackColor
= ColorSaved;[/icode…
Re: blinking label based on backcolor
Programming
Software Development
12 Years Ago
by M.Waqas Aslam
i think you done wrong thing in tick event , you can just check it like this [CODE] if Label17.
BackColor
= Color.LimeGreen then ' your code end if ' this condition always checked by the timer at its every tick event , now you can just set the interval of your timer as you want. [/CODE] please if i am wrong then do tell me. Regards
Re: ListView item backcolor not updating properly
Programming
Software Development
11 Years Ago
by Eruditio
…) Case Is <= 1 item.
BackColor
= Color.DarkRed item.ForeColor = Color…White Case Is <= 2 item.
BackColor
= Color.Red item.ForeColor = Color…
Change BackColor of Entire Application
Programming
Software Development
14 Years Ago
by S2009
…object sender, EventArgs e) { Form1 obj2 = new Form1 (); this.
BackColor
= obj2.bkc; } [/code] In Form3 [code] private void …object sender, EventArgs e) { Form1 obj2 = new Form1(); this.
BackColor
= obj2.bkc; } [/code] In the color dialog box …
Change BackColor of textfield with commands
Programming
Software Development
14 Years Ago
by Katsurou
…Form { public Form1() { InitializeComponent(); textBox1.
BackColor
= System.Drawing.Color.Red; } private …(object sender, EventArgs e) { if (textBox1.
BackColor
.Equals(System.Drawing.Color.Red)) { } } …
Re: Change BackColor of textfield with commands
Programming
Software Development
14 Years Ago
by Katsurou
…, EventArgs e) { if (textBox1.
BackColor
.Equals(Color.Red)) { textBox1.
BackColor
= Color.Green; } ElseIf (textbox1.
BackColor
.Equals(Color.Green)) { textBox1.
BackColor
= Color.Yellow; } }[/CODE] and…
ListView item backcolor not updating properly
Programming
Software Development
11 Years Ago
by Eruditio
… according to certain criteria, but whether or not the
backcolor
changes appears to be pretty random. The tab page … as most recent update time) and then changes the
backcolor
according to the most recent update time. The ListView…them all. Upon entering the containing tab page, the
backcolor
of the visible items is white. Scrolling down reveals …
Re: ListView item backcolor not updating properly
Programming
Software Development
11 Years Ago
by Reverend Jim
… Is < 20 item.
BackColor
= Color.LightCyan Case Is < 50 item.
BackColor
= Color.LightPink Case Else item.
BackColor
= Color.LightSalmon End Select…
Re: Change BackColor of Entire Application
Programming
Software Development
14 Years Ago
by sknake
…value; InvalidateForms(); } } } public override Color
BackColor
{ get { return (_globalBackgroundColor == null ? base.
BackColor
: (Color)_globalBackgroundColor); } set { base.
BackColor
= value; } } /// <summary> /// Create…
Re: how to change the backcolor of a form so that apppears 'flashing'...
Programming
Software Development
13 Years Ago
by geoNeo_
… (this.
BackColor
== Color.Red) this.
BackColor
== Color.Blue; else this.
BackColor
== Color….Interval == 3000) {
BackColor
= Color.Orange; } else if (timer1.Interval == 6000) {
BackColor
= Color.Blue; } …
Re: Problem with Win Form Transparent BackColor
Programming
Software Development
12 Years Ago
by Behseini
Thanks skatamatic This works fine, but can you let me know what is different between this method and setting the
BackColor
= Color.Lime; TransparencyKey = Color.Lime; into same color? Thanks again for your time
Re: Problem with Win Form Transparent BackColor
Programming
Software Development
12 Years Ago
by skatamatic
… know what is different between this method and setting the
BackColor
= Color.Lime; TransparencyKey = Color.Lime; into same color? Thanks again…
change backcolor in datagrid
Programming
Software Development
15 Years Ago
by Liszt
…I have to use Application:: DoEvents to update the
BackColor
. How can I change this like this without … dataGridView1->Rows[5]->Cells[2]->Style->
BackColor
= Color::Red; Application::DoEvents(); Thread::Sleep(100); dataGridView1…Rows[5]->Cells[2]->Style->
BackColor
= Color::Black; Application::DoEvents(); [/code]
Better way to change backcolor ?
Programming
Software Development
11 Years Ago
by iFrolox
… Is there a shorter way to change the
backcolor
of the textboxes instead of doing this: Private…Object, e As EventArgs) Handles TextBox1.GotFocus Me.TextBox1.
BackColor
= Color.FromArgb(65, 65, 65) End Sub…Object, e As EventArgs) Handles TextBox1.LostFocus Me.TextBox1.
BackColor
= Color.FromArgb(60, 60, 60) End Sub …
Re: Better way to change backcolor ?
Programming
Software Development
11 Years Ago
by Reverend Jim
… ctrl.LostFocus, AddressOf TextBox_LostFocus ctrl.Tag = ctrl.
BackColor
Next End Sub Private Sub TextBox_GotFocus(sender As Object…System.EventArgs) Dim txt As TextBox = sender txt.
BackColor
= Color.LightGray End Sub Private Sub TextBox_LostFocus(sender…
[win32] - how changing the window\DC backcolor?
Programming
Software Development
9 Years Ago
by cambalinho
…=(HBRUSH) CreateSolidBrush(RGB(0,255,0)); change the all windows
backcolor
, registed with these class(WindowClasss). and for change the DC…\window
backcolor
we need use WM_ERASEBKGND or other messages for do it… in WM_PAINT messages. can anyone advice me more for change
backcolor
?
Re: [win32] - how changing the window\DC backcolor?
Programming
Software Development
9 Years Ago
by cambalinho
…(WindowDC); } void SetWindowBackColor(HDC WindowDC, COLORREF
BackColor
) { HWND HandleWindow= WindowFromDC(WindowDC); RECT WindowClientRectangle…//selecting the brush SetDCBrushColor(WindowDC,
BackColor
); SetDCPenColor(WindowDC,
BackColor
); Rectangle(WindowDC,WindowClientRectangle.left, …
Button backcolor cannot be printed
Programming
Web Development
9 Years Ago
by yugdablos
…" Text="Next View" OnClick="goToSecondView_Click"
BackColor
="Red"/> </asp:View> <asp…" Text="Go Back" OnClick="goToFirstView_Click"
BackColor
="Blue" /> </asp:View> </asp…
Re: Change BackColor of Entire Application
Programming
Software Development
14 Years Ago
by lighthead
… = new Form2(); oj.Show(); } In form2 public Form2() { InitializeComponent(); this.
BackColor
= Form1.x1; } [/code] You can do the same for all…
Re: how to change the backcolor of a form so that apppears 'flashing'...
Programming
Software Development
13 Years Ago
by finito
HMM. you could use the timer. [url]http://www.c-sharpcorner.com/UploadFile/mahesh/WorkingwithTimerControlinCSharp11302005054911AM/WorkingwithTimerControlinCSharp.aspx[/url] And then [CODE]if (this.
BackColor
== Color.Red) this.
BackColor
== Color.Blue; else this.
BackColor
== Color.Red;[/CODE]
Re: how to change the backcolor of a form so that apppears 'flashing'...
Programming
Software Development
13 Years Ago
by ddanbe
….Stop(); } private void T_Tick(object sender, EventArgs e) { if (this.
BackColor
== Color.Red) this.
BackColor
= Color.Blue; else this.
BackColor
= Color.Red; } } }[/CODE]
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC