| Thread | Last Post | Replies |
|
| how to decrease the cpu usage | 10 Mar 2008 15:44 GMT | 7 |
i want to know how to decrease the cpu usage in my program. i have to update quickly many data on gui, so i tried to decrease the cpu usage on gui but i couldn't solve the problem. i found the code with probloem why the cpu usage increased by debug..
|
| Question regarding proper OO design | 10 Mar 2008 15:43 GMT | 1 |
A project I am working on uses an XML-file to store the objects from a session, plus some metadata and definitions for this session. A brief explanation follows; The main class type is the Entry. Entry objects have certain
|
| var for locals | 10 Mar 2008 14:11 GMT | 7 |
var myObj = new MyClass(); What is the purpose of using "var" instead of "MyClass"?
|
| Mixinf fonts in a TextBox? | 10 Mar 2008 13:41 GMT | 6 |
I have a multiline textbox control where I would like to load up with something like the following: This is Line 1 <- this line is NOT bold This is Line 2 <- this line is bold
|
| C# XML Documentation Processor Option | 10 Mar 2008 13:22 GMT | 3 |
I've seen NDoc for .Net 1.1/1.0 assemblies, but does there exist a lightweight (or in-depth as long as its freeware) processor for VS2008 which will create simple webpages which show the comments. In VS.NET, there was a Tools -> Build Comment Webpages option, but it is no longer ...
|
| MemberwiseClone() doesn't like arrays? | 10 Mar 2008 12:54 GMT | 14 |
I have a class that implements the ICloneable interface whereby the Clone() method returns MemberwiseClone(). One of the elements of the class is an array and although the Clone method appears to work, if I call a method that then adjusts the
|
| assign byte array to struct or class | 10 Mar 2008 12:14 GMT | 2 |
how can I assign a byte array (read from a device) to a C# class or struct? Christian
|
| Checking character - problem in non-English languages? | 10 Mar 2008 10:30 GMT | 8 |
I'm checking a character in a string for whitespace (spacebar or tab) or comment character (I use # for this, signifying that anything following it is a comment so should be ignored). My C# code is: string str=???? int ch=???? //character position in string
|
| A SkipWhile question | 10 Mar 2008 10:26 GMT | 2 |
I have the following code: List<int> items1 = new List<int>() { 1, 2, 3, 4, 5 }; items1.SkipWhile(i => i % 2 == 1).ToList())); this produces {2,3,4,5} I was epecting 2,4
|
| SplitterDistance has changed in OnFormClosing | 10 Mar 2008 10:06 GMT | 2 |
I have .NET 3.5 WinForms application. This contains form with horizontal SplitContainer. I set SplitterDistance to 30 in OnLoad() However its value is 41 on OnFormClosing().
|
| Load SQL Server db when application starts | 10 Mar 2008 09:56 GMT | 1 |
I have a C# app using a SQL Server db which is attached to my SQL Server, when I deploy though I want the app to lift (or load) the SQL Server at runtime so the user does not have to attach to the mdf file, I can just include it in my application folder and it will load when the ...
|
| How can I access application settings? | 10 Mar 2008 09:49 GMT | 2 |
Hi, I have right clicked my project in VS2008 and added a DB Connection application setting. How do I access these settings from my code? I know this must be pretty simple, but I cannot see how to do it.
|
| Access images subfolder of application root from exe in bin folder | 10 Mar 2008 09:48 GMT | 2 |
I have an exe that runs in the bin folder of the installed application root folder. I need to load some images dynamically which are in a folder called 'images' in a sub folder of the root folder.
|
| Setting DataContext for DataTemplate | 10 Mar 2008 09:43 GMT | 1 |
Perhaps its because its been a long week, but I just can't seem to figure out how to bind data in a DataTemplate using DataContext. The following is in the XAML code: <Button x:Name="btnRegularDataContext" Margin="5">
|
| Any tricks how to make menu shortcuts like: Ctrl+W, E | 10 Mar 2008 08:56 GMT | 2 |
I would like to have a View menu like the one in VS(2005), where I can have "two-key" shortcuts (e.g. Ctrl+W followed by E or Ctrl+E). Any suggestions how to do that? Thanks, Jan
|