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 2006 > threads for sunday july 16

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

Embed xml file as ressource file in an exe.
Posted by Jesper at 7/16/2006 11:58:02 PM
Is it possible to embed an xml file from the solution in a program at compile time. Alternatively I will paste it in the code on the form doc.LoadXml( "<root>...a billion zillion lines..</root>"); But It would be great if I could do a trick where an solution/project file in xml could be em...more >>


Shortening full qualifier
Posted by Robert Bravery at 7/16/2006 8:57:11 PM
HI all, I am using: using System.Text; using Microsoft.Office.Interop.Excel; But both have a datatable Whenever I want to initialise a variable of datatable, I have be more precise as to which one I want. HAving to use the full qualifier anyway of at least one of them. Is there away to ...more >>

Using COM Objects in .NET
Posted by Primera at 7/16/2006 8:53:02 PM
I am building an application that will fix problems we experience with the SMS Advanced Client. I would like to be able to force a Machine Policy Update as you can through the SMS Advanced Client console. The only information I can find indicates that CPAppletLib.dll exposes some of this f...more >>

Activator.GetObject Method (Type, String)
Posted by newscorrespondent NO[at]SPAM charter.net at 7/16/2006 6:52:36 PM
This method does not fail if the site is not running! Is there a way to check the proxy for failure? Thanks Tom...more >>

Using statement and office interop
Posted by Robert Bravery at 7/16/2006 5:28:20 PM
Hi all, Being new to C# and .net I often don't know how to use things. I have created an app that imports excel data, it works well, with methods to open excel, extract the data and close excel. Now a colege of mine suggested useinf the usingstatement, so that the office object is dispossed/d...more >>

Dynamically Creating Variables
Posted by ann at 7/16/2006 4:52:03 PM
Is there any way to dynamically creat variables? In other words, I want to be able to do something like that: for(int i=0; i<size; i++){ string temp+i = i*3; } I want my variables to be temp0, temp1, temp2, etc. ...more >>

how to determine if a window is maximized?
Posted by jeremiah johnson at 7/16/2006 3:51:43 PM
Hi all. I'm writing a small utility that can move a window from one of my monitors to the other, when a system hotkey is pressed. I want to keep the windowstate (maximized or normal) when the window is moved, but I need to know the windowstate in order to move it properly. I'm using som...more >>

Saving Changes to Data
Posted by Jonathan Wood at 7/16/2006 3:30:25 PM
Okay, I've normally avoided a lot of database stuff but I can see that'll be hard with .NET. I created an Access database and have successfully bound TextBoxes to fields within that database. I've also found the navagation toolbar, which seems pretty cool. Everything seems to work except...more >>



Recommended approaches to parse HTML from a webclient call
Posted by Tim Dot NoSpam at 7/16/2006 2:52:48 PM
I saw an article a while back somewhere that talked about connecting to a web page through WebClient then somehow loading the page into something that does the HTML parsing for you. I usually backpedal and go the round-about way using string manipulation. What's the best thing to use so I ...more >>

Easiest Way to Open URL in Browser
Posted by Jonathan Wood at 7/16/2006 2:17:27 PM
What's the easiest way to open a URL in the Browser from a desktop app? Using the API, I'd use ShellExecute. Can someone tell me the best way from ..NET? Thanks. -- Jonathan Wood SoftCircuits Programming http://www.softcircuits.com ...more >>

string.Trim() Behavior
Posted by Jonathan Wood at 7/16/2006 11:43:31 AM
According to the intellisense help, string.Trim() "Removes all occurances or white space characters from the beginning and end of this instance." However, the follow code does not appear to modify s. s.Trim('\r'); While the follow code DOES modify s. s = s.Trim(\r'); I understand tha...more >>

Stop and Restart WMI Service without System.Management
Posted by Primera at 7/16/2006 11:28:02 AM
I have an application that fixes some common problems that prevent the SMS Advanced Client from operating correctly. During this application I need to stop the Windows Management Instrumentation (winmgmt) service, delete the Repository directory, and then restart winmgmt which will then autom...more >>

problem in uploading
Posted by fa_2064 NO[at]SPAM yahoo.com at 7/16/2006 9:56:13 AM
hi every body when i run upload code i receive this error! my "wwwroot" folder is shared, but i don't know what it's reason is!!! -----------------------------------error {"Access to the path \"D:\\Inetpub\\wwwroot\\iranian\\images\\user_imgs\\Untitled-1.jpg\" is denied." } --------------...more >>

How to solve the FileIOPermission problem?
Posted by Marquis at 7/16/2006 9:25:33 AM
I have put the C# Form onito the Internet as an ActiveX Control. However, I cannot do the FileOpen Dialog as I don't have permission, how to solve this problem? Below is the error code: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.FileIOPe...more >>

How do I use XSD in a C# Web Service
Posted by Thirsty Traveler at 7/16/2006 6:44:53 AM
I have a need to implement a strongly typed C# Web Service using an industry standard XML document. This document has an associated XSD, but I have, thus far, been unable to find any clear documentation on how to use this with a web service. Does anyone know of a good -- and clear -- source of...more >>

Singleton
Posted by Sathyaish at 7/16/2006 6:33:32 AM
OK, shame on me, I can't even do a singleton properly. I have implemented this a thousand dozen times, but I guess I've now been awake too long. Here's the relevant snippet. When I compile, it rightly points out that the member _plain, in the method GetPlain(int, int) requires an object refer...more >>

Trouble with Reflection.Emit, emitting bad MSIL please help.
Posted by allfyre at 7/16/2006 6:00:49 AM
Ok, to make a long story short, I'm Emitting some MSIL from a c# application. I know that THIS is the MSIL I want to be emitting: //************************************************************** ..method public hidebysig instance class [System.Data]System.Data.SqlClient.SqlCommand Fo...more >>

Locking xml file
Posted by dchadha NO[at]SPAM gmail.com at 7/16/2006 5:36:40 AM
Hi, I am working on application in C# which uses and stores data in xml file. This app can use xml file from two different ways: (a) From User Interface (Windows application) and (b) From Windows Service. Both apps read data from xml file in dataset and update the file after doing the desir...more >>

Microsoft.mshtml.dll in Setup project
Posted by JM at 7/16/2006 4:07:48 AM
Hi, I have created a windows application which uses Microsoft.mshtml.dll for displaying browser window in the application for showing html. When I am creating a setup program, I have to include Microsoft.mshtml.dll in the Setup project. I am using VS 2003 Setup program and my app is in C#. ...more >>

cordbg - System.Color
Posted by byteschreck NO[at]SPAM googlemail.com at 7/16/2006 3:58:26 AM
How can you display any of the main properties (R, G, B) of System.Color? System::Color::get_R() c does not seem to work ... ...more >>

Nested Iterators & C# 3.0 yeilds problems?
Posted by Andrew Matthews at 7/16/2006 3:04:32 AM
Hi All, I have the following little class of iterators that allow me to iterate over elements in the file system. I have nested some of them, and then added Func<FileInfo, bool> delegates to filter out unwanted files. I get an InvalidProgramException and haven't (yet) been able to find out wh...more >>

how to create a custom textbox control to show vertical text
Posted by harvie wang at 7/16/2006 1:49:36 AM
Hi, I want to show vertical text in textbox, how to do? Best Wish, Harvie 2006-7-16 ...more >>

Regarding creating hyperlink in C#.net
Posted by thenairboy NO[at]SPAM gmail.com at 7/16/2006 12:54:03 AM
dear experts, i am doin a small project in c#.net how will i hyperlink an external file from the main form ihave made. for example when we click a button in form an external excel document should open up please help ...more >>

Using Password in Application
Posted by Primera at 7/16/2006 12:37:01 AM
I have an application that will call some external applications during the course of execution. Since the application will be running on its own without user intervention I will have to store a username and password inside the code of the application to run processes etc. What is the best wa...more >>

what does SocketOptionName.KeepAlive mean?
Posted by Ryan Liu at 7/16/2006 12:00:00 AM
Hi, SocketOptionName.KeepAlive is a bool or an int value? Is it "belongs to" SocketOptionLevel.Socket? What does value 0 means? Is that meaning always "keep alive", or never "send keep-alives"? And what does "Send keep-alives" mean anyway? Thanks a million? Ryan ...more >>

roburst network programming, tcpClient.Client.SetSocketOption(SocketOptionLevel.Tcp , SocketOptionName.KeepAlive , 1);
Posted by Ryan Liu at 7/16/2006 12:00:00 AM
Hi, I use Server: Use an endless thread to lisiten to clients requests: while(true) { TcpClient client = myListener.AcceptTcpClient(); .... } Client: tcpClient = new TcpClient(host,port); stream =tcpClient.GetStream(); .... to b...more >>

Can not to read database from ChildForm
Posted by Michael at 7/16/2006 12:00:00 AM
if i open the connection of datbase in the parentForm, i want to read table from ChildForm, but it show blank; how do i do? ...more >>

How to make a DataTable Independent
Posted by ad at 7/16/2006 12:00:00 AM
I have a DataTable, it belong to a DataSet. How to make this DataTable Independent from DataSet? ...more >>


DevelopmentNow Blog