microsoft.public.dotnet.languages.csharp Archive - August 2002
Post a message to this list
Messages
Page: 12345
How to convert character to ASCII code? 'A' to '41' (2 replies)
microsoft.public.dotnet.languages.csharp
Hi All, I have a char say 'A' . I want the ASCII value of it '41' (in hex) as a string. How to get? Thanks, Sunil
Famous mispellings (21 replies, VIP)
microsoft.public.dotnet.languages.csharp
Anyone have any stories of how "creative spelling" got you into trouble at work? I have some words that I, with almost 100% accuracy, misspell every time I try to write them: I used CVS for awhile, and CVS' equivalent to Get Latest is 'cvs update' but I would always type cvs udpate flase instead of false Any other ones you guys have? c
optinal parameter (6 replies)
microsoft.public.dotnet.languages.csharp
When I use vb6, I can use optional parameter, and I can assign parameter with design value, I don't see this feature in C# document, is there such feature in C#? Thanks
CLR upgrade & version control (6 replies)
microsoft.public.dotnet.languages.csharp
A possible application life cycle management issue occurred to me today and I'm wondering what the rest of you think. Imagine releasing a .NET application and having it nice and stable. Now suppose that MSFT releases a CLR service pack or worse, an upgrade via Windows Update and this breaks something in your application either because of a bug or even because, someday in the distant future, they d...
How to Detect a directory existed or not, and how to create a directory? (2 replies)
microsoft.public.dotnet.languages.csharp
How to know a directory existed or not, and how to create a directory? thanks! Kevin
Cookie Container: how to iterate through? (2 replies)
microsoft.public.dotnet.languages.csharp
The following code returns a CookieContainer from an HttpWebRequest. How can the client side (C#) program iterate through the cookies returned to the client by the target web server (wRes.Cookies), and write them to the console? String TargetURI "https://www.someserver.com/"; HttpWebRequest wReq (HttpWebRequest)HttpWebRequest.Create(TargetURI); wReq.CookieContainer new CookieContainer(); HttpWebRe...
POST via HttpWebRequest not working. HELP! (4 replies)
microsoft.public.dotnet.languages.csharp
Here's how I'm trying to POST a request via HttpWebRequest: If Request.Method "POST" Then Form zGetPostForm(ASPPack, Request) ' Don't worry about this ' returns a byte array ' of Form data (X Y&A B) If Not Form Is Nothing Then If Form.Length 0 Then Request.ContentLength Form.Length zPostForm(Form, Request) ' See method below End If End If End If Response CType(Request.GetResponse, HttpWebResponse)...
Raising events in a component (3 replies)
microsoft.public.dotnet.languages.csharp
We are building a component which will, hopefully, communicate back to the object that created it by raising events. Inside the component, we have defined the delegate and event, and inside one of the component's methods, we raise the event. We have found that if the object that created this component provides an event handler for this event, everything is fine. If the object does not provide an e...
Fonts and PictureBox ... (3 replies)
microsoft.public.dotnet.languages.csharp
Hi, Is it possible to 'draw' fonts onto an Image inside a PictureBox ? reply with code if possible thx Athos.
Named Pipes in .Net (6 replies)
microsoft.public.dotnet.languages.csharp
Hi Does anyone know if .Net has support for Named Pipes. It seems like it might be possble if I jump thru alot of hoops by mapping some Kernel32 funtions to Static .Net functions, but I would think there is an easier method to do this. Thank you for your time and ideas. Patrick
There is any equivalent for Vector Container(STL) in C# (5 replies)
microsoft.public.dotnet.languages.csharp
hai friends, there is any thing equivalent to vectors in the C# language. Vector one of the container in STL(C Core) Thank you all SMM
IBM MQ Series COM Objects (4 replies)
microsoft.public.dotnet.languages.csharp
I used VB.NET initially to create an application that uses the IBM MQ Series v.5.2 COM objects. Now I am in the process of migrating the app to C#, and the C# compiler only recognizes the method with all the parameters and none of the overloaded methods. Example : q.Get(MQMessage, MQGetMessageOptions, Length); (works OK with all 3 params) The Get method has the following overloads: q.Get(MQMessage...
How to delimited string in an array? (10 replies)
microsoft.public.dotnet.languages.csharp
I got a string "1.0,2.0,3.0" How can I seperate them to an array A[0] 1.0, A[1] 2.0, A [2] 3.0 and know the array length is 3 Thanks! Kevin
Linklist in C# (2 replies)
microsoft.public.dotnet.languages.csharp
Hi, I was wondering how I can implement linklist in C#, and therafter the tree structure? Thanks, Wei
How to Clear an Array? (2 replies)
microsoft.public.dotnet.languages.csharp
double[] new A[100]; A[0] 1;...... A.Initialize(); I'd like to clear array A(All the elements to zero). A do not have a Clear() method, only Initialize(). But Initialize() can't clear array. If I want to clear A, what can I do? What's the difference between this two? Kevin
Replace in csharp (6 replies)
microsoft.public.dotnet.languages.csharp
Hello, i have a program in VB using Replace("text", "text", "text"), now i'm migrating this program to Csharp. What is the similar for Replace("text", "text", "text") in csharp?? Thanx
VB.net->C#?: Is there a for each equivalent in c# (7 replies)
microsoft.public.dotnet.languages.csharp
.
versioning - how? (2 replies)
microsoft.public.dotnet.languages.csharp
I was reading Christopher Willes book C#. In there he explained about use of versioning, and told to use command like: csc /a.version:1.0.1.0 /t:library /out:wrq.dll wrq.cs to set files version to 1.0.1.0. I am using Visuas Studio C# but I cant find how to set this version number in there. From Help files I found something about assemblys and example code looked like this: //Set version number for...
Forms - How do I get rid of the x? (5 replies)
microsoft.public.dotnet.languages.csharp
Group, Can someone please tell me how I can get rid of the close box (the little x) in the corner of the control box on a Windows Form? Thanks, Tom
readonly compiler bug? (6 replies)
microsoft.public.dotnet.languages.csharp
I found a bug in one of my programs that was written in C#. OK, nothing new there. But I am shocked that the compiler didn't warn me about it. I think it's a compiler bug (or else I don't know what "readonly" means). The following simplified example code shows what happened: class Thing { private static readonly uint[] m vBitMask { 1, 2, 4, 8, 16 }; private uint[] m vUserBit new uint[32]; uint DoT...
New C# Source Code Available - File Search (2 replies)
microsoft.public.dotnet.languages.csharp
Folks: I've added a new C# .NET sample that is available for download. It's named "File Search". Here's the description: File Search searches for disk files using text patterns or regular expressions. The C# concepts illustrated by this source code include: 1.. Directory tree navigation 2.. Regular Expressions 3.. Threading and thread synchronization 4.. Navigation through directory trees using a ...
How to open a text file and append new record in? (2 replies)
microsoft.public.dotnet.languages.csharp
I have an old file. I'd like to open it and add some new data in. What can I do? If I just want to to open a new file and overwrite the old same name file, What can I do? If there's option I can choose? thanks!
NotifyIcon handler not receiving mouse events (2 replies)
microsoft.public.dotnet.languages.csharp
I'm having a problem with a simple winform application and I'm about to pull all my hair out. I've placed the notifyicon control on the form and have no problems getting it to display tooltip text or a context menu. The context menu and the tooltip text works so at least on some level I know the system tray icon is receiving mouse events. However, none of the mouse * event handlers in my code are ...
ListViewItem removal woes (3 replies)
microsoft.public.dotnet.languages.csharp
I am having strangeness when attempting to remove items from a ListView. Whenever I try to do so, I get an OutOfMemoryException thrown. It's only additional data is the text string "Error creating window handle". I can't begin to figure out what is going on here, any suggestions? Thanks, Steve
ImageList as Resource (2 replies)
microsoft.public.dotnet.languages.csharp
Hi, I would like to have a ImageList that can be used from any program ... like a .dll file. What is the best way to go about that ? TIA Athos
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com