Attribute
Wed, 08 Oct 2008 20:12:41 GMT
Hello!
Here I have a simple example of a custom defined Attribute class called
CodeStatus.
Now to my question when I debug this application and I set a breakpoint in
the CodeStatus attribute class
I will never enter that code. So what is the point in using attribute when
the Attribute class is never execu ...
|
can event properties be part of the interface?
Wed, 8 Oct 2008 11:59:58 -0700 (PDT)
I have about 100 of this sort in my main clas, and I would like to put
them into interface:
in Main class:
public event onFooHandler OnFoo { add { m_dispatcher.onFoo +=
value; } remove { m_dispatcher.onFoo -= value; } }
.... ...
|
Serial Port BaudRate ?
Wed, 08 Oct 2008 11:39:49 -0700
Is there a way to detect all the available baudrates from Windows like I
can do with the port names? I could hard code it all, but since the
data is in device manager, I would think there should be a way to
retrieve that information from the device manager.
Z.K. ...
|
string.Trim() behavior
Wed, 08 Oct 2008 19:26:01 +0100
Hi,
According to the intellisense help, string.Trim() "Removes all occurances
or white space characters from the beginning and end of this instance."
However, the follow code does not appear to modify s.
s.Trim('\r');
While the follow code DOES modify s.
s = s.Trim(\r');
I understand that the help ...
|
What does it mean with Module when using AttributeUsage
Wed, 08 Oct 2008 18:15:10 GMT
Hello!
You can set target Module for AttributeUsage.
I just wonder what does it mean with module ?
//Tony
...
|
String. Get words ...
Wed, 8 Oct 2008 10:53:15 -0700 (PDT)
Hello,
I have a string and I need to get as many words possible counting from
the beginning but without exceeding 120 characters. I can't break
words and I the string shouldn't end with a comma, a dot, ...
How can I do this?
Thank You,
Miguel ...
|
WinForm Dynamic Context Menu
Wed, 8 Oct 2008 10:41:14 -0700
I've got one Context Menu named mi_EasterEggs with three (3) menu items:
* mi_FontArial
* mi_FontCourier
* mi_RawData
All menu items have their Visible properties set to False when the form loads.
This context menu is included in one (1) ListView control and one (1)
TextBox control.
When one of these ...
|
|
|
How to track down source of crash + Event log error?
Wed, 8 Oct 2008 13:33:58 -0400
Hello,
I built a client application using C# .NET 2.0. It runs fine at a number
of customer sites. One customer is reporting several users getting
problems. At start up it crashes with a dialog "myapp has encountered a
problem and needs to close..."
Checking in the event log we see and event with the ...
|
strange compile error for a simple example bug??
Wed, 08 Oct 2008 17:26:23 GMT
Hello!
I have a very simple example below. The problem is that I get the following
compile error
Error 1 Cannot implicitly convert type 'System.Reflection.MemberInfo[]' to
'MemberInfo[]' F:\C#\ConsoleApplication12\ConsoleApplication12\MemberInfo.cs
27 46 ConsoleApplication12
I can't understand why I ge ...
|
Recommended way to execute a query and store in a DataSet
Wed, 8 Oct 2008 19:21:03 +0200
Today, i run the code below and while it
works, i can't stop wondering if it can
be performed in a better way. Especially,
i'd like to know if the declaration of
the adapter is neccessary.
SqlCommand command =
new SqlCommand("MyStorProc", Connection);
command.CommandType = CommandType.StoredProcedure;
fo ...
|