| |
thread by: colin |
last post Jun 27 '08 by: colin
Hi,
I have an IDE style editor based on the WeifenLuo.WinFormsUI.Docking
code, wich I must say seems realy good.
Im trying to activate drop down menus and such from various
special command key such as the windows apps key,
and then do something like build up a context menu using
reflection and picking items in the chain of windows and...
|
thread by: =?Utf-8?B?TmF2YW5lZXRoLksuTg==?= |
last post Jun 27 '08 by: jj
Hi
I am learning DTO and wrote a dto for my "Product" class. I want to know
whether I am following the right method ? Here is my code
class Product
{
internal Product(ProductItem item)
{
this.Name = item.Name;
|
thread by: vidishasharma |
last post Jun 27 '08 by: Chris Jobson
Hi,
I have a windows from with few controls over it. Now I have to see if
the cursor goes outside the bounds of the windows form then I have to
close the form.
I added mouse leave for the form however as soon as the cursor goes on
any control over the form form_ MouseLeave is fired.
I want to this to be fired only if it goes outside...
|
thread by: Dansk |
last post Jun 27 '08 by: Dansk
Hi all,
I have a class with a static constructor that I need to call via reflection.
I've tried lots of combinations with the binding flags and InvokeMethod,
no luck so far.
Do you have any suggestion?
Thanks in advance,
|
thread by: =?Utf-8?B?c2lwcHl1Y29ubg==?= |
last post Jun 27 '08 by: Jialiang Ge [MSFT]
Hi
I have setup UnitTests that go thru a SQL Server Table Sequentially using the
UntTest Property for DataSource.
What if I need to use 2 tables - I have a Parent child table that I need to
process
Do I do the db coding manually like I would in regular C# code by writing
SELECT statments and looping thru datasets ???
|
thread by: =?Utf-8?B?QWJoaQ==?= |
last post Jun 27 '08 by: =?ISO-8859-1?Q?Arne_Vajh=F8j?=
i was looking in some code in which i found that it is using @ keyword before
class name and constructor like this
public class @MyClass
{
public @MyClass
{
}
}
|
thread by: Peter Duniho |
last post Jun 27 '08 by: Peter Duniho
On Wed, 28 May 2008 06:23:35 -0700, Adam Sandler <corn29@excite.comwrote:
No, it can't. Not unless it had duplicates to start with.
Personally, I wouldn't bother with such a contrived loop. Something
simpler is fine:
for (int i = 0; i < a.Length; i++)
{
|
| |
thread by: Jason Huang |
last post Jun 27 '08 by: Jason Huang
Hi,
In the .Net 2.0, how do we know the row numbers of a SqlDataSource's
dataset?
Thanks for help.
Jason
|
thread by: =?Utf-8?B?QmVuIERpbHRz?= |
last post Jun 27 '08 by: =?Utf-8?B?QmVuIERpbHRz?=
I'm using C# as a sort of scripting language by having text entered by my
user compiled using the CSharpCodeProvider and run, with references to an
assembly that has utility functions in it.
When an exception is thrown by my dynamically-compiled assembly, I can get a
stack trace on the exception, but it doesn't show what line the error...
|
thread by: kevin.jennings |
last post Jun 27 '08 by: kevin.jennings
Hi! I'm an "old-school" programmer used to dealing with data one
record at a time (using old RPG code like 'chain' and 'read'
statements). I'm not used to dealing with huge chunks of data at one
time. Nowadays, however, it seems that the modern languages like Java
and C# steer you towards working with data in a 'disconnected'
fashion, i.e....
|
thread by: Ron |
last post Jun 27 '08 by: Ron
I have this weird problem...I have a custom composited control written in C#
comprising of a label and a textbox (in an assembly)
If I import the control into a C# Win Forms project and place several of the
controls on a page everything is fine...all of the positioning properties
are correctly serialized to the designer code and the controls...
|
thread by: Vivien Parlat |
last post Jun 27 '08 by: Chris Jobson
Hello,
Here is the description of the code I have:
- a class myClass, inheriting from DependencyObject, containing a
DependencyProperty myString (yes, my names are ugly)
- a class toStringConverter implementing IValueConverter, which takes
a myClass and returns its myString
- the following XAML code (see below).
|
thread by: Claire |
last post Jun 27 '08 by: Ignacio Machin ( .NET/ C# MVP )
public DateTime d2 = new DateTime(2000, 1, 1, 15, 0, 0, DateTimeKind.Utc);
MessageBox.Show(d2.ToLocalTime().ToString());
The messagebox shows "01/01/2000 15:00:00" where I expected 14:00 (I'm GMT +
1, VS 2005)
Am I getting the correct result?
Im not sure what I can expect from using DateTimeKind.Utc but help suggests
that the ToLocalTime()...
|
thread by: Peter Morris |
last post Jun 27 '08 by: Ignacio Machin ( .NET/ C# MVP )
I do a simple unzip style deployment onto a target machine. This target
machine previously had a working version of my app on it but 30 seconds
after unzipping the new DLLs etc to this folder nothing happens when the
WinForm EXE is double-clicked.
Without getting the .NET 2 SDK downloaded onto this computer is there a way
I can find out...
|
thread by: RajkiranPro |
last post Jun 27 '08 by: Ignacio Machin ( .NET/ C# MVP )
Is there a way to extract the links from a given string which is a
combination of text and links..
Eg:
Downloads at download.com videos at youtube.com
|
| |
thread by: Mitch |
last post Jun 27 '08 by: Mitch
Does anybody have some Mindstorms C# source they'd like to share?
I want something to peruse while I'm learning C# and waiting for my
kit to arrive.
|
thread by: Ignacio Machin ( .NET/ C# MVP ) |
last post Jun 27 '08 by: Ignacio Machin ( .NET/ C# MVP )
what is that?
|
thread by: Marc S |
last post Jun 27 '08 by: Marc S
I have an application that queries my database through my DBML file
generically:
BindingSource _src = new BindingSource();
Type type = System.Type.GetType(string.Format("namespace.{0},
namespace", comboBoxMembers.Text));
IEnumerable items = _context.ExecuteQuery(
type,
string.Format("select * from {0}", comboBoxMembers.Text),
|
thread by: Satish |
last post Jun 27 '08 by: Satish
Hi everyone,
I need some help constructing a linq query on datatables.
I have 2 datatables as follows
RangeTable
MinValue MaxValue
0.00 0.050
0.051 0.10
0.101 0.15
0.151 0.20
|
thread by: james |
last post Jun 27 '08 by: WATYF
WATYF <WATYF1@gmail.comwrote in
news:eb43eb6a-afaa-4e39-ac0b-850afdb6d1e4@r66g2000hsg.googlegroups.com:
It gets complicated. First, a reference:
http://msdn.microsoft.com/en-us/library/cb6t8dtz(VS.80).aspx
You might also try a:
|
thread by: Matt B |
last post Jun 27 '08 by: Jon Skeet [C# MVP]
I was just wondering if there is a "best" choice from the following
couple of ways of returning a value from a method:
1)
private HashAlgorithm GetSpecificHashAlgorithm(string hashString){
if (hashString == "MD5") {
return System.Security.Cryptography.MD5.Create();
} else {
return System.Security.Cryptography.SHA512.Create();
}
|
thread by: samueltilden |
last post Jun 27 '08 by: samueltilden
I reset all of my settings within Visual Studio IDE (Interactive
Developer Environment) to the factory defaults for C# via Tools -->
Import and Export Settings --Reset All Settings
Now, my drop down lists for the namespaces on the top left and for the
methods and properties on the top right are gone.
I looked through View... and Tools,...
|
thread by: =?Utf-8?B?TW9ydGVuIFdlbm5ldmlrIFtDIyBNVlBd?= |
last post Jun 27 '08 by: =?Utf-8?B?TW9ydGVuIFdlbm5ldmlrIFtDIyBNVlBd?=
"DavidM" wrote:
That is correct. My code only checks for a single "Blocks used" section.
If there are more just run the method again with the same binaryreader, or
find the next matching line.
Yes, its hard to parse these reports if they keep changing. You may want to
adjust the code to allow for variations of "***BLOCKS USED***" to...
|
| |
thread by: csharpula csharp |
last post Jun 27 '08 by: Ignacio Machin ( .NET/ C# MVP )
Hello ,is there a good way to convert from string to List<string>. How
can I do it? Thanks a lot!
*** Sent via Developersdex http://www.developersdex.com ***
|
thread by: Amirallia |
last post Jun 27 '08 by: Ignacio Machin ( .NET/ C# MVP )
Hello,
I develop with VS.net 2005 and would like to call a DLL in my c#
project. I created this DLL with a development tool (CLARION).
I declare my dll :
extern public static string ps_GetAlpha_Tri(int x);
|