473,700 Members | 2,763 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

3
211
thread by: Tem | last post May 31 '08 by: =?ISO-8859-1?Q?Arne_Vajh=F8j?=
i need a regex that matches either /ABC/ or /ABC/DEF/ I came up with /(.*)/(.*)/ how do i make the second part optional? thx
1
1,385
thread by: gz | last post May 31 '08 by: Rain
Hi folks, I tried to find a sample application for how to create a Crystal Report Form Letter using C# .Net 2005 on Google and EE without luck. There are tons of samples for creating reports out there, but not single one for a letter. I even downloaded all the sample applications from the Business Object web site. There is no sample for...
7
1,408
thread by: Pubs | last post May 31 '08 by: Pubs
I am learning C sharp. I want to call a function (any simple function. E.g. : Never ending while loop or large For loop inside the function). I want to call this function from the main application window. I found couple of tutorials but for some reason window freezes. THis is what I did, Thread FirstThread = new Thread(new...
9
364
thread by: markgoldin | last post May 31 '08 by: Kerem Gümrükcü
I am looking for code to listen to a tcp port. Another (not .net) process will be writing to that port on the same computer and I need c# code to be able to get data, which is a simple string, from that port. I am not a c# coder but can easy adapt working sample. Thanks alot for help.
5
7,156
thread by: Gigs_ | last post May 31 '08 by: Martin Honnen
hi i have xml in this structue <?xml version="1.0" encoding="utf-8" ?> <obrazac sifra="N-08-V"> <!-- Stanje: u obradi Primjedbe: nema -->
1
351
thread by: Joza | last post Apr 12 '08 by: =?Utf-8?B?U2FpbXZw?=
Hi! I'm getting error when selecting items in ListView control, it says ArguementOutOfRangeExceptions. That happens in SelectIndexChange event. I have tryed with try...catch but there's no effect. The code inside that event is: private void LVKalk_SelectedIndexChanged(object sender, System.EventArgs e) { try
0
660
thread by: Dilip | last post Apr 11 '08 by: Dilip
Hi I am using the following WMI code to watch for the termination of a particular process. This code is running under Windows Vista. public void WaitForDeath() { using (AutoResetEvent thisEvent = WatchForProcessDeath()) { WaitHandle.WaitOne(thisEvent);
4
737
thread by: Gugale at Lincoln | last post Apr 11 '08 by: Gugale at Lincoln
Hi, I am using reflection to read names from enum and creating radio buttons inside a groupbox. Everything is working fine. However, I am not able to adjust the size of the group box to fit the content. Is there a simple solution to this problem? Parent of group box is FlowLayoutPanel which fills the parent form. string names =...
3
1,454
thread by: sherifffruitfly | last post Apr 11 '08 by: Peter Duniho
Try to do something with it, and look at the exception? Some other way? Thanks!
0
1,109
thread by: tshad | last post Apr 11 '08 by: tshad
In VS 2008, we have an ODS object that is getting created but the events are not firing. We put break points on them and it never stops. Without this we can't set up our filters. Is there something we are missing? Here is the objects code: <asp:ObjectDataSource ID="odsEntryList" runat="server" SelectMethod="GetEntries"
0
1,362
thread by: RobinS | last post Apr 11 '08 by: RobinS
My application needs to know when the network availability has changed and do some stuff when it does. I wrote a small WinForms app to test System.Net.NetworkAvailabilityChanged. It works great. I put the same logic in my main application, and the event is never caught by my handler. If I put in NetworkAddressChanged, it *is* fired and...
0
1,247
thread by: mera yabany | last post Apr 11 '08 by: mera yabany
*** Sent via Developersdex http://www.developersdex.com ***
0
1,670
thread by: =?Utf-8?B?U3dvcmRBbmdlbA==?= | last post Apr 11 '08 by: =?Utf-8?B?U3dvcmRBbmdlbA==?=
Hello, I have a function that looks like the following: <code snippet> private void function genRegCodes(long maxid, long numOfRowsToInsert) { bool ok; SqlConnection sqlcon = new SqlConnection("my connection string"); SqlCommand sqlcmd = new insertcmd("insert into regcodes (id, regcode) values (@id, @regcode)", sqlcon); sqlcon.Open();
3
1,907
thread by: pantagruel | last post Apr 11 '08 by: Peter Bromberg [C# MVP]
Hi, I have the following: public static void RunBatch() { if (OnDemandRunning) { //If OnDemand is Running we will do nothing } else{
1
3,622
thread by: shark | last post Apr 11 '08 by: Ignacio Machin ( .NET/ C# MVP )
Hi, I'm using ADO. NET to update excel from c# code. It works fine with one exception. If value for given column can be parsed to number then something (ADO .NET ??) put extra apostrophe sign at the begining. How to avoid it? Thanks Shark
2
1,602
thread by: Prasanta | last post Apr 11 '08 by: Prasanta
Hello, In my system the crystal report working till yesterday as well, but from today whenever I tried to open crystal report its asking me to log on to crystal management server, which never appears previously. I can't remember any changes I made or not to the setting, So when I am calling from c# code its saying that crystal report client...
0
1,040
thread by: Prasanta | last post Apr 11 '08 by: Prasanta
Hello, In my system the crystal report working till yesterday as well, but from today whenever I tried to open crystal report its asking me to log on to crystal management server, which never appears previously. I can't remember any changes I made or not to the setting, So when I am calling from c# code its saying that crystal report client...
1
1,291
thread by: Eddy Jones | last post Apr 11 '08 by: Peter Bromberg [C# MVP]
I'm looking to implement the Enterprise Cacheing block as a plugin to an ASP page. I expect this page to be hit many many times a second and I'm concerned about thread safety. One of the 'bullet points' that I saw in the description of the block was "Thread Safety" but I've found nothing expounding on this feature. Can someone point me...
0
1,305
thread by: =?ISO-8859-1?Q?Norbert_P=FCrringer?= | last post Apr 11 '08 by: =?ISO-8859-1?Q?Norbert_P=FCrringer?=
Hello there, I've got following style defined: <Style TargetType="{x:Type GridViewColumn}"> <Setter Property="Header" Value="Test" /> <Setter Property="CellTemplate" Value="{StaticResource CellTemplate_Name}" /> </Style>
0
1,143
thread by: Jason Huang | last post Apr 11 '08 by: Jason Huang
Hi, In my C# 1.1 Windows form project, I would like to export record to Excel 2000 spreadsheet Record.xls. I also need to do some data manipulation in the Record.xls. How do I call the VBA from my C# windows from project? Thanks for help. Jason
0
1,243
thread by: gao1183 | last post Apr 10 '08 by: gao1183
I am given an Ellipse in the following definition: <Path Name="_Display2_Ellipse2" Height="50" Width="60" Stroke="black" StrokeThickness="1" Fill="teal" Visibility="Visible"> <Path.Data> <EllipseGeometry Center="0,0" RadiusX="1" RadiusY="1"> <EllipseGeometry.Transform> <MatrixTransform> <MatrixTransform.Matrix> <Matrix M11="76.5" M12="0"...
3
17,096
thread by: =?Utf-8?B?R3JleWhvdW5k?= | last post Apr 10 '08 by: =?UTF-8?B?QXJuZSBWYWpow7hq?=
I need to remove non-printable characters from a text file. I need to do this in C#. The Hex codes for the characters I need to remove are '0C' and '0A' which equate to 12 and 10 in decimal. Their codes are 'FF' and 'LF' from the ASCII talbe. I have searched and searched and cannot come up with a method for doing this. Many Thanks...
4
1,298
thread by: DR | last post Apr 10 '08 by: Barry Kelly
PerformanceCounterCategory.Create() takes 3 minutes to add a new category!! How come? What can cause this?
1
1,473
thread by: =?Utf-8?B?cm9kY2hhcg==?= | last post Apr 10 '08 by: =?Utf-8?B?cm9kY2hhcg==?=
hey all, what's the best way to turn my csv string into sql parms? the sql parms can vary in count. thanks, rodchar
1
1,609
thread by: Wendi Turner | last post Apr 10 '08 by: Marc Gravell
I was just trying to consume the simple HelloWorld webservice that comes in Visual Studio 2005 with a simple ASP.NET WebSite. We have created the web reference to the url that serves the HelloWorld Service and have invoked the response ... How do we call and post this "Hello World" response string from the service inside the ASP.NET ...

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.