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# > october 2007 > threads for tuesday october 30

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

?? 'new' and 'protected' Modifiers on Structs ??
Posted by Tom Baxter at 10/30/2007 11:33:15 PM
Hi everyone, Has anyone looked at section 18.1.1 of the C# spec? It indicates 'new' and 'protected' are valid modifiers on struct declarations. First, how can 'protected' be valid on a struct, since structs cannot be inherited? The compiler gives an error (as I expect it should) if you try ...more >>


html to powerpoint
Posted by bsg92618 at 10/30/2007 11:23:20 PM
i have seen many examples to save a ppt as html. is there a way to load an html file into a powerpoint file. the ppt must display the web page not the raw HTML thanks ...more >>

powerpoint saga
Posted by bsg92618 at 10/30/2007 11:09:50 PM
I work for a company that has very rigid security guidelines. I have been given a project to convert a PowerPoint presentation into a web site that looks exactly like the ppt. this part was easy. Then I have to provide a button that will convert the whole web site into a PowerPoint present...more >>

Serialization
Posted by colin at 10/30/2007 10:52:33 PM
Hi, I need to transfer data structures to/from a fixed file format, some of the format is quite easy its just a binary store of char/int/.../floats etc. however some of the fields are stored as variable size arrays of structures etc and some individual fields are stored as comressed. some ...more >>

VisualC# 2005 Express: Class Library Is it a COM obj or Managed code
Posted by ITrishGuru at 10/30/2007 10:28:19 PM
Hi All, I am writing an IDTExtensibility2 interface as a class library so that I can use it as an Add-in for Outlook 2003. I have the IDTE2 interface building perfect and it creates a .dll for me. How do I turn this into a COM object so I can install it as an Add-in for Outlook. I have ...more >>

Problem with Class name
Posted by tshad at 10/30/2007 10:19:25 PM
I am getting the following messages from my compile code: PageInit.cs(43,71): error CS0246: The type or namespace name 'User' could not be found (are you missing a using directive or an assembly reference?) PageInit.cs(43,76): error CS0117: 'object' does not contain a definition for ...more >>

Problem with class Not existing that does
Posted by tshad at 10/30/2007 10:09:37 PM
I get the following error: PageInit.cs(43,71): error CS0246: The type or namespace name 'User' could not be found (are you missing a using directive or an assembly reference?) The error is from the last line in this snippet of code ***************************************** using ...more >>

Generic maintanence of tables
Posted by Sehboo at 10/30/2007 8:58:53 PM
We have several tables that we want to maintain on our webpage. User should just pick the tablename from drop down box, and then page should then populate the grid with the data from that table along with "Edit" button. If they click on Edit then they should be able to do an in-line edit of t...more >>



Getting namespace errors on compile
Posted by tshad at 10/30/2007 8:08:15 PM
I have a file that I converted from VB.Net to C# that works fine in VB.Net when I compile but not in C# using the same libraries. The error I am getting is: PageInit.cs(9,7): error CS0138: A using namespace directive can only be applied to namespaces; 'System.Web.HttpCookie' is a ...more >>

Namespace question
Posted by Francois Malgreve at 10/30/2007 7:04:36 PM
Hello everybody, I have a pretty straightforward question regarding namespace. Is there anyone who knows why the following code does not compile on the line Type t = typeof(Name6.Name7.Name6.Class6) ? I am using Visual Studio 2006 by the way (.Net 2.0) As far as I know "Name6.Name7.Name...more >>

ComboBoxRenderer not painting correct on Vista
Posted by Brendon Bezuidenhout at 10/30/2007 6:59:45 PM
Evening, I have a slight erk with the ComboBoxRenderer running under Vista and was hoping someone could shed some light on this for me. I've created a custom control that inherits from Button - no problems there :) The problem comes with the actual painting of the custom button... The V...more >>

Networ components suggestion
Posted by Paolol at 10/30/2007 5:56:17 PM
Hi, I'm looking for some network components ( ftp,ftps.. ) any one can suggest me some good one ? ;) Thanks to all Paolol ...more >>

URGENT .NET requirement in Columbia, SC and Baltimore, MD
Posted by chhaya at 10/30/2007 5:53:43 PM
Hello there, This is Chhaya from Dibon Solutions Inc. We have the following requirements on .NET. Kindly respond to me if you would be interested in joining these projects. The availability has to be immediate since the client is interviewing right now. Location : Baltimore MD Number ...more >>

I get this error "Object reference not set to an instance of an object"
Posted by Mucahit ikiz at 10/30/2007 5:32:29 PM
Hello, First of all, I created Base Form called "tureyen_frm". Then i created a new form by inheritance using the Base Form. This name is "tureten" form. For each new form derived from the Base Form a , I created a class. And than some methods in Base Windows Form use in the the derivate ...more >>

Preventing Screen Saver from Windows Forms application
Posted by KK at 10/30/2007 5:23:09 PM
Dear All I want to prevent the screen saver getting activated when my application is running. I have the following code, but still screen saver is activated. What corrections I should make to prevent screen saver running to the following code. public class MainForm : System.Windows.Forms...more >>

How do i pass data from form 1 to form 2
Posted by AshParr NO[at]SPAM gmail.com at 10/30/2007 5:05:23 PM
Hi all, I have 2 forms, "Form1" & "Form2", i have a button that currently opens form2 from form1 and then hides itself: Form2 form2 = new Form2(); form2.show; this.Visible = False; and then the same on form2 to get back to my 1st form: Form1 form1 = new Form1(); form1.show; this.Vis...more >>

Workflow Foundation question
Posted by Jon Pope at 10/30/2007 4:58:03 PM
Is there a newsgroup for people working with windows workflow foundation? I've looked around MS's news server and don't see anything for either "workflow" or "work", etc. Cheers, Jon ...more >>

Database programminf question...
Posted by Andrew Meador at 10/30/2007 3:53:29 PM
I am working on an application that will store data in SQL Server 2005 Express. The database will reside on our server at the office. I need to write an application that can work with this data off site during the day and then synch the changes back to the database at the end of the day (or n...more >>

Setup Project File Path Options
Posted by Dave at 10/30/2007 3:27:27 PM
Does anyone know how to set a .NET Setup Project to have it look in the target directory where the installed files land up, and NOT in "C: \WINNT\system32"? After my Windows Service starts up i get the error: "Could not find file 'C:\WINNT\system32\ConfigFile.txt'" (as it's not there, it's in ...more >>

Config Files
Posted by Mick Walker at 10/30/2007 3:15:18 PM
Hi All, Does anyone know of any config file reader classes that I can implement within my application. I am not attempting to read the current applications config file, but other applications. I need to be able to add sub nodes to existing nodes within the document. I am not opposed to ...more >>

CGI
Posted by zion at 10/30/2007 3:13:26 PM
Hello, How cam i execute CGI application with some parameters within asp.net form? Thanks ...more >>

overload or delegate?
Posted by dave at 10/30/2007 2:12:22 PM
Hi , I am trying to avoid behavior where everytime Button1Click is fired a new form is exposed. How can I keep the f object alive in the event so that a new object does not have to be created? Could I overload the Button Click event to accept the Form1 object? void Button1Click(object ...more >>

C# keyword list programatically
Posted by Ronnie Smith at 10/30/2007 2:09:01 PM
Hello, Could someone please tell me how I can get a list of c# keywords (e.g. 'event') programmatically at runtime? Many thanks, Ronnie...more >>

How is fastest way to construct an XML node then a bunch of slow xquery modify statements?
Posted by DR at 10/30/2007 1:31:32 PM
How is fastest way to construct an XML node then a bunch of slow xquery modify statements? This SQL Server 2005 logic is rather slow to simply add a new item to an xml document. Any way to do this all in one statement and faster for creating a new node without having to re-select to set the...more >>

Web Service Optional Parameters
Posted by Glenn at 10/30/2007 1:18:56 PM
I am writing a Web Service in C# ASP.NET 2.0 that takes two optional parameters. One is an int and the other is a string. Below is the definition of the Web Method: [WebMethod] public List<ModelFamily> ModelFamilySearch(Nullable<int> id, string name) { MyBusinessObject mbo = new MyBu...more >>

How do I interrupt this?
Posted by MrNobody at 10/30/2007 1:01:00 PM
I have a problem where I am sending a series of commands using P/Invoke's SendInput function which may last up to a minute long. I want to offer the user a way to break the commands by pressing the Pause/Break button. The problem I have is it seems that my SendInput commands are being quickly ...more >>

C# Opportunities in Richmond, VA
Posted by elizabethc NO[at]SPAM synigent.com at 10/30/2007 12:54:43 PM
I am currently looking for C# developers to work contract-to-hire positions in Richmond, VA. Please email a Word copy of your resume to elizabethc@synigent.com if you are interested in finding out more about this position. Thank you. ...more >>

unmanaged vs managed.
Posted by TheMadHatter at 10/30/2007 11:29:01 AM
Sorry to bring up a topic that is just flogging a dead horse.... but... On the topic of memory management.... I am doing some file parcing that has to be done as quick as posible, but what I have found hasnt been encouraging... I found that the *quickest* way is to use a struct to retrieve f...more >>

OutputWindow using DTE2
Posted by JPS at 10/30/2007 10:58:46 AM
I am having trouble with this code. It is something syntactically, but I am not sure what. My ends result should clear the debug window. OutputWindow outputWin = new DTE2 dte.ToolWindows.OutputWindow; //dte.ToolWindows.OutputWindow.ActivePane.Clear(); OutputWindowPane...more >>

Non visible custom controls
Posted by RHaldi at 10/30/2007 10:47:02 AM
Does any one know how to create a control(like the timer) that when dragged to a form doesn't show up on the form, but only on the bar in the design window below the form? Thanks Ryan...more >>

Type Casting
Posted by Analizer1 at 10/30/2007 10:33:10 AM
Hi All... i have a situation where i have 3 different Types (classes) comming into a controling Class to Run Different Jobs in my main loop i want to use 1 Field to hold a instance of the Class currently Running example below public class controler( { // how to use the below process for ...more >>

Revert Date back to NULL
Posted by BD at 10/30/2007 10:30:15 AM
I have sent several posts on this topic and feel my lack of information is not helping to find the solution. I am developing application in C# with Visual Studio 2005 to connect with remote SQL Server 2005. On one form, I have a textbox bound to a datetime column on the server. When the form ...more >>

Exception of Security with an ASP.Net Web Site
Posted by Nicole at 10/30/2007 9:54:01 AM
Hello, I developped an ASP.Net Web Site in C# language. It can save the Project Server URL, connect to Project Server and create a Project on it. I debugged it and ran it correctly from Visual Studio 2005. Then, I published it on the local IIS Server from Visual Studio 2005. But I wanted ...more >>

Passing IN ref cursor to Oracle 9.2 using EnterpriseLibrary
Posted by randy1200 at 10/30/2007 8:58:02 AM
Can anyone offer pointers to articles/examples of passing a Ref Cursor ***IN*** to an Oracle stored procedure. I find tons of examples for getting a ref cursor OUT of a stored procedure. I'm using the Microsoft.Practices.EnterpriseLibrary.Data.DatabaseFactory, NOT the ODT.NET library (please...more >>

Anyone have a good example on using P/Invoke SendInput ?
Posted by MrNobody at 10/30/2007 8:26:03 AM
I am trying to find a good example of SendInput. Doing a search on google I found two, one is incomplete and vague from the start and the other I copied the code and tried running it and it was first of all incomplete (compiler errors) which I had to resolve by guessing on some things like how...more >>

Safely Firing an Event
Posted by Bob Johnson at 10/30/2007 8:10:58 AM
In order to avoid a race condition a recommendation that makes a lot of sense has been put forth.... create a local copy of the event handler delegate, then test and invoke the copy, like this: MyEventHandler hCopy = MyEvent; if hCopy != null) { hCopy (this, myEventArgs) ...more >>

Clearing the output window
Posted by JPS at 10/30/2007 5:20:40 AM
How would you clear the output window using code (C#)? The Debug obj does not seem to have a method to do this? ...more >>

How to get the path then start a application by dobble cilch on pr
Posted by Kim at 10/30/2007 3:24:03 AM
Hey All I know how to to get the service ( by RegistyKey and Registy) so I can start the Application by dobble ckich on the file, but how can I read (and save) the path to the file so I can save the result in same folder. Best Regard Kim Stroeh ...more >>

Release build using Debug DLLs
Posted by Hugh at 10/30/2007 2:59:00 AM
Hi there We are trying to build a C sharp solution in Visual Studio 2005 Professional. We have a number of other assemblies, that do not form part of the solution. Assemblies that do form part of the solution have been referenced using the Projects tab in the Add Reference dialog. Asse...more >>

Getting idle time of process.
Posted by archana at 10/30/2007 12:21:34 AM
Hi all, I want to get idle time of process. Means time in which process is sitting idle. Can i do this in c#. Because what i want is those process which are not running since say last 10 mins kill those processes. please help me asap. thanks in advance. ...more >>

Visual Studio 2005 Adding Handlers
Posted by Just Me at 10/30/2007 12:00:00 AM
Hi, Im fairly new to 2005 and I was wondering. In 2003, when you add a button, it also adds and AddHandler statement within the initialisation routine to wire up the handler to the event. In VS 2005, I cant find this construct anywhere, not even in the designer.cs in my WebProject appl...more >>

Using MenuStrip
Posted by Gav at 10/30/2007 12:00:00 AM
I am using a MenuStrip on a form and adding a Panel to the same form in the program. When the Panel is added the top of the Panel is behind the MenuStrip, so the top of the Panel is hidden. How do I make the Panel I have added appear below the MenuStrip? Is it something to do with the MenuStri...more >>

change code while debuging code
Posted by Ryan Liu at 10/30/2007 12:00:00 AM
Hi, I can edit source code while I am debugging an application in VS 2003. Then when I continue debug, it will nicely ask do I want to restart my application. Now in VS 2005, seems I have to stop application to even just add some comments. Where is setting to go back to VS 2003 way? I c...more >>

chdir from a C# console application
Posted by Giulio Petrucci at 10/30/2007 12:00:00 AM
Hi there, Hi have a console application which shoul "know" from where I'm running it. I thought it was a good idea to run a sort of "chdir" command from the application itself, but I don't know how to do it. Any suggestion? Thanks in advance, Giulio - Italia -- OnAir:...more >>


DevelopmentNow Blog