Answer Questions
steffibev ConfigurationManager not working ConfigurationSettings obsolete...
When I use ConfigurationSettings, I get... Warning 1 'System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings' When I use ConfigurationManager I get... Error 1 The type or namespace name 'ConfigurationManager' does not exist in the namespace 'System.Configuration' (are you missing an assembly referenc ...Show All
Peter House .net 2.0 problems
Whenever I try to use anything from the 2.0 framework I get an error in VS2005. If I have "using System.Windows.Forms.VisualStyles;" The compiler tells me "VisualStyles" is not part of the System.Windows.Forms namespace. I've tried reinstalling VS2005 and .net 2.0, but no luck on either case. Things like AutoScaleMode don't work either. Anything pre-2.0 seems to be working fine. I'm just wondering if there is some weird way t ...Show All
Angela Zhou Prevent user input on form without disabling form.
Hi, I would like to know if there is a way of preventing any mouse and keyboard input on a form (including the form’s child controls) without disabling the form Greetings Francois Nel Put something like an invisible panel over evertthing :) I did the same kind of thing with a “modal progress” dialog. Accept in the load of the “modal progress” form I fist showe ...Show All
scott1959 COM Interop Question
I have a VC6 ATL COM Object that accepts a BSTR as an input parameter in one of it's methods. The COM Object expects an ascii buffer to be embedded in the body of this BSTR and uses a call to SysStringByteLen to dynamically create an appropriately sized single byte char array for holding the extracted contents based on the results obtained from interrogating the size prefix of the BSTR. The COM interop wrapper generated from this dll defines thi ...Show All
chrisewers could not see results after sql server stored procedure row insertion
private SqlParameter CreateSqlParameter( string sLabel, object oValue, string sDirection, string sDbType) { SqlParameter sDummySqlParameter = new SqlParameter (sLabel, oValue); if (sDbType == "Int32" ) { sDummySqlParameter.DbType = DbType .Int32; } else if (sDbType == "DateTime" ) { sDummySqlParameter.DbType = DbType .DateTime; } else if (sDbType == &qu ...Show All
Bup Explicit interface implementation with inheritance
Hi I want to implement ISerializable interface, at both base and derived class, explicitly to hide the implementation. However in the derived class' GetObjectData method I can't call the base class' GetObjectData by simply casting it to ISerializable. Compiler gives the "use of keyword base is not valid in this context" error. How can I achive my goal here without making GetObjectData public. public class Contact : ISeri ...Show All
WindSailor Copy <Summary> from other member?
Is it possible to copy the <summary> from another member In particular I want a Property to display the same Summary as my DependencyProperty (WinFX). But it could also be that I want to copy the summary for some overloaded methods. I have stumbled across a document showing: <summary cref=”xxx” /> But this doesn’t seem to work Thomas, The example on that page appears to be incorr ...Show All
GlennB RC1 compiler slower than Beta 2?
We've moved our Beta 2 project to RC1 today and noticed that it is taking much more time to build in RC1 than it did in Beta 2. We are using the same hardware (brand new computers) we were using in Beta 2 but we've done a clean Windows and RC1 install and the slow performance is happening in all of them and not isolated to one only. It is very frustrating to wait several minutes whenever we have to build. Why is it much slower now Is this the ...Show All
EzraJW Reading an XML File, Changing some values
Hi All - I have this XML Document here. What I want to do is loop through each item, possible with multiple for() loops but I'm having trouble referencing data. Perhaps it is the way I have the data structured < xml version="1.0" > - < Device Address =" 192.168.1.1 " Location =" San Francisco " xmlns =" Device " > - < ...Show All
PaNuK NotifyIcon balloon does not work if application is not in focus. "object reference not set to instance..."
My application shows a balloon in tray when it's done processing a task. This works ok - but if the application is not in focus when the balloon is supposed to be shown, i get this error: "Object reference not set to an instance of an object." Here's the code: public void show_balloon(String title, String text) { ...Show All
JamesHeiser static employee Dept Type to limit asignment value
I would like to pass a value to my clsemployee Dept of Mgmt, RE, FID or CIA how can i create a static something so i can pass like Employee emp = new Employee; emp.Dept= Employee.CIA; tks~ Well, it depends on what type you would like Dept to be. If int is ok, you might simply declare: public class Employee { ... public const int Mgmt = 1; public const int RE = 2; public const int FID = 3; public const int CIA = ...Show All
seduto Challenge here
Is it posible to put in your project a new file like an executable, and with c# to extract(copy) them where ever the user wants to is like making a simple setup... Yes, or any other language you want. But offcoure you do it in C# You can use #Zip to create and extract archives and for the understanding of embedded resources read this two articles: Understanding Embedded Resources in Visual Studio .NET Runtime Embedded Resource Mana ...Show All
ScottTarone line breaks in assembly description
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
AntoineF Richtextbox spell check
Does anyone know of a cheap commerical component that offers spell checking for the richtextbox control I understand how to use the office interop which allows access to the MS Word spell checker. Yes, it's easy to get the mis spelled words and suggestions using interop, but I want the spell as you type option with suggestions when you right click... perhaps there is a free component floating around with these options Any help Always app ...Show All
Roy_Welch convert number to char
How can i convert numeric value of char to char Hi, You could also use the Convert class. char c = Convert.ToChar(128); Regards, Vikram Hi, Just cast it: char c = (char)128; Regards -chris ...Show All
