Answer Questions
DoomGoober double buffering flicker
correct me if i am wrog! double buffering works like this you create a bitmap in th memory modify or make chaages and after that draw the bitmap its like doing the dirty work behind and then copy it to a fresh workspace You indeed, here is a simple double buffer helper class: public class GraphicsBuffer { private Graphics grapics; private Graphics buffer; private Bitmap buff ...Show All
manishv_MSFT how to send email to multiple email addresses
I am having a problem sending email to multiple email addresses using System.Net.Mail in C#. It works when there is only one email address like so: toEmail = "xxxx@someco.com"; toAlias = "emailalias"; MailAddress to = new MailAddress(toEmail, toAlias); But, would fail when there are more than one email separated by ";" delimiter. The email just will not go through: toEmail = "xxxx@someco.com; yyy@someco.com&quo ...Show All
David Leibowitz Create a new control to use at design time
I am new to C# and the whole visual programming, so please be kind... Suppose I create a new control inherited from another one, for example Label. I can put it manually on my form at design time (drag & drop with mouse from toolbox), and I can modify the properties that my new control inherited from the old one (Label). public class NewLabel : Label { int _cnt; public SuperLabel() { _cnt ...Show All
Michal Laskowski StreamReader and File Position
I'm processing large binary files. These are PCL files, and I'm looking for page boundaries. I want to store the position of each Form Feed, which in PCL is decimal 12, hex 0C. However, that byte can also exist as part of a raster or other binary structure. So I loop through the file, and when I find a "12", I read ahead 14 bytes to compare them to a known string. If I get a match, I know the 12 was a real Form Feed, and I store it's position in ...Show All
jtdesa SDK for software license keys?
Hi, We need an SDK (or a method) for adding license keys for our software. We would like to provide trial versions and paid versions of our software. At this time, it does not need to be very advance, but we would like to restrict usage somehow. Can anybody suggest a good SDK (or way) to do this (Does this kind of tool come with Visual Studio or as a plug-in / extention ) Thanks :-) Thanks ...Show All
none_1234567890 Transferring data from one form to another, is it possible?
More specifically, I have a form that has as combo boxes on them. When this main form loads, it retrieves data from SQL and I bind these combo's to data tables. However, I manually put an item named <create new customer>. If the user selects that option from the combo, I popup a new form that contains all the customer fields they need to populate. When they click save, what I would like to do is either save the data back to the sq ...Show All
Tom Sapp classes best practices
Hey guys, I am still new at this and was wondering what the best practices for creating and handling classes were. Is it better to build my classes inside one major C# file or do I need to create an individual file for each individual class or is it just better to have my classes embedded in the particular form I am working on Which is the best approach and best practice for classes Thanks, ~zero Yes, it is perfectly normal to ha ...Show All
SG Dunn Where is Object Test Bench in Beta2 (VSTS)?
I have installed VS 2005 Beta2 Team System - the full suite. And I can't find Object Test Bench any where. I tried right-clicking on the classes in class view, I tried right-clicks on the Class Diagram's classes there is no entry in the context menu to invoke a class or method. I am using the C# Windows Forms Project as well as looked inside a C# Web Project. Is there a registry tweak to enable this feature Or VSTS version does not ship with th ...Show All
ccote Address bar - locked
my address bar will to type in the full name of a web site, but once complete it will not pull up the site, it stays on the main msn page. Like typing in www.miamidolphins.com - but while typing it will drop down and offer a list of sites, if i pick one of those I can go straight to the sight or choose from my favourites. but to actually type a new site name in the address bar and click go - it goes no where. how do I solve this i do have ...Show All
bhouse1273 Is there a way of reducing the accessibility of override methods in derived class?
Given a virtual public method on a base class, is it possible to make the override method in a derived class private so that users of the derived class cannot access the overridden method Are there any plans to support this in C# Any suggestions on how to achieve this in the meantime Thanks, Darren. Puting both class libraries in the same assembly and using internal would help - it would be nice to keep them se ...Show All
Andrej Kasnik enum MyEnum : short { ENUM_ELEMENT = SHRT_MIN } = Warning C4341 ???
Am I missing something here I'm using VS 2005, and this: enum MyEnum : short { ENUM_ELEMENT = SHRT_MIN }; Results in this: warning C4341: 'ENUM_ELEMENT' : signed value is out of range for enum constant BTW, I tried SHRT_MIN+1 and got the same thing. My apologies, I posted this in the wrong place. I'm using C++. I've reposted it here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID ...Show All
danmor MSFT VS 2005 Beta 2 - Visual Web Dev - set default language to C# from VB
On Visual Studio 2005 Beta 2 - Visual Web Developer How do I set the default language to C# It seems to default to VB. Hi, try to reset your ide settings to c# by using Tools->Import and Export Settings. The default language is based on the Profile you choose when you started VS 2005 the first time. If you choose the profile as VB.NET Developer then my default even the language selected f ...Show All
Paulino PP Overhiding
What is overhiding in c#. I think the term you are referring to is "overriding" and "hiding". A superclass can override the implementation of a method defined in its base class, which means that the method implementation in the subclass will replace the implementation defined in the base class. In C#, methods can only be overriden if they are defined as virtual in the baseclass, and de ...Show All
Parker Lewis Windows Forms application works fine on XP; falls over on Windows 2000
We have a C# Windows Forms application using the December 2005 CAB that I can't get to run on some of our customers Windows 2000 machines. The error is 'Exception has been thrown by the target of an invocation' falling over at the System.RutimeTypeHandle.CreateInstance method call. On the xp machines when we are running the Client we only install the Dot Net framework 2.0 and the client runs with no problems. Any ideas where we shoul ...Show All
Codeine Constructor Chaining in C#
Dear All, I am actually new to Object Orientated Programming. I was just studing about Constructors and I came across the concept of Constructor Chaining.Can some 1 explain me about what is this constructor chaining.I know it means that we can call one constructor from another constructor. I have tried 1 example which is as follows: class Class1 { private string e_name,e_JobTiltle,e_Address ; private Class1( string name ...Show All
