473,543 Members | 2,035 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

0
1,096
thread by: J-L | last post Mar 25 '08 by: J-L
Hi, I need to read a file like this: # Messages français pour GNU gettext. # Copyright © 2006 Yoyodyne, Inc. # Michel Robitaille <robitail@IRO.UMontreal.CA>, 2006. # Christophe Combelles <ccomb@free.fr>, 2006 # msgid ""
0
1,195
thread by: alexia.bee | last post Mar 25 '08 by: alexia.bee
Hi All, Any know why NetworkInterfaceType returns Ethernet type for Wireless adapter and not Wireless80211? thanks.
4
1,203
thread by: =?Utf-8?B?cm9kY2hhcg==?= | last post Mar 25 '08 by: =?ISO-8859-1?Q?Arne_Vajh=F8j?=
hey all, can someone please show me how to search my String array to see if an element "contains" a certain string constant and then return the index value of the found element? thanks, rodchar
1
2,044
thread by: sony.m.2007 | last post Mar 25 '08 by: =?ISO-8859-1?Q?Arne_Vajh=F8j?=
Hi, I have a XML file like below <?xml version="1.0" encoding="utf-8" ?> <details> <detail> <description>name</description> <t1>10</t1> <t1>100</t1> <t1>1000</t1>
0
1,827
thread by: =?Utf-8?B?Vmlua2k=?= | last post Mar 24 '08 by: =?Utf-8?B?Vmlua2k=?=
Hello Everyone, I am having hard time with .net remoting. I keep getiing this error "Authentication failure". My server has this code in it int portNum; // TODO: Add code here to start your service. portNum =
3
312
thread by: Darwin | last post Mar 24 '08 by: Darwin
Hi, I am trying to extract the host name from a HTTP header: GET /1/1/typical.php HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */* Referer: http://www.httphost.com/1/1/ Accept-Language: en-us UA-CPU: x86 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0;...
2
1,649
thread by: csharpula csharp | last post Mar 24 '08 by: BlackWasp
Hello, I am trying to add Date and Current time to a name of a log file. I tried doing this: string logDateExtention = DateTime.Now.ToShortDateString().ToString() + DateTime.Now.ToShortTimeString().ToString(); string logName = Data.Name + Data.ProductName + logDateExtention; And this throws exception during the debug that the name is...
0
1,188
thread by: noom | last post Mar 24 '08 by: noom
Hello I`m trying to use userDeletingRows event but can`t deem to make it work. I tried : this.dataGridView1.UserDeletedRow += new DataGridViewRowCancelEventArgs - but I get an error message on the arguments/ do I need to use a delegate (if so - which is it)?
5
2,459
thread by: Kenny D | last post Mar 24 '08 by: Peter Duniho
I am having trouble sending streams of data from one socket to another using the following code. When the transmitter is running on the same machine as the receiver, the data transmits perfectly. When the transmitter runs on another machine, the data gets truncated at semi random places. The data being transmitted is a unicode XML...
0
1,003
thread by: =?Utf-8?B?SmFybGF4bGU=?= | last post Mar 24 '08 by: =?Utf-8?B?SmFybGF4bGU=?=
I'm new to using the codedom to generate code and had a question about returning a value from a method call in a property... i have this... property.GetStatements.Add(new CodeMethodReturnStatement(new CodeFieldReferenceExpression(new CodeThisReferenceExpression(), "_" + fieldName))); to create...
0
1,211
thread by: CSharper | last post Mar 24 '08 by: CSharper
Hi All, I have created an exe and I have a resource file I created seperatly, what is the best way to add the resource into the same exe? ILMerge doesn't take the resource file. I could use al.exe but I do not want to compile the code again. Is it possible to add a resource that was created externally (thorugh another program) into some...
1
1,402
thread by: pateras | last post Mar 24 '08 by: pateras
I generate code to automatically create combo boxes to handle relationships between tables: http://pastebin.com/m59d8f5b0 The problem is, when I sort on any other column, the combo boxes all get cleared. I've also noted that in doing so, I can no longer sort on the column. I have a feeling that that might be related. Can anyone tell me...
0
1,121
thread by: =?Utf-8?B?TmVpbCBC?= | last post Mar 24 '08 by: =?Utf-8?B?TmVpbCBC?=
I'm developing a Web App using C#. I want a page in the app to refer to another page in the app. I tried to create a web request with the page address below: pageAddress = "http://~/clientDBQuery.aspx"; WebRequest request = WebRequest.Create (pageAddress); and got the following error: Exception Details: System.UriFormatException:...
2
241
thread by: William Johnston | last post Mar 24 '08 by: William Johnston
0
1,270
thread by: nagar | last post Mar 24 '08 by: nagar
I'm using SQLite with the ADO.NET 2.0 SQLite Data Provider as the storage of my application. I chose to use an untyped dataset and I'm using a dataadapter to report changes to the DB. The query generated by the commands builder doesn't work propertly (I often get a DBConcurrency exception). Therefore I'm created my own update query but I'm...
2
1,612
thread by: RobP | last post Mar 24 '08 by: RobP
Is there a way to check with windows in c# whether the current application is in focus and taking input? I've tried checking the focused property on the main form, but this doesn't seem to work. Thanks RobP
4
1,561
thread by: Maddy | last post Mar 24 '08 by: Marc Gravell
Hi, I have just migrated to C#. I need some advice on the following problem: I need to create an object/structure with characteristics A,B and C. A and B are Integers while C consists of 2 Integers. I need to store data in these, every 5 sec or so, each value with a DateTime stamp/ index. I will need a method to write the value with the...
0
1,104
thread by: Gobinath | last post Mar 24 '08 by: Gobinath
Hi, I have a dot net control which raises an event with 2 string arguments. I'm hosting this on a dotnet container and mfc container(via com interop). The entire setup was is .net 2.0 and things were working OK. Then I upgraded to .net 2.0 SP1. Now events are reaching the dotnet container.
1
1,564
thread by: Joe | last post Mar 24 '08 by: RobinS
Hello to all! I have an interessting question here concerning ClickOnce technology. I have a .NET 3.5 Windows application that is deployed on client computer via ClickOnce. The version is 1.0.0.0. Now I want my users to get the lastest updates for the 1.X.X.X versions. That is not a problem and easy to do. Of course. However when the time...
1
2,680
thread by: John | last post Mar 23 '08 by: Peter Duniho
Is there such a thing as storing icons or bitmaps into a resource file, and adding more icons or bitmaps into the resource file at runtime? I want to store a bunch of icons into a resource file, and at runtime I want to be able to add more icons as I need to add. I don't want to use an imagelist because that will be a set number of icons...
0
1,366
thread by: samueltilden | last post Mar 23 '08 by: samueltilden
I have inherited a complex application with dozens of controls. The new functionality I am to surgically insert is to prevent the user from proceeding further if any of the data is incorrect in my control on the current page. I can capture the .Leave event from my control, but I do not want Windows to honor the destination control that...
1
1,225
thread by: jp2msft | last post Mar 23 '08 by: John Timney \(MVP\)
I've been asked to provide a shopping cart for someone's website, but I've never done this before. Is there a basic step-by-step for this somewhere? I want to make sure I do the cart fundamentally correct and secure. Thanks.
3
1,398
thread by: milton | last post Mar 23 '08 by: Ian Semmel
hi how to navigate through the records in sql DB programatically...?
1
8,603
thread by: Darwin | last post Mar 23 '08 by: Jeroen Mostert
Setting a server to listen on 8080 for incoming connections. Written in VS2005 on a Multi-homed machine. I get the warning: Warning 1 'System.Net.Sockets.TcpListener.TcpListener(int)' is obsolete: 'This method has been deprecated. Please use TcpListener(IPAddress localaddr, int port) instead. on the code: TcpListener tcpListener = new...
1
1,215
thread by: Michael Starberg | last post Mar 23 '08 by: Marc Gravell
Happy easter. Just wanted to tell you that this tuesday I got a weird exception, stemming from NOT disposing a DataContext. So like Bill Maher we just added New Rules in our project. Always using using on a DataContext. I of course wrote a snippet that when typing db and tab it you get using(var db = new Database())

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.