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# > august 2003 > threads for thursday august 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 31

Indexer and Items property
Posted by Dotnetjunky at 8/21/2003 11:47:18 PM
Hi all Is it correct that there's a link between indexer and Items property in C# ? If yes, please show me what is it ? thanks in advance. -- Dotnetjunky ...more >>


Make a C# program print its compilation date?
Posted by Michael A. Covington at 8/21/2003 11:11:19 PM
Is there a way to make a C# program print the date on which it was compiled? Finding the file date of the executable is one way, but it's not foolproof. Thanks! ...more >>

C# & UML
Posted by Léopold VALLAURI at 8/21/2003 10:23:18 PM
Hi I would like to know ... what UML Editor are U using with C# project ? thx ! ...more >>

P/Invoke and **struct
Posted by Gary Desrosiers at 8/21/2003 10:18:51 PM
Anyone have an example of calling DLL functions that take a pointer to a pointer to a struct. In C it would be: some_struct_t *param; func(&param); in C#, I've got: [StructLayout(LayoutKind.Sequential)] public struct ppStruct { public IntPtr ptr; } public class libwrapper { [DllI...more >>

Problem in directory operation in TreeView
Posted by Steven at 8/21/2003 8:13:09 PM
Hello, I have a problem in using TreeView. I have made a dialog with TreeView. When I open this dialog , the Drives in the computer could be show in this TreeView.This time, I click the node of directory and get into the directory of "my Directory", then , I close the dialog. Ne...more >>

Replacement XP style toolbar
Posted by Kieran Benton at 8/21/2003 7:36:38 PM
Has anyone come across a free toolbar of this style? Im really miffed at the native one it just looks awful. Any good replacements? Thanks Kieran ...more >>

using HttpWebResponse to get POST variables
Posted by david.billson NO[at]SPAM rtraction.com at 8/21/2003 7:16:48 PM
Hi all, Fairly straight forward problem. I have a Post using HttpWebRequest that posts data to a server. That server then posts data back to me. Posting the data's not a problem, however I'm wondering if there is an easy way to read back the variables that are returned. If not, I'm left crea...more >>

Display the exact version of .NET in use?
Posted by Michael A. Covington at 8/21/2003 7:07:07 PM
Is there a simple way to make a C# program display the exact version (and sub-version) of .NET Framework that it is using? ...more >>



Looking for flowchart control
Posted by agent at 8/21/2003 6:59:16 PM
I am looking for ActiveX or .NET controls that would allow me to draw flowcharts. Besides a rich UI I strongly favor components that expose their APIs as much as possible . Any recommendation? Thanks....more >>

Dynamically Loaded Assemblies and InvalidCastException
Posted by Max Bolingbroke at 8/21/2003 5:37:29 PM
Hi! I've run into a problem with my app, and I feel sure I'm missing something really basic! Essentially, I have a plugin architecture, so my main application searches a directory for DLLs, then uses System.Reflection.Assembly.LoadFrom to load them up. These instances are scanned for classe...more >>

opening form by name
Posted by Ahmet AKGUN at 8/21/2003 4:59:22 PM
Hi; is it possible to open one form in .net platform that we have its name in string ? I have string sFormName = "frmCustomer"; and I must automatically open Customer form. or is it possible to get one referance of an item on form ? i mean, ctrlText = xxxx("textBox1"); ctrlText .Enabl...more >>

Calling Constructor from within the class.
Posted by Zoury at 8/21/2003 4:40:59 PM
Please set your clock, you have future posted... ...more >>

Using a DLL in C#
Posted by Stephen Holly at 8/21/2003 4:37:46 PM
Hi All, I have some source code writen in c that implements the blowfish encryption algorithm which I have created as a DLL and want to use it in a .NET solution. I want to pass some params and get the encrypted string from it. I have managed (as a test) to get my dll to return an integer ...more >>

How count records retu
Posted by Ronald S. Cook at 8/21/2003 4:34:21 PM
I have the following code for which I would like to know how many records are returned. G2BTel.Classes.MSO objMSO; objMSO = new G2BTel.Classes.MSO grdMSO.DataSource = objMSO.SelectMSO(); It is a SqlDataReader object being used in my class and that is returned, but how can I know how many r...more >>

global variables?
Posted by Daniel Bass at 8/21/2003 3:56:34 PM
how do i declare a global variable in c#.net? it's like it want's everything in classes... there are times when globals are good, like having constants in a program which apply to several layers/objects/etc... or does it expect me to create a singleton global class structure? surely it's not...more >>

How to handle sql queries
Posted by Mikael Janers at 8/21/2003 3:41:45 PM
Hello! I have a question that is not realy only C# but I didn't find any better group... What is the most common/best way to handle sql queries in C# 1) Should I use stored procedures ? I like them because I have all my queries in one place, easy to find and update... But I dont like them...more >>

Can C# listen for system events?
Posted by Alex at 8/21/2003 2:45:55 PM
I am trying to determine if C# has the capabilities to listen for system events when the application does not have the window's focus. I am writing a windows application that I would like to run in the background when I am using my computer. I would like this windows application to utilize the...more >>

Calling Constructor from within the class.
Posted by MC D at 8/21/2003 2:23:30 PM
Is it possible to call an objects constructor method from within the class somehow? The class I have populates itself with data from a sqlServer database when it is constructed, and I want to expose a method like "refresh" which, essentially just "remakes" the object. However I can't do: thi...more >>

List od SQL Servers, Database and Tables
Posted by M at 8/21/2003 2:22:11 PM
In .NET (pref. c#) how does one get a list of all available SQL Servers, databases and tables. I need to allow the connection to a database, etc, on the fly. kind of like what happens in SQL Query Analyzer thanks m ...more >>

will new version of C# let me do this
Posted by Gary Brewer at 8/21/2003 2:17:30 PM
It would be cool if I could use what I evaulate in an if statement useable in its code block for example if(g>3434) { g=rightHandValue } g would not be 3434 if it was bigger than 3434 Gary Brewer ...more >>

can't concat more than 2 strings
Posted by Nikhil Patel at 8/21/2003 2:03:38 PM
Hi, I have following line in my c# code. string strDDEExpression="[Replace(" + strWorkArea + ","; When I run this and check the value in strDDEExpression, I find that the comma is missing. Any idea? Thanks... -Nikhil ...more >>

Newbie: importing namespaces in ASP.NET and IIS
Posted by ahakim99 NO[at]SPAM yahoo.com at 8/21/2003 1:29:21 PM
Hi if you have a page called name.aspx and in there you want to use the methods available in a custom class such as: using System; namespace tester{ public class testclass { public String myString; public void setMystring(){ myString = "hello world"; } publ...more >>

How to move a button around the form at RUNTIME ? (c#)
Posted by Sagaert Johan at 8/21/2003 1:09:31 PM
What is the cleanest and most efficient way to move a button or picture around the form at RUNTIME ? I want to achieve similar results like the form designer at design time. Johan ...more >>

database constraints, quick ways???
Posted by ozgur develioglu at 8/21/2003 12:19:55 PM
hi everyone, I've a USER table which contains USERNAME column. I try to keep usernames unique. When I'm adding I new user, I frist go to database and check if that username already exists and if no I add that user. As you see I went to database two times. In order to do this can I set the...more >>

Debug SoapHttpClientProtocol.Invoke
Posted by bmanley NO[at]SPAM granite.com at 8/21/2003 12:05:47 PM
Newbie question here... Is there any way to get a wsdl.exe generated proxy to dump the outbound XML it sent ( or will send ) to a web service? Thanks for any info... CS...more >>

toDate conversions
Posted by kutuzof NO[at]SPAM yahoo.com at 8/21/2003 12:01:08 PM
can I convert a date string like 20031231105718 which is in format yyyymmddhhmmss into a normal date string? can I say someting like date format yyyymmddhh:24mmss then make that string a date and then convert? thanks a bunch...more >>

Regex puzzle
Posted by Alan Pretre at 8/21/2003 11:48:24 AM
Can anyone help me figure out a regex pattern for the following input example: xxx:a=b,c=d,yyy:e=f,zzz:www:g=h,i=j,l=m I would want four matches from this: 1. xxx a=b,c=d 2. yyy e=f 3. zzz (empty) 4. www g=h,i=j,l=m None of the letters here are single letters, but rather pla...more >>

.net framework version displayed in Visual C#
Posted by CS Kirk at 8/21/2003 11:42:31 AM
I am new to Visual C#. My question relates to installation and what version of .NET Framework C# is seeing. I installed Visual C# while I had .NET Framework v1.03. Later, using Windows Update in IE I tried to update .NET Framework from v1.0 to v1.1. It refused to update like that, always ...more >>

Switch v If statement
Posted by Alvin Bruney at 8/21/2003 11:04:40 AM
Is a switch more efficient than an if statement? I observe thru the debugger that a switch statement jumps directly to its case handler where as an if statement examines all conditions sequentially. Is that a trick of the debugger or is a switch quicker by O(n). ...more >>

Programming Connventions
Posted by Sassano Angelo FH Weingarten at 8/21/2003 10:28:56 AM
Hello, I look for Programming Conventions about C#. mfg Angelo Sassano ...more >>

UDL file and SqlConnection
Posted by Tom Hartnett at 8/21/2003 10:10:59 AM
I just noticed that the SqlConnection class will not accept "file name=c:\SomeUDL.udl" as its connectionstring property. However, the OleDbConnection class will use it. Can anyone tell me why? If the SqlConnection class is optimized to work with SQL Server, I'd rather use it, but I don't wan...more >>

Calling a WebService through HTTP GET ? (HELP!)
Posted by Benne Smith at 8/21/2003 9:56:49 AM
Hi, I have a simple webservice, with one function on the following local path : http://localhost/testws/tester.asmx I would like to call it, using HTTP GET (or some form of simple, url with all the parameters in), like this; http://localhost/testws/tester.asmx/myfunction?param1=hello&pa...more >>

Checking Domain Group Membership
Posted by Scott at 8/21/2003 9:54:13 AM
I need to be able to verify group membership in my C# application. All the examples I seem to find show how to query the BUILTIN groups. I need to be able to query the DOMAIN groups. Can I have code examples on how to accomplish this. I tried the following code (in a test Console Appli...more >>

Set a Culture to an Assembly
Posted by Rudolf Ball at 8/21/2003 9:35:02 AM
Hi NG, I am loading an Assembly a = Assembly.LoadFrom(sample.dll); into my project. When I create an instance of that assembly, I want to set the thread to a specific culture, eg. de-AT. Please, has anybody an idea how I can do this? Thank you very much, Rudi ...more >>

WMI provider programming
Posted by Raja at 8/21/2003 8:43:04 AM
Hi I would like to know, there is any possibility of developing WMI provider in C# code. Since I can see a wizard avalialbe with .NET 2003 ATP project which develops only C++ code. But if I want to develope the code in C# for WMI provider.I donnt know excatly wheather it is possible or...more >>

How to change security setting in file properties?
Posted by tc at 8/21/2003 8:05:52 AM
I would like to change the security settings in file properties. What can I do? Any idea? Thanks ...more >>

Setting a Custom Print Size: BUG?
Posted by Jordan at 8/21/2003 6:21:59 AM
I have written a small C# application that will print out labels from a little label printer we have. However the size (how long the label is) is determined by a database call. I need to specify a custom paper size every time the print button is clicked. Is there a way to set a custom ...more >>

int32.parse
Posted by Mike P at 8/21/2003 6:15:39 AM
Can anybody convert this from VB.NET to C#? If Int32.Parse(ID) = Int32.Parse(dt.Rows(iLoop)("ID")) then Return iLoop End If Thanks, lfc77 *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!...more >>

If .net and j2ee are so great...
Posted by 43 at 8/21/2003 5:22:49 AM
how come m$Office isn't written in .net? how come Open Office isn't written in j2ee? how come dbms systems aren't written in either? how come browsers aren't written in either? how come RealPlayer, MediaPlayer and all applications that need speed are written in c++ ? (except for Lime...more >>

COM+ with C# Client as well as C# ServicedComponent......
Posted by ideas2050 NO[at]SPAM math.net at 8/21/2003 4:13:41 AM
[SUMMARY]: This is general query seeking opinions about COM+ Development wherein Server [COM+ Components] is developed in C# [as ServicedComponent] and Client accessing that across machines is also C#. Wish to seek experienced words on issues of COM-.NET interop that is playing major decisi...more >>

Executing external executibles via API in C#
Posted by anon NO[at]SPAM anon.com at 8/21/2003 2:57:14 AM
I was wondering if anyone could give me any information on accessing the API to run external EXE's such as to run something like the Command: csc /t:library somefile.cs of course this will create a dll from the shell command prompt. Is there a way to do this via C# and issue the command to...more >>

C# Format Specifiers Help.
Posted by Kevin at 8/21/2003 2:02:45 AM
I am looking for a way in C# to format my output. I want to be able to specify a disply width and then have the variable printed at minimum with that width. I can accomplish this is C and C++ as follows: C - printf("%5d", someInt); C++ - cout << setw(5) << someInt; What is the C# eq...more >>

Problem setting Form.height above 1000px on displays with 1024x768 (.Net framework 1.1)
Posted by mikkel.faarup NO[at]SPAM capgemini.dk at 8/21/2003 12:29:20 AM
Hi All I am are experiencing difficulties setting Windows.Form heights above around 1000px on screens with the resolution set to 1024x768. The form is simply cut off and a scrollbar is set. The form is inside a mainform and consists of a tabpage-control - these tabbed pages should be shown i...more >>


DevelopmentNow Blog