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# > december 2005 > threads for thursday december 22

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

mult ie browsers
Posted by wflow NO[at]SPAM verizon.net at 12/22/2005 8:57:35 PM
Hi, I need to create a program that opens multi ie browsers that point to the same url, then be able to kill them off all or any number at a time (I am using this for a SQA Test) Thanks Bill ...more >>


compile web reference to x64 Release Failed
Posted by Shachar at 12/22/2005 6:33:56 PM
Hi All, When I'm trying to compile a class library with no web reference to x64 Release I Succeed. When trying to compile a class library with web reference to x64 Debug I Succeed. When trying to compile a class library with web reference to x64 Release I get an error : Error 1 "sgen.exe" ...more >>

Help with SerialPort and C#
Posted by Andrea Judge at 12/22/2005 6:32:27 PM
Hi there, I'm developing an application to catch OBD sensors' data from my car. I connect it via a RS232 interface. Now. with HyperTerminal I can connect and send/receive data, but I'd like to do this from inside my C# program. Anyone can write down a very small (or tell how to do it myself...more >>

How to Mix two Icons ? (how to add an icon to another one ?)
Posted by Steph. at 12/22/2005 5:28:33 PM
Hi, =20 How can I "mix" two Icons (or add an Icon to another one.) ? =20 I would like to make a system like Windows's shortcuts that add a = little curved black arrow in a white square to the icons that represent = a shortcut on the window desktop. =20 Thanks for any help ! ...more >>

xml serialization (interfaces)
Posted by shrishjain NO[at]SPAM gmail.com at 12/22/2005 5:15:32 PM
Hi, Can someone tell me how can I seralize the following PurchaseOder class to xml. public class PurchaseOrder { [XmlElement(typeof(USAddress))] public IUSAddress shipTo; } public class USAddress:IUSAddress { private string _city; public string city { get {return _...more >>

Printing to file without PrintDialog
Posted by Franlin W at 12/22/2005 5:05:29 PM
Is it possible to print directly to file without PrintDialog or PrintPreviewDialog? Have any succeeded to program this feature? Cheers, ...more >>

Escaped string in C#
Posted by Oxns at 12/22/2005 4:34:32 PM
Hi, Can anyone point me at the class to convert a string so that it displays escaped chars as \r, \n etc. please Its done in the 2005 debugger so I hope its available as a class ??. Thanks Graham ...more >>

Screen refresh issue
Posted by RSH at 12/22/2005 3:32:19 PM
Hi, I have a Windows form that has several ComboBoxes on it. I would like to be able to clear the existing values when the user clicks on the Clear button, and then I need some of the Combos to be disabled. The problem I am having is that all of the Combo boxes retain their last selected...more >>



Splash Screen
Posted by Steve at 12/22/2005 3:13:05 PM
Howdy folks, How would one go about making a splash screen (message appearing while main program loading) in c# cheers in advanced Steve ...more >>

newbie question
Posted by csharpnb at 12/22/2005 2:56:59 PM
Hi. Can anyone confirm please. Basically, the difference between const and readonly is that const fields need to be known at compile time, whereas readonly fields are unchangeable fields that can be initialized at runtime. Am I getting this right? ...more >>

how to read txt file
Posted by Riccio at 12/22/2005 2:33:13 PM
Project/add/existing item/File type *.* --> temp.txt how to read temp.txt ...more >>

About slot machine code
Posted by MingChih Tsai at 12/22/2005 2:23:01 PM
Hi there, Are there any slot machine c# sample codes for reference ? Thanks !! Best regards, Paul ...more >>

Access running process.
Posted by fireloard NO[at]SPAM gmail.com at 12/22/2005 2:11:29 PM
I have console application open running that you need to press Escape on to get it to exit. Usually once a day/week etc I want to close that process and start it again. Is there any way to find a process running on a machine and send a command to it from a c# app? I don't think this application ...more >>

How to combine datasets?
Posted by Brett Romero at 12/22/2005 2:11:26 PM
I have one dataset with columns a thru c. Then another that gets columns a and d thru f. I need a dataset that has columns a thru f. What is the best way to do it? I currently have a thru c in dataset1. Then I use a datareader for set #2 and start constructing a new dataset in the reader lo...more >>

Testing if this works?
Posted by Mark Ribau at 12/22/2005 1:54:00 PM
I seem to be having some trouble posting to the board, can someone please reply back if they could see this? Thanks very much. -- <font face="trebuchet ms"> Mark Ribau Lead Windows Developer | <a href="www.redbugtech.com/blogs/mark.php">My Tech Blog</a> <a href="http://www.redbugtech.com"...more >>

Accessing method in master page from content page
Posted by Rik Brooks at 12/22/2005 1:16:02 PM
OK, now I'm getting excited. I actually created a master page and added two content place holders to it. I also added a label which will serve as a sort of one line help and a little image button beside it to turn off the help. I wrote a public method in the master page that looks like this: ...more >>

Convert PHP pack() function to C#
Posted by Brian at 12/22/2005 12:33:23 PM
Hi PHP has a function called pack() (http://us2.php.net/pack). I need to translate some code that uses this function to C#. What's the C# equivalent of pack()? Thanks, Brian Example code using pack(): <? /*/ security improved by by TRUI www.trui.net Originally posted at www.flash...more >>

Callback Example for TcpListen
Posted by ENetArch at 12/22/2005 12:30:03 PM
Is there a callback example for TcpListen? I don't see a way to create a trigger in .Net that would listen for socket requests and then trigger my acceptConnection (thsClient) method. BTW .. I am checking pending so that I can stop the thread and switch ports to listen to if needed. Otherw...more >>

Select string building in C# and ASP.NET
Posted by Jacob Arthur at 12/22/2005 12:06:10 PM
How would I go about using a custom select string that is passed from a form to the SelectCommand parameter of SqlDataSource? I tried: SelectCommand = "<% Request.Form("hdnSelect") %>" but I got an error about putting <% %> tags in a literal. I tried taking out the quotes (the " ") and i...more >>

ASP.Net Readonly textbox
Posted by Matias at 12/22/2005 11:56:06 AM
Hi! I'm working in an application in VS2005. I have a Website that has a page where the user has to fill in some dates. In 2003 I used to have a function in javascript that would popup a calendar, the user would select the date there and then that date would be entered in a read-only textbox,...more >>

Doesn't initialize properly
Posted by EDWARD HYMAN at 12/22/2005 11:53:29 AM
I have developed a web service application. The server and client = software executes correctly on my local computer (localhost). Sending = the client application to another individual and attempting to execute = the code results in the error message, Doesn't initialize properly.=20 --=2...more >>

Registry and TreeView
Posted by Shawn B. at 12/22/2005 11:39:58 AM
Greetings, I'm creating a little program that acts as a glorified Registry explorer. The TreeView doesn't allow you to show a plus sign unless a node has child nodes, so I need to determine whether a registry key has subkeys and add a dummy childnode. The way I'm doing this is to populate ...more >>

Built-in support for reading ini files?
Posted by Bit Twiddler at 12/22/2005 11:30:32 AM
Does the BCL have built-in support for reading/writing standard ini files? Thanks! BT ...more >>

dataset reuse
Posted by tg at 12/22/2005 11:16:50 AM
i have a strongly typed dataset that i will continually refill with different data using SQL queries and want to process the data in each. I get the first dataset fine, using a SQL command object and using a dataAdapter.Fill() etc, and everything works fine. If i want to refill that dataset wi...more >>

Inserting a Dataset into a database
Posted by RSH at 12/22/2005 10:54:23 AM
I have a situation where I am transferring data from an Access database to a SQL Server database. Basically I am populating a dataset from the Access database and now I want to insert that data into SQL Server. The schemas are the same so I was wondering if there was a way to just perfor...more >>

Resize toolstrip at runtime
Posted by Fernando at 12/22/2005 10:49:01 AM
Is there a way to change the sieze of the buttons on a toolstrip at runtime? I want to give my users the option of using either small (normal) or large (32X32) buttons. Thank you, Fernando...more >>

Equivalent of My.Settings in c#
Posted by GS at 12/22/2005 10:48:36 AM
How do I use My.Settings equivalent in C#? Below is part of MSDN = documentation about accessing settings file. I wrote C# console = application using VS 2005 and .NET 2.0 and would like to use new = settings file in 2.0 and can not find any documentation about using c#, = there is some for VB.N...more >>

HTML post test
Posted by GS at 12/22/2005 10:45:29 AM
Just testing if I can post using HTML in this newsgroup. G...more >>

Drive ListBox Control for VS.2005?
Posted by dm1608 at 12/22/2005 10:40:31 AM
I have a need to build a listbox with a list of available drives on the local workstation within my VS.2005 application. Can someone please show me how to create a control with all the drive letters in it so one can be selected. Any help would be appreciated. ...more >>

CSharp VB Excel COM Differences
Posted by Alan Roberts at 12/22/2005 10:28:30 AM
Can someone please explain the following for me... I am trying to link to a .NET DLL from Excel. Excel needs to pass a reference to itself to the DLL and then the DLL needs to perform some work on the running instance of Excel via that reference. As an example, a VB DLL to return the path...more >>

out Parameter And Base Class ?
Posted by dahuzizyd at 12/22/2005 10:22:02 AM
Hi all: I think I had a problem with using out parameter , why the instance of 'SubClass' can't convert to 'BaseClass' ? my code is : ---------------------------------------------- using System; namespace ConsoleApplication2 { class Class1 { [STAThread] static void Main(strin...more >>

Casting generics and inherited classes in .NET 2.0
Posted by Dave Booker at 12/22/2005 10:14:03 AM
Is the following behavior correct? If so, can somebody explain why? public interface IObservation { string ID { get; set;} } public class Observation { string m_ID; string ID { get { return m_ID; } set { m_ID = value; } } } public clas...more >>

Using a different filename for App.config
Posted by shawnn NO[at]SPAM gmail.com at 12/22/2005 10:13:53 AM
Hello, By default, when you create an App.config file it gets named as MyApp.exe.config after build. I don't like this name and would rather have the file named MyApp.config, the .exe.config thing might confuse my users. Is there any way to do this, or am I stuck with MyApp.exe.config?? Th...more >>

Changing text labels on a parent form?
Posted by Opettaja at 12/22/2005 10:02:28 AM
How would I go about changing text labels on a parent form from a child? For example Changing text labels on Form1 from Form2, and Form2 is opened from Form1? Any suggestions would be greatly appreciated. ...more >>

Datetime convert
Posted by SimonZ at 12/22/2005 9:53:54 AM
Hi, can someone explain me, when to use: (DateTime)DataBinder.Eval(Container.DataItem, "dateField") OR Convert.ToDateTime(DataBinder.Eval(Container.DataItem, "dateField")) Sometimes (DateTime) works sometimes not, on the other hand Convert.ToDateTime() always works. The same proble...more >>

How to access settings from C# in .NET 2.0?
Posted by GS at 12/22/2005 9:34:08 AM
Hi, There is reference about accessing settings file in VB.NET but nothing about C#. How do I read settings in application settings file with C#? Thanks, G ...more >>

Parse and Convert
Posted by alberto at 12/22/2005 9:23:53 AM
What's the difference between int.Parse(...) and Convert.ToInt32(...)? Thank you ...more >>

.NET Component security consideration.
Posted by Divyesh at 12/22/2005 9:07:38 AM
Hello, I'm designing new distributed application which may result in many .net assemblies (dll/exe). Obviously there has to be mechanism for them to communicate with each other. But I don't want to reveal datastructes in my components i.e. how should i take care all individual components can o...more >>

framework development c#
Posted by Rick Elbers at 12/22/2005 8:44:17 AM
Fellow programmers, How many people are paid to write frameworks in c# ? What kind of frameworks are they developing ? Regards, Rick ...more >>

java.net.URLEncoder.encode("youruserid"); in c#?
Posted by Vinny Vinn at 12/22/2005 8:41:05 AM
what is the c# equivalent to java.net.URLEncoder.encode("youruserid"); Thanks, Vinny Vinn...more >>

Where to Post C# TCP/IP Socket questions
Posted by ENetArch at 12/22/2005 8:36:04 AM
Is this the right forum to post questions concerning TCP/IP Socket questions?...more >>

Easy HTML printing without print dialog.
Posted by hellohez NO[at]SPAM hotmail.com at 12/22/2005 8:17:34 AM
We are currently looking into triggering printing of an HTML file to a designated printer in such a way that the print dialog box is not viewed. It is possible to use the print method of a default browser and let the browser handle the output, however this pops up the print dialog box. The alt...more >>

Modal in C#
Posted by JPSutor at 12/22/2005 7:21:17 AM
Is there an intrinsic method in C# that is equivelant to "Modal" in VB? ...more >>

How to create an Image with a gray scale with more then 256
Posted by allanon76 NO[at]SPAM gmail.com at 12/22/2005 7:02:03 AM
I need to create an Image with more then 256 gray scale. this is my code, i've some problem setting correctly the pixel value. any idea? There is another way to create an image with more then 256 gray Bitmap myBitmap = new Bitmap(256,256,PixelFormat.Format64bppArgb); BitmapDa...more >>

Retrieving path of a DLL
Posted by Huy Hoang at 12/22/2005 6:48:12 AM
I can retrieve the path of a Windows form using the Application object. However, if I write a class which will be compiled into a DLL, would it be possible to retrieve the DLL path (without passing the Application object to the class) ??? ...more >>

Testing classes individually
Posted by Huy Hoang at 12/22/2005 6:36:23 AM
I remember that in Java you can compile and run each class individually as long as it contains the method "main". However, is this possible in C# as well? I tried it a while ago but it didn't work. ...more >>

How to check item in collection in WMI ManagementObject
Posted by Joao Rego at 12/22/2005 4:35:02 AM
Hello, Im using WMI to get CPU information through Win32_Processor. It returns a collection but some items are "not valid". ..... foreach( ManagementObject oReturn in oReturnCollection ) { Console.WriteLine(oReturn["Manufacturer"].ToString()); Console.WriteLine(oReturn["Processo...more >>

NotyfiIcon
Posted by Fribo at 12/22/2005 4:31:02 AM
Then I use a NotyfiIcon, I can't close Windows?? Any answer out there!...more >>

Creating a timeout
Posted by Adam Short at 12/22/2005 3:40:31 AM
I have a webservice which takes a hostname and drive letter as input and returns the free space for that drive on that host as a long. Sometimes it will take forever to get information from a recalcitrant host, but it keeps trying far longer than I want it to. How can I set up a timeout for the ...more >>

WHat is the Directory?
Posted by GTi at 12/22/2005 3:32:58 AM
I have created a "DLL LIB" in c# that I use in several ".EXE" projects. But I need to know where this DLL fil is located on disk from inside my DLL, NOT where the EXE file is located. What function must I use to get the directory of the DLL file ? ...more >>

Susan - desperately seeking ...
Posted by Susan Baker at 12/22/2005 2:58:41 AM
Hi Guys (and girls), I am in a bit of a bind. I'm looking for a simple "proof of concept" C# app (WinForm OR console) that sends a web request to a simple PHP script and receives BINARY data back from the PHP script. Binary data is necessary because I want to be able to send files as well a...more >>

Creating a COM interop using VS.NET 2005?
Posted by Asaf at 12/22/2005 1:07:02 AM
Hello, I am trying to create and use a COM object with C#.NET 2005. The assembly is set to "Register for COM interop" but when I am trying to call it from VB on Word 2003 I am getting this error: Run-time error '-2147024894 (80070002)': File or assembly name COMTest3, or one of its depen...more >>

I need help with Reflection
Posted by glayos NO[at]SPAM gmail.com at 12/22/2005 12:26:51 AM
Hi all, i have a question about the framework reflection. I have a project with some pages and a component class file. Inside this file I've placed some custom objects. Using the reflection and the Fieldinfo[] class i can look inside my component and know names and properties of this objects. M...more >>


DevelopmentNow Blog