Click here to Skip to main content
15,894,343 members
Home / Discussions / C#
   

C#

 
GeneralRe: Just a thought...why is my application taking so much RAM? Pin
Dave Kreskowiak18-Feb-07 12:02
mveDave Kreskowiak18-Feb-07 12:02 
AnswerRe: Just a thought...why is my application taking so much RAM? Pin
Scott Dorman18-Feb-07 13:53
professionalScott Dorman18-Feb-07 13:53 
QuestionDataBind error with Gridview Pin
BMWABCD18-Feb-07 7:36
BMWABCD18-Feb-07 7:36 
AnswerRe: DataBind error with Gridview Pin
Stefan Troschuetz18-Feb-07 8:05
Stefan Troschuetz18-Feb-07 8:05 
QuestionWebClient DownloadProgressChangedEventHandler not working!! Pin
Rizawn18-Feb-07 6:19
Rizawn18-Feb-07 6:19 
AnswerRe: WebClient DownloadProgressChangedEventHandler not working!! Pin
Stefan Troschuetz18-Feb-07 6:34
Stefan Troschuetz18-Feb-07 6:34 
GeneralRe: WebClient DownloadProgressChangedEventHandler not working!! Pin
Rizawn18-Feb-07 6:41
Rizawn18-Feb-07 6:41 
QuestionHow to set values of two properties in other method Pin
AndrusM18-Feb-07 5:13
AndrusM18-Feb-07 5:13 
I need to set table header forecolor and backcolor properties:

using System.Windows.Forms;
DataGridTableStyle tableStyle = new DataGridTableStyle();
Desktop td = new Desktop();
td.GetColors(tableStyle.HeaderForeColor,
    tableStyle.HeaderBackColor);


However colors are not changed since it seems that parameters are passed by value.
Which is the best practice for change colors ?
I'll prefer to execute only one query in sql server and not to add additional properties, classes and structures to code.

Desktop class GetColors method contains:

public void GetColors(System.Drawing.Color foreColor,
			System.Drawing.Color backColor) {

IDataReader tableReader = ExecReader(
   "SELECT hforecol,hbackcol FROM desktop");
if (tableReader.Read()) {
	foreColor = GetColor(tableReader.GetDecimal(0));
	backColor = GetColor(tableReader.GetDecimal(1));
	}
tableReader.Close();
}



Andrus

AnswerRe: How to set values of two properties in other method Pin
Stefan Troschuetz18-Feb-07 6:55
Stefan Troschuetz18-Feb-07 6:55 
GeneralRe: How to set values of two properties in other method Pin
AndrusM18-Feb-07 12:19
AndrusM18-Feb-07 12:19 
GeneralRe: How to set values of two properties in other method Pin
Stefan Troschuetz18-Feb-07 21:59
Stefan Troschuetz18-Feb-07 21:59 
QuestionSnippet Manager Pin
marvviki18-Feb-07 3:02
marvviki18-Feb-07 3:02 
AnswerRe: Listview with images? Pin
Adi Khan 7918-Feb-07 4:43
Adi Khan 7918-Feb-07 4:43 
Questionprotected and protected internal Pin
amaneet18-Feb-07 1:11
amaneet18-Feb-07 1:11 
AnswerRe: protected and protected internal Pin
Marc Clifton18-Feb-07 3:30
mvaMarc Clifton18-Feb-07 3:30 
Questionhow change input language Pin
Iman Mohsen18-Feb-07 1:07
Iman Mohsen18-Feb-07 1:07 
AnswerRe: how change input language Pin
sharpiesharpie18-Feb-07 1:55
sharpiesharpie18-Feb-07 1:55 
QuestionButton context menu Pin
CodeItWell18-Feb-07 0:50
CodeItWell18-Feb-07 0:50 
AnswerRe: Button context menu Pin
Christian Graus18-Feb-07 10:00
protectorChristian Graus18-Feb-07 10:00 
QuestionFOR Statement Pin
Glen Harvy18-Feb-07 0:37
Glen Harvy18-Feb-07 0:37 
AnswerRe: FOR Statement Pin
mnvkng7618-Feb-07 0:52
mnvkng7618-Feb-07 0:52 
GeneralRe: FOR Statement Pin
Glen Harvy18-Feb-07 1:20
Glen Harvy18-Feb-07 1:20 
GeneralRe: FOR Statement Pin
mnvkng7618-Feb-07 2:05
mnvkng7618-Feb-07 2:05 
AnswerRe: FOR Statement Pin
Guffa18-Feb-07 1:42
Guffa18-Feb-07 1:42 
GeneralRe: FOR Statement Pin
Glen Harvy18-Feb-07 1:47
Glen Harvy18-Feb-07 1:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.