Home All Groups Group Topic Search About

Score What's out there for Linux?
Michael Covington - 9 Jul 2009 4:46 AM - 8 messages
Is there anything analogous to Visual Studio with C# for Linux? The language need not be (and presumably will not be) C#.  What I want is an equally good environment for developing GUI programs in some reasonable language. What happened to Borland Kylix?  And wasn't it expensive? ...
Score Label and TextAlign
mick - 5 Jul 2009 9:28 PM - 5 messages
I have a window with height of 24. I have a label on the said window also with a height of 24. I have set the Flatstyle to Flat so I can set the background to transparent. Now if I use a smallish font (8 or so) it always ...
Score Difficulty with Regex pattern to validate a string
Nutella - 8 Jul 2009 10:42 PM - 9 messages
Hi all, I need to validate a string in C-sharp using the Regex class. The rules are: -can only contain alpha-numeric characters, '_' or '-' -Nothing else, no spaces, no funny characters. e.g.  "HELLO_WORLD-1234_abc-ABC" What's the Regex pattern for this?? ...
Score C# |= Operator
Saxena - 9 Jul 2009 12:37 PM - 8 messages
Hi what are the usage scenerio of |= OR Assignment Operator ...
Score ContextMenu Does Not Work?
Mike - 8 Jul 2009 9:29 PM - 9 messages
Why doesn't the following sample code work? The click event never seems to fire for the menu items. Similar code works for the ContextMenuStrip class but I need the modal nature of ContextMenu. private void ShowContextMenu() {   using (ContextMenu menu = new ContextMenu()) ...
Score Input - String : Output - Binary Oct Dec Hex
Markus Sommer - 8 Jul 2009 4:43 PM - 4 messages
Hello! string test = char(2) + "HelloWorld" + char(29);    IsPrintableCharToDec(test[i]); My target: Example   Output <2>HelloWorld<29> public string IsPrintableCharToDec(char c)     {         string ret= c.ToString(); ...
Score linq to sql speed question
Ralph - 8 Jul 2009 7:46 PM - 8 messages
I created a query in linq to sql it is just a join and taking a long time to run. I am logging to a file using the log of the context. If I take the query there and run it it returns in 17 seconds in query ...
Score Having few problems with Windows Service
trant - 1 Jul 2009 6:57 PM - 7 messages
I followed an online tutorial to create a Windows Service with a Setup and I'm noticing two problems I can't figure out. The tutorial I used is located here: [link] ...
Score dll protect code
Steph - 9 Jul 2009 7:41 AM - 7 messages
hello, i want hide my code of my dll... when you use red gate, you can see all your code... so... how do for protect my code ? ...
Score obtain member of Dictionary stored at lowest internal ordinal
John A Grandy - 9 Jul 2009 12:37 AM - 7 messages
For : Dictionary<string,MyClass> myClasses; Is it possible to obtain a reference to object stored internally at the lowest ordinal in the Dictionary , without using the key ? This does not work : KeyValuePair<string,MyClass> kvp = (KeyValuePair<string,MyClass>)myClasses[0]; ...
Score Handlling different Data types
Jayaram Vytla - 8 Jul 2009 8:21 PM - 7 messages
I have a requirement to handle different data types in the value variable. I don't want to use 'object' and type casting each time. What is the best way to do this? ----------------------------------------- My hashtable contains -> Key -> Pointclass ...
Score Performace hit due to Console.WriteLine
Ashutosh - 6 Jul 2009 12:24 AM - 12 messages
Hi, If I use Console.WriteLine in a windows forms application(yes, it's not a Console app), what does it do internally when there is no debugger attached to the application? Will it cause any performance degrade? My application is ...
Score C# program creating folder on server/access denied
walter1234 - 3 Jul 2009 2:28 PM - 8 messages
I have an application that needs to create folders and copy files to a Windows2003 Server. The app was developed in vs2008/c#/sql2000.  The program logs into the sql server using Integrated security. and runs on various client workstations. ...
Score Drag Drop - Move Data Between Apps
Mike - 7 Jul 2009 10:07 PM - 4 messages
I want to drag drop data from one app to another. If the other app chooses to ‘move’ the data, I need to respond by deleting it from the source app. I was reading about the GiveFeedBack event. See: [link] ...
Score Replace strings in a text file and get the number of replacements made
Smith - 7 Jul 2009 4:46 PM - 9 messages
Hi Usually I only replace strings with text = text.Replace("old text", "new text"); Now I need to display the number of replacements made. Is there an easy way or do I need some custom replacement method? ...
Score String Array to List
shapper - 7 Jul 2009 1:34 AM - 5 messages
Hello, I am trying to create an object where one of the properties is a list of string. So I am creating an array of strings and converting it to a list. Something like: Account a = new Account { Approved = true, Roles = (new String[] ...
Score Need advice on Class. Thank You
shapper - 8 Jul 2009 12:53 AM - 3 messages
Hello, I have an object which properties I want to have default values. However, I would like to be able to update these values. I have something like:   // View   public class View {     public IList<Asset> Assets { get; set; } ...
Score OT: MSDN subscribers
Bill McCormick - 1 Jul 2009 8:16 PM - 15 messages
I'm posting here since this is somewhat related to Pete's earlier post. Am I alone in feeling like the MSDN Subscriber support is waining of late? I mean, one of the things we're supposed to get is Managed Newsgroups (Get ...
Score getting to know c#
JohnE - 1 Jul 2009 1:51 AM - 7 messages
Hello.  I have been designated at work to convert MS Access databases (front end only as back ends are on SQL Server) over to webapps using C#.  I am excited about this task and realize the learning curve is going to going ...
Score How to use bring to front and Send to back so the rsult is good
Tony Johansson - 7 Jul 2009 5:20 PM - 5 messages
Hello! I have two radio buttons which are called Active and Not Active. In addition I have a button . Now in some forms I want to show only the two radio buttons and in some I only want to show the buttons. When I show the button I use the same ...
Score Getting StandardIn has not been redirected when starting new Process
Andrew Falanga - 6 Jul 2009 6:27 PM - 6 messages
Hi, I'm struggling to understand how to properly use the System.Diagnostics.Process class correctly.  Here's what I'm doing:             Process myProcess = new Process();             myProcess.StartInfo.FileName = @"c:\windows ...
Score Re: Ideas as to why file is locked
Snedker - 6 Jul 2009 10:34 PM - 7 messages
Thanks for your reply Pete. And point taken in regards of the last part of you reply. The failing void (in a shortened version), which is failing on line with the content: reader.Read(); public void Execute(string xmlFile)         { ...
Score False Positives From String Comparison using string.Equals()
Smithers - 20 Jun 2009 6:29 AM - 12 messages
I am using the .Equals() method of the string class, as follows, to compare string properties of two different instances of a given class. if (!valuesFromUI.Other_Description.Equals(valuesAsRetrievedFromDB.Other_Description, StringComparison.OrdinalIgnoreCase)) {    return true; } What I am observing in testing is that the above .Equals() periodically ...
Score timeout on http post when multiple posts in parallel
Wilfried Mestdagh [MapPoint MVP] - 25 Jun 2009 6:46 AM - 3 messages
Hello, I do a HTTP POST in a thread with following code (only relevant copied here): Cli cli = new Cli(); Thread cliThread = new Thread(new ThreadStart(cli.Run)); cliThread.Start(); the Cli class is like this: public void Run() {    HttpWebResponse webResponse; ...
Score Control.Invoke, label.Text property didn't get updated
kndg - 6 Jul 2009 5:25 AM - 3 messages
Hi all, I'm just learning to use threading but stumble on below problem. When the worker thread start, the progressBar.Value updating fine but not with label.Text. Can someone shed some light on me? BackgroudWorker work just fine but I cannot use BackgroundWorker because ...
Score LINQ: Count records
Adam K. - 5 Jul 2009 11:40 AM - 11 messages
Hi, I have stored procedure that returns some records from table, i.e. like this: CREATE PROCEDURE dbo.UsersGet AS BEGIN SELECT * FROM Users; END In c# i can acces to this stored procedure by code: SampleDatabaseContext ctx = new SampleDatabaseContext(connectionString); ...
Score A very small complete program that doesn't work as expected
Tony Johansson - 4 Jul 2009 11:10 AM - 6 messages
Hello! I have a complete program listed below that use the northwind database table Customers. I have one control in the form and that is a DataGridView called dataGridViewCustomer. I use a SqlDataAdapter that pass the sql statement Select * from customers ...
Score Accessing List Members
AMP - 4 Jul 2009 6:37 PM - 3 messages
Hello, I have a List that adds members in the following fashion: for (int i = StartingPortNumber; i < (UsablePorts + StartingPortNumber); i++)     {         string PortName = "Com" + i;         AllPorts.Add(new SerialPort(PortName)); ...
Score ASCII to hex/binary
TNCoder - 3 Jul 2009 2:36 AM - 4 messages
I have an ASCII string. For example: string myString = "1200B2C4D2BB9863"; I need to convert this to byte[] 0x1200B2C4D2BB9863; Are there any suggestions? ...
Score a simple client example
Andreas Ott - 3 Jul 2009 8:43 PM - 4 messages
Hello, I looking for a simple client example. My is not working. Every time I receive a exception.              catch (Exception e)              { ...
Score GZipStream catch-22
bamelyan - 3 Jul 2009 9:44 PM - 4 messages
GZipStream unzip = new GZipStream(stream, CompressionMode.Decompress, false); In order to read from unzip.Read(buffer, 0, unknownLength), I need to allocate enough buffer length. In order to know how many bytes to allocate I need to call unzip.Read(buffer, 0, unknownLength) that returns bytes. ...
Score Filter list with LINQ
Scott - 2 Jul 2009 7:16 PM - 5 messages
In a Silverlight 2.0 application, I am attempting to filter a list of objects using LINQ.  The custom object named Incident has a property named “DOW” that is of the type of DayOfWeek.  The use case is that the user can select a ...
Score Problem setting system time...
trant - 3 Jul 2009 12:16 PM - 4 messages
I am trying to set my system time using C#. I use the P Invoke method as described on MSDN web site. All the fields are set properly except for one: hour. For example I set it to a value of 15 and that somehow becomes 11 am on the ...
Score COM control passed to .NET
Kalvin - 2 Jul 2009 3:44 PM - 4 messages
I have a C# class which is created by a VB6 application.  In the VB6 a VBControlExtender is created and passed to the C# class.  In VB6 you get to the underlying control of a VBControlExtender by calling .object on the VBControlExtender.  How do get to the ...
Score Code Generation for property 'xxx' failed
slawrence - 7 Jun 2006 3:31 PM - 4 messages
Hi I am getting an error "Code generation for property 'SubCategoryId' failed. Error was 'Property accessor 'SubCategoryId' on object 'yyy.zzz' threw the following exception: 'Object reference not set to an instance of an object.'' after porting my code from V1.1 to V2.0. ...
Score won't catch my custom exception
rodchar - 2 Jul 2009 2:00 PM - 9 messages
hey all, i have a very simple custom exception class:     public class EmptyRecordException : Exception     {         string message;         public override string Message ...
Score Marshal.Copy
clawton - 2 Jul 2009 2:53 AM - 3 messages
Hi All, With the simple code below I get an exception on the last line of code... Just trying to figure out some marshalling stuff...but I'm stuck... Ultimately, the source pointer is data created in a DLL called by p/Invoke ...
Score Binary Serialization overhead
bamelyan - 2 Jul 2009 4:15 PM - 6 messages
My memory stream length, after bin serialization, was always coming out to be too large.  I started investigating.  Even if i leave my GetDataObject() method blank, no fields are serialized, the memory stream still came out to be 143 bytes! ...
Score help on generic space
GS - 19 Jun 2009 5:40 AM - 7 messages
I only dabble in C# once in a long while and am I lost. I got problem with the following code How should I reconcile     Color c2 = colors.Find(c1) so I don't get Error 1 The best overloaded method match for ...
Score Get ContentType
shapper - 2 Jul 2009 4:28 PM - 3 messages
Hello, How can I get the content type of a file given its path? I know how to use Path to get the filename but not the content type. Can I get the file into a File object? Thanks, Miguel ...
Score Save File
shapper - 2 Jul 2009 11:40 AM - 3 messages
Hello, On a application I am saving files to a few folders and for each one I have a record on a database. I rename most files so that the Id of the record becomes the filename. But in some cases I don't. ...
Score parse string CN= OU= O=
Alhambra Eidos Development - 2 Jul 2009 6:47 AM - 11 messages
Hi all, I have this string "C=ES, SERIALNUMBER=123456789R, SN=MAORI, G=PEPE, CN=\"MAORI RAMOS, PEPE (AUTENTICACIÓN)\" I need create several methods for get values for key "C" the value is ES for key "SERIALNUMBER" the value is 123456789R ...
Score exceptions to the rule
rodchar - 1 Jul 2009 6:10 PM - 9 messages
hey all, alright, so i have the basic 3-tier (logical) application and down in the data layer i'm throwing an exception if 0 records are returned from the database. i have a try catch in the user interface (happens to be the console) and ...
Score Beating a dead Horse: Which Language
cfmortgagepro - 28 Jun 2005 12:37 AM - 116 messages
Hi, I know that I'm an extreme newb by asking this overly beaten question, but I am leaning toward C#, becuase the perception is that it is better to learn than VB.Net. I guess it makes you cooler.:-) ...
Score set location of Form2 based on Location of Form1?
Rich P - 30 Jun 2009 8:35 PM - 11 messages
In VB.Net I do this from Form2: ...Form1_Load(...) ... Dim pt As Point pt.X = Form1.Location.X + 500 pt.Y = Form1.Location.Y + 100 Me.Location = pt I am currently translating an old app to C# from VB.Net.  I tried this ...
Score alternative way to validate
rodchar - 1 Jul 2009 6:18 PM - 4 messages
hey all,         private static bool Validate(string userInput)         {             string[] validOptions =  { "1", "2", "3", "4", "E" }; ...
Score A question on naming schemes - when frequent collissions with the BCLs are present
Anders Borum - 1 Jul 2009 9:14 AM - 2 messages
Hello, (this question has been on my mind for some time now, so I'm just trying to describe the problem the best I can and hopefully get the discussion started.) I'm looking for suggestions, feedback and advice regarding naming schemes in ...
Score OT: missing posts
Peter Duniho - 30 Jun 2009 4:57 PM - 14 messages
Well, it's on-topic in the sense that it has to do with this newsgroup.  :) I'm using a different news server to post this message, because my  question has to do with what appears to be a possible problem with my  ...
Score debug problem (UI) ...
Frank Uray - 25 Jun 2009 6:50 PM - 7 messages
Hi all I have a little problem with debugging ... I have build a application (MDI Container) with plugins, and now, for some reason, after about 1h the applications hangs, without error message ... I have tried to debug in visual studio (attach process) ...
Score check console args
rodchar - 30 Jun 2009 8:18 PM - 4 messages
hey all, my consoleApp.exe can take either 1, 2 or 3 parms what's the best way to check for these conditions? my guess is something like:              if (args.Length == 2) ...
Score Move C# web app to another machine
Dave - 23 Jun 2009 9:06 PM - 6 messages
I have a web app that was developed on a old development machine. I've replaced my development machine with a new machine. When I try to access the web app on the new development machine, the app won't compile and can't see ...
Score VS2005 can't open form
LJB - 16 Jun 2009 7:57 PM - 5 messages
I posted this in microsoft.public.vstudio.general this morning but that group doesn't seem to be very active. I'm still new with VS2005 and C#. Whenever I try to open one form in my project in form designer, I get error message "Reference information not ...
Score Linq to Sql Exception Specified cast is not valid
Bill McCormick - 30 Jun 2009 12:04 AM - 12 messages
I'm getting an exception *Specified cast is not valid* after calling SubmitChanges for a DB insert. Seems to be some strange issue with an association to a table. I've seen some postings from about a year ago that ...
Score LINQ Max
Bill McCormick - 29 Jun 2009 2:10 PM - 10 messages
How would you structure a Linq statement using Max to return the record with the greatest (newest) datetime field? ...
Score Delegate Invoke in Thread throws InvalidOperationException
jp2msft - 26 Jun 2009 2:43 AM - 7 messages
I have a test application that I am working on to create a way for my threads to send information back to the main thread. I would prefer to use the BackgroundWorker class (which is perfect for doing this), but I can not ...
Score Linq to Sql insert fails
Bill McCormick - 29 Jun 2009 4:11 PM - 5 messages
I have a Linq to Sql application where record inserts are not working. There's no exception or error message and I can't find a reason from SQL Express logs. It looks line this: Trk trk = cmbTruckId.SelectedItem as Trk; ...
Score solve c# problems
starter - 17 Jun 2009 8:59 AM - 13 messages
Hi, I wanted to know how to solve any problem in c#. I have 5 years of experience in that 4 years worked on Sql server and I was able to solve problems in Sql server using T-sql programming. ...
Score Image
shapper - 17 Jun 2009 3:03 PM - 7 messages
Hello, Does anyone knows a C# library to manipulate images? Size, resolution, etc ... And if possible also check the size and type of an image. I need to use something like this in my ASP.NET MVC project. Thanks, Miguel ...
Score Main() questions
jp2msft - 27 Jun 2009 6:42 PM - 6 messages
The standard Windows form starts with Main(). What is the benefit to starting my application this way: [code] [STAThread] static void Main() {   Application.EnableVisualStyles();   Application.SetCompatibleTextRenderingDefault(false);   Application.Run(new Form1()); } [/code] as opposed to this way? ...
Score String and null vs DBNULL
tshad - 26 Jun 2009 7:33 PM - 6 messages
I have a function that is being passed as an object but is really a string so that I can handle DBNull.Value. You cannot pass a DBNull.Value to a string parameter but you can pass a null value.  Not sure why this is but if I have the following: ...
Score Visual Basic is Dead!
Marcus - 16 Jun 2009 6:38 PM - 118 messages
I found this: [link] It means that C# will completely replace Visual Basic. What dou you think about this, is VB dead? ...
Score NNTP
Brian Cryer - 24 Jun 2009 12:55 PM - 9 messages
Can anyone recommend where I can get a class library to provide NNTP functions? I'm after something I can use or build on which will allow me to pull down articles from a newsgroup, and perhaps later in the project post back too. ...
Score Dataset pass by ref
tshad - 27 Jun 2009 1:31 AM - 3 messages
I thought a DataSet is passed always by reference. If that is the case, why do you need the "ref" keyword before it if you want to change it in another routine? For example: I define it in A and A calls B and B changes it and it returns to A (where ...
Score How does managed code work?
Siegfried Heintze - 23 Jun 2009 6:39 PM - 3 messages
Would like to pursue some questions I recently encountered in an interview -- someone might ask them again in another interview. I was not very satisfied with the answers I gave the interviewer. (1) Can someone point me to a discussion of the managed stack? Does it work ...
Score How to add item to linqtosql query?
Simon - 26 Jun 2009 12:24 PM - 3 messages
I would like to add an item to linq to sql query (not add a record to db!). for example: IEnumerable query = from s in dataContext.table                                 select new ...
Score DataGridView multiple tables
Tony - 25 Jun 2009 9:54 AM - 3 messages
Hello! Assume I have a DataGridView with these column headers in this sequence. Batch    Number    TimeLeft     Moment I execute an sql select statement that give me these 10 rows se below. Here ...
Score Future of CSharp vs future of VB
Nully Girl - 23 Jun 2009 2:24 PM - 7 messages
Any thoughts on future of C# vs VB.NET. I found a discussion related with this title "Visual Basic is Dead!" here: [link] any thoughts? ...
Score graphics
chris - 24 Jun 2009 6:56 PM - 6 messages
I'm a VB.net developer and I'm finding good C Sharp forums hard to come by, so please let me know if this is the wrong place. I've create a C Sharp VS2008 Windows App that captures the screen and allows ...
Score When to use delegates?
Rich P - 24 Jun 2009 3:28 PM - 7 messages
Greetings, I am migrating from VB.Net to C#.  In one winform app where I autofill datefields based on TextBox.Enter and KeyUp events (in VB.Net).  I am now translating this app to C#. The date autofill consists of a user ...
Score C# representation of VB.net "OrElse" operator?
Rich P - 23 Jun 2009 4:02 PM - 11 messages
VB.net: If this Or that Then... C# if (this || that){...} VB.net If this OrElse that Then C# if (this .....? I believe in VB.Net OrElse wont evaluate the next expression unless the first expression is completely false where with OR both expressions get ...
Score creating an array of forms
Rich P - 19 Jun 2009 8:41 PM - 5 messages
In VB.Net I do the following to get an array of existing forms: Dim frm() As Form frm = New Form() {Form1, Form2} How to do this in C#?  I tried Form[] frm; frm = new Formp[] {Form1, Form2} but get an error ...
Score What am I doing wrong with GCHandle here...
Scott - 18 Jun 2009 7:54 PM - 8 messages
namespace TestProg {   class Globals   {     public  static Int32    percent_done;     private static GCHandle percent_done_handle;     public  static IntPtr   percent_done_pointer;   }   public static void Init() ...
Score Unique GUID for an asynchronous task
AA2e72E - 23 Jun 2009 6:39 PM - 6 messages
I am using  System.Net.Mail to send mail asynchronously. I have an event handler that gets trigerred when the task is completed. One of the arguments of the event handler has a method UserState; UserState gets a unique GUID for the asynchronous task. ...
Score Get InnerText of XML element from StreamReader
HillBilly - 16 Jun 2009 1:45 AM - 6 messages
I am at my wits end. I can get an XML element returned to me from a StreamReader: string responseString = streamReader.ReadToEnd(); The responseString string variable will contain a single XML element: <friends>[true|false]</friends> ...
Score Playing an .avi file in a C# app.
Allan Michaels - 12 Jun 2009 4:11 PM - 8 messages
Prequel to the question: We sell instruments to industry. These instruments are controlled by a Windows system. These windows systems are Windows XP x64 systems, and my software MUST run in 64-bit mode (not win32 on a 64-bit system.) ...
Score Help with Streams
Jonathan Wood - 18 Jun 2009 12:46 AM - 10 messages
Greetings, I'm still pretty new to .NET streams and wondered if someone could offer some suggestions. Currently, I'm using StreamReader to reading a text file line by line. When I reach a particular line, I'd like to compute an MD5 hash for the entire ...
Score Application design question
David - 3 Jun 2009 11:25 AM - 11 messages
Hi all, I am coming from an ASP.NET background into a windows (and windows mobile) application project. (The project is currently being scoped, but my skills may be required.) The project will be written in C# and will use a variety ...
Score Appliation.Exit not killing my Threads
tshad - 18 Jun 2009 9:27 PM - 5 messages
I have a thread that is running on my system and I want to be able stop the threads when I exit the program. I have an Exit button that does:      Application.Exit() Is there something else I have to do to kill my Threads. ...
Score Sorting Array using Icomparable
tshad - 17 Jun 2009 10:58 PM - 9 messages
I have a couple of issues here stemming from the same code. I have a class that will sort a FileInfo array by date.     public class CompareFileInfoByDate : IComparer     {         public int Compare(object x, object y) ...
Score MemoryAccessViolationException and multimedia timer problem
MM - 17 Jun 2009 6:16 AM - 10 messages
Hi, I have imported the Multimedia timer funcs from "winmm.dll" and setup a c# class with the TimerEventHandler:- class MSecTmer {         ulong count;  // holds tick count of timer <stuff> private void tickHandler(int id, int msg, int userdata, int r1, int r2) ...
Score Illegal Instruction Thrown When Executing a Callback Function
bsnguy - 17 Jun 2009 2:54 AM - 8 messages
I have two callback functions declared in my C# code:         public unsafe static void CallbackA() /* yes, I do mean to declare this as unsafe and static in my real code... read on */         { ...
Score Need help in converting the existing patch to c# console application
J. Hwang - 16 Jun 2009 6:29 PM - 7 messages
Hello, I have a client which like me to convert their existing patch to c# console application. I know that it should be really simple, but I'm a newbee to C#. I also knowing how to create a subfolder with the datestamp as the ...
Score Aren't All MD5 Hashes the Same?
Jonathan Wood - 17 Jun 2009 3:02 AM - 17 messages
Greetings, I can't seem to find a solution to this. According to Google's Safe Browsing API, the following code should produce a matching base64-encoded checksum.    string clientKey = "8eirwN1kTwCzgWA2HxTaRQ==";    string table = "+8070465bdf3b9c6ad6a89c32e8162ef1\t\n+86fa593a025714f89d6bc8c9c5a191ac\t\n+bbbd7247731cbb7ec1b3a5814ed4bc9d\t\n"; ...
Score Implementing IDisposable on factory pattern objects
Andrew Falanga - 17 Jun 2009 2:05 PM - 6 messages
Hi, I'm reading this article on MSDN, [link], and it says that (for the base class) the Dispose( ) function should not be made virtual because you don't want derived classes calling ...
Score Weird behavior of ListView.ShowGroups property
Nikola Novak - 9 Jun 2009 4:28 PM - 5 messages
Hello, I'm using a ListView to show a list of reports, all coming in from different parts of my application (like a log only less detailed), so I figured it would be useful to be able to see these reports both in the ...
Score validate pdf
eddiec - 16 Jun 2009 6:06 AM - 5 messages
Hi, Is there any way in C# to validate if a PDF is in legal PDF format or if it is corrupt. cheers, eddiec :-) ...
Score Convert number to Excel column name
maz77 - 17 Jun 2009 3:39 PM - 4 messages
Hi, I'm developing with C# and I need a function gets a integer as parameter, and returns the corresponding column name in a sheet of Excel: public string ConvertToLetter(int number) {     //code... } 1 --> A 2 --> B ...
Score StatusStrip wiping out 2nd label
tshad - 17 Jun 2009 8:20 PM - 6 messages
I have a status strip with 2 items: toolStripStatusLabel1 and toolStripStatusLabel2. I have the toolStripStatusLabel2 all the way to the right by using a margin left of 500. When I write to toolStripStatusLabel1, which is all the way to left, it ...
Score OT: Binary Search - Should They Know It?
jehugaleahsa@gmail.com - 21 May 2009 2:37 AM - 5 messages
Hello: Should the average programmer, like a full-time programmer, know when to use a Binary Search? Should a serious programmer at least know what it is? Not so much the name, but at least how it works...? My opinion is that anyone who spends the majority of their work day ...
Score String.Format D0, D1, D2, D3 change by variable
AhWau - 13 Jun 2009 11:48 AM - 7 messages
int var = 1; int i = 1; string a; if(var == 0)   a = String.Format("{0:D0}", i); if(var == 1)   a = String.Format("{0:D1}", i); if(var == 2)   a = String.Format("{0:D2}", i); the format is variety by (var) ...

Developed using NextGeneration, the .NET Code Generator Try AdSense Reporter, the charting tool for AdSense publishers