all groups > c# > march 2008 > threads for saturday march 1
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
How to delete an ini file's section and its data in C#?
Posted by Pucca at 3/1/2008 6:05:00 PM
Hi, I'm using vs2005 and .net 2.0 for a windows C# applicaiton. How can I
delete an ini file's section and its data in C#? Is there a .net funciton I
can call? Also, Is there a way to find out how many key & value entry under
a section in a ini file? Thank you.
--
Thanks.... more >>
Guids in VS.NET 2005
Posted by Fredo at 3/1/2008 5:50:44 PM
I'm just curious, how do other people get new Guids to put in their code (if
you ever use them).
As I was just pasting in about my 2000th Guid from the "Create GUID" tool,
the question occurred to me; Why in the hell by VS.NET 2005 can they not
bother to update the Create GUID tool to simpl... more >>
Reflection and BaseTypes....
Posted by cwertman@gmail.com at 3/1/2008 5:15:55 PM
Ok, I am HOPING this is simple and I am missing the quite in front of
my face answer I have not drunk enought caffine to answer.
I have a method that accepts objects of an unknown type and origin.
I am looking to "normailze" their storage in a 5 object database
layer.
2 questions
1)How... more >>
16bppGrayScale
Posted by bern11 at 3/1/2008 3:44:22 PM
Anyone know how to create a 16bppGrayScale? The following code
crashes at the save statement with an OutOfMemory exception:
bmpTemp = new Bitmap(bmpBuffer.Width, bmpBuffer.Height,
PixelFormat.Format16bppGrayScale);
bmpTemp.Save(ImageSaveFileDlg.FileName);
Am I mis... more >>
object traps
Posted by John Rivers at 3/1/2008 3:38:11 PM
hi
does anybody know of a way to detect all accesses to an object
including
method or property entry and exit
instance or static field read and write etc.
this would be very useful during debugging but also at runtime
imagine being able to implement an event handler for every write to a
... more >>
find similar content
Posted by Tem at 3/1/2008 3:29:06 PM
Im writing a forum app. I would like to know
what are some ways to find posts with similar content to a selected post.
(match certain important keywords, but not all words)
what is the easiest way to do this? and
what is the most accurate way to do this?
can someone point me to the right d... more >>
Question about 'public' and 'public static'
Posted by Schizoid Man at 3/1/2008 3:03:14 PM
Why do I have to declare a 'public' function as 'static' in a public
class in order to make it visible from another class?
In this regard I don't understand how public functions without the
static declaration are different from private functions, because I
cannot call these method from outs... more >>
"The name 'Filepath' does not exist in the current context"
Posted by Gwen at 3/1/2008 1:40:01 PM
Please assist.
New to C#. This below code is in a book it was used in VS 2005. I'm using
VS 2008.
On this line:
using (System.IO.StreamWriter writer = new System.IO.StreamWriter(Filepath))
Error Msg:
The name 'Filepath' does not exist in the current context
Code:
using System;
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
How do I marshal a C# string to call a C++ function that needs a L
Posted by Pucca at 3/1/2008 1:40:00 PM
Hi, I need to call a funciton in a C++ Dll that requires 2 LPCWSTR
parameters. How do I marshall this in my DLLIMPORT statement in C# (string
trpe)? Thank you.?
--
Thanks.... more >>
Puzzeling .NET behavior with signaling (ThreadPool, RegisterWaitForSingelObject and AutoResetEvent)
Posted by solandre at 3/1/2008 10:41:49 AM
I have encountered some very puzzeling behavior of .NET which I'm
seeking an explanation for:
This is just a test program to check out how
ThreadPool.RegisterWaitForSingelObject works.
The following code ....
class Program
{
static int NumRegisters=2;
static Reg... more >>
Tricky VB to C# conversion
Posted by meerkatinfrance@hotmail.com at 3/1/2008 10:41:16 AM
I am trying to convert some VB that uses Linq into C#
Is there anyone out there who is kind enough (clever enough) to show
me how to convert the following Sub loadAddress into C# for me.
Sub DoIt()
Dim WWV5 As New WWV5DataContext
Dim Xorg As Object
If Roles.IsUserInRole("Admin") Then
Xor... more >>
Implement Interface
Posted by Tony Johansson at 3/1/2008 10:08:05 AM
Hello!
I have a generic BinaryTree called Tree<T> below where I have implemented
the IEnumerable<T> interface.
The class header is shown below.
public class Tree<T> : IEnumerable<T> where T : IComparable<T>
{
....
....
}
I have also another class called TreeEnumerator<T> where the interf... more >>
ASP.net multi-column listbox
Posted by Robert Smith at 3/1/2008 8:29:01 AM
Hi, I would like to use a multi-column listbox in asp.net (i.e. a web
control). Do you know of any such controls out there. The standard listbox
doesn't support multi-columns and datagrids and dataview don't have the same
slick selection method.
Thanks
Robert... more >>
How to use objects for a DataGridView
Posted by Sin Jeong-hun at 3/1/2008 4:57:35 AM
Visual Studio .NET lets me to choose an object type (not an instance)
for the datasource of a datagridview control. Then it automatically
generates a ~~~bindingsource (~~~ is the object type name) component.
But I don't understand how to use it, I searched Google for this, but
couldn't find a t... more >>
Problem in executing the file?
Posted by Manish at 3/1/2008 4:20:08 AM
Hi friends,
Iam new to this group. I have problem with executing the
output(exe) file in a new system. I have created and compiled in a VS
2005 tool. when i run the exe file in a new system. its prompting me
for send/don't send error. what should i do, for run the output. I
have installed ... more >>
|