Home All Groups Group Topic Archive Search About

Visual C# .NET

microsoft.public.dotnet.languages.csharp
Score Fastes way to do binary search
Soeren S. Joergensen - 5 Nov 2005 10:39 PM - 7 messages
Hi, I've got to byte arrays, and want to search first array for the position of the first occurance of the other. How is this best implemented ? Kr. Soren ...
Score Conditional attribute no longer allows out parameters?
GlennDoten - 5 Nov 2005 9:44 PM - 3 messages
Upgraded to .NET 2.0 and VS.NET'05 and while compiling code that was fine under 1.1/2003 I'm getting a fatal compiler error: Conditional member 'GetTraceMode(out System.Web.TraceMode)' cannot have an out parameter and here's the method: ...
Score Is it possible to end the Main() thread while the other threads continue?
Edwin - 5 Nov 2005 9:17 PM - 8 messages
Hello, I would like the Main()-thread to end (because it runs out of the code), but all started threads should continue. Is this possible. Eg.         [STAThread]         static void Main(string[] args) ...
Score Encoding Umlaut becomes ? when using System.Text.Encoding.ASCII
Chris Auer - 5 Nov 2005 7:15 PM - 4 messages
I am trying to take in ASCII documents and convert them into ANSI for a customer in Germany. But every file I process turns umlauts and other german characters into something other then what it was. Here is some real simple console code. It seems like umlauts are not in ...
Score Do I need Delegates?
Joel Finkel - 5 Nov 2005 7:04 PM - 17 messages
Folks, I am confused as to how to implement the following solution. I have a series of processing steps, each of which contains similar features (forms, etc).  Therefore, I create a base class, Step, and subclass from that for specific steps.  The Step class has a method, Execute(), which can return ...
Score Event on DataTable cell
Gidi - 5 Nov 2005 6:42 PM - 2 messages
Hi, I have a datGrid which related to a DataTable. i want to create a KeyDown evet on one of my table's cell, this is what i did: dgtbc = dgtsPay.GridColumnStyles[2] as DataGridTextBoxColumn;             if(dgtbc != null) ...
Score Setting defaultvalue of a property
RR - 5 Nov 2005 6:04 PM - 2 messages
Hi, I want to set the defaultvalue of a property in a class. I know this is possible by the DefaultValue Attribute like this: public class Test {   public Test(){}   private string myProperty;   [DefaultValue("TestProperty")]   public string MyProperty ...
Score Parsing required and optional command line parameters
siliconpiNOSPAM - 5 Nov 2005 4:02 PM - 3 messages
Hi, I'm writing a program that should accept the following parameters: XMLfile (required) Logfile (required) /A (append flag, optional) /D 123 (delay value, optional, but # should follow /D immediately) /V 123 (version number, optional, but # should follow /V immediately) ...
Score auto-hiding window and fly out mechanisms?
hazz - 5 Nov 2005 3:26 PM - 5 messages
What are the basic mechanisms behind an auto-hiding window which moves out of the way when not needed and flys back out when clicked on. Is this real complicated stuff? Thanks, -hazz ...
Score How to create a function like WriteLine which can accept an unspecified number of parameters?
siliconpiNOSPAM - 5 Nov 2005 2:36 PM - 3 messages
Hi, I'm new to C# programming and not sure how to do this, but basically, I want to create a function exactly like how System.Console.WriteLine() works. eg, if I do: System.Console.WriteLine("A = " + valA + " B = " + valB); ...
Score How to send file with WebService?
ad - 5 Nov 2005 12:33 PM - 5 messages
I want to send a DataSet to WebService, but the DataSet if too huge(there about 50000 records, and 50 fields every record). My solution is 1.save the DataSet as XML file, 2.zip the XML file. 3. send the zip file  to WebService. ...
Score Threading.Timer fires many times??
whtinkm - 5 Nov 2005 11:41 AM - 7 messages
Hi, All Recently, my project need some code like following: using System; using System.Threading; namespace MyTimerTest {     class Class1     {         protected System.Threading.Timer guarder;         private string testFlag=""; ...
Score Bind TextBox to Selected Item of ListBox
OldNewbie - 5 Nov 2005 9:21 AM - 3 messages
Hello All I have a textbox control. I would like this text box to automatically update to contain the currently selected item located in a listbox which is on the same form. Do I need a CurrencyManager for this? Can this be done just by ...
Score Passing an Array into Viewstate
John Miller - 5 Nov 2005 2:02 AM - 2 messages
I'm developing a form that captures patient information.  In the form, I need the ability to add several insurance policies.  The approach I have decided to take is to load the separate insurance policies into a multidimensional array. So: ...
Score Some Opinions on this code block ?
Ben - 5 Nov 2005 1:39 AM - 4 messages
Hi There I am doing some unit testing at the moment, and the majority of the leg work involves taking two objects (expected vs actual) and verifying that their properties are equal.  The objects that I am testing and their properties are ...
Score Hide tab pages
MAF - 5 Nov 2005 1:11 AM - 3 messages
How do I hide a tabpage of a given tab control? //Disable other tabs until item is saved this.tabPage2.Hide(); //this doesn't work this.tabPage3.Hide(); this.tabPage4.Hide(); this.tabControl1. ? ...
Score about AppDomain.UnhandledException
John Richardson - 5 Nov 2005 1:08 AM - 6 messages
Quick question about the UnhandledException event and associated Handler. I just implemented this handler for the first time, and am surprised that it this event is being raised for an exception that I have handled. I have the following: private void Load() ...
Score inferring a type
John Salerno - 5 Nov 2005 12:10 AM - 14 messages
This is something that occurred to me a while ago, and again I was thinking about it last night. I noticed how redundant it seems to type an expression like this: SomeType x = new SomeType(); I asked myself, why do you have to type SomeType twice? I realize the ...
Score Serialized class from XSDObjectGen results in invalid char at position 1,1
Ste - 5 Nov 2005 12:00 AM - 3 messages
I generated a class from an XSD using XSDObjectGen, when i try to create an xml serialized string from it i get an invalid char in position 1,1 The code i use to serialise the object is pasted below.. lifted from [link] ...
Score Access a class' property with a string literal?
Steve - 4 Nov 2005 11:57 PM - 3 messages
I'm in a weird situation where I'm using ComboBox's in a DataGrid.  When the ComboBox selection changes, I'm currently storing the SelectedValue object into the DataSource of the DataGrid cell.  This is not what I want. ...
Score Adding dialog to form
RahimAsif - 4 Nov 2005 11:50 PM - 2 messages
Hi guys, I am developing a C# application using VS .NET 2003. Its a typical windows SDI application with a menu and toolbar at the top, treeview on the left and a status bar at the bottom. In my tree-view, I show a list ...
Score Runtime Type Conversion
Brian Pelton - 4 Nov 2005 11:03 PM - 3 messages
My basic question is this: Is there a Conversion class in the .Net framework that you can pass and object to and a type to and get back an object of the given type? For example.  Let's say I have a string value of "32".  Is there a ...
Score Sockets programming and SQL, ADO .NET
tiger - 4 Nov 2005 10:29 PM - 4 messages
Hi, I have a client and server application running on a local host, what I am trying to do is ...The client will send an IP address, and City to the server and the will compare this info to the database (MS access) and then ...
Score How to access index of ArrayList based on stored object's property value
Bradley - 4 Nov 2005 9:32 PM - 4 messages
Hi I have an ArrayList populated with some objects. Each object has some properties, and I'd like to find the ArrayList's index where the object's "SerialNumber" property is equal to a certain integer. This doesn't seem as easy as using a regular Array's IndexOf() method, since I need to access the SerialNumber property of the object stored in the ArrayList. It would be nice to just find the correct index of myArrayList without looping through the whole ArrayList and comparing each object's "SerialNumber" property to my integer with code. ...
Score Generic parameters and the + operator
cpnet - 4 Nov 2005 9:24 PM - 7 messages
There is probably an easy answer to this, but I haven't been able to find it.  I'm defining a method with 2 generic parameters like void MyMethod<T>(T i1, T i2) I want to be able to use the + operator in the body of my method: ...
Score Playing a SWF file.
UJ - 4 Nov 2005 9:10 PM - 3 messages
I've got a thick client app that needs to run a swf file. What's the easiest way to do that? TIA - Jeff. ...
Score Folder structure for large C# solutions?
-DG- - 4 Nov 2005 8:52 PM - 3 messages
Does anyone have preferences for how to set up directory structures in larger multi-project C# 'solutions'?  (Hate that ad-speak cliche).  I realize that this is arbitrary, but it seems that another level of directory depth would help in organizing things.  For example, ...
Score Web Control
UJ - 4 Nov 2005 7:58 PM - 2 messages
Can somebody point me towards where there's a description of how to use the web control? I can't find anything in the help so I don't even know how to get at it at all. TIA - Jeff. ...
Score How to disable multi-selection on a datagrid?
Alpha - 4 Nov 2005 7:54 PM - 3 messages
How I can disable multi-selection on a datagrid?  User now can select multi-rows on the grid by holding down control key.  I don't see such property for the grid as for the list control.  Is there a way to do this? ...
Score COM+ pool object in C# is not return to the pool
david.kao@opco.com - 4 Nov 2005 7:19 PM - 6 messages
Hi All: I am creating a COM+ Pool object in C#. I set up the following attributes: JIT (true),Pool size; and at the end of each public method I called ContextUtil.DeactivateOnReturn=true to set DONE flag; and also I override ...
Score Second instance of app referencing first instance of app?
Jon Pope - 4 Nov 2005 7:18 PM - 2 messages
I've got an application that uses a Mutex to prevent multiple instances of the application from launching.  This works great for me. However, what I would like to do is when a second attempt to launch the application is detected, it activates the first instance then closes the ...
Score locking down a computer
Justin - 4 Nov 2005 7:12 PM - 5 messages
I'm writing some custom software for an educational setting. One of the features of the program is locking down students computers to get their attention. To do this I was thinking of something like a system modal screen that requires a password to get out of, kind of like a password ...
Score How to set the paper direction when printing
Gidi - 4 Nov 2005 7:06 PM - 3 messages
Hi, I want to print a doucument i'm creating (by drawing), but i want to set my paper to be printed to width, how can i set it? thanks ...
Score howto make website similar to microsoft website
Serdge Kooleman - 4 Nov 2005 7:00 PM - 2 messages
howto make website similar to microsoft website. could you advise a book or walktrough... i want to repeat this website thank you ...
Score How to Get Size of HTTP Response Going Back To Client
Mark Overstreet - 4 Nov 2005 5:56 PM - 6 messages
I am writing a HTTPModule and all I want to do is trace the size of the page the client is requesting and that the web server is going to return.   I tried the following code but it throws an exception saying it is ...
Score Global hooks (experts)
Víctor - 4 Nov 2005 5:39 PM - 3 messages
Hello, I'm doing a Taskbar like app and I need to show open application's buttons. I've chosen to use a global hook due to elevate resource comsumptions by using a timer that looks up running processes. I'm trying with the ...
Score String Format help
Matt - 4 Nov 2005 5:27 PM - 12 messages
string format formula to write a text file below is not working for me pos 1 to 10 name pos 15 to 30 lastname pos 45 to 75 job Adam    smith    programmer string fmt = "{1,10}{15-30}{45,75}" // is not working any help ? ...
Score HttpWebReponse Getbytes Received
Dan McCollick - 4 Nov 2005 5:02 PM - 5 messages
Hi all,   I am trying to retreive the number of bytes my app has currently received from an HTTPWebResponse.  I understand that you can retreive the Content Length in the headers, but isn't this the "Total" bytes. ...
Score How can I get DNS server on my network
Roger - 4 Nov 2005 4:53 PM - 3 messages
Hi: I'm trying to get IP Address of DNS server on my network.  How can I perform this? ...
Score Write Carriage Return in Multiline textbox
Tim - 4 Nov 2005 4:10 PM - 6 messages
Hi Guys, I want to write a string to a multiline textbox. Below is the code. Works great except the carriage returns are displayed as squares. What do I need to do to have the text displayed properly with returns. ...
Score axmsChart anybody know how to use it?
Robert Heuvel - 4 Nov 2005 4:02 PM - 4 messages
...
Score Serialization performance
Joe - 4 Nov 2005 3:59 PM - 7 messages
I have a strange problem. I'm serializing a class which takes < 2 seconds on a couple of machines but other machines this same process can take 1-2 minutes. Is there any way to track this down? -Joe ...
Score Clipboard to DataTable
DapperDanH@nospam.nospam - 4 Nov 2005 3:58 PM - 4 messages
I want to make a class that basically looks at the clipboard, and for the standard types of clipboard objects (csv,text, etc), create a DataTable from it.  Not all formats will be supported but as many as possible.  The idea is ...
Score Problem with .NET 2.0 and MSHTML
Hans Merkl - 4 Nov 2005 3:16 PM - 11 messages
Hi, I have written an pap with .NET 2.0 and c# that uses MSHTML. It works fine on my development machine but on machines I deploy it to I get the following exception when ever I call MSHTML. "Could not load file or assembly 'Microsoft.mshtml, Version=7.0.3300.0, ...
Score Control another console application
fireloard - 4 Nov 2005 3:10 PM - 4 messages
I have a console application that I need to regular enter data into or restart. Is there any way I can control this console application from another C# application? This would help me automate this process. ...
Score Interop.Excel
Robert - 4 Nov 2005 2:39 PM - 5 messages
I have created a .dll in C# which has a reference to Excel.  When I add a strong name to the .dll in the AssemblyInfo.cs and try to rebuild, I get the following error: Assembly generation failed -- Referenced assembly 'Interop.Excel' does not ...
Score Hiding simple program in system tray?
VMI - 4 Nov 2005 2:26 PM - 4 messages
How difficult is it to hide my program in the system tray? It's not something that's required, but it'd look to add it since the program will be writing an ascii file every minute.  And it wouldn't too elegant to have it in the ...
Score PRB - UseShellExecute option does not return STD-ERR
ATS - 4 Nov 2005 2:16 PM - 4 messages
PRB - UseShellExecute option does not return STD-ERR Please help, I'm using the Process class to start an external process that "may" fail, for all kinds of reasons, but in particular, it may fail because it needs DLLs in its path. Normally if one manually launched such a process it would ...
Score ReadFile problem
GTi - 4 Nov 2005 2:06 PM - 3 messages
StringBuilder text = new StringBuilder(lpNextSize+1, lpNextSize+1); int pNumberOfBytesRead = text.Capacity; try { result=win32.ReadFile(_Handle, text, text.Capacity, ref pNumberOfBytesRead, 0); } catch (Exception e) { _lastError = e; Console.WriteLine(e.Message); return (null); } Console.WriteLine(text + " Bytes=" + pNumberOfBytesRead + " " + text.Length + " " + text.Capacity + " " + lpNextSize); ...
Score UserControl and Design-time
aspirit - 4 Nov 2005 1:13 PM - 2 messages
Hello I'm writing a control based on UserControl class. My control will paint itself using only graphics methods like DrawRectangle, DrawString, etc. The problem is that in design time I can't see the end result in designer (when I press F7 to change the view from source to designer). ...
Score Making text with different color
Curious - 4 Nov 2005 12:51 PM - 3 messages
Hi, I am trying to set the text color in a textbox with different colors(Line1 color blue, line2 green, etc).  If I'm correct, this is not possible in the textbox control. Is this possible to do in the richtext box control? How? ...
Score Crystal Report tables without Database ? AND getting the Print Eve
Fabian - 4 Nov 2005 12:22 PM - 4 messages
Hello, Iam searching for a way to design a letter with Crystal Report. Now I want to imlement a table. I have the Data in a ArrayList, but it will not be able to make a Database, so I need a way to insert all the data from my ArrayList ...
Score form and delegates
Pohihihi - 4 Nov 2005 11:20 AM - 3 messages
I have form A, B, and C For C can be called from A or B but when ever something happence in C few things on form A needs to be updated. First way was register callback on A for B and then register call back on B ...
Score Asp repeater & LinkButton
Peter Kirk - 4 Nov 2005 8:56 AM - 3 messages
Hi are there any "gotchas" with using an asp:repeater that means that the "onclick" method of a LinkButton created in the repaeter does not fire? I at least cannot get it to work. I have a webpage where the user can enter ...
Score Help calling an unmanged function on Windows Mobile
Paul Sneddon - 4 Nov 2005 8:55 AM - 3 messages
Hi, I'm using VS.NET 2005 RC to create Windows Mobile apps.  I'm trying to call the following shell function which is new on Windows Mobile 5. SNDGETSND [link] ...
Score A Function That Compares the Properties of Two Arrays
Ben - 4 Nov 2005 8:54 AM - 2 messages
Hi There I am learning about reflection so apologies if this post is vague ... I am doing some unit testing and have written a function that accepts two objects and tests to see if their properties are equal.  It seems ...
Score A Function That Compares the Properties of Two Objects
orekinbck - 4 Nov 2005 8:50 AM - 5 messages
Hi There I am learning about reflection so apologies if this post is vague ... I am doing some unit testing and have written a function that accepts two objects and tests to see if their properties are equal.  It seems ...
Score how do i navigate to the windows system directory?
Optimus - 4 Nov 2005 3:22 AM - 2 messages
i'm finding the way to be able to navigate through the window system directory so that I can move up to the parent's folder path of the current app domain directory. what the class in .net framework can I make use of to perform this ...
Score RegEx not found in System.Text.RegularExpressions???
Richard Lionheart - 4 Nov 2005 2:19 AM - 9 messages
Hi All, I tried using RegEx, but the compiler barfed with "The type of namespace 'RegEx' could not be found. Prior to this,  I had the same problem with  MatchCollection, but discovered it's in the namespace "System.Text.RegularExpressions;"  and that namespace ...
Score Window .Net Service
jjmraz - 4 Nov 2005 1:02 AM - 4 messages
Hi,   Heres the scenario: I have a couple of xml feeds coming in from another company. I would have a window service to check every so often for these xml files. The service would parse the xml data out ...
Score bot using dotmsn
Devang - 4 Nov 2005 12:11 AM - 2 messages
Hi i am developing a bot using dotmsn the following is a snippet of code from the C# windows app. This piece of code sends a message in response to the user starting the conversation & sending the message. The code after that creates a new ...
Score [IDE question] Aaargggh..I just want to see the path of the file!!
Javaman59 - 3 Nov 2005 11:55 PM - 4 messages
Visual Studio 2003/5 question... I'm in the solution explorer, looking at a file. I want to find it's path. The only way i know of doing this is to open it (with a double-click), then mouse over the tab title. ...
Score Writing MULTI_SZ to registry
Bry - 3 Nov 2005 11:41 PM - 4 messages
Having mastered reading a multi_sz from the registry into an array using: // Max of 999 is fine in this instance string[] myArray = new string[999]; myArray = (string[]) (myRegKey.GetValue("RegValue")); // myArray will now contain a small number of elements with data in ...
Score Service won't start as a non-Power User account
Tim Werth - 3 Nov 2005 10:59 PM - 7 messages
I posted this to microsoft.public.dotnet.general then I saw posts about services on this newsgroup.  So, sorry for the independent cross-posting. This might not be the best place to post this, but it looked the best from ...
Score writing ASP.NET code
John Salerno - 3 Nov 2005 10:47 PM - 4 messages
Do I need Web Developer (or anything else) to use ASP.NET, or can I simply include some ASP.NET code in an html file? (As long as the server has ASP.NET installed). ...
Score when is VS2005 really available?
John Salerno - 3 Nov 2005 10:45 PM - 2 messages
Are the Express Editions going to be available on the 7th? (Or at least ship on the 7th?) Amazon.com lists Nov. 28. It seems some of the Team Suites won't be available right away, so I didn't know if the Express ...
Score Hex char / string to Long
Bob - 3 Nov 2005 10:22 PM - 6 messages
Hi, It must be easy but I can't see how to this is done. I mean there will be a plethora of built in methods / properties DEVOTED to this fundmental need just waiting to be invoked right? It must be simple to find. Right in your face so to speak because NOBODY ...
Score User control Name
juracan - 3 Nov 2005 10:11 PM - 2 messages
I created a user control with a couple of radio buttons on it. When the user clicks on one of the radio buttons an event gets passed up along with the value of the radio button clicked. I then created a form with several of these controls on it. ...
Score transition a null value in database into a code
Przemo - 3 Nov 2005 9:45 PM - 4 messages
Hi, Imagine that we have a database and one table. Stored procedure returns 3 columns of table: ID, name, value. Name and value can be a null in database. How to map or represent such values in .net code? When I map a null value to a string or double variable I ...
Score System.DateTime conversion
DWW - 3 Nov 2005 9:22 PM - 5 messages
System.DateTime returns a string with the date and time.  I want to convert the time to an integer, for example, convert 10:24:45 to 102445.  Much research has turned up a myriad of variations on formatting using Parse and ...
Score C# vs VB
Andy - 3 Nov 2005 9:11 PM - 28 messages
Any good resources regarding benefitis by using C3 over VB? /Andy ...
Score Beginning C#
Andy - 3 Nov 2005 8:59 PM - 4 messages
And resources on the web /Andy ...
Score Beginning C#
Andy - 3 Nov 2005 8:55 PM - 3 messages
Preferable resources for C# 2005 /Andy ...
Score uneditable comboBox
justin.creasy - 3 Nov 2005 8:54 PM - 4 messages
I was wondering if anyone knew how to make a comboBox that cannot be edited, but works in every other way. I have tried setting the <comboBox name>.Enabled to false, but then I can't use the comboBox. I ...
Score Beginning C#
Andy - 3 Nov 2005 8:44 PM - 13 messages
Well, I've decided to learn C#. Are there any good, free quality resources out there for a newbie? I've noticed there are som for Vb.net on the Microsoft site. Anything similar for C#? /Andy ...
Score drag and drop AND drag
Marcel - 3 Nov 2005 8:15 PM - 2 messages
hello, I´m trying to do a drag and drop operation and drag the control, just like a windows icon, is that possible? my control is a custom form, so I detect the mouseDown event and call doDragAndDrop() and override WndProc : ...
Score safe "prompt for password" in console application
SharpCoderMP - 3 Nov 2005 7:33 PM - 3 messages
hi, i'm writing a console application and i would like to be able to safely retrive password from the user, so noone can see how it is being typed. consider this scenario: Console.Write("Enter password:"); string pass = Console.ReadLine() ...
Score Time zones and dates
Mark Rae - 3 Nov 2005 7:26 PM - 7 messages
Hi, I'm busy implementing a PayPal solution at the moment, part of which involves adding the PayPal transaction information to SQL Server for fulfillment, stock management etc. PayPal provides an internal mechanism for this, but supplies the date and time of the transaction in the following ...
Score Adding Add-In to larger Install .msi
Crash - 3 Nov 2005 6:36 PM - 2 messages
Hi, Framework v1.1 VS 2003 Installer 2.0 Tablet XP Need help with doing this by hand or if anybody knows a doc link with steps it would be greatly appreciated: I have a WinForms application with an Installer project.  Part of my ...
Score Formatting XML Output From XmlTextWriter
Ken Wilson - 3 Nov 2005 6:36 PM - 3 messages
I am writing and .xml file and am not getting the formatting I would like.  The portion of the code that is giving me problems is as follows; XmlTextWriter tw = new XmlTextWriter(filename); tw.Formatting = Formatting.Indented; tw.WriteStartDocument(); ...
Score Session variables
tshad - 3 Nov 2005 6:28 PM - 5 messages
I am writing some library routines to use in my asp.net pages.  They need to access my session variables, but I don't know what namespaces/libraries to access to make it work.  Asp.net already does that for you. ...
Score foreach variable scope
Primera - 3 Nov 2005 6:11 PM - 4 messages
I am trying to use the below to return different values of an int variable, but I seem to be running into scope issues as I cannot use the iSize variable outside of the foreach block. Any help is appreciated. ...
Score Lossing focus...
Diogo Alves - Software Developer - 3 Nov 2005 5:52 PM - 3 messages
Hi, I have a login windows that appears after the main application starts, my problem is that when the login window appears it loses the focus and became deactivated... I've tryied to put this.Activate on form_load, form_deactivate, form_leave... and its no use... ...
Score CArray marshalling
Silly - 3 Nov 2005 5:10 PM - 6 messages
I have a legacy dll that has an important function that takes a CArray<WORD,WORD>& as it's only parameter. The dll is used by a number of internal applications and so can't be changed. I am attempting to write a C# wrapper for this, so my team can begin ...
Score Distributed application
Curious - 3 Nov 2005 5:09 PM - 3 messages
Hi, I need to write a distributed application.  I am searching on the net to see what their is available regarding how to write distributed applications using the Dot Net. Can someone give me some help on what resources their are available ...
Score Query domain for SMTP address
Roger - 3 Nov 2005 5:07 PM - 3 messages
Is there a way to query a domain for smtp server?  For instance, I am sending mail to j**@microsoft.com, I want to contact smtp server at microsoft.com but smtp server is subdomain of microsoft.com, which I am ...
Score Select RichTextBox line
tb - 3 Nov 2005 4:35 PM - 2 messages
I need to select a particular line in a RichTextBox so I can perform formatting operations on it.  I have the line index, I just don't know how to select it.  Can anyone please help?  Thanks. ...
Score Predicate with param
Mirek Endys - 3 Nov 2005 4:31 PM - 4 messages
Is there a possibility to write an Predicate with param? I need to look for a value in Array, or in List, but this value is variable. How do I write something like this: class MyObject {     public Guid Id; ...
Score downcasting from a System.Array to an array of a specific type
Joe Doyle - 3 Nov 2005 4:26 PM - 5 messages
I'm trying to do this- .... void method1(System.Array arr) {     // happen to know all elements in arr are int's     // this line throws an InvalidCastException     int[] intArr = (int[]) arr; } yes, it's asking a bit much to have it work with that simple of syntax, but ...
Score Using More Than one Timer in Window Service .net
ABCL - 3 Nov 2005 4:20 PM - 2 messages
Hi, I am having problem with  using two timers into one Window Service. What does Happen when both Timers fire event at same time? If Both fires same time How  can I  force  Service to execute ...
Score C# v VB.NET - any research on usage?
Robin Tucker - 3 Nov 2005 4:13 PM - 73 messages
I need to find some documents/research for my manager about VB.NET v C# use. I've noticed that there are many more people using C# than VB.NET, that there seem to be more job vacancies specifying C# and projects written with ...
Score Using only specified Assemblys
René P. - 3 Nov 2005 4:05 PM - 4 messages
Hello, i have a little application that search into a special folder to assemblys. Founded assembly would be load by Assembly.LoadFrom(). Is there a way to load only assemblys that are from my company? I would not that 3th party assemblys are loaded. So if i copy an assembly into ...
Score IList<> object initialization problem
Lonifasiko - 3 Nov 2005 4:00 PM - 6 messages
I've got this in my code, that is, we're inside a class called Patient, so a Patient can have Appointments: private IList<Appointment> _appointments = null; public IList<Appointment> Appointments {            get ...
Score Can't initialize .Text property in constructor
norvinl - 3 Nov 2005 3:49 PM - 3 messages
Hi, I have a textbox on a form. When I assign a string to the .Text property while in my form's constructor, the program just hangs indefinitely. Alternatively, if I assign the string to the form's .Text property, it ...
Score Can't initialize .Text property in constructor
norvinl - 3 Nov 2005 3:49 PM - 3 messages
Hi, I have a textbox on a form. When I assign a string to the .Text property while in my form's constructor, the program just hangs indefinitely. Alternatively, if I assign the string to the form's .Text property, it ...
Score DataTable from Array
pagates - 3 Nov 2005 3:42 PM - 5 messages
Hi All, I have a need to create a generic DataTable using data in a 2D array of strings (I do not have direct access to the database, and am given the data via another program that I do not have control over). ...
Score Accepting a value form another program
JoeD - 3 Nov 2005 3:13 PM - 4 messages
I am creating a popup window based on a value that is sent to me.  Another program is calling the popup windows. Basically by calling the popup program: C:\screenpop UUI: XXXXXXXX My question is how do I accept that value into a search text field in my ...
Score FindWindow in a Service DLL
victor <> - 3 Nov 2005 2:56 PM - 6 messages
Help .... This is my situation: I've made two apps, a Managed C# and an Unmanaged MFC. The C# app communicates with the MFC-app via (Win32-API) PostMessage, done with the P/Invoke method. One of the activities is "FindWindow". Everything ...
Score dataset.writeXml
Christina Androne - 3 Nov 2005 2:32 PM - 3 messages
Hello I am using the dataset.WriteXml method to convert a dataset's content to an XML string which will be parsed later on. I initally used WriteXml with a stream parameter, then got the string representing the XML from ...
Score How to check if there is a new file in a folder?
Lakesider - 3 Nov 2005 1:58 PM - 5 messages
Dear NG, I want to check if there is a new file in a specific folder. If I copy a big file into the folder (while the programm is running), I already can access it. There is the problem: how can I check if a file is ...
Next »