473,788 Members | 2,897 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

3
6,560
thread by: Jon Slaughter | last post Apr 2 '08 by: =?Utf-8?B?TW9ydGVuIFdlbm5ldmlrIFtDIyBNVlBd?=
I wrote this function that is suppose to returnt rue if an array of types(actually stuff returned by GetInterfaces) implements the interface Q. private bool ContainsInterface<A, Q>(A list) { foreach (A a in list) if (a is Q) return true; return false;
1
2,413
thread by: Tony Johansson | last post Apr 2 '08 by: Fredo
Hello! I use VS 2005. A Datasource can be a Database, Web Service or an Object. So I select Data->Add New Data Source in the menu. In the dialog data Source Configuration Wizard I choose Database. When being asked about Choose Your Data Connection I click New Connection.
3
5,383
thread by: Dom | last post Apr 2 '08 by: =?ISO-8859-1?Q?Arne_Vajh=F8j?=
I use SQLDataReader to obtain data from a SQL Server backend. Within the program, I need to know the length of some of the varchar fields. Not the length of the returned value, but the maximum length, as it is specified in the database. How do I do this? I'm expecting something like this: SQLDataReader r = (...) r.GetDataLength (i)
5
1,362
thread by: tshad | last post Apr 1 '08 by: tshad
I am using VS 2005 and find that if I am debugging my program and am still in debug mode, certain functions slow down. For example, if I tracing through some of my code and haven't stopped debugging and try to open a Windows Explorer window, it will take close to a minute for the window to open up (using the windows/e combination keys)....
0
1,932
thread by: Dave | last post Apr 1 '08 by: Dave
I have an ASPX page that I can't seem to do anything with the dropdowns. The error that I'm getting is "The name 'EmployeeDropdownList' does not exist in the current context. I have all the necessary references in place...System.Web...System.Web.UI.WebControls.... Why am I getting the context error when trying to Databind a dropdown...
2
1,219
thread by: Midger | last post Apr 1 '08 by: Midger
I've found a trouble with using Listbox cortrol in Web application. I've used it previously and all works good. I can get which elements are selection. for (int nrp = 1; nrp < lbWorker.Items.Count; nrp++) { if (lbWorker.Items.Selected) { if(txtEmailAdres.Text.IndexOf(lbWorker.Items.Value)<0)
0
1,105
thread by: Analizer1 | last post Apr 1 '08 by: Analizer1
Hi ... I have lets say 4 backgroundworker thread running they all connect to sqlserver2005 does some processing where im having problems..its on critical errors lets say the sqlserver is down.. so tons of errors are kicked off , where as i catch them at different places in the code, try/catch blocks
2
1,733
thread by: Steve Richter | last post Apr 1 '08 by: Steve Richter
using SetPixel to set all the pixels of a bitmap to Color.Red. Problem is the bitmap displays as Color.Turqoise. if all the pixels of the bitmap are Red, why does it not display as Red? thanks, Bitmap bm = new Bitmap(5, 12 );
3
7,805
thread by: Jon Slaughter | last post Apr 1 '08 by: Jon Slaughter
FieldInfo fields = type.GetFields(); works and returns all public fields, but when I do FieldInfo fields = type.GetFields(BindingFlags.Public); I get nothing!! Whats going on? (again, its that simple... if I delete BindingFlags.Public I get all public fields but if I don't then I get
0
1,708
thread by: riaancillie | last post Apr 1 '08 by: riaancillie
I apologize in advance since this isn't strictly the most appropriate group to ask this question in. I am using a Socket to broadcast UDP datagrams as such: FSocket.EnableBroadcast = true; FSocket.SendTo(bytes, new IPEndPoint(IPAddress.Broadcast, 9991) ); I receive the datagram on the other computers on the network, but the computer...
2
2,994
thread by: =?Utf-8?B?QWFyb24=?= | last post Apr 1 '08 by: Gilles Kohl [MVP]
Hi, I'm having a tricky problem where I want to accept a regular expression pattern from user input but can't get teh escape characters to be prcoessed correctly. If I take the same pattern and declare it in code with a preceeding @ character it works fine. To get the pattern to work from teh suer all \ have to be escaped, e.g. instead...
0
3,083
thread by: =?Utf-8?B?S2FpIFdhbmc=?= | last post Apr 1 '08 by: =?Utf-8?B?S2FpIFdhbmc=?=
I use the following two lines of code to create a performance counter with an instance name. PerformanceCounterCategory.Create(m_CategoryName, "", PerformanceCounterCategoryType.MultiInstance, m_CounterName, ""); PerformanceCounter counter = new PerformanceCounter(m_CategoryName, m_CounterName, "test", false); But I get this exception:
1
2,191
thread by: =?Utf-8?B?Q2hyaXN0aWFuIGZyb20gRnJhbmNl?= | last post Apr 1 '08 by: Joe Kaplan
I want to do the folllowing in C# : I have a DirectoryEntry : DirectoryEntry usr = new DirectoryEntry("LDAP://cn=Mike,ou=Users,dc=MyDc"); With "AD Users & Computers" Security tab an administrator had give to some users the right to write the accountExpires property of this Account. I want to read the ACLs on this object and obtain the list...
0
1,150
thread by: =?Utf-8?B?VGFsYWxTYWxlZW0=?= | last post Apr 1 '08 by: =?Utf-8?B?VGFsYWxTYWxlZW0=?=
if i put slash("/") at the end of url then .aspx page couldn't load the css and images. example: http://testURL/TestPortal/test5/test16.aspx/ after / insert at the end of url website will loose its formattings and its images..
1
3,024
thread by: Polaris | last post Apr 1 '08 by: Midger
Hi Experts: In IE Explorer, users can change the text size by choosing one of the pre-defined magnifying factors at the lower-right corner's "Change Zoom Level". Just wondering, does .Net WebBrowser 2.0 provide similar function to reduce or increase text size? Thanks in Advance!
0
1,140
thread by: =?Utf-8?B?VGFsYWxTYWxlZW0=?= | last post Apr 1 '08 by: =?Utf-8?B?VGFsYWxTYWxlZW0=?=
if i put slash("/") i mean just a / at the end of url then .aspx page couldn't load the css and images. i have a portal in .net if any body puts / at the end of url that page couldn't load the css and images. example: http://testURL/TestPortal/test5/test16.aspx/ after / insert at the end of url website will loose its formattings and its...
1
1,229
thread by: Peter Morris | last post Apr 1 '08 by: DSK Chakravarthy
Can anyone suggest which is the best group to discuss silverlight 2?
2
990
thread by: solutionsdxb | last post Apr 1 '08 by: DSK Chakravarthy
Hi , We are looking for Dot Net Professional in Gurgaon , its in urgent requirement , if you are having experience of 1 -2 years in ASP.net , kindly forward your resumes to solutionsdxb@gmail.com , can forward the same to your friends or colleagues. Salary and Opportunity would be best in the Industry. Regards
1
1,415
thread by: paolol | last post Apr 1 '08 by: DSK Chakravarthy
Hi, I'm tring VS2008 with a simple Windows program, just a grid and a db made of an XML file. All work fine until the 3th record then the dataSet1.WriteXml("pippo.xml"); don't write the new inserted record, but don't give any error. The only way do make it working is to edit a record and then save again. Any one can explain me what can...
1
8,867
thread by: Karch | last post Apr 1 '08 by: Nikola Stjelja
If you run this: string result = "<html><head></head><body>The body</body></html>"; result = retainBody.Replace(result, "$1"); With the following Regex: private static readonly Regex retainBody = new Regex(@"<\s*body*>(.*)<*body*>", RegexOptions.Compiled |
0
1,283
thread by: viepia | last post Apr 1 '08 by: viepia
Hi, Is there any other string that will work for RSAPKCS1SignatureFormatter.SetHashAlgorithm(string hashAlgorithm) other than "SHA1"? From ms-help://MS.VSCC.v90/MS.MSDNQTR.v90.en/fxref_mscorlib/html/f9808429-85df-4e5b-34c1-d04cb27f24a1.htm I tried "SHA512","HMACSHA512", "RIPEMD160", and " HMACRIPEMD160"; they all threw...
6
1,697
thread by: Tom P. | last post Apr 1 '08 by: Peter Webb
I am writing a drawing program but I want to keep the scale down (there could end up being several hundred objects on the screen). I want to limit the points collected to a certain distance from other points already collected, in other words, if you're drawing a line it will only record points on the line every 6 pixels. How do I determine...
0
1,505
thread by: CSharper | last post Apr 1 '08 by: CSharper
Just curious, When you are in IDE, you are able to add a resource to the project through resource tab. Later this resource can be accessed using the resource manager. One good thing about this approach is that, the resource file is build into the exe and using resource manager you can later get already added resource file back. Now is it...
5
2,225
thread by: CSharper | last post Apr 1 '08 by: CSharper
Please tell me what am I doing wrong in the following; I have a WPF program that I build it in IDE and ran it, it runs fine. I wanted to make it an exe through command line compiler(why, I need to do some additional work) to I did a build in IDE and took the compiler parameters and wrote a batch program to create the exe. It compiled...
0
1,720
thread by: jwwest | last post Mar 31 '08 by: jwwest
Hi all, I really like the way AJAX sites gives auto hints for what you should input on various form fields as you tab down or click into fields. I want to implement something like this on my c# forms but I'm having a little bit of trouble. I've decided to use a balloon tooltip that will appear (hopefully to the right of the text field)...

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.