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 2004 > threads for friday august 27

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

Tao download
Posted by leo at 8/27/2004 10:13:26 PM
E' da qualche giorno che sto cercando un link valido per la libreria Tao per le openGL ma non ho trovato nulla e il sito dello sviluppatore e' under construction da diversi giorni e non ci sono cenni di vita. Non e' che per caso qualcuno che le ha scaricate in precedenza me le puo' gentilmente ...more >>


Has the XML Documentation been "forgotten" in VB.NET?
Posted by Don Wash at 8/27/2004 9:41:20 PM
Hi There! In C# you can use /// to add comments that can produce XML documentation. What about in VB???? Thanks, Don ...more >>

coloring difrent cells of data grid(winform)
Posted by Jay at 8/27/2004 8:45:59 PM
hi all, how to color/ highlight the different cells of a win form data grid. my requirement is to highlight all the cells having null values or failing the rules defines. or atlest how to get to a particular cell proramatically through c# code. thanks in advance. Jay ...more >>

Converting byte array into custom object
Posted by Raymond Dynowski at 8/27/2004 6:00:31 PM
Hello I am writing a communications link and want to pass data structures between two applications. When I use sockets, it is looking for a byte buffer to be used to receive/send the data. How to I convert my own objects into a byte array type? For example in C this would have been a piece of c...more >>

avoid closing Windows form
Posted by VMI at 8/27/2004 5:40:26 PM
How can I stop a form fro closing when the user tries to close it? For example, in my code: private void frm_audit_Closing(object sender, System.ComponentModel.CancelEventArgs e) { if (_BisSavingData) { // Code that will override the Closing method. I don't want the form to...more >>

How to make all callbacks be exectuted with the "main" thread?
Posted by johnfofawn NO[at]SPAM hotmail.com at 8/27/2004 5:17:48 PM
Hi, I have a class which on instantiation creates a background thread to do its processing in. The class exposes a number of events that the application subscribes to so that data can be reported. How can I make it so that when my class calls an event (a callback) it does so with the applic...more >>

Help with ASP.NET/ C# -> MSSQL
Posted by Viktor Popov at 8/27/2004 4:53:22 PM
Hi, I have trouble with the following: I have this Stored Procedure: IF EXISTS (SELECT name FROM sysobjects WHERE name = 'prUPUSERINFO' AND type = 'P') DROP PROCEDURE prUPUSERINFO GO CREATE PROCEDURE prUPUSERINFO @USRNAME VARCHAR(20), @NAME VARCHAR(64), @CITY VARCHAR(20), @PHONE ...more >>

C# String Comparison, IndexOf and Related
Posted by titirein NO[at]SPAM yahoo.com at 8/27/2004 4:46:25 PM
Hi Everyone, I've been looking through these .NET groups and can't find the exact answer I want, so I'm asking. Can someone let me know the best way (you feel) to search a C# string for an occurance of a CASE INSENSITIVE substring, returning the found position. I'm speaking of larger string...more >>



xmlNode.InnerText vs. xmlNode.Value
Posted by Dan at 8/27/2004 4:41:44 PM
I've loaded the following xml into an XMLDocument object: <?xml version="1.0" ?> - <Preferences> <Institution>Argh</Institution> <Speaker>Chigier, Ben (1234)</Speaker> <Worktype>Addendum</Worktype> <speakerCode>1234</speakerCode> </Preferences> I then try to retrieve the value of...more >>

create object name from string value
Posted by The Bear at 8/27/2004 4:30:52 PM
I want to create an object using the value of a string. Does anyone know how to do this? T.B. ...more >>

Hooking the keyboard
Posted by Fabiano at 8/27/2004 4:12:25 PM
Please, is there a way i can hook the keyboard? I would like to hook everykey. CTRL+ALT+DEL, CTRL+ESC, and all others. The user just press some keys, and none control keys, not only at my app but all windows. A friend told me that there's a non-documented API that let me do this, but he didn'...more >>

protected internal
Posted by Hin at 8/27/2004 3:54:58 PM
from MSDN, decription for protected internal is "Access is limited to the current project OR types derived from the containing class" Is there any way i can have the access limited to the types derived from the containing class that are also in current project? any access modifier can achie...more >>

Page Structure for C#
Posted by Tim Cowan at 8/27/2004 3:39:15 PM
Hi We are having some trouble trying to decide how to layout pages. We want to have the header, footer, menu, and main page area. What is the best way (and by best I mean the most easily maintainable) to do this? The example is if we used frames and we had to make a structural change we wou...more >>

Testing events with NUnit
Posted by David Anderson at 8/27/2004 3:17:03 PM
I have a class that validates data in text files and raises events to keep the caller informed on how things are going. I would like to test this class using NUnit but don't know how to test events with it. Does anyone have any ideas?...more >>

An open source drive space viewer
Posted by Simon Harvey at 8/27/2004 3:12:54 PM
"Simon Harvey" <sh856531@microsofts_free_email_service.com> wrote in message news:... Hi all, I am looking to make an open source Drive space viewer. One that displays the sizes in a graph and lets you move through the directories via a treeview at the left. I have three questions i...more >>

Access object with a name
Posted by Sergey Atun at 8/27/2004 3:08:02 PM
Hi, How can I access object with a name like this: string ObjectName = "TextBox1"; TextBox(ObjectName).Text = "bla bla bla" Thanks. ...more >>

Help with Windows Control Library (DataGrid)...
Posted by Carl Fenley at 8/27/2004 3:05:55 PM
I believe I have almost successfully created a custom datagrid control. The new class builds without error. I have added it as reference to the main Windows Application project. It appears on the Toolbox as expected, but... When I drag-drop it on a Form, it appears like a component (e.g. Sq...more >>

Make Label Counter work better?
Posted by Yogi_Bear_79 at 8/27/2004 2:58:27 PM
I have a for each loop, that currently runs through an array of 11,000+ items. I exerpted the code part below that I have a question on. I thought this code would update the form label and increment it by one each time the code passed to the next element in the array. Maybe it just goes to fast,...more >>

About getting user data from Active Directory
Posted by Dinçer at 8/27/2004 2:44:37 PM
Hi, I am trying to get user data (email data actually) from Active Directory. What I exactly want to do is, getting the email address according to username from the domain. For example, when I enter my username DINCERM, it should give me dincerm@domain.com as result. When I do this: === ...more >>

aspnet_setreg.exe
Posted by Peter Rilling at 8/27/2004 2:41:41 PM
Can aspnet_setreg.exe work for regular app.config files as well? ...more >>

Instantiation Question Creating Too Many Objects
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 8/27/2004 2:22:05 PM
I have a Form1 and two class files. In the first class, I call the second class. The second class references the Form1 notifyicon and changes the icon. It works. The problems is, however, that because I am doing: Form1 f = new Form1(); f.notifyIcon.Icon = myIcon; everytime this sec...more >>

SpinWait....
Posted by Ollie at 8/27/2004 2:20:57 PM
What is an iteration with respect to Thread.SpinWait...... Cheers Ollie ...more >>

Regular Expression to extract all numbers from a string to a group collection
Posted by Jay Douglas at 8/27/2004 2:14:06 PM
Hello all. I'm having a hard time coming up with a regular expression that can extract just the numbers out of string into a GroupCollection. Any help is appreciated. ...more >>

ListView and overrided WndProc
Posted by Cyrille Giquello at 8/27/2004 2:10:50 PM
the code is the one at page http://www.gotdotnet.com/Community/MessageBoard/Thread.aspx?id=96378&Page=1#96674 Hello from example from web i did a little code to avoiding columnHeader resize. this code seems to work well, but when I put a 'normal' ListView on the same Form than my overrided ...more >>

Why there is no option to set the source (local) address for HttpWebRequest?
Posted by Sherif ElMetainy at 8/27/2004 1:59:39 PM
Hello I am writing a HTTP client, that will run on a computer with multiple IP addresses. I want to bind the TCP socket for the HTTP connection to a specific IP address, but unfortunately there is no option to do this in System.Net.HttpWebRequest class. I looked for that option a lot, I even ...more >>

Not understanding Sockets Probably Simple
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 8/27/2004 1:57:20 PM
Easy probably, please read on. I know some of you have commented already about some of my socket question. I appreciate that. I have a Form1: static void Main() { Application.Run(new Form1()); clsListening.AsynchronousSocketListener.StartListening(); } In the clsListening ...more >>

<summary> /// Comments not working with assm
Posted by news.bellatlantic.net at 8/27/2004 1:47:14 PM
I added these comments "///" (below is an example) to help the developers use the classes and methods I am adding the library. When I instantiate an object in the same project I get help from the comments in the IDE. However if I add the library to another project I don't get the help. How can I ...more >>

treeitem and child nodes
Posted by Tim Wallace at 8/27/2004 1:45:49 PM
Is there a way one can have a treeitem display the plus sign without having actually added treeitems under it as we could do in pre-.NET days? I only want to populate child nodes when the user clicks the plus sign. Tim ...more >>

Threads and callbacks
Posted by TomB at 8/27/2004 1:30:59 PM
These things are the most confusing things in the world. I've got the thread part figured out, but how do I let the application "know" the status of the work being performed on the thread? My Code below shows how I start the thread. I'd just like to know what I need to include in my "InsertI...more >>

Paranoic about real number imprecisions
Posted by Pavils Jurjans at 8/27/2004 1:14:09 PM
Hallo, It is know issue that due to the fact that computer has to store the real numbers in limited set of bytes, thus causing a minor imprecision from the decimal value that likely was stored. I don't know, how dotnet framework stored doubles, but it's certain, that if I store, say, 1.234567 ...more >>

Does Registry Value/Key Exsist?
Posted by Yogi_Bear_79 at 8/27/2004 12:39:04 PM
Been trying to do an IF statement to check for a registry key. I understand to RegistryKey class in the Microsoft.Win32 namespace. But just can't get the syntax correct. What I want is to test for a key, if the key doesn't exsist, then create it, if the key exists, ignore and go to next. The ...more >>

Storing the number 42790 in two bytes??
Posted by Max Adams at 8/27/2004 11:40:48 AM
All, I have a ushort data type which holds the number 42790, I need to write this number to a binary file so it only takes up two bytes. As a ushort is an Unsigned 16-bit integer, i know it will fit into two bytes, however i'm unsure of how exactly to do it. Can anyone suggest the best way to...more >>

SqlCommand.ExecuteXmlReader
Posted by Soren Jorgensen at 8/27/2004 11:35:26 AM
Hi, When executing following statement "select distinct Name from CustomerParameters for xml auto" - XmlReader reads "<customerparameters name="Www.Mail.Generel" />" - but SQL Query Manager returns "<CustomerParameters Name="Www.Mail.Generel"/><CustomerParameters Name="Www.Mail.Updates"/>" ...more >>

WebRequest via HTTP with XML-Body
Posted by Kai Huener at 8/27/2004 11:22:33 AM
Hello All, I want to send a HttpRequest to a program running on http://localhost:8080 on my computer. I want to communicate with this programm by sending an XML-Message and the Response will be also XML. This seams not to be very difficult, but I cannot handle it. How can I create such ...more >>

denotes field where class expected and other problem
Posted by john_20_28_2000 NO[at]SPAM yahoo.com at 8/27/2004 11:14:35 AM
I have snippets from Form1 and a class named netclass.cs (just an arbitrary name.) Form1 has a textBox1 on it. I want to reference it in the class. I put: static void Main() { Application.Run(new Form1()); netclass nc = new netclass(this); netclass.StartClient(); }...more >>

Cursor position in NumericUpDown control
Posted by Tantra Veda at 8/27/2004 11:14:01 AM
Hello C# gurus, I have a question about finding cursor position in NumericUpDown control. On my form I have a numericUpDown control with 2 decimal places. I want to increment value in the numeric box by 1 if my cursor is in front of the decimal point. If the cursor is after the decimal point, I ...more >>

How big is too big for an Array?
Posted by Yogi_Bear_79 at 8/27/2004 11:11:14 AM
I wrote a program that helps me manage my Internet Explorer Security. Currently I have an arrary that has more than 10,000 value. The code works fine, and speed doesn't seem to be an issue. I chose an array, so that I could keep everything in one .exe versus, an exe calling other files for dat...more >>

Hidden keywords?
Posted by Dennis Myrén at 8/27/2004 10:18:36 AM
Hi. I have noticed there are 4 "hidden" keywords in the C# language; __arglist, __makeref, __reftype and __refvalue. For what purpose? Are they usable? -- Regards, Dennis JD Myrén Oslo Kodebureau ...more >>

right click in windows form
Posted by Tim Wallace at 8/27/2004 10:05:26 AM
I have a simple app that I'm building using C# (using Visual C# Express Edition). In it, I open an mdi child window that contains a treeview. I want to display a context menu when the user right clicks the treeview. When the window opens, I have to click on the treeview twice to get the menu t...more >>

ToolTips on ListView Header
Posted by Yura Moldavanov at 8/27/2004 9:16:56 AM
Hello, All! I have a problem with putting the ToolTips on ListView Header ToolTip Text Property must changes depending on column, which is under mosue cursor. Problem 1. Standatr .Net class TooTip is not shown, when mouse not in the client area of ListView. I trying to solve this throug...more >>

Using Null in DateTimePickers
Posted by John Smith at 8/27/2004 9:01:50 AM
Hey folks, I have a DateTimePicker control on my Windows Form. Whenever I either: a) Don't give it a value b) Set it's value to Null c) Set it's value to "" It makes the date today's date. I need it to be empty though. How do I make it empty? It represents a field in my database which ...more >>

How to create a database from nothing?
Posted by jonas NO[at]SPAM bootman.se at 8/27/2004 8:43:12 AM
I'm creating a application that should handle contacts, orders etc. I want to distribute only the exe file and let the application take care of creating and changing the database that is to be used. Furthermore, I would also like to make it possible for the user to select which sort of database ...more >>

Data truncation inserting into an Oracle8.1.7 database
Posted by Gary Miller at 8/27/2004 6:29:01 AM
I have a TextBox control with a databings to a dataset.column name. The MaxLength property is 2000 bytes. When I enter data e.g. 1957 bytes and do a Update the screen remains complete, but if I close that window and come back typically only 1000 bytes are read and displayed. Checking th...more >>

MessageBox with KeyUp and Form with KeyPreview
Posted by orianavim NO[at]SPAM hotmail.com at 8/27/2004 6:11:34 AM
Hi Guys, Here is my problem, but maybe someone can help me with this. Background: 1. Using C#. 2. I'm having a form which the KeyPreview is on (and must stay like this) and I'm implementing some functions on the Key up event of some controls and the form. The Problem starts when I ...more >>

DateTime as empty String or null, How can i Do it?
Posted by Gidi at 8/27/2004 5:11:02 AM
hello, i have a textbox that represnts a date and i want to pare it to a DateTime, but sometimes this textBox can be empty string and i want to send it to the DataBase as null or as empty Date, how can i do it? thanks...more >>

wsdl file generation
Posted by damienmccauley NO[at]SPAM hotmail.com at 8/27/2004 5:09:46 AM
I dont have much experience with wsdl's, but I am currently producing asmx web services, for c# dot net projects. All the project files are stored in souresafe, including the wsdl files. Each time I update a project I must build and run the particular web service then manually open and save...more >>

Iterating through menuitems
Posted by loichate NO[at]SPAM euskalnet.net at 8/27/2004 4:55:11 AM
Hi all, I must globalize my application and therefore i must fill the text of all controls of each form programatically. When controls, I perform: foreach (Control c in this.Controls) { // rm is my resource manager and culture is the current culture c.Text = rm.GetString("Clientes...more >>

Where is the hDC of the PrintDocument.
Posted by Frank Rizzo at 8/27/2004 12:31:02 AM
Hello, I have an OCX control on my WinForm (don't ask, i have to use it) and it generally works well. One of the methods of the OCX prints to an hDC (device context handle for history buffs). Seeing how everything in ..NET prints to a PrintDocument object, I was wondering how I can retr...more >>


DevelopmentNow Blog