473,813 Members | 3,428 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

0
1,308
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...
3
4,437
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;
5
3,400
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...
2
2,817
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,
3
1,455
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 ???
9
2,771
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 { } }
2
2,294
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++) {
4
1,339
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
0
1,128
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...
0
1,111
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....
2
1,948
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...
1
1,138
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).
2
1,789
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()...
4
1,076
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...
1
973
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
0
1,046
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.
0
802
thread by: Ignacio Machin ( .NET/ C# MVP ) | last post Jun 27 '08 by: Ignacio Machin ( .NET/ C# MVP )
what is that?
0
923
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),
0
1,036
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
3
3,147
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:
12
1,481
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(); }
1
1,090
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,...
0
955
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...
2
1,209
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 ***
1
1,276
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);

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.