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# > november 2006 > threads for tuesday november 21

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

Convert structure object to pointer
Posted by renu at 11/21/2006 11:44:56 PM
hello, I have one structure named CHAINPOINT,like CHAINPOINT { int x,y; byte dir } I am creating object of CHAINPOINT ...more >>


Call to Base-Class Does Not Succeed
Posted by Martijn Mulder at 11/21/2006 8:18:06 PM
Documentation suggests that I should make a call to the base-class method for some methods. When I try to do so for the class below, I get wrong results. What is the correct way to make a call to the base class for an event like this? //class Form class Form:System.Windows.Forms.Form {...more >>

Closing down a hierarchy of modal windows nicely
Posted by Chukkalove at 11/21/2006 7:30:59 PM
Im sorry, I dont know the correct description for a hierarchy of parent and child forms. I have a main form that opens a child form modally. This child form in turn opens it's own child form modally. I also have a separate thread running that monitors a card reader. If the user removes the c...more >>

How to hide ASP:Panel
Posted by GW at 11/21/2006 6:55:22 PM
Hello, I have: Default.aspx and Default.aspx.cs I also have on my Default.aspx page the following: <asp:panel ID="MyPanel" runat="server"></panel> How would I programmatically show / hide this element from the CS file? Any tips appreciated, Gary. ...more >>

Add a Value to an ArrayList
Posted by Andy in S. Jersey at 11/21/2006 5:46:01 PM
I would like to add a value to my ArrayList. When I add u to orderedpair below I get the same data for each. I know why, I am Add ing u. I want to add the VALUE of u at the point in the for loop, NOT q. Does anyone know how to do this? for (int q = 0; q < ordered...more >>

Prep
Posted by sauve mark at 11/21/2006 5:32:46 PM
exec sp_prepare ...more >>

Identifying Control with Focus and AppendText
Posted by Fritz Switzer at 11/21/2006 5:14:23 PM
I'm trying to AppendText to a TextEdit. I have a procedure that will go through the controls on a Windows form and return the control that has "focus". I have a number of TextEdits on my form and don't know which control has focus. I then want to paste text from the ClipBoard to this TextE...more >>

test
Posted by tony at 11/21/2006 4:55:17 PM



A design question
Posted by tony at 11/21/2006 4:51:48 PM
Hello! What is the recommended way to solve design when creating system today. Assume you use windows forms. You can use thin client PC(terminal server) which is a special kind of PC where you put all the execution on the server and only show the presentation on the client or you can use a tr...more >>

interrupting a lengthy sequence
Posted by michael sorens at 11/21/2006 4:44:05 PM
I have a lengthy sequence of operations that are executed and reported o= n = in a status window in a Windows Form application. Some work is done by = background threads but other work is not. I am wondering how to recogniz= e = if the user presses an Escape (or even just a Shift key i...more >>

adding elements of XmlDocument A in XmlDocument B
Posted by Martin_Pöpping at 11/21/2006 4:42:21 PM
Hello, I want to add some elements of one XmlDocument in another. My code looks like this: XmlDocument docA= new XmlDocument(); docA.LoadXml(record); XmlNodeList nl = docA.SelectNodes("/search/recordlist/record"); XmlNode recordlist = docB.FirstChild; foreach (XmlNode node in nl) { ...more >>

Delegates?
Posted by Martijn Mulder at 11/21/2006 3:32:39 PM
There are 2 ways to hook an event to a method. For example, to hook the MouseEnter-event, you can use MouseEnter+=OnMouseEnter; or MouseEnter+=new System.EventHandler(OnMouseHandler); Both work well, as demonstrated by the small program below, where the MouseEnter-event is hooked the...more >>

UserControl and BindingContext
Posted by MeowCow NO[at]SPAM gmail.com at 11/21/2006 3:25:25 PM
I have created a UserControl that encapsulates a third party data grid. My goal was to create my own DataSource and DataMember properties that forward the binding to the third party grid, then use binding like normal. The problem I am running into is that my UserControl ends up with a differe...more >>

Help wanted: Generate code from delegate
Posted by mortb at 11/21/2006 2:47:48 PM
Hello! I make use of anonymous delegates in my code. For debugging purposes I'd like to generate the code that the delegates describe. Do anyone have an easy way to do this? cheers, mortb ...more >>

User control constructor called twice
Posted by Rimpinths at 11/21/2006 2:33:30 PM
I'm new at developing user controls in C#, and one thing I've noticed right off the bat is that the constructor gets called twice -- once at design time, once at run time. In short, I'm trying to develop a control derived from DataGridView. It will have a default set of columns (but I don't wa...more >>

System.Runtime.Remoting.RemotingException: Requested Service not found
Posted by Lambuz at 11/21/2006 2:15:26 PM
Hi all, I've got this terrible problem. I'm deploying 2 different .NET application (Framework .NET 1.1) that both use remoting technology, but one is a HREF no-touch-deploy smart client and the other one is a .NET control deploy by a tag object. All assemblies are signed with a Strong Name....more >>

A design question
Posted by tony at 11/21/2006 2:13:43 PM
Hello! What is the recommended way to solve design when creating system today. Assume you use windows forms. You can use thin client PC(terminal server) which is a special kind of PC where you put all the execution on the server and only show the presentation on the client or you can use a tr...more >>

System.Text.Encoding.Default question
Posted by Adrian at 11/21/2006 2:03:50 PM
How do I use System.Text.Encoding.Default in conjunction with "append"? The objective being not to get into all sorts of problems with special ASCII characters like é etc. Many thanks, Adrian. ...more >>

WYSIWYG rich text box for C# forms?
Posted by cbmeeks at 11/21/2006 1:19:51 PM
Any WYSIWYG text box controls out there for NON-HTML, NON-WEB text boxes? One that stores the text in XML format would be cool. Thanks cbmeeks ...more >>

C# Equivalent of C++ MD5 Algorith
Posted by galtschul NO[at]SPAM gmail.com at 11/21/2006 12:35:43 PM
I am re-writing a C++ application in C# that takes a user's password, encrypts it using MD5 (I think), and compares it to what was encrypted and stored in the database when the user initially created their password. The problem is that the C++ encryption generates 110 characters and the C# encry...more >>

Error reporting with SmtpMail.Send()
Posted by plex4r at 11/21/2006 11:20:02 AM
I want to add guaranteed delivery (or at least guarantee sent) to some code using SmtpMail.Send(). The method is void. Does Send() throw exceptions if it cannot connect to the Smtp server or has some other error? I could then store the message on an MSMQ and retry later. What do you thin...more >>

quoted string in .Net (@="\u...") convert to unicode
Posted by Jorgen at 11/21/2006 11:15:05 AM
I have this situation: string h =3D "#u00d8"; h =3D h.Replace("#","\\"); // =3D> h =3D @"\u00d8" WriteLine(h); //=3D> "\u00d8" But I wishes to have this situation: h =3D "\u00d8"; WriteLine(h); //=3D> "=D8" How can I convert a qouted string to a string object so that it can be parsed by ...more >>

Problem with return type in webservice
Posted by Peter Longstaff at 11/21/2006 10:59:11 AM
Hi All, I am having trouble with my first effort at developing a web service. I have a methods, outlined below which should return a DataTable. [WebMethod(Description = "Gets details for contact for the ID provided")] public DataTable GetContactsforCompany(string sID) { if (sID == st...more >>

Add your Windows Messenger contacts to a C# app?
Posted by Jason at 11/21/2006 10:34:59 AM
Is it possible to add the Windows Contacts list to my C# app? Such as you see you're Messenger contact list in Outlook Express? Any examples of how to do this? ...more >>

Test for decimal length/size
Posted by mohaaron at 11/21/2006 10:27:42 AM
Hello All, Does anyone know of a way to test a decimal for the number of places it has before and after the decimal? I need to do something like this. decimal value1 = 172.45; // If value1 has more then two places before the decimal return zero. // Or if value1 has more then two places a...more >>

XPS - WPF Guru's Please Help!
Posted by Sir C4 at 11/21/2006 9:18:51 AM
Can anyone provide a c# example of how I can copy / reuse XPS resources? In creating a "template" system, I'm trying to: 1) read an XPS document; 2) replace place-holder text with actual text; 3) write new XPS document. My works so far leave an XPS document that when opened gives the error "Ad...more >>

Textbox LostFocus Event
Posted by Windle at 11/21/2006 9:18:01 AM
I am writing a Web application in ASP 2.0 C#. I want to calculate textboxes when they lose focus. I can see where to find the LostFocus event so I can run this calculation on the client side. -- Windle...more >>

try...catch and local variables
Posted by RickHodder at 11/21/2006 8:50:02 AM
I'm getting frustrated with using try...catch with local variables: The code below wont compile in .NET 1.1: I get the following error: "Use of unassigned local variable 'oProcessFileReader' " Is there a way around this error? <code> private void Test(string sFileName) { StreamReader ...more >>

C# Web Service to access from ASP.NET & desktop VC++
Posted by Rob C at 11/21/2006 8:20:01 AM
I want to develop some data access web services in C# that can be accessed from both an ASP.NET web application as well as a VC++ desktop application. i have used web services in the past from VC++ by using the WSDL file provided by the web service. We are migrating our application to the ...more >>

Client Callbacks generated from User Control's page load event
Posted by CodeRazor at 11/21/2006 7:56:01 AM
I have a user contol hosted in a webform. The user control interfaces with an http component. When the user control loads, a request is sent to the http component. It takes around 10 seconds before a response is returned. While this is happening the webform cannot do any other processing. ...more >>

Protecting against null events
Posted by dvestal NO[at]SPAM gmail.com at 11/21/2006 7:46:30 AM
This question is a followup to my question here: http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_frm/thread/445d6d71f033a6d2/07c99e4742fe5fdb#07c99e4742fe5fdb I've been reading http://www.yoda.arachsys.com/csharp/threads/lockchoice.shtml, and have gotten a lot ...more >>

FolderBrowser
Posted by TarheelsFan at 11/21/2006 7:15:14 AM
I was trying to convert a VB project that contained the class FolderBrowser to C#. I have added a reference to System.Design, and the FolderBrowser class now shows up, but when I call System.Windows.Forms.Design.FolderNameEditor.FolderBrowser fb = new System.Windows.Forms.Design.FolderNameEdi...more >>

code snippet insertion
Posted by rodchar at 11/21/2006 6:57:02 AM
hey all, i noticed when i'm in the code-behind and i type, let's just say the word IF, well in the auto-complete list the tool tip show it as a code-snippet. Is there a key-stroke to stub the snippet out? I know you can right-click and get to code-snippet insert but just wondering. thanks,...more >>

Need help desperately on MDI WinForms for VS2005
Posted by Tim at 11/21/2006 6:25:01 AM
I am new to this arena of development although I am hoping that some or most of my C# web development might carry through here as well. I have started to create a MDI application. I have the MDIParent form and a test Childform as well. Use of the controls seems to be pretty self explain...more >>

Creat an Installation package for client and server
Posted by piggy at 11/21/2006 5:00:03 AM
I have developed an application using C# under .NET 2.0 framework. It is almost done and it is time for me to think about deploymnet to all users. I don't have any background about this and would like to see if anyone can help me get started. I have read some about clickonce deployment and ...more >>

Transparent BackColor PictureBox
Posted by bungle at 11/21/2006 3:50:19 AM
Hi, Could anyone give me a way of getting a picturebox in winforms to actually give me a transparent background? I need to layer images on top of one another and obviously can't at the moment. If this cannot be done, could you recommend a reasonably priced control to solve the problem? T...more >>

Translation of 1 line of code into C# : Alpha Byte
Posted by pamelafluente NO[at]SPAM libero.it at 11/21/2006 3:35:27 AM
I am trying to convert in C# a VB.NET routine (which probably came from C# ! ) I need to translate using pointers (this should get the Alpha byte in a 32bppPArgb bitmap): Function AlphaValue32bppPArgb(ByVal x As Int32, ByVal y As Int32, ByVal data As BitmapData) As Byte ...more >>

Network Application - basic question
Posted by CCLeasing at 11/21/2006 3:28:17 AM
How do I communicate between different user instances of my windows forms project? Im trying to write a program that will run on a network of 15 pcs. 5 of the pc's will run the admin part of the program. and the rest of the pc's will run the salesman part of the program. Both forms (the a...more >>

dataset and xslt
Posted by kamil.nowicki NO[at]SPAM gmail.com at 11/21/2006 2:21:39 AM
Hi there, I want to create flat txt file from my data stored in my dataset. I do xslt transformation and i've got sth like that: (where ds - is my dataset, output.txt - is my result --------------------------------------------------------------- //Create a new XslTransform object. XslTrans...more >>

numericUpDown but with non-numeric items.
Posted by Jon Slaughter at 11/21/2006 12:06:42 AM
I would like to use the numericUpDown in it standard way but have to features. I would like to display items instead of numbers that amp to the numbers and have the control be "cyclic" in the sense that once it reaches its maximum value it goes to its min and vice versa. What I essentially ...more >>

WebBrowser 2.0
Posted by Le Minh at 11/21/2006 12:00:00 AM
Hi everyone! When i'm using .net 2.0 webbrowser control, I generate html code at runtime, and bind it to wb.DocumentText Property. But, when i click the link in the wb, the wb isn't navigate to this link. why this ? Anyone can help me ? Thanks ...more >>

Display 2 lines in ListView column
Posted by Alan T at 11/21/2006 12:00:00 AM
I want to display 2 lines in a column of a listview. eg. in the second column to display John Mary Can I do that? ...more >>

Any Equivalent to VB.NET's With...End With Statement ...
Posted by Ashok Guduru at 11/21/2006 12:00:00 AM
Hi, I'm new to C#. In VB.NET we have With...End With Statement. Often, I need to perform several different actions on the same object. For example, I may need to set several properties or execute several methods for the same object. Private Sub UpdateForm() Button1.Text = "OK" But...more >>

Terminating of Process which was started mit cmd /c
Posted by SMichal at 11/21/2006 12:00:00 AM
Hi. how can I terminate process which was started with cmd /c ? The Kill() method terminates only that CMD.exe string cdHome = @"C:\Temp\"; string localhost = "chsaXY"; string userName = "aaa"; string password = "bbb"; string processFile = @"C:\Data.prc"; string temp = @"C:\Temp\"; string...more >>

Tiny Window
Posted by Martijn Mulder at 11/21/2006 12:00:00 AM
I want to implement a tiny window in my application, one that you typically invoke via the menu-option Window -> Toolbar. It must be floating, not restricted to the client area of the controlling form. It has a tiny close-button on the right-hand corner. How do I implement this? ...more >>

Listview FindItemWithText
Posted by Alan T at 11/21/2006 12:00:00 AM
I have two columns in the listview. To search for a value in the first column only I can use FindItemWithText("alan", false, 0, true); What if I only want to search through the second column? My first column is first name and second column is last name. So I would like to do a search ...more >>

Setting value of parameter in ObjectDataSource
Posted by Allan Ebdrup at 11/21/2006 12:00:00 AM
I have an object data source, that takes a parameter sortData, that sorts the data, now I want to have the sorting set to a default value when i first load the ASP.Net 2.0 page. I've tried to set the DefaultValue of the parameter but it doesn't change the sorting. I've also tried to see if i ...more >>

I have problem whis Windows Media Services 9 Series.
Posted by vera esaulova at 11/21/2006 12:00:00 AM
I have problem whis Windows Media Services 9 Series. I have videostream, which will consist of two streams(512k/bit and 256k/bit).I need to allocate a stream 256k/bit. In SDK is written: Supporting Multiple Bit Rate Files Several versions of the same audio or video content can be stored in ...more >>


DevelopmentNow Blog