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# > june 2004 > threads for monday june 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

Best way to populate a form with a DataList link?
Posted by pandorastein NO[at]SPAM hotmail.com at 6/21/2004 11:54:59 PM
Hi there, I'm a J2EE fellow who (as usual) has been thrown in the deep end and have to learn a fair chunk of the .NET platform (VS, ADO, WebForms, C# etc) in roughly two days. I'm doing ok so far, but am wondering on a better way to do something... Basically, I have a form which has a few f...more >>


Network Active Event?
Posted by Edh at 6/21/2004 11:34:30 PM
Is there a system event or notification that I can catch in my application to know when any network connection has become active (WiFi, Dial Up, LAN etc...)? Example: I have a service that sits idle until it gets a "Network Active Event". This service runs on a laptop that may roam in and ou...more >>

XML Question
Posted by Michael C at 6/21/2004 11:23:43 PM
Hi all, Please excuse all the questions... I come from a VB 6 background and am trying to teach myself C#.NET. I appreciate all your help. My question now is this -- I have a simple XML file like this: <?xml version='1.0'?> <enterprise> <config> <load value1="10" value2="1...more >>

Bitwise Or and bitwise shifting.....
Posted by James Dean at 6/21/2004 10:55:11 PM
I am recoding a project in C#.....i just wanted to know if these are equivalent and give the same result.... old C++ code for ( long loop = 0; loop < ( longWidth_bytes - 1); loop++) { *lpbLine = ( *lpbLine >> charShift) | ( *( lpbLine - 1) << charShift_inv) ; lpbLine-- ; } f...more >>

system.directoryservices.dll
Posted by Troy at 6/21/2004 9:46:04 PM
Hello, I'm getting the following error when I try to compile my code from the command line. Any ideas? c:\ad.csc(6,14): error CS0234: The type or namespace name 'DirectoryServices' does not exist in the class or namespace 'System' (are you missing an assembly reference?) ...more >>

Graphics.MeasureString - varying results?
Posted by Yaron at 6/21/2004 9:07:46 PM
Hi, I made a procedure which receives a Graphics parameter, and with that Graphics parameter, performs various things. The area of confusion here is that when I pass the procedure a Graphics object created by a Panel, and use the MeasureString() method, I get a different width than when I pass up...more >>

Graphics.MeasureString - varying results?
Posted by Yaron at 6/21/2004 9:07:40 PM
Hi, I made a procedure which receives a Graphics parameter, and with that Graphics parameter, performs various things. The area of confusion here is that when I pass the procedure a Graphics object created by a Panel, and use the MeasureString() method, I get a different width than when I pass up...more >>

Why this doesn't work?
Posted by KK at 6/21/2004 9:00:52 PM
Hi, I want my users to be able to enter date in any format. Such as dd/mm/yyyy, mm/dd/yyyy etc... then I use the following method to see wether this is a valid date : try { DateTime NewDate = DateTime.Parse("16/11/1976"); return true; } catch(FormatExcepti...more >>



Set windows form controls transparent?
Posted by Benny at 6/21/2004 8:44:10 PM
Hello experts, How can i set windows form controls (i.e. button, label, ...etc) to transparent? I tried set the control back colour property to transparent, but it still appear non-transparent. Thanks, Benny *** Sent via Devdex http://www.devdex.com *** Don't just participate in USE...more >>

Response.ContentType and C#
Posted by Webgour at 6/21/2004 8:22:37 PM
How do you reproduce this vbscript in C# <% Response.ContentType = "text/plain" response.write "This is text type" %> ...more >>

Re: Multi-threading article finally "finished" - reviewers welcome
Posted by Valery Pryamikov at 6/21/2004 7:14:42 PM
> - When thread scheduler sees that thread is waiting on Win32 > synchronization objects it immediately schedules context switch to another > runnable thread instead of wasting time spinning. shoud read as: When thread scheduler sees that thread is waiting on non-signaled Win32 synchroniza...more >>

Accessing the message loop in C#
Posted by Philip Sinfield at 6/21/2004 6:53:01 PM
How does one access the Windows Message Loop in a C# window.forms application? I have a graphics display application in which I would like to "step" through the graphical display (it is a binary tree visualiser and I would like to step through the tree as it is being drawn - node by node!) using ...more >>

connecting sql server
Posted by e-mid at 6/21/2004 6:32:38 PM
i created a database, when i query a simple select statement , i get an error: "Cannot open database requested in login 'XYZ_Database'. Login fails, Login failed for user 'sa'' But when i change , the database name to Northwind, it works. i checked that user rights of 'sa' for XYZ_data...more >>

Mouse position
Posted by Mathieu Chavoutier at 6/21/2004 6:11:20 PM
I want to make a tool to design (like paint). So, I want to know the position of the mouse. Cursor.Position.X gives me that information. But, when I draw a picture, it is not at the good place e.Graphics.DrawImage(newImage, new Rectangle(x, y, 32, 32)); I think it is because Cursor.Position...more >>

Am I under Full trust Policy?
Posted by Ram Baruch at 6/21/2004 6:06:10 PM
Hi, I want to determine if my application is running under level of trust: 'full trust'. How can I do it? Regards, Ram. ...more >>

What is the memset function in C#
Posted by James Dean at 6/21/2004 5:39:11 PM
What i want to do is the following: I want to first of all copy one value from another array into my current array.....then i want to copy this same value a specified number of times. The Buffer class only lets me copy one value to one place in my current array. I dont want to use a big awkward ...more >>

Question for the experienced
Posted by h at 6/21/2004 5:29:43 PM
....or at least it seems like it is, to me. I have built this custom list control which has list items which are also custom made controls that consist of textboxes, labels and buttons. Structure goes: Custom List control |__ Custom List item control (for list rows) |__ Textbo...more >>

Debugging asynchronous app
Posted by amcniw NO[at]SPAM yahoo.com at 6/21/2004 5:16:40 PM
My app calls another app asynchronously. How do I debug into the called app?...more >>

FileStream class leaks handles??
Posted by Richard at 6/21/2004 5:13:01 PM
Hi, Has anyone seen a case where the FileStream class leaks handles? I have a program that runs in a loop and processes files in directories by reading them with a FileStream. Task manager shows that as the program runs the handle count rises and rises -- unless I comment out code that uses a F...more >>

Please help me with the code :Repost
Posted by NotYetaNurd at 6/21/2004 5:03:39 PM
please try the following float F1=1.0f; float F2=1.0f; string testString = " "+ ((F1-F2)>0)?"test1":"test2"; //throws error while compilation and float F1=1.0f; float F2=1.0f; string testString = ((F1-F2)>0)?"test1":"test2"; Whatz wrong with the first snippet ...more >>

DataGridBoolColumn, checkbox, numeric values - can it be done?
Posted by PeterZ at 6/21/2004 5:02:49 PM
Hi, In the past I've successfully databound a conventional Winforms checkbox to a number column in an Oracle table, where 1 represents true and 0 represents false. The checkbox would be ticked if the value was 1 and unticked if the value was 0 - earth shattering news I know! :-) HOWEVER......more >>

Looking for sorted collection classes that allows duplicate keys...
Posted by faustino Dina at 6/21/2004 5:02:38 PM
Hi, I need to store my data on a sorted collection, where the sorting key can be duplicated. I've been looking around .NET collection classes but they expects unique keys for sorting. What can I do? Is any other resource for ..NET collections on the web? Thanks in advance -- Faustino D...more >>

Background Image
Posted by David at 6/21/2004 5:01:58 PM
I needed to dress up my application a little, so I added a simple background image (97kb) in the form of a .JPG file. It made my forms slow to load. Is there a way to Pre-Load the form ? Any Ideas will be helpful Thanks David ...more >>

listbox & scrollbar
Posted by carmen at 6/21/2004 5:01:03 PM
I need to have in a form a listbox with a big scrollbar (I'm working for a touchscreen). As the scrollbar that the listbox has is small, I put a listbox withou scroll and a scrollbar independent. How could I associate the two controls to work as if they where only one? Thank you for your help C...more >>

Excel C#
Posted by skrishnan NO[at]SPAM snet.net at 6/21/2004 3:58:34 PM
I have a two dimensional array which I would like to set to a RANGE I know the length of the array, I know it has 2 columns too. I would like to do something like What I would like to do is something like A1 - only cell reference given. Could someone please tell me how to construct ...more >>

Web custom control
Posted by Wilson Wu at 6/21/2004 3:55:57 PM
Hi, I want to create a custom label control using the following code. But the lable can't display. what is wrong ? using System; using System.Web.UI; using System.Web.UI.WebControls; using System.ComponentModel; namespace com.Index.WilsonWebClass { /// <summary> /// Summary descr...more >>

How does one send and catch external parameters to windows application
Posted by Webgour at 6/21/2004 3:32:45 PM
How does one send and catch external parameters to windows application. if i have D:\My Documents\Visual Studio Projects\WindowsApplication3\obj\Debug\WindowsApplication3.exe -u -y how do I catch these values in my application. Thanks in advance.Oliver. ...more >>

license files
Posted by David at 6/21/2004 3:31:45 PM
I am using some 3rd party assemblies that require license files. I have placed all the licx files into one and compiled it. If I compile it from command prompt and include the compiled license file as an embedded resource it works file, however if I include the compiled license file in visual st...more >>

Listbox items to Stored Procedure
Posted by r3net at 6/21/2004 3:14:15 PM
I need to pass a parameter @item to a stored procedure and get back a selection based on value(s) contained in @item. @item is a collection of selected items in a listbox as follows... ArrayList alItems = new ArrayList(); foreach(ListItem li in listbboxItems.Items) { if(li.Selected == t...more >>

Help needed for VB --> C# translation
Posted by tiger79 at 6/21/2004 3:06:00 PM
Hi, I've been translating some API's from VB to C# for a couple of days now. Only I'm a real newbie to both languages, but I managed to do most of it except the next statements, so if anyone knows what the counterpart in C# is of those VB statements I would appreciate : Public Function (ok, p...more >>

Datagrid & windows forms
Posted by Lane at 6/21/2004 2:55:01 PM
I'm completly LOST !!! I need to create a datagid with data from a database which i can do, but i need a additional row appended to the grid as a textbox for information to be gathered and stored. Please Help ...more >>

who has that object locked?
Posted by cs at 6/21/2004 2:51:55 PM
I have an app that freezes on trying to lock an object, probably cause someone else has the lock and they aint giving it back. How can I find out who has that lock? ...more >>

Non-Casesensetive hashtable
Posted by A.M at 6/21/2004 2:40:11 PM
Hi, By default, HashTable.ContainsValue is case sesetive for string datatype. Can I have it non-casesensetive? Thanks Alan ...more >>

Intellisense between assemblies (project reference)
Posted by Tobias Lekman at 6/21/2004 2:34:18 PM
Hi, I cannot get intellisense to work between assemblies (when I am using project reference). Intellisense works fine inside the assembly (using Xml comments). Any ideas why this will not pass through? Regards, Tobias ...more >>

On Error tranlation
Posted by tiger79 at 6/21/2004 2:28:55 PM
Hello, I'd like to know what the C# counterpart is for the VB On Error statement ? My VB code looks like this : On Error GoTo ErrGetItem plain simple ud say, but I need to "translate" it into C#... Any ideas ??? ...more >>

Loading Data from DataBase, which way is the best?
Posted by Gidi at 6/21/2004 2:20:01 PM
Hello, i writing a application in C#, i have dataGrid that connect to DataSet and DataAdapter that takes data from my sql dataBase, the problem is that the form is loaded very very slow, i heared that there is a way to make the form to be loaded faster, which way is it? today, i'm filling the data...more >>

How to draw by Desktop window DC?
Posted by °Ë´óɽÈË at 6/21/2004 2:13:59 PM
Hi, I create a graphics object for desktop window by following step: IntPtr hWnd = GetDesktopWindow(); // API Graphics g = Graphics.FromHWnd(hWnd); then draw the screen by g, but I can't draw anything. WHY?? And I try to draw by DC (get by GetDC), it's fail either. ...more >>

How to convert this unicode string to a normal string?
Posted by Nicky at 6/21/2004 2:11:01 PM
hi,all I got a problem when I read a unicode file. This file comes from my PDA. Log.txt. When I open it with notepad and click "save as", in the "save as" dialog, it shows the encoding is unicode. In my c# project, I use StreadReader reader = File.OpenText(strFileName); while(szLine = reader.R...more >>

ListView / Show Any Subitem
Posted by Paddy at 6/21/2004 2:09:53 PM
private void listView1_SelectedIndexChanged(object sender, System.EventArgs e) { textBox1.Text = this.listView1.Items[0].SubItems[1].Text; } This will display sub item [1] after cklicking on item [0] I want to display subitem[1] of any item I click on how do I do that? Many thanks. Paddy....more >>

"Sorting" a hashtable
Posted by JezB at 6/21/2004 2:08:07 PM
I have a hashtable (h) of class objects keyed by a string (k) - the class (c) object stored in each hastable entry has two attributes (a1 and a2). I want to iterate through the entries of the hashtable by ordering by one of the attributes of the class (a1 or a2). How can this easily be achie...more >>

threading and Principal question - from Role-based security to declarative security.
Posted by hazz at 6/21/2004 2:03:25 PM
If I successfully run a VS.NET app which includes the following; ************************** APP 1 **************************** m_iIdnt = new System.Security.Principal.GenericIdentity(t.UserName,"MyAuthentication"); //user and My authentication type added to Identity string[] roles = {...more >>

Rewriting A website URL
Posted by Ted Corbell at 6/21/2004 2:00:09 PM
I currently own http://www.careermetasearch.com when you input that url it redirects it to http://www.careermetasearch.com/Public/default.aspx?pb=1 this is hurting me in the search engines because it's a redirect. How can this be rewritten? *** Sent via Devdex http://www.devdex.com *** ...more >>

question
Posted by frazer at 6/21/2004 1:52:45 PM
hi i want to include word's spell check feature in my app. how do i do that? thnx ...more >>

How do I do this in C#?
Posted by Buzby at 6/21/2004 1:48:08 PM
Hi Newsgroupies, I am an old C++ dog trying to learn new C# tricks! :P For example, how do I do this in C#? // C++ typedef double FLOAT_TYPE; And where would I place it in my code to be 'globally' visible? (I fully appreciate that 'Global' is a dirty word in C# ) And if anyone can...more >>

about inheritance
Posted by e-mid at 6/21/2004 1:48:06 PM
i have a class, lets say myclass and 2 derived classes(derived1, derived2) from myclass. i do the following: myclass a; then i will instantiate according to user choice. a = new derived1( ); or a = new derived2( ); but i can not reach the members of derived1 or derived2 using t...more >>

Checkedlistbox
Posted by MFRASER at 6/21/2004 1:36:47 PM
How can I turn on and off what is selected? I have a checked listbox I want Index 0 = "All" and each of the other nodes to be a number. If the user selects all I want to uncheck all the other items and visa versa. Here is what I have on the checked event. I can not get this to compile. Tha...more >>

Singleton and garbage collection
Posted by Stephen Brown at 6/21/2004 12:37:33 PM
I have some strange behavior on my web server that seems to point to garbage collection. I have a singleton that tracks web activity on my web site. The singleton works great, except that it restarts periodically. The web services have not been restarted and the error log shows no problems. It...more >>

newbie: Binding data to the LinkLabel controll!
Posted by Jeff at 6/21/2004 12:00:50 PM
Hi all! IDE: VS 2003 (C# standard) OS : XP Pro In my program I have an array of the class Details (the Details.cs code is listed below) In my program I got a linklabel controll (LinkLabel1) and I want to bind the Url property of Details to the LinkLabel1 controll! I want to bind the Url...more >>

use ActiveSync in C#
Posted by benjamin piraud at 6/21/2004 11:56:41 AM
I would like to use ActiveSync to synchronize a WinCe running PC with an XP running PC, in a C# program. But it seems it is quite unusual ; I found no example for such a case on the Web. Is it possible to make it? Did anybody ever do it? Is there something about that on the Web? thank you Benj...more >>

DUN
Posted by JLW at 6/21/2004 11:21:38 AM
How can one control the Dialup networking system with csharp. I want to make a dialer for my ISP, and can't find anything anywhere on how to control it. Thanks, JLW ...more >>

how to add 2 rows and 2 cols into datagrid
Posted by Bill Yin at 6/21/2004 11:19:23 AM
the first column title is "abc" the second column title is 'efg' ...more >>

Namespace and solution name
Posted by Massuda at 6/21/2004 11:12:02 AM
If I have a namespace "MyCompany.Project.Helpers", do I have to name the solution (or, at least, the resulting DLL) as MyCompany.Project.Helpers.dll? ...more >>

Mnemonic selection
Posted by Grant at 6/21/2004 11:07:14 AM
Gday, My form has a text box and a label. The label is next to the textbox and has a mnemonic set for the first letter. My question is how to highlight the textbox when the user selects the mnemonic for the label? Thanks, Grant ...more >>

Tracking High Volume of Impressions
Posted by Arsen V. at 6/21/2004 10:55:30 AM
Hello, Did anyone have some experience with the following: 1) Need to track high volume of impressions - 20,000,000+ per day 2) Backend is SQL Server 2000 3) Webfarm of IIS with ASP.NET 4) Need to track the data as follows: DATE, TIME (resolution should be 1 hour), ID, NUMBER OF IMPRESSION...more >>

On Error translation
Posted by tiger79 at 6/21/2004 10:38:16 AM
Hello, I'd like to know what the C# counterpart is for the VB On Error statement ? My VB code looks like this : On Error GoTo ErrGetItem plain simple ud say, but I need to "translate" it into C#... Any ideas ??? ...more >>

DataGrid ComboBox Column
Posted by Lynn C at 6/21/2004 10:32:01 AM
I have a combobox column in a datagrid. (I am using the example from Geoge Shepard's website on deriving a custom column style from DataGridTextBoxColumn). The problem I am having is when you make a selection in the combobox, for a new record, the selected value does not appear until you tab out of...more >>

Click buffer
Posted by Mike at 6/21/2004 10:20:07 AM
Hi. In my app I am have a button which, when clicked, spawns a worker process. When the user clicks this button, I am setting its Enabled property to false to disable the button and prevent the user from clicking it again and spawning a second process. The button is enabled again when the pro...more >>

ERROR ERROR ERROR
Posted by Brian Conway at 6/21/2004 10:12:13 AM
Can anyone help on this error? I can't find anything on it and not sure what it means Server was unable to process request. --> Requested registry access is not allowed. This error happens when I try to use a Server.Transfer to another webform. ...more >>

events of a remoted object
Posted by daniel.shanyfelt NO[at]SPAM srs.gov at 6/21/2004 10:02:29 AM
I am having a problem trying to assign event handlers to the events of a remoted object. I have one program that registers the object for remoting, Another that connects and calls methods on the object and a third that connects to the object and waits for events. The error occurs when I try t...more >>

referrring to a vb.net-declared namespace from c# class
Posted by schav NO[at]SPAM hotmail.com at 6/21/2004 9:38:16 AM
i have 2 separate projects: 1) Project A: Class library, written in VB.NET; It's namespace is explicitly defined in the code like: Namespace MyCompany.Project.ClassesA .... End Namespace 2) Project B: Classes written in C#. It looks like: using MyCompany.Project.ClassesA; <---------...more >>

OpenFileDialog.FileName and FolderBrowserDialog.SelectedPath are not the same datatype ???
Posted by koala_beer NO[at]SPAM msn.com at 6/21/2004 6:54:33 AM
Hi, Here is something i can't figure out what i am doing wrong: I use a OpenFileDialog to select a file. I put the result string from the FileName property in a textbox on my form. Later on I save the ..Text property to an xml file. Nothing happens, the filename is not writen to the xml fil...more >>

Type of the pointer of an instance
Posted by Rakesh Rajan at 6/21/2004 5:43:01 AM
Hi, Dataset ds = new <Typed DataSet> I want to get the actual type of the pointer (ds), and not the type of the instance being pointed to. In this case, the pointer ds is untyped, while the instance it points to is typed. What I need is to get the type of the pointer ds. I tried with variou...more >>

How to display the name of an object instance?
Posted by johnfofawn NO[at]SPAM hotmail.com at 6/21/2004 5:32:44 AM
Hi, I have a ToolbarButton and I want to print out the instance name. This is easy to do with objects that inherit from Control because there is a .Name property. However, with other objects like ToolbarButton I don't see how to do this. Advice? Ideas? THANKS! ToolbarButton tbbMyButton; ...more >>

DLLNotFoundException or InteropServices.SEHException
Posted by Micke at 6/21/2004 5:19:01 AM
Hi all! I have a problem and don't know what to do. I have written an application in asp.net using C# as my language. The application calls an external dll file. This is written i VS.NET C++. I have on my machine for development placed the resulting dll-file in the bin folder of my web applicat...more >>

Populating ASP.NET Dropdown List with List of Countries
Posted by mmohlameane NO[at]SPAM -NOSPAM-medihelp.co.za at 6/21/2004 4:49:37 AM
Hi! I would like to populate the dropdown with the list of all country name ( e.g South Africa, Zimbabwe,United States, etc). Is there a function to do that? Thanks --- Posted using Wimdows.net NntpNews Component - Post Made from http://www.DotNetJunkies.com/newsgroups Our newsgroup engine...more >>

DataGrid Refresh problem
Posted by james_morris1232000 NO[at]SPAM yahoo.com.au at 6/21/2004 1:24:22 AM
I have a data grid refresh problem. I have a few columns and the first column is data in the form of numbers. And in the form of the data grid if I specify for example something like a code(in a text box) the column of numbers should change colors depending on whether the number was in the speci...more >>

file has been modified outside of the source editor
Posted by Beeeeeeeeeeeeves at 6/21/2004 1:19:02 AM
I keep getting the above error when working with crystal reports with vs.net 2003, it happens EVERY time I run the project or save any files (hence when compiling it) even though I don't use anything other than the proper editor to modify the file. It is referring to one of the crystal report files....more >>

System.TypeLoadException problem
Posted by eblock NO[at]SPAM gmail.com at 6/21/2004 12:56:31 AM
When getting a type from a dynamically loaded assembly using Assembly.GetType, I receive the following exception: An unhandled exception of type 'System.TypeLoadException' occurred in playengine.dll Additional information: Method add_Closing in type PlayEngine.D3DVideoTask from assembly D3D...more >>


DevelopmentNow Blog