473,774 Members | 2,232 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

5
3,830
thread by: Andy B | last post Jun 27 '08 by: Andy
I was just wondering, when you create dataContext methods, should you put business logic there to try and minimize pushing data through 2-3 layers of code? or should the business logic still go in another class somewhere making it access the dataContext methods?
0
1,083
thread by: dariosalvi78 | last post Jun 27 '08 by: dariosalvi78
Hi, I am trying to use MyGeneration with a SQLCe database in the Compact Framework 2 environment. My first problem now is that MyGeneration (its latest version) has no template for the SqlCe as far as I know. The SQL Server template seems easily adaptable to the sqlce, but before starting generating a new template I would like to ask you...
2
5,680
thread by: ACS | last post Jun 27 '08 by: ACS
I have a C# application where I've grabbed a control's cursor handle using the WINAPI function GetCursor(). This returned an IntPtr and I want to check what type of cursor this is (arrow, sizing, hourglass, etc.) I've tried the following: - Comparing the IntPtr to C#'s predefined cursor types (i.e. Cursors.Arrow.CopyHandle()) - Comparing...
0
856
thread by: Joerg Battermann | last post Jun 27 '08 by: Joerg Battermann
It worked! thank you :)
0
2,881
thread by: =?Utf-8?B?R2FkeUM=?= | last post Jun 27 '08 by: =?Utf-8?B?R2FkeUM=?=
HI I populate one col. in a dataiewgrid with a combocell as DataGridViewComboBoxCell. (create on the fly and assign it to cell) I need to avid arrow user's up/down on that cells. All the grid events ignore edit state of combocell. Any idea? Thanks in advance.
0
1,293
thread by: =?Utf-8?B?Q2xhdWRl?= | last post Jun 27 '08 by: =?Utf-8?B?Q2xhdWRl?=
I made an application in C# .Net Compact Framework 2.0 for a Windows CE 5.0 device (Symbol MC9090 RIF scanner). To install my homemade application on the device, I used « Deploy solution » menu button from the Visual Studio 2005 IDE. In the project options, I set the destination device to « Windows CE Device » and the folder of...
0
828
thread by: =?Utf-8?B?a3VtYXI=?= | last post Jun 27 '08 by: =?Utf-8?B?a3VtYXI=?=
I have used vb_dll.dll. It is refering to particular dll public static extern int lp_hostid(int HostType, StringBuilder hostidstr); It refers particular dll but when we try to access lp_hostid() function with proper parameter in webservices like
0
1,580
thread by: JB | last post Jun 27 '08 by: JB
On 8 Apr, 10:03, "DSK Chakravarthy" <dskch...@msn.comwrote: Thanks for the reply. So the first part is looking easy enough. As for the next part: Well I have a winform which has a few text boxes and 1 image. The text boxes, well i suppose they are pretty standard. The font and size will always be the same if that would be an issue. The...
4
2,927
thread by: csharpula csharp | last post Jun 27 '08 by: Bjorn Brox
Hello, I am looking for a way to convert list<stringto string (one string conainig all list members). How can I do it in an elegant way ? (I mean without foreach and appendind strings) Thank u! *** Sent via Developersdex http://www.developersdex.com ***
0
1,092
thread by: P Chase | last post Jun 27 '08 by: P Chase
I need to create a few XAML FlowDocuments. Although I have done some very simple ones by hand-editing of XML, I can't help but think there must be a graphical-editor way of doing it. I believe Visual Studio 2005, which I am using for my project, cannot do it. But various Web sites suggest that Visual Studio 2008 does have a graphical editor...
4
2,941
thread by: =?Utf-8?B?Q2hyaXM=?= | last post Jun 27 '08 by: =?Utf-8?B?Q2hyaXM=?=
I have my own win app developed in VS C# 2005. This app uses a dll file (I import methods from the library by dllimport attribute). The dll file is provided by another program (let's call it program AA) that is installed on my computer.When I put my app into the folder where program AA is installed my app works ok (in this case only!). When I...
2
1,074
thread by: Dom | last post Jun 27 '08 by: Claes Bergefall
How do I find the height of a window's banner, that is, the portion that contains the window's title? Dom
1
125
thread by: csharpula csharp | last post Jun 27 '08 by: Paul E Collins
Hello, I would like to use regex for the following matter: I have a string and I want to find given substring inside which can be Caps Lock or not and I need to check the both cases. How can I do it? Thank u!
5
1,424
thread by: Praveen | last post Jun 27 '08 by: Bjorn Brox
got a string a="2.3944864845405107E+18" how to convert this into a valid number. which method to use.. I was using Convert.ToInt64(a); which is going to exception. thanks Praveen
2
1,009
thread by: Robert Bravery | last post Jun 27 '08 by: Claire
HI all, I want to write a windows service. I also want to have a form for setting properties for the service. Can some one help me out, get me started or point me in the right direction Thanks Robert
5
3,796
thread by: =?Utf-8?B?QXlrdXQgRXJnaW4=?= | last post Jun 27 '08 by: =?Utf-8?B?QXlrdXQgRXJnaW4=?=
Hi Willy, Thank you very much for your work. C++ code doesnot make any serialization. So at runtime C# code gives an serialization error at "msg_file_s sa = (msg_file_s) bf.Deserialize(ms);" I thought that it is very hard to memory map structure array. I need both read and write memory mapped file at both side of C# and C++.
0
852
thread by: Jason Huang | last post Jun 27 '08 by: Jason Huang
Hi, In my C# 1.1 windows form Form1, I would like to open an existing Excel file EX1.xls and run the Macro M1 in the EX1.xls. I can open the EX1.xls with no problem, but I encounterd some problems. It can't find the Macro M1 in the ...
8
2,154
thread by: Brian | last post Jun 27 '08 by: Brian
What's the best way to debug code that is being run during garbage collection? We are getting AccessViolationExceptions that seem to be happening during garbage collection. But when it hits the debugger, it is at whatever line of code the main thread was at when the garbage collector decided to run. In other words, the debugger is in...
7
2,944
thread by: =?Utf-8?B?Tmlrb2xheSBQb2Rrb2x6aW4=?= | last post Jun 27 '08 by: =?UTF-8?B?QXJuZSBWYWpow7hq?=
Good afternoon, community! How you help me? I need to know, how could I verify e-mail address? I don't mean ( for example: test@test.com it is valid or not) I wanna know is that real world E-mail or not?
6
3,218
thread by: =?Utf-8?B?VGFtbXkgTmVqYWRpYW4=?= | last post Jun 27 '08 by: =?Utf-8?B?RmFtaWx5IFRyZWUgTWlrZQ==?=
Hi, can someone please let me know how I can read xml elements using object oriented program. I created a class to use the get and set properties however I dont know how I can pass the values from xml file to the class and use the values in my form. Thanks -- Nejadian
0
896
thread by: sherifffruitfly | last post Jun 27 '08 by: sherifffruitfly
Hi all, Using Expresso, I've come up with this to parse chat lines: (?<chatdate>\d{4}\.\d{2}\.\d{2})\s(?<chattime>\d{2}:\d{2}:\d{2})\s]\s(? <speaker>\b\w*\b(\s\b\w*\b)*)\s>(?<message>.*) As far as I can see, it suffers only from the defect of including the CR at the end of each chat line in the capture. I've tried for the message...
7
1,040
thread by: Thom Little | last post Jun 27 '08 by: Marc Gravell
I am using C # .NET Framework 3.5. I have a calling form that invokes dialog box (called form). I want a button in the called form to change the value of a property in a control in the calling form. Clearly I could set a return code in the called form and have it acted on when control is returned to the calling form. Is there a...
3
1,199
thread by: =?Utf-8?B?bWFyaw==?= | last post Jun 27 '08 by: =?Utf-8?B?bWFyaw==?=
I asked this question in another newsgroup but I didn't get a complete answer. I have a web page served by an IP Camera. The web page has a java control that shows the image. I want to work with that image locally (do some recognition stuff). I know a representation of that image is on my computer because it shows up in a web browser...
4
3,365
thread by: Steffen Bobek | last post Jun 27 '08 by: Anders Borum
Extension methods are made for use with instances. I'd like to "misuse" them as static methods, too. Let me tell you my ambition: I use an extension method to serialize objects somehow like this: MyObject obj = new MyObject(); obj.ToXmlFile("some directory\\some file.xml"); The method "ToXmlFile" is defined elsewhere far apart from...
0
1,432
thread by: Kim Briggs | last post Jun 27 '08 by: Kim Briggs
I am developing an BHO/Explorer Bar using Addin Express for Internet Explorer (a framework to get MSHTML/COM Interop newbies like myself off the ground). Target browser is IE7. Occasionally, I get this message (not reliably reproducible but seems to happen with >1 tabs open -- so >1 BHO instances -- and around tab open/close events): ...

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.