473,810 Members | 3,135 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# / C Sharp Forum

2
5,592
thread by: Baseman | last post Nov 13 '05 by: Baseman
In an app, I want to see if the user has the CTRL key pressed from within a TreeView BeforeUpdate event handler... what's the best way to do this? TIA, -B
2
5,117
thread by: José Joye | last post Nov 13 '05 by: Jon Skeet
Hello, I was wondering if there is a method that exists to replace multi-spaces within a string with single-space. eg: "12 3 4 56" --> "12 3 4 56" I think this could be done by looking at each char within a loop and copying the char to a stringBuilder instance if current and previous char are not spaces...
2
12,941
thread by: Marco | last post Nov 13 '05 by: A
How I can create TextBox dinamically. I have to create 10 textbox dinamically which name will be txtBox_01, txtBox_02, etc... Thanks.
1
6,540
thread by: D Ratcliffe | last post Nov 13 '05 by: Frans Bouma
Hello In a nutshell, I am looping through an XML document in a for loop, and I want to insert a given value as an element to each tag as I go along. i.e.: for (int i=0; i < (rtnX.GetElementsByTagName("list").Count); i++) { // I want here to add the attribute "display" to the selected tag }
0
1,529
thread by: Mike P | last post Nov 13 '05 by: Mike P
Does anybody have an example of using JMail in C#? Thanks, Mike *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
0
2,046
thread by: br | last post Nov 13 '05 by: br
The following is the part of the code I have written.. XPathNavigator oNav = oDoc.CreateNavigator(); XPathNodeIterator oIterator = oNav.Select ("//countries/country"); while (oIterator.MoveNext()) { XPathNavigator oInnerNav = oIterator.Current; string sCountry = string.Empty; string sCapital = string.Empty;
0
938
thread by: Manpreet | last post Nov 13 '05 by: Manpreet
plz can someone check the post i posted..cz i need a reply soon..thanx a ton..
2
8,235
thread by: 30906024 | last post Nov 13 '05 by: Chris Hornberger
I intalled an assembly into GAC by gacutil.exe. But when i delete it from GAC by gacutil.exe, i got an error message such as follow: Assembly: Client.Common, Version=1.0.1.0, Culture=neutral, PublicKeyToken=01aef4fcc8ad7772, Custom=null Unable to uninstall: assembly is required by one or more applications Pending references: SCHEME:...
0
1,255
thread by: DaleMan | last post Nov 13 '05 by: DaleMan
I'm interested in building a simple screensaver that shows different images and moves from one image to another in different fancy ways (blurring, fading, etc...) Are there any links out there that show how to develop a screensaver? Thanks.
2
4,949
thread by: Dane | last post Nov 13 '05 by: Ron Allen
I am having a problem printing in C#. I am using DrawString() with the RectagleF class to determine the location to print. I am doing it this way so that I can get the text to auto wrap. The problem I am having is this: Is there any way to make the rectangle grow based on the contents or a way to determine exactly what the height should...
3
6,653
thread by: Erald Kulk | last post Nov 13 '05 by: Erald Kulk
L.S. in a datagrid I would like the forecolor of a single cell. Because it is a negative number. This cannot be done by changing the NumberFormat property. So how can I do this?? Erald
2
20,201
thread by: Frank Rizzo | last post Nov 13 '05 by: Scott
Does c# support optional parameters in function declarations? Does it support assignment of default values to arguments, in particular optional parameters? If so, can someone point me to or provide an example. For instance in vb6, you could do the following: function DoStuff(optional ID as integer = 10, optional Name as string = "test")...
0
1,155
thread by: Stephan Steiner | last post Nov 13 '05 by: Stephan Steiner
Hi I'm not sure where to post this, so since I came to it when searching the ..net API documentation in c# mode I'll post it here. Have a look at the 4 items below. It appears to me that two descriptions have been interchanged: ReceiveBuffer Send low water mark. ReceiveLowWater Receive low water mark.
4
14,809
thread by: frank | last post Nov 13 '05 by: Ignacio Machin
How do I remove the furthest right (last) character in a string in C#?
1
4,575
thread by: Scott Numbers | last post Nov 13 '05 by: Scott Numbers
Fellow C-Sharp developers, I have an application that must be able to display a message on a desktop even if the screen saver has locked the computer. If you pass "ServiceNotification" as a MessageBoxOption on the MessageBox.Show method, the MessageBox will display even if there is not a user logged in. Unfortunately, my users want to...
1
1,096
thread by: Suhail Salman | last post Nov 13 '05 by: guy
Hi, did any one tried C# under VS .NET 2003, if yes what do you think, does it worth to upgrade, and what about my old .NET apps are they compatible? thanks
1
1,754
thread by: John | last post Nov 13 '05 by: Michael R
Has anybody tried this code (http://support.microsoft.com/default.aspx?kbid=302817)?. When I run the programme it freezes when it reaches the event handler... //============ Set up the event handlers =============== oWord.DocumentBeforeClose += ..... Any Idea what's wrong? (My programme is trying to access the directory of the
1
6,056
thread by: Supramanian Murugesan | last post Nov 13 '05 by: Miha Markic
Hi, I have Sybase ASA 7.0, and would like to connect using OleDbConnection. If I create a dsn called "TOPS" and use the following connection-string no problem "Data Source=TOPS;Provider=ASAProv.70" But I don't want the end users to create dsn kind of stuff. So I thought of going for dsn-less connection.
1
9,730
thread by: Rajesh Abraham | last post Nov 13 '05 by: Miha Markic
I am trying to understand the difference between Class & Component Class. What are the advantages of using one over the other? When should I prefer to use one over the other? Any good documentation on this subject. Also any sample projects showing the same functionality implimented using both the methods so as to make the difference...
4
1,616
thread by: Vince S | last post Nov 13 '05 by: Miha Markic
Hello. I'm currently trying to learn programming in C++. My goal is to write Windows applications, mostly for personal use. For example, I'd like to create my own multi-threaded newsreader. My plan was to learn standard C++ and then VisualC++/MFC. I've been through most of one C++ book (Deitel) and I've started on another (Accelerated...
2
3,351
thread by: Simon Storr | last post Nov 13 '05 by: Simon Storr
Posting this again as it just got deleted off the server?! Is it possible to perform an 'in' set operator check on an enumerated type? For example something like enum WeekDays = {Mon,Tue,Wed,Thu,Fri,Sat,Sun}; WeekDays aWeekDay; .. .. ..
1
1,324
thread by: Vivek | last post Nov 13 '05 by: Miha Markic
Hi, Microsoft is really concerned with security the last 2 years. Just today I read one article about one more security lapse in the network run applications. I had been attending some of the MSDN sessions in my city on C sharp. and the guy in there did talk about code level security. That's some way related to the RAM of the system.
0
1,347
thread by: Jyothi | last post Nov 13 '05 by: Jyothi
HI All, I want to generate UML diagrams given C# project.I wanted to do this programatically and not thru the options available from menu bar. Could anybody tell me how to achieve this ? Could anybody also tell me how to create relationships between classes using Visio programatically?
0
1,893
thread by: SWJust | last post Nov 13 '05 by: SWJust
I found out that the socket in C# can be set in an GGP mode, but what does that mean, it is nessary for me to enter at mode where it is possible to communicate with routers, because my application is going to work as an software router, but i cannot find any documentation or examples of using the GGP mode on the socket. Do any of you have any...
0
1,143
thread by: Prashant | last post Nov 13 '05 by: Prashant
Does anyone have any idea abt the availability of the MCSD course material (Study guides in the form of pdf)...for free..or in case any1 of u have it....can u mail it to prashant.nair@lntinfotech.com.its very urgent plzzzzz.........

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.