Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008
all groups > c# > july 2007 > threads for tuesday july 31

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Printing Too Slow
Posted by duylam76 NO[at]SPAM hotmail.com at 7/31/2007 10:34:24 PM
I'm new to printing with C# and I find that printing and previewing is a lot slower than I expected. As a test I've just been printing 100 blank pages. When I try to preview, the "Page 'X' of document" box shows up and it counts very slowly (a little less than one page per second). As a compar...more >>


Modify form1 properties from form2 ( not access variable of form1 )
Posted by Boki at 7/31/2007 9:00:03 PM
Hi All, I want to change WindowState of form1 from form2. I tried these two methods, but no luck on both. (1) Declare a public method: /* function of form1 */ public void active_this_form() { this.WindowState = FormWindowState.Normal; t...more >>

retrieve the application's path
Posted by Thanh-Nhan Le at 7/31/2007 6:35:44 PM
Hi, Is there any function to retrieve the application's path, path of the exe file (as the property app.path of VB6). thanks Nhan ...more >>

datagrid
Posted by MikeJ at 7/31/2007 5:19:16 PM
hi I wrote a Class that has 1 inherited child class this class loads row offsets into a 1 dim long array i can traverse the text file via rows or if delimited columns or fixed with columns i can define a structure (array of column names, type,size, len, decimal i would like to browse a fil...more >>

ASP.NET 2.0/C# Response to client is masterpage instead of file.
Posted by Michael D. Ober at 7/31/2007 4:14:19 PM
When I single step through the code below, it sends back the PDF file that is retrieved in the line fm.GetAccountPDF(...). When I run without single stepping, I get the master page for this page. I have actually saved the file returned by IE 7 as a text file and opened it in notepad, so I ha...more >>

Xtreme Newbie: String Arrays
Posted by Rob at 7/31/2007 3:40:21 PM
I am an Xtreme newbie to C# and am trying to build an array of strings. I get the following error and don't know what I'm doing wrong. System.NullReferenceException: Object reference not set to an instance of an object. Here is a diliuted example. string[] strArray; string strV...more >>

What I don't like about C# so far, compared to C++ (managed or otherwise)
Posted by raylopez99 at 7/31/2007 3:36:53 PM
First in an occasional series. I'm somewhat experienced in C++, and am using .NET Visual Studio 2005 as the IDE. I'm learning C#. What I don't like about C#, compared to C++ (all flavors): 1/ no pointers or tracking pointers or handles--this is absurd. I realise references are by and l...more >>

Invoking to a busy UI thread
Posted by gemartin NO[at]SPAM earthlink.net at 7/31/2007 3:33:05 PM
Here's my question: I have Windows Forms app. Suppose the user clicks on the "Processing" button on the UI. The UI thread then starts processing. During this processing another thread calls invoke to update a control on the UI. When the UI thread reaches the end of its time slice--even th...more >>



Serializing an XmlArray with attributes
Posted by at 7/31/2007 3:15:16 PM
Hi I'm currently having trouble serializing an object to Xml, in the format I need. Below is the object definition. ------------------------------- [Serializable] public class Folders { protected List<PathString> _include; protected List<PathString> _exclude; public Fold...more >>

How to serialize a C++ object through .Net Remoting
Posted by benkial NO[at]SPAM gmail.com at 7/31/2007 3:05:31 PM
Below is a custom exception class that I created to be shared by my C+ + and C# code. It works fine till I need to pass the exception object through Remoting: every time a FtException is raized in the Remoting server side, the client got the following error (see below). Based on my Google searc...more >>

Sizing a "RichTextBox"
Posted by Robert at 7/31/2007 1:54:27 PM
Hi there, I have a dialog with a "RichTextBox" that's anchored on all 4 sides of the dialog. I now want to resize this control in my "OnLoad()" handler so that it reflects the size of its text. Because of the anchoring, I can do this by simply resizing the dialog itself. The (condensed) cod...more >>

how to extend OpenFileDialog ?
Posted by Sagaert Johan at 7/31/2007 1:48:19 PM
Hi Can i extend the OpenFileDialog so i can show a thumbnail of a picture i am opening ? (priview it in a picturebox inside the fileopen dialog ) Johan ...more >>

generic lists and .NET Remoting
Posted by Jeff at 7/31/2007 1:38:20 PM
..NET 2.0 Is generic lists faster then tradional lists when sending over a collection of objects (value by reference) in .NET remoting. Lets say if a list of object should be sent from a server to the client. Whould it be better to use generic lists? Jeff ...more >>

How could I add row to bounded datagridview programmatically?
Posted by DataGridView add row dynamically at 7/31/2007 12:30:02 PM
Hi, I am working on the windows application. I created a form Form1 to list records. I used datagridview to show data and bound it to a dataadapter. User can click Update button in Form1 to open a new dialog window Form2 to update selected record and also add new records. When user closes t...more >>

Singleton Implementation Issue
Posted by Smithers at 7/31/2007 11:57:34 AM
Unless I'm misunderstanding the pattern and it's various implementations, Singleton effectively makes the constructor unavailable to clients. The constructor for any given class, however, is what we otherwise use [outside of Singleton implementations] to *require* specific parameters be suppli...more >>

Looping Through Application Settings
Posted by RHPT at 7/31/2007 9:20:02 AM
I have a Windows Form application with several application settings set. How is it possible for me to loop through those settings? Is it possible at all? Thank you ...more >>

Add MenuItems Dynamically
Posted by MWS at 7/31/2007 9:03:47 AM
Hello, I'm trying to loop through the app.Config file and add the keys from the app.Config as MenuItems on a MenuStrip. The following line blows up... transToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { TransMenuItem[TransCount]}); The error that I'm getting is "Argumen...more >>

Way to manipulate Flash Video (FLV) files with .NET code?
Posted by noneya22 NO[at]SPAM excite.com at 7/31/2007 9:02:17 AM
I am building an asp.net 2.0 application and I need to be able to convert existing FLV files on the server. Specifically, I need to be able to take an FLV file and convert it to another, smaller/scaled down FLV file. I'm trying to create a small, preview of the original FLV file. Is there a ....more >>

Getting a snapshot from a WebBrowser
Posted by Joachim at 7/31/2007 8:46:03 AM
I badly need to get a snapshot from a WebBrowser control. How can I do that?...more >>

Can I call an event in code?
Posted by Dom at 7/31/2007 8:05:17 AM
In the days of VB, it was possible to do the following: "Call Button1_Click()", although there was some argument about whether this was asking for trouble. Is it possible to do it in CSharp? The trouble that I see is that every event handler needs arguments. But can you do something like "...more >>

Share Information between Service and Service Manger
Posted by MikeZ at 7/31/2007 7:06:02 AM
I have a application that run as Windows Service. I also created another Windows Form Application that manage the Service like MS SQL Server Service Manager did. Service Manager need to know some variable value in Service, include some massive data. I am using the TCP Socket, is there a bet...more >>

Bitmap Save gives "A generic error occurred in GDI+"
Posted by Joachim at 7/31/2007 4:18:04 AM
I have a bitmap which I have retreived through the WebBrowser DrawToBitmap method into a Bitmap. When I try to save the bitmap I get "ExternalException occurred A generic error occurred in GDI+" Why can't I save the bitmap? I need to save it - how to do?...more >>

Casting base class to inherited one
Posted by jan.loucka NO[at]SPAM gmail.com at 7/31/2007 3:47:32 AM
Hi, We're building a mapping application and inside we're using open source dll called MapServer. This dll uses object model that has quite a few classes. In our app we however need to little bit modify come of the classes so they match our purpose better - mostly add a few methods etc. Exampl...more >>

Printer Status over Network
Posted by TARUN at 7/31/2007 3:00:22 AM
Hello all, Please help and suggest the code to get the printer status over the network. for Example, i have an string "\\\\os1\\PtName" where os1 is the system name and PtName is the printer name I need to know the status of this printer on the system name "os1". Please suggest me the c...more >>

Bitmap Save method gives "Parameter is not valid"
Posted by Joachim at 7/31/2007 2:58:02 AM
I have an image which I'm trying to save using my_image.Save(some_path, System.Drawing.Imaging.ImageFormat.Path); and then I get the error "Parameter is not valid". What could be the reason for this error? I know I can store it as a Png file....more >>

Create folderstructure based on file.
Posted by iCodeSharp NO[at]SPAM gmail.com at 7/31/2007 1:50:32 AM
Hi, I am struggling with the following issue, i need to copy files from one place to another...well that isn't so hard..but i also need to create the folder(s) in which the file orginaly was located. I have a listbox from where the user can select the files he or she wants to copy. So it c...more >>

Want splitcontainer panels width runtime
Posted by Anjali at 7/31/2007 12:35:34 AM
I am creating splitcontainer at runtime.. want width of panels different. How can i do that. As i cant modify splitContainer2 .panel2.width = 100; From http://www.developmentnow.com/g/36_0_0_0_0_0/dotnet-languages-csharp.htm Posted via DevelopmentNow.com Groups http://www.developmentnow.co...more >>

System.Security.Cryptography.CryptographicException; bug in .NET 1.1 ?
Posted by andrew at 7/31/2007 12:00:00 AM
Hi, I have a web service application written in C# .NET 1.1 using MD5CryptoServiceProvider.ComputeHash(Byte[]) The problem is that after a while(web service processes requests) the call throws CryptographicException "the parameter is incorrect" Here's the stack trace: System.Security.C...more >>

P/Invoke problem
Posted by usunto_bryjamus NO[at]SPAM interia.pl at 7/31/2007 12:00:00 AM
Hi, Is it possible to set path to dll from which I import? The problem is that if I know the path I can use it in DllImport attribute but I need to parametrize this path (this parameter is read when application starts). E.g.: string dllPath = ...; // Read when app starts .... [DllI...more >>

SIP software
Posted by Jassim Rahma at 7/31/2007 12:00:00 AM
I want to create a SIP software using C# (IP Telephony)? where should I start from? ...more >>


DevelopmentNow Blog