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# > october 2003 > threads for tuesday october 28

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 31

windows services
Posted by cs at 10/28/2003 11:35:39 PM
I noticed there is some .net services on my winxp. One or two mention the CLR. Does that mean that my .net apps/services wont run before those services start? I need to run my service as early on as possible, it doesnt even need to be a service if there is a way to run .net apps before that, any...more >>

Call C functions in C#
Posted by Christopher Sin at 10/28/2003 10:59:00 PM
[repost, nobody have seen this message ?] Hi, First, if I am on a wrong group, please tell me, therefore, i think this one is correct. Second, please ignore my poor English speaking. I have to write a c# wrapper to a C library. This is OK, but I have difficulties with some functions ...more >>

How to make C wrapper around C# code
Posted by neveu NO[at]SPAM pacbell.net at 10/28/2003 10:44:27 PM
I need to create a dll out of C# code that can be called by a lisp compiler/interpreter (Cormanlisp) that has a C foreign function interface. How do I create a C wrapper around my C# code? Thanks, Charles...more >>

Problem in MessageQeueu.Receive
Posted by Seenuvasan at 10/28/2003 10:33:09 PM
Hi GentleMans, I have problem with MessageQueue.Receive. Actually i'm monitoring a queue in a discontinued loop. This is working fine. But the memory and hanldes are keep on increasing. Anybody knows about this probelm to rectify, please let me know. Thanks Guys., Seenuvasan B....more >>

simple questions
Posted by Harry P at 10/28/2003 10:13:22 PM
I started with Visual C++ 6.0 and have gotten C#.NET though I haven't had time to use it yet. What is the nutshell difference between C++.NET and C#.NET and if I had C++.NET will it install easily as I've already configured the system to what C#.NET requires. I would be doing small aps in ...more >>

Problems with border & forms
Posted by Willem at 10/28/2003 9:49:21 PM
Hi all, I have a form with a special border on left side. This must obey the rules of a title area. How can I set the client region of this form without this area? (I want that control with property Dock = fill doesn't 'invade' this special area) Thanks willem (sorry for my orrible Eng...more >>

Marshal & Hwnd - Please Help.
Posted by Juan Irigoyen at 10/28/2003 9:45:03 PM
I have the next code byte[] data = new byte[14]; Marshal.Copy(this.Hwnd, data, 0, 4); this code compiled well, but when i execute the code receive a error. How can copy this.Hwnd (Handle of MessageWindow type IntPtr) to the first 4 bytes in data ? Thanks. ...more >>

How to subclass System.Runtime.Serialization.Formatter?
Posted by Andreas Huber at 10/28/2003 9:44:25 PM
Hello there I need to serialize/deserialize some pretty simple data structures (no inheritance, few has relationships, ~20 classes) in three formats. One is XML (structure is not important as long as it's human-readable and modifiable), and two are proprietary binary formats. For XML I'll use ...more >>



Layout manager issue when docking panels?
Posted by Kerry Sanders at 10/28/2003 9:08:24 PM
I was playing around with a new Windows form yesterday. I wanted to drop two panels on the form. The first would be set Dock=Top. The second would be set Dock=Fill. So, I dropped the first panel and set its Dock property to Top. I then dropped the second panel on the form and set its Dock ...more >>

Hex String Formatting
Posted by David Hall at 10/28/2003 8:51:11 PM
byte b = 10; Console.WriteLine("{0} = 0x{0,2:X}", b); // This example displays "10 = 0x A". Note the space between 0x and A // I want it to display as: "10 = 0x0A" Note the zero between 0x and A // How can I change the format string // to pad it to 2 digits using a leading 0 if necess...more >>

Invoke a form method from a class
Posted by Mel at 10/28/2003 8:51:04 PM
I am in my class and I want to invoke a method on my form. I made my form method public. But I don't see it through intellisensing. Any ideas?...more >>

Font change ...
Posted by Hariharan S at 10/28/2003 7:09:15 PM
Hi Guys, Have an issue with the Font object. I have a text box in which I can enter text and I have included a small button which upon selection, should enable me to change the newly entered text into bold. But it is not what is happening. All the previous information entered in the regular...more >>

Problems with Crystal and MySQL
Posted by Jose_csharp at 10/28/2003 7:00:24 PM
Hi, I´m programming with C# and I want to create a report linked with a database of mysql. When I execute de solution appear the next message: "Failed to open a rowset" Any solution? Maybe it isn´t possible to link crystal and mysql? Thanks. ...more >>

Generate WindowsHelp from C# source code
Posted by Zoltan Hernyak at 10/28/2003 6:47:07 PM
Hi, How can I generate a Windows help file (CHM or HLP) from my C# source code? I commented every class and methods and fields, and generated a DLL, but how can I generate a class description like the MSDN? thanks, zoltan...more >>

CD opener/closer @ tray icons.
Posted by Tomo Ferega at 10/28/2003 5:51:48 PM
I'm trying to write a simple program which ejects CD if closed and closes it otherwise. Problem is, I have no idea how to do it or where to start looking. So any help would be appreciatd. Also, any advice on how to use system tray would help. Thanks. - Huitzilopochtli ...more >>

ARCHITETURAL QUESTION
Posted by Bruno Rodrigues at 10/28/2003 5:48:04 PM
Hi all I'm using the following code standart in class libraries. I will not split this function in more layers, but I want to know if there are some architetural improvement to do in my code. E.g: Database connection; Try/Catch use; DataTable as a set of rows; etc... Any suggestions ...more >>

Listview Column Header Autosize Bug ?
Posted by Cybertof at 10/28/2003 5:01:34 PM
Hello, Do you know why in the following code the result is a column of size 0 ? (in the doc it says to use -2 to autosize column header...) ColumnHeader MyColumnHeader = new ColumnHeader(); MyColumnHeader.Text = "col1"; MyColumnHeader.Width = -2; // if you remove this line col appears MyL...more >>

Exception occurs before Main
Posted by Ray Mitchell at 10/28/2003 4:41:54 PM
I got the following exception: "An unhandled exception of type 'System.ExecutionEngineException' occurred in Unknown Module." I put a breakpoint at Main() but the exception occurs before it even gets there. Any ideas, suggestions? Thanks, Ray Mitchell...more >>

Press Q to Quit (console app)
Posted by WildHare at 10/28/2003 4:35:04 PM
I have a console application that I want to continue to run until I press a key. How can I get a keypress without stopping execution? Thanks. ...more >>

SQLServer error
Posted by '[] WiRaN at 10/28/2003 4:26:39 PM
i'm using SQLserver in other station, in conect event the error happens: "Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection." help me? ...more >>

With - End with block in C#
Posted by Zeljko at 10/28/2003 4:21:49 PM
Hi, I moved from VB6 to C# recently, and am very satisfied with the result. However, I miss this one feature. The closest thing I could find is "using" statement, but it requires object to implement IDisposable interface, and it won't save me the trouble of typing the variable name. What I wa...more >>

form's icon
Posted by Vic at 10/28/2003 4:10:27 PM
I am trying to change an icon associated with my application's main form and the application itself. 1. I selected my main form in IDE "Solution" tab and went to "Properties" window. 2. I found "Icon" property, browsed for and selected a new icon. 3. I noticed the icon changed on my form 4. ...more >>

chr() equal function in c#?
Posted by balakumar at 10/28/2003 3:29:16 PM
whats that equal function vb chr() to c#? Thanks balakumar...more >>

Filtering by DateTime datatypes
Posted by mjones NO[at]SPAM owensinc.com at 10/28/2003 3:21:16 PM
I need to read and filter data from a data table on a remote sql server. The data needs to be filtered by a column DateTimeIn. I need to filter a week's worth of information depending on what a user inputs as the StartingDate. I'm using C# and what I've done is the following: - I created a ...more >>

Exponents Major ?Bug?
Posted by Shawn B. at 10/28/2003 3:15:51 PM
Greetings, I have the expression that works in Excel, Javascript, and VB.NET: B1 = 18 10^(3*(B1)/1130)*6 Result: 6.697903112 When I evaluate in C#, float B1 = 18; double x; x = (3*B1/1130) * 6; x = Math.Pow(x, 10); I get the wrong result. Funny, when I add that Math....more >>

How do I display a framework color picker?
Posted by Morten Wennevik at 10/28/2003 3:12:06 PM
The color dialog in Visual Studio is ok, but I would like to display the= = framework color picker (like the color picker in Visual Studio). Is there a class for this, or do I have to create a list of all colors a= nd = draw each color on my own? -- = Using M2, Opera's revolutionary ...more >>

Modules
Posted by The Last Danish Pastry at 10/28/2003 3:07:56 PM
When I am debugging Debug|Windows|Modules displays a list of modules names, versions and timestamps. How, programmatically, could I get this information? -- Clive Tooth http://www.clivetooth.dk ...more >>

DataGrid scrolling
Posted by john sutor at 10/28/2003 2:55:22 PM
Does anyone know if you can display vertical scroll or horizontal scroll bars on the datagrid ??? ...more >>

Best Practices for OOP
Posted by Joe Kasta at 10/28/2003 2:46:52 PM
Hi, I'm trying to determine what the proper way to create objects would be in C# (or any language, practically). There are two different ways of implementing objects that I can see, and I hope someone can give their two cents as to which is more preferred. Object 1: Have a Class with readon...more >>

Disconnected Recordsets vs. DataSets
Posted by fogger00 NO[at]SPAM hotmail.com at 10/28/2003 2:41:47 PM
I'm a long time VB6/ADO and Java developer new to ADO.NET. I'm trying to decide on best practices and I'd appreciate any assistance. I have one specific question and another more general architectural one: 1. How can you pass around a disconnected DataSet/DataTable, make changes to it and th...more >>

EventHandlers syntax
Posted by news.microsoft.com at 10/28/2003 2:38:01 PM
Hi, Why was it decided to implement subscribing an observer to an event with += and -= operators and not providing some kind of .Add and .Remove methods? Wouldnt this be nicer? having it as something.EventHere += new BlahHandler(class.method): instead of something.EventHere.Add(c...more >>

about System.DirectoryServices.SearchResultCollection Class.
Posted by hykim at 10/28/2003 1:54:26 PM
Hello, everyone. according to MSDN, there is any constructor of System.DirectoryServices.SearchResultCollection Class. if I implement DirectorySearcher.FindAll() method by myself, then how can I instanciate SearchResultCollection Class. more clearly, a SearchResult object is created, at the i...more >>

How to read a color from registry?
Posted by Morten Wennevik at 10/28/2003 1:06:47 PM
Saving a color object to registry will set it's value to something like "Color [Red]", or "Color [A=3D255, R=3D123, G=3D234, B=3D231]", but how do I get this back into a Color object??? Casting it to Color only causes an exception. -- = Using M2, Opera's revolutionary e-mail client: http:...more >>

alert or msgbox
Posted by xhenxhe at 10/28/2003 12:57:36 PM
How do I do a simple message box in C#? Thanks, Newbie ...more >>

Activate other process
Posted by Bsiang Tan at 10/28/2003 12:26:26 PM
Is there any way to activate or bring the process to front ? For example, my application will run the windows calculator. After certain process, I will need to activate the calculator... I know how to runthe windows calculator.. is Process.Start("calc.exe") but when I wish to activate the i...more >>

SetMinThreads Call returns true, but does not change value
Posted by Tim Begin at 10/28/2003 12:16:10 PM
I am attempting to use the ThreadPool.SetMinThreads method as shown in the MSDN example code: int minWorker, minIOPort; int newWorker,newIOPort; ThreadPool.GetAvailableThreads(out minWorker, out minIOPort); bool flag = ThreadPool.SetMinThreads(4, minIOPort); ThreadPool.GetAvailableThreads(out newWo...more >>

events
Posted by Marco Martin at 10/28/2003 12:15:23 PM
Hi, I'm writing an application that reads a serial port and 1)updates a list and sends data to a graph. When I run the application, nothing happens unless I put a break point anywhere in my code. then I can see the data and everything gets updated, until the next time I put a break in the ...more >>

HTML Dead
Posted by Alvin Bruney at 10/28/2003 12:08:56 PM
I've heard talk that a Beta for this product is out or slated for end of year to replace HTML from Microsoft. Can anybody confirm? I'd really like to get in on the alpha...so I can write a book and make tons of money when it comes out. And consult for a wad of cash like them jedi knights. -...more >>

Calling event from a separate class
Posted by joshk NO[at]SPAM geoaccess.com at 10/28/2003 11:49:00 AM
I have a windows form that opens up another windows form on top of it. I'd like the newly opened window to call an event on the parent to refresh it's data on the screen, as the new window closes. Does somebody have an example of how to do this? The problem I'm having is using that particular...more >>

COM Object declarations in C#
Posted by nique at 10/28/2003 11:45:50 AM
Hello, I am trying to convert a simple application I have written, first in vb6 then to vb.net and now I would like to convert it to c#. The part that I am having problems with in c# is referencing the objects. I keep getting the error "Can not implicitly convert 'object' to(whateve...more >>

Longhorn, what does everyone think?
Posted by jeremy NO[at]SPAM pdq.net at 10/28/2003 11:31:47 AM
Just spent some time browsing around here: http://msdn.microsoft.com/Longhorn/ I can see the benefits from WinFS (as long as we tag all in-coming data this should be nice, tagging everything could be a tedious process though) but I haven't been able to pick up the practical advantages of XAML...more >>

problem developing complex UITypeEditors...
Posted by Tim Johnson at 10/28/2003 11:31:00 AM
Hi all, I'm a little bit stuck, so wondering if anyone has encountered this issue before. I am developing a toolkit which is fully integrated in Visual Studio .NET, and so there are lots of UITypeEditors which display modal forms, and TypeConverters and so on. The problem is that when I ...more >>

Serializing properties
Posted by Rein Petersen at 10/28/2003 11:08:18 AM
Hi Folks! Here's a strange behaviour: Without a properties SET accessor (see code below), the property will not serialize. public class myObject { private string _myAttribute; [XmlAttribute("MyAttrib")] public string myAttribute { get { return _myAttribute...more >>

Get full name of user
Posted by Chris Clement at 10/28/2003 10:55:45 AM
I am trying to get the full name of a user not logged into a network on Windows 2000/XP. I know how to get the user name (cclement), but how do I get the full display name (Chris Clement) as it is displayed in the start menu in Windows XP? Any help is appreciated. Chris ...more >>

String Formatting
Posted by jstroh NO[at]SPAM digipen.edu at 10/28/2003 10:40:06 AM
I have a 512 character string and I need line breaks every few characters. What's a good way to do this in C#?...more >>

any basic C# chart ctl?
Posted by Dan at 10/28/2003 10:27:15 AM
I'd need a simple free C# charting control, just do draw a lines graph with some custom text labels at the x-axis. I saw many commercial products but I don't need all that features, I'd just like a light and FREE c# control; I could write it by myself, but before reinventing the wheel I'd like to...more >>

Value Types and Reference Types
Posted by Rafael Veronezi at 10/28/2003 10:12:38 AM
Just to fix, correct me if I am wrong... With reference types (objects), if I assign an object to another, the assignment will be the address of the object, and not a copy of it's contents right? With value types (structs), if I assign an object to another, I'll be copying it's data to the left...more >>

Overriding Methods and Virtual members in CS
Posted by Rafael Veronezi at 10/28/2003 10:02:38 AM
I have some questions about override in inheritance, and virtual members. I know that you can you override a method by two ways in C#, one, is overriding with the new keyword, like: public new bool Equals(object obj) {} Another is using the override keyword, like: public override bool E...more >>

How to delete thread from a ThreadPool
Posted by Mullin Yu at 10/28/2003 9:58:59 AM
As subject. How can an main application delete/reset a thread at the ThreadPool? There's no method provided by ThreadPool? Thanks! ...more >>

Visual Modeling that generates C# code
Posted by timconner NO[at]SPAM hotmail.com at 10/28/2003 9:57:46 AM
Does anybody would recommend a tool in which I can model my classes and then generates C# code ? In Delphi I used to do this with ModelMaker(http://www.modelmakertools.com/), which generated me really nice pascal sources. I am looking a similar tool to work with C#. Thanks in advance,...more >>

How to Compile Program?
Posted by ping at 10/28/2003 9:45:25 AM
Hello everyone! I had already installed VC6.0 in my computer, then i installed the Vs.net. I wrote some programs of vs.net with the UtraEdit and compiled them in command line. For example, i wrote a program of Hello World with C# language: using System; class MainApp { ...more >>

Questions
Posted by pcPirate at 10/28/2003 9:33:39 AM
Hi, i) I've compiled a set of VB6 code into dll and add it (as a reference) into my C# program. When I clicked "Run", the program windows run pretty well. When I clicked the "Close" button of the windows, the program didn't stop fully, which made me have to click the "Stop" from the compiler. ...more >>

Dynamically creating a class from it's string name
Posted by blue at 10/28/2003 9:13:48 AM
I have a class called "MyClass". At runtime, I don't know that the class is of type MyClass but I do know the string name of the class. Is there a way to create an instance of a class when I only know it's name? I was looking at: Type myType1 = Type.GetType("System.Int32"); myType1 = 10; ...more >>

Datagrid
Posted by john sutor at 10/28/2003 9:12:22 AM
Does anyone know of a way to center the column headings on the DataGrid without centering the data in the columns? ...more >>

Simple XML parsing question..
Posted by Ivan Demkovitch at 10/28/2003 9:06:36 AM
Hi! I'm trying to parse RSS news feed with code as simple as possible. Simple XML: <?xml version="1.0"?> <rss version="2.0"> <channel> <item> <title>The situation of F1 in Russia</title> <link>http://www.grandprix.com/ns/ns12094.html</link> <description>R-Fast, the Russian Federation ...more >>

cannot pass array as a function parameter?
Posted by Matthew Louden at 10/28/2003 9:05:09 AM
When I pass an array as a function parameter, it yields the following compile error. Any ideas?? However, if I create a variable that holds an array, and pass that variable to the function parameter, then it's working fine. Any ideas?? Thanks! public static int[] getFreq(string[] s) {... } ...more >>

Comand line parameters in Visual Studio
Posted by CSharpUser at 10/28/2003 9:04:26 AM
How do I pass in command line parameters to the program at startup in Visual Studio. This is similar to doing csc program arg1 arg2. I want to achieve the same effect running the program in Visual Studio and pressing F5...more >>

Convert.ToDateTime
Posted by Mike P at 10/28/2003 9:03:19 AM
I've been using this code to get the date in the format dd/mm/yyyy with Culture="en-GB": DateFrom = Convert.ToDateTime(DateFrom.ToString("d")); Now I need to put the date in US format, so I've changed my Culture to "en-US", but the line of code no longer works, instead of 10/28/2003, I get ...more >>

cannot pass array as a function parameter?
Posted by Matthew Louden at 10/28/2003 9:02:24 AM
public static int[] getFreq(string[] s) {... } int[] res = getFreq({"eee", "ewsww"}); WordFreq.cs(7,23): error CS1525: Invalid expression term '{' WordFreq.cs(7,24): error CS1026: ) expected WordFreq.cs(7,29): error CS1002: ; expected WordFreq.cs(7,29): error CS1525: Invalid expression te...more >>

Deleted .aspx file
Posted by Martin Schmid at 10/28/2003 8:07:13 AM
I deleted a webform2.aspx (and the associated other .cs, etc file). However now when I try to compile it complains that it can't find the file... How am I SUPPOSED to remove a form that I no longer want... and what can I do to get the compiler to stop nagging me now that I have apparently done...more >>

Programmatic Delete of last char in a Richedit
Posted by ozbear NO[at]SPAM no.bigpond.spam.com at 10/28/2003 8:02:57 AM
The title says it all. Since a Richedit control doesn't understand a backspace character ('\b', or 0x08) when I receive one I need to programmatically delete the last character from the Richedit control. This is a WinForms application, not a webform. I have tried... re.SelectionLength = 1...more >>

Simple(?) DataView Question
Posted by Martin Schmid at 10/28/2003 7:27:26 AM
I am trying to implement a DataView for a DataGrid so I can sort at runtime by clicking on column headers. My initial page load works... it displays the data However, when I click a column heading at run time, the data doesn't sort as expected, in fact, the DataGrid becomes empty, all I see are...more >>

Clearing Variables
Posted by Tyros at 10/28/2003 6:53:33 AM
I'm new to C# and I'm dynamically creating a table control that contains a text control inside one of the cells. I load the values of each text field with an SQL call. The form is simple and I'm getting HR information from the DB. When the page loads the first time and looks up the customers inf...more >>

Adding help button to Title bar in C#
Posted by Abhi at 10/28/2003 6:25:12 AM
How can i add a Help button (button with ? mark on it) on the title bar of an application in C#....more >>

Select ODBC DSN
Posted by KG Kristinsson at 10/28/2003 5:54:23 AM
I am creating an application that uses DSN connection string to connect to a database (using ado or ole db). I like to allow the user to select already created DSN. I found out how to allow the user to create DSN (KB310083) but that is not what I want. Thank in advance kkristinsson ...more >>

Arrow Icons for C# project
Posted by Tom at 10/28/2003 5:47:43 AM
I am looking for some advice on where to find "free" clipart. I am in need of the following arrow icons > >* < *< Can anyone suggest where I can find some nice JPG's? Thanks Tom...more >>

Market for C# vs C++.NET?
Posted by Dan at 10/28/2003 5:14:29 AM
I'm not interested in opening up a debate between C# and C++.NET, just curious if anyone has a feel for how many current jobs are C# vs. how many want C++.NET. I'm learning .NET, and want to focus on the most marketable language first, learning the other later. Thanks, Dan ...more >>

c# & PocketPC
Posted by freddg NO[at]SPAM netcomuk.co.uk at 10/28/2003 4:57:10 AM
Hi all I did a small graphic program in c# for windows. Works well. After that I wanted to compile it for my pocketpc (2003) and I could not do it. GraphicsPath does not exist for pocket pc ? why is that ? how can i make it run ? thanks...more >>

Encrypt and decrypt files using c#
Posted by Anilza Popat at 10/28/2003 4:05:14 AM
I would like to know how to encrypt and decrypt files using c#. I want a program that asks for password before encrypt or decrypt the file. best regards...more >>

Setting up an event handler on a user-defined control
Posted by Liz at 10/28/2003 3:41:34 AM
As a newbie I have been trying to set up an event handler in my user-defined control to trigger an event in my form when lblSelectedClient.Text changes. I get an error on my event definition (****error here on event - says expected class, delegate, enum, interface or struct ****). The cod...more >>

new MAPI.Session() does not work!?!?!?
Posted by gerry.van.den.broek NO[at]SPAM logicacmg.com at 10/28/2003 3:38:15 AM
I am writing a program in C# which accesses data from Exchange. Code snippets have been copied from a VB-program. The VB-program does the following: 'create session and logon objSession = CreateObject("MAPI.Session") After this, everyhing works fine. In c# this looks like: ...more >>

Database
Posted by Mike B at 10/28/2003 3:07:35 AM
I'm new to C# (standard edition). I was trying to work with an Access detabase and a datagrid. When I drag a table from the Server Explorer to my form, I am getting an error generating UPDATE and DELETE commands ("could not uniquely identify the rows for Table1"). I have a key field define...more >>

Providing feedback during heavy calculation
Posted by dj_michielangelo NO[at]SPAM hotmail.com at 10/28/2003 2:59:15 AM
Hello everybody, I hope anybody can help me. I'll try to give a brief overview of my problem. I have running a program that performs a heavy calculation. To give the user feedback what the program is doing I show a window which contains a progress bar and a label. At some point during the exe...more >>

regex problem
Posted by philipl NO[at]SPAM vistatec.ie at 10/28/2003 2:20:23 AM
hi has anyone done something like this with regex? I want to make sure that certain characters has corresponding characters, which is pretty straight forward, but how would you do it so it's fail safe, for eaxmple with brackets, how do you do this in regex if there are many brackets in your s...more >>

Enumerating forms in an application
Posted by Rene at 10/28/2003 2:11:56 AM
I would like to know if there is a way for cycling through all the forms that are open in my application. In VB I would do something like this if I wanted to get the name of all the open forms: Dim frm As Form For Each frm In Forms MsgBox (frm.Name) Next Thank you. ...more >>

Line numbers in Release exceptions
Posted by Nick Bunton at 10/28/2003 2:11:48 AM
Does anyone know how I can get the line number of an exception when running in the Release configuration. I have tried the InnerException and the StackTrace of the Exception object but cannt seem to find line numbers. Thanks Nick *** Sent via Developersdex http://www.developersdex.co...more >>

Set Global EnvironmentVariable?
Posted by Dmitri Shvetsov at 10/28/2003 12:42:27 AM
Hi, Does somebody know how to create a new EnvironmentVariable, not only for a current session, but a global? I need to write something like an installation program and I want to add several global system variables for my application and a database. How can I do that? Thanks. Dmitri S...more >>

Overloaded function with ListControl parameter
Posted by Vit at 10/28/2003 12:40:25 AM
Hi. I'd like to pass as a parameter of class method reference to ListControl (ListBox or ComboBox). Here is my call: public DoSomething(ListControl lc){} It's ok with that, but lc does not have methods like lc.BeginUpdate; lc.EndUpdate but ListBox and ComboBox does have such a methods. I ...more >>


DevelopmentNow Blog