Answer Questions
KIV How to display Chinese Characters in a C# Application?
I want to display Chinese Characters on the controls (e.g., buttons, lables, etc.) in C# .Net, but always failed with garbaged characters displayed (I have adopted NJStar to input Chinese Characters). How can I configure the Visual Studio .Net environment to implement the display of Chinese Characters in my Application Moonriver (1) To enable IME, do the following: a. Goto Control Panel->Regional and Lang ...Show All
Neil Watson How to create a setup project for the C# application?
It seems visual studio express edition only supports ClickOne mechanism. I want to ask what other functions do visual studio 2005 standard version support(what about more advanced versions) And how to create a setup project for the C# project. Thank you! Thank you for your help... However, the overview comparation does not show the differences about setup project... I will try to find out more information... Setup proj ...Show All
Michael Boehm Emulating Multiple Inheritance
I often miss the MI from C++, but I have a suggestion of how to emulate it in C#, given the following: interface IFoo { void FooIt(); } class Foo : IFoo { public void FooIt() { Console.WriteLine("Foo-ing!"); } } interface IBar { void BarIt(); } class Bar : IBar { public void BarIt() { Console.WriteLine("Bar-ing!"); } } class BaseClass { // More BaseClass methods here. } One could use ...Show All
Myron_B Problem overriding method in a derived class
Why can't I override a virtual method and return a subclass of the parent type as in the code below. I.e. return ColorSwatch instead of Swatch so that the caller doesn't have to recast the return value. In fact if I don't make the method virtual/override I get the problem that the compiler then complains that the derived class ColorExists needs to use the new keyword because it is hiding the method in the parent class. What gives with this ...Show All
JBHP Creating Stored procedures from Windows Application
Hi, Does any one know how can I create this procedure from a windows application.. I've tried this.. This is the real procedure //---------------------------------------------------- create procedure usp_send_cdosysmail @from varchar(500) , @to varchar(500) , @subject varchar(500), @body varchar(4000) , @smtpserver varchar(25), @bodytype varchar(10) as declare @imsg int declare @hr int declare @source varchar(255) declare @description varchar(5 ...Show All
Zoran Stipanicev .Parent
I would like to have a collection of objects that implement a 'parent' property similar to the way controls in a control container (ie forms.controls/control.Parent) Could any one suggest how this might be best acheived or point me to some reading around the subject. Essential, I beleive I need a reference back to the parent container so that if a child changes its properties, like a volume property, I can check if the parent is able to ac ...Show All
Arthg2000 Reflection and Array of type generic parameter.
Hi everybody, I am trying with reflection and new generics in C#. But I am confused how we can get the type of an array of type generic parameter by using reflection. I tried a lot. But still I am not able to find a solution. For array of normal type, we can use type.Assembly.GetType(array name+[], false, false). But for generic array, it is not working and ret ...Show All
iiiwabibitoiii VS 8 Performance makes it unuseable
Hi, We have converted a large c# solution with 12 projects and about 60 Mb of code from VS7 to VS8 and find that working in the IDE is impossibly slow. We are running on a P4 3.2 Ghz 1 Mb RAM with Windows XP SP2 (clean install). It seems slow in all areas of development. The only area where perfomance is as good or better is in running the release code. So far it's a major backwards step when compared to VS 7. Is anyone else experiencing t ...Show All
Jmp In VB6, we've DriveListBox, is there any similar control in C# of VS - 2005?
I want to show all the drives in my machine, and user should be able to select one of 'em.. Plz. guide me. Excuse me for asking but where did you get the idea these are vb6 components Right Click "Toolbox" select "Customize Toolbox" Select the ".NET Framework Component" tab Select the "DriveListBox","DirListBox", and "FileListBox" checkboxes and hit OK Now you can drag and drop the "DriveListBox","DirListBox", and "FileListBox" int ...Show All
nblack2004 NullReferenceException when running DLLImported function
I have a vb.net chunk of code that works fine when I call the wrapper function that looks like this: <DllImport(".\analysis.dll", EntryPoint:="levels_analysis", CharSet:=CharSet. Ansi )> _ Private Shared Function levels_analysis( _ <MarshalAs(UnmanagedType.VBByRefStr)> ByRef in_string As String , _ < ...Show All
Simon Harriyott Multiline comments auto-add "*" is driving me mad!
Try this: (1) Start a multiline comment by typing /* (2) Press return. (3) Aaaargh! Where did that extra "*" on the new line come from I don't want it! Is there ANY way of turning off this unwelcome behaviour It's seriously trying my patience having to press Ctrl-Z EVERY SINGLE TIME I PRESS ENTER IN A MULTILINE COMMENT! Grrrr! [EDIT] I see from this thread that there's no way to turn this off: http://forums.microsoft.com/MSDN/ShowPost.aspx PostI ...Show All
cosmicX How to know <T> of generic type
I know <T> is instance type, but I can't to know which type is T. The following code will get a compile error ('T' is a 'type parameter' but is used like a 'variable') Please help me!! public class Test<T> { public Test(){} public void DoSomething() { if (T is INullableValue)   ...Show All
Dewa Using a dll in C#, can anyone solve this small piece of calling a function?
Hi, I want to use the "zlib1.dll" in my C# application. The function im interested in the dll is the uncompress function...as documented on this page http://www.zlib.net/manual.html#uncompress int uncompress (Bytef *dest, uLongf *destLen, const Bytef *source, uLong sourceLen); Decompresses the source buffer into the destination buffer. sourceLen is the byte length of the source buffer. Upon entry, destLen is the total s ...Show All
Marino Valentino Odd Directory problem
I wrote a little program using the Media Player 10 SDK that behaves similar to a digital jukebox which will eventually have a touch screen. My music is kept in the file system using the structure of f:\music\artist\album name\songs. The program reads through the direcroty structure and creates a button with a letter of the alphabet that represents the first letter of the artist. On my desktop everything seems to be fine, the buttons are cr ...Show All
Otto Fischer Images Slide Show Memory Problem??
Hi..All.. I have one big problem..which is i have made Form that show Slide show of images from database..which is binary data..means Bytes..please i will explain the problem in points(steps): 1.Read Data From database as DataTable..Which contains All Images in Binary .. 2.I make Timer in interval 10 seconds..(10000)..So on each 10 seconds i show another images..from datatable that i have made it as Class Variable..So it exists..all ti ...Show All
