Answer Questions
kickf1ip Changing Column Header Background in DataGridView
Hello All, I am trying to change the background color that my column headers are on for a datagridview. I changed the default cell properties for it on properties and did not work. So I tried using code and still nothing! I would really appreciate some help here tasksDataGridView.ColumnHeadersDefaultCellStyle.BackColor = Color.Red; Figured it out: tasksDataGridView.EnableHeadersVisualStyles = false; ...Show All
CraigL Changing the Default Unhandled Exception Dialog
Hi Everyone, Is it possible for me to customize the default dialog that pops up when .NET encounters an unhandled exception Thank you. Definitely not multiple app domains. Just a single app domain. I spoke too soon..Your answer seems partially right -- probably I am missing something obvious since I'm new to .NET. The approach you described allowed me to add a new U ...Show All
RondeSC class issue
ok, I have the following BasePage.cs that each page inherits using System; using System.Data; using System.Configuration; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using System.Web.Security; using System.Web.UI.WebControls.WebParts; using System.Security.Principal; using Company.Users; using Company.UserInterface; using Company.Security; using Company.Global; namespace Company ...Show All
Mark Vernon Setting Common version for sevral solutions
I have several solutions that I work on in parallel. How can I use a single location to update the version number to set on all solutions Can I add something like an .h file in C to include in every solution and when building the solution the assembly version will be updated as in the common location. For example, I want to set a version of 2.3.*.* on three different solutions - I have no other way than changing the AssemblyInfo file for each ...Show All
Mike Turner Outlook 2007 Beta 2 and EntryID Futures?
HI, Which version of WDS does Outlook 2007 use - I think the Office installer asks you to download a WDS and I wondered what version it was What's the roadmap for this, as in in there another point release of WDS planned for the retail launch of Office 2007 Also, are there any more changes planned to the mailtem EntryId new encoding, or put another way, what's the best/recommended way of being able to display an Outlook Item once it is ...Show All
selotz -->[bug?]who uses gridview and imagebutton <--
I would know if someone else has same problem I have. I'm deploying a webapp in VS2005 connected to an Access database. When i debug my (very simple) app, debug analyzes twice some line of code. I tried to write this error on a log file but it sometimes doesn't write the second passage! I'm not using external lib. I have autoeventwiredup=true (default) in fact i was trying to look this attribute. Thx I would talk to someone o ...Show All
Rclip tcplistener and services
Hi, my question is very simple. Is it possible to create more of an TcpListener in the same service I did a service and I need that it's listening to two different port. I think that i only can to create one tcplistener in my service. Is it true What can i do to solve this Thanks a lot. Best regards. No you should be able to create two TCPListeners one for each port. The only "gotcha&quo ...Show All
dogdogkit Updating Database
Hi I am receiving an error message "Error 1 'System.Data.DataRow.DataRow(System.Data.DataRowBuilder)' is inaccessible due to its protection level ",when i try to update the database programtically through datagridview control placed in my from. I want to edit and update a database at run time while changing the corresponding cell values of my datagridview control. Please,provide me the appropriate code snippet w ...Show All
r.cicca Font Properties
I was wondering if the size of a font is measured in pixels Hello. MessageBox .Show( TextRenderer .MeasureText( "Wlgq" , this .Font).Height.ToString()); Hope this helps. Hi, By default, control's Font Size is measured in points. Font has a Unit property where you can get the current measument type. MessageBox.Show(Control.DefaultFont.Unit.ToString()); Regards, -chris ...Show All
Catalin Stavaru Unloading an Assembly
Hello, I read in one of the Blogs that an Assembly cannot be unloaded. It has to be loaded into a AppDomain and then unloaded. I have tried that. Take a look at the following code. AppDomain newDomain = AppDomain.CreateDomain("NewDomain"); Assembly myAssembly = newDomain.Load(AssemblyName.GetAssemblyName(assemblyPath); After doing Reflection on myAssembly, I used ...Show All
Morag2 [HOW TO] Create a Registry Cleaner
Is it possible Where do I get started Matt Yes it's possible. All you really need is the Microsoft.Win32.RegistryKey class. I guess you should start by reading the docs for that class, determining what you want to clean up, and make sure you have a backup of your system registry in case you screw up. hi. Is your problem solved Thank you, Bhanu. No. Where do I start Matt ...Show All
Candela Knowing when a control has focus
Hi howzit I have a panel which displays many different controls after certain user events...i.e. the controls are instantiated and displayed in runmode. How do I know when one of these controls has focus i.e. how can I create a Enter Event which relates to any control in this panel's collection, so that when a user clicks any of these run time controls, i can run code and get location and size information from this particular contro ...Show All
msnashok Access a bit in a Byte, Help!
Im trying to access a bit in a byte. does anyone know how to do this i cant seem to find any documentation on it! more specifically i want to access bit 2 in the byte that containes boolean values, and i want to return whatever is in bit 2 (whether it be true or false). can anyone help! please! To see if a bit is set in a byte you do a bitwise "and" operation. That is the "&" operator in C# You use a mask to check what is set Bit#&n ...Show All
Jaganathan Thangavelu Where's my Immediate window???
I load up a web project or a win forms project, run it and get the debugger and the project loads. I put in a break point, it stops on the break point. I go down to my command window that in the past allowed me to do things like lblSomething.Text and it would spit out the value of the .Text property and it is now some sort of shell thing with a > beside it that doesn't allow me to do this anymore. (Even RC1 allowed this and defaulted to ...Show All
mglowacki Request.Form 'and' cdo.message
USING IIS 5.1, and Windows XP pro, the following form works on my system , and I can use as many form elements as I wish, as long as all form elements have the same name : "words ", in this example. Help -- why can`t I give each form element a different name Any suggestions will be gratefully appreciated. Also, See example at very bottom of something that once worked on a remote server, but doesn't on IIS 5.1, windows xp ...Show All
