|
As far as I know, it can't be done with the standard textbox. Possibily you could derive your own TextBox control and override OnPaint?
|
|
|
|
|
That's not good...I can change the color with ASP.NET easily by changing the color in the property window, why C# have to be different, oh well, I guess I just have to sort things out now, thanks
|
|
|
|
|
I've done this a number of times.
Just change the textbox's background color in the properties window.
Darryl Borden
Principal IT Analyst
dborden@eprod.com
|
|
|
|
|
I'd tried that, but it is still grey when I deploy the project,that's why I post this question,it's really giving me a headache
|
|
|
|
|
Try these steps...
Create the textbox
Set Multiline to true
Set Word Wrap to true
Set Readonly to true (at this point it turns gray and back color is still white)
Change the back ground color to some other color (does not matter) and it should visibly change from gray to the new color.
Change it back to white.
I just performed these steps and it worked fine for me.
dpb
Darryl Borden
Principal IT Analyst
dborden@eprod.com
|
|
|
|
|
Thanks for the help, I'd tried your steps, it's not working, that is so strange, it happens just as you said, the changes to gray when set to read only and everything, only the end result is different, the back color is still grey when I run it. I really have no idea what to do now
|
|
|
|
|
You can optionally set "enabled" to false and change the background color, but then the user would not be able to select and copy text or use the scroll bars.
Darryl Borden
Principal IT Analyst
dborden@eprod.com
|
|
|
|
|
Hello,
How can I add columns, rows to the ReportDocument. Any help will be appreciated. Thank you.
|
|
|
|
|
Hi all,
I have two difficult situation while developing tree view control in winforms which are explained below.
1. The tree view control should show a rectangle over the node when i hover the mouse on that.(Just like codeproject.com left menu.while hovering mouse on that you can see the rectangle)
2. The tree node text should be appended with three dots if the width of the node text exceeds the width of the control.
3. For the above scenario, if i hover the mouse on the node,full text of the node should appear inside the rectangle.
I need a solution for any of these, I know it is very difficult to find out, but i need ideas for any of the above, Please it is very urgent
|
|
|
|
|
I'm building a Tabs control (MS TabControl style)
and I'm having a problem pressing a button of the user control(for switching tabs)
within the IDE without running the entire windows application(just like MS TabControl).
When I run the winApplication its works perfectly but it's not the effect I want.
Can someone tell me how to "Enable" the button, so that it will work from withing the IDE ?
Never put more than one leg at atime on the wall.
|
|
|
|
|
Can somebody guide me as to what "pattern" to follow for a C# Quiz Application.I was thinking of a single WinForm for the whole application as the Questions will be mostly in one standard defined in XML Format.Load the question from the XML File and save Status/State to XML File.I guess I have to come up with a couple of XML methods to handle the state/status of Quiz questions.Any suggestions ?
Thanks in Advance
|
|
|
|
|
Yes it could be a better idea to have a question with XML format. Go ahead.
|
|
|
|
|
Hi,
Does any body know how to adjust Datagrid column height by coding. (For wrap printing use).
|Muhamad Waqas Butt|
waqasb4all@yahoo.com
www.sktech.freewebspace.com
|
|
|
|
|
Hi,
I want to show hierarchical data in grid like shown below.
Group NT MT KT <--- Column names
----- --- -- --
GroupA
Usr1 S N N
Usr2 N N N
GroupB
Usr3 S S S
Use4 N N N
in first colom i want to show data according to groups. when i click on the group i should expand with all detailns of users in data grid.
can any body give me some suggestions to do this.
Thanks in advance
Satz
|
|
|
|
|
Is there a way to know if an udp port on a remote host is open. I am trying to make an aplication to detect if there are running some multiplayer games on the lan. I am connected to a huge lan and I want to find what games are played at a certain moment by scanning game specific ports.
|
|
|
|
|
I want to compile my application as a Framework 1.0 app on Framework 1.1. This is not because I'm too lazy to install 1.1, but Windows MCE requires it.
I guess I need some command line options, but can't find it in MSDE.
Please help me out.
Theo
|
|
|
|
|
I don't think you can do that without a copy of VS 2002
|
|
|
|
|
1. I'm using VS 2003 Pro
2. I'm almost sure it can be done in commandline, I only don't know how.
|
|
|
|
|
Nope. VS2002 will ONLY build against the .NET Framework 1.0. VS2003 will ONLY build against the .NET Framework 1.1. This is because the compilers are not built into Visual Studio. They are an integral parts of the .NET Framework itself.
You can compile a .NET Framework 1.1 app and alter it's configuration to run under 1.0, IF it doesn't use any 1.1 specific classes. You can't use the .NET Framework 1.1 compilers to compile a completely native .NET Framework 1.0 application.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Can I do something like that with the 2.0 framework?
And how?
Niklas Ulvinge aka IDK
|
|
|
|
|
Nope. No version of the .NET Framework is going to compile to a natively lower version.
See Working with Multiple Versions of the .NET Framework[^] on MSDN for more information.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
If you read the info behind that link, you would know it IS possible to compile 1.0 at a 1.1 framework. In VS, go to your project properties, and select 1.0 at 'supported runtimes'.
Althought you said it wasn't possible, you helped me well.
Cheers,
Theo
|
|
|
|
|
This changes the applications configuration so it is ALLOWED to run under 1.0, with the restriction that you can't use 1.1 specific classes.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave Kreskowiak wrote:
This changes the applications configuration so it is ALLOWED to run under 1.0, with the restriction that you can't use 1.1 specific classes.
I don't see the distinction you're trying to make.
|
|
|
|
|
This doesn't change the code generated by the compiler at all. What you're actually doing is changing a configuration option in the applications .config file that say that this application CAN run under the 1.0 Framework.
There is nothing guaranteeing that though. The .NET Runtime is trusting YOU to tell it that it is OK to run this particular 1.1 code under the 1.0 Framework. It's taking YOUR WORD that the code doesn't use anything that is 1.1 specific.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|