473,544 Members | 1,785 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

6
1,788
thread by: Tony Maresca | last post Nov 17 '05 by: Jon Skeet [C# MVP]
Given: public class MyClass { private MyClass() {} static MyClass() { //.. }
5
2,640
thread by: David C | last post Nov 17 '05 by: David C
This is very strange. Say I have code like this. I am simply looping through a collection object in a foreach loop. Course course = new Course(); foreach(Student s in course.Students) { Console.WriteLine(s.StudentID); }
0
903
thread by: Alberto | last post Nov 17 '05 by: Alberto
How can I print only one record in particular from a table in a crystal reports report? Thank you
5
3,464
thread by: Bucky Pollard | last post Nov 17 '05 by: Bucky Pollard
I am calling a PVCS DLL function from C#. According to the documentation, I can pass NULL to any output parameter that I do not want to receive data back for. How do I do this? Every thing I've tried results in a compiler error. TIA: Bucky Pollard My declaration is below. I am only looking for one piece of information, so ultimately I'd...
0
1,016
thread by: PW | last post Nov 17 '05 by: PW
I have a UserControl that executes a method in its constructor. The method contains client/server code which populates a ComboBox in the UserControl. I have a few problems with this: 1) The constructor code in question will throw an exception in the designer because the server is not running. I can wrap the code with an exception handler,...
9
2,998
thread by: tshad | last post Nov 17 '05 by: Cor Ligthert [MVP]
I am trying to set a date in a DateTime variable that I get from a user: DateTime theDate; theDate = "08-15-05"; This gives me an error: Cannot implicitly convert type 'string' to 'System.DateTime' How do I set it?
1
1,753
thread by: xc | last post Nov 17 '05 by: Nicholas Paldino [.NET/C# MVP]
IŽd like to ensure that the user that will connect to my program is tthe same as authenticated in my windows. Ex: I have user login frame and i want to ensure that the user name , login and domain are the same logged in the local computer. Understand?? Thanks
1
1,699
thread by: Val | last post Nov 17 '05 by: Nicholas Paldino [.NET/C# MVP]
Is it possible to display pictures in the checked list boxes on the Windows forms? If yes, then how? If no, what are the alternatives? Thank
2
1,347
thread by: tshad | last post Nov 17 '05 by: Peter Rilling
How do you test if something is null or not defined? I have some data that I am looking at in the debugger and some of the data is showing as null and some as nothing. For nulls, I would do something like if (sLine == null)... How do I test for not defined?
7
7,790
thread by: Tom | last post Nov 17 '05 by: Jon Skeet [C# MVP]
A have a set of bytes with values in a range from 128 - 255 (Each bit of each byte represents some device status). This set of bytes needs to be passed into an SNMP tool in which the input type is a string. For bytes in the 0 -127 range, I was using: string temp = Encoding.ASCII.GetString(BITResults, 0, BITResults.Length); But this...
0
237
thread by: Daniel Caetano | last post Nov 17 '05 by: Daniel Caetano
IŽd like to ensure that the user that will connect to my program is tthe same as authenticated in my windows. Ex: I have user login frame and i want to ensure that the user name , login and domain are the same logged in the local computer. Understand?? Thanks
0
1,087
thread by: aa7im | last post Nov 17 '05 by: aa7im
I am starting a new project and I always and looking for a better way to skin a cat. Anyway, I am interested in seeing how different people have implemented an N-Tier type architecture (using business objects) for their applications... The mains things I am interested in seeing is how you have setup each tier to talk to each other, how the...
2
2,282
thread by: ReidarT | last post Nov 17 '05 by: Bela Istok
I have a copyfile x y and built this to a exe-file.' When I run the exe-file built in the bin-directory and copy it to other machines I get an errormessage concerning security policy. I don't need a setup file for application, its just a simple file copying from x y. How can I solve this problem without using VB6? reidarT
6
3,131
thread by: gavin | last post Nov 17 '05 by: john_teague
hi guys, I have a query about c# event handling that should be obvious I am sure - but I am confused :-) Lets say I have two classes. One is a user control with a tabcontrol on it The other is a user control with a treeview on it. Now, both of these controls are placed on a form. Both classes raise events e.g. when the tab is changed...
7
3,766
thread by: sonu | last post Nov 17 '05 by: sonu
How can i get the system configuration of Client's Machine Like infoemation about Hard disk, RAM...
2
19,423
thread by: Jefe | last post Nov 17 '05 by: Jefe
Hi Group Could you please explain to me what's the difference between Chars.IsDigit and Chars.IsNumber? Regards,
0
1,888
thread by: eperales | last post Nov 17 '05 by: eperales
Hi All, I'm trying to implement a Knowledge Base article (http://support.microsoft.com/?kbid=174211) in C# to use SENT_REPRESENTING Properties. But I'm unable to set the PropsetID of the Fields.Add. I keep getting and E_INVALIDARG error. field=(MAPI.Field)fields.Add( String.Empty, MAPI.CdoFieldType.CdoEmpty,ae.Type,
1
7,957
thread by: Peter Zausch | last post Nov 17 '05 by: Nicholas Paldino [.NET/C# MVP]
Hello, is it possible to merge cells in a datagrid ? In the MS Flexgrid it was possible if cells have the same content. In the datarid i did not found any corresponding function. Regards Peter
1
1,597
thread by: Mikaël PLOUHINEC | last post Nov 17 '05 by: Nicholas Paldino [.NET/C# MVP]
Hi, I would like to know how I can use the settings and the resources in C# (like My.Settings in VB). Thanks a lot for your help. Mike.
1
1,156
thread by: John J. Hughes II | last post Nov 17 '05 by: Nicholas Paldino [.NET/C# MVP]
Ok I need to send e-mail from my application. I had some code working but now several of the e-mail system are requesting security that I don't support. Mostly I'm getting sick of fighting this battle. 1) Can anyone recommend a add-on for sending e-mail with security... Seem "STARTTLS" is my latest problem. I found easy mail but 750 is a...
6
1,551
thread by: kevin | last post Nov 17 '05 by: Bela Istok
Could someone explain, Caching. I understand Caching as simply saving a copy of something that is unlikely to change and to which you frequently refer as opposed to retrieving a fresh copy every time... like throwing something into Application in ASP3. Now that Iam all "up to date" everyone wants to Cache everything because its "good...
1
1,448
thread by: Tony Maresca | last post Nov 17 '05 by: Nicholas Paldino [.NET/C# MVP]
I'm looking for a basic example that shows how to bind object properties to a datagrid (e.g., objects are stored in a collection, and the grid should show one object per row). TIA -- Tony M.
6
5,926
thread by: Paul Delhanty | last post Nov 17 '05 by: Paul Delhanty
Hi, I am converting an existing native C++ program making heavy use of STL to C#2.0 with STL usage replaced by the new generic collections. The conversion has gone well to the point where I am replacing an STL map instance by a System.Collections.Generic.SortedDictionary instance. In need the collection to be ordered, and to have...
3
1,846
thread by: Shreeram | last post Nov 17 '05 by: Ollie Riches
Hello, I have a chart object which returns the chart created as a BitMap object. I want to render this Bitmap object as an image in a WebPart iam developing. Can anyone please tell me how to go about doing it.
1
1,802
thread by: venky | last post Nov 17 '05 by: Nicholas Paldino [.NET/C# MVP]
HI guys, In one of my columns in the grid, i want to set the width of the grid to the widest entry in the column when i click on the column seperator. How can i calcualte the column width if i know the lenght of the longest string?

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.