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 2005 > threads for wednesday august 31

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

transparent control??
Posted by Perspolis at 8/31/2005 11:15:52 PM
Hi I have a form with background picture...I put a label on it.. I want to make this lable transparent for form.. I don't know how???? thanks in advance.. ...more >>


VC# 2005: Resources for creating a server based application
Posted by J.S. at 8/31/2005 10:34:13 PM
Folks, I would like to create an application in VC# 2005 that would sit on top of IIS in Windows Server 2003 and have to capability to create forums or lists that can be accessed via the mail, web, or newsgroup interface. Obviously, there would have to be some mechanism to integrate the posti...more >>

Q: Autogenerating menus and executing forms.
Posted by Martin Arvidsson at 8/31/2005 9:10:06 PM
Hi! I have an SQL table containing a menu number, level, title and formname. What i want to do is to generate the menu automaticly from the table, and set the onclick event to execut the form from the given name of the table... Example of table ID Level Title FormName 1 0...more >>

Reading copyright character from file with StreamReader
Posted by Ed West at 8/31/2005 8:54:00 PM
Hi, I am trying to read a file, make changes, and write it to a new file. The original file has the copyright character © which is ascii 169 I believe, which is more than 7 bits. I am using typical StreamReader object to read in the file, but it is not getting it correctly. If I make th...more >>

*this* keyword
Posted by Water Cooler v2 at 8/31/2005 7:44:02 PM
Does the *this* keyword refer to the class or the instance? ...more >>

Files too DataGrid Help Plz
Posted by MikeY at 8/31/2005 7:04:15 PM
Hi everyone, In C#, is there a easy way of display files (ie. mp3 files) to a datagrid? If someone can provide me with some code, or advice I would appreciated it. Thanks in advance. MikeY ...more >>

Why is the compiler flagging this variable as unassigned?
Posted by Joseph Geretz at 8/31/2005 4:36:06 PM
Use of unassigned local variable 'fs' Please see where I've indicated where the compiler is flagging this error in the method below. fs is initialized in the first line in the try block, so why is it flagged as unassigned in the finally block? Thanks for your help! - Joe Geretz - pri...more >>

"Not enough storage is available to complete this operation."
Posted by webspinner NO[at]SPAM hotpop.com at 8/31/2005 4:12:14 PM
I'm trying to develop a web service using C# and everytime I try to instantiate a NotesSession object like so: m_session = new NotesSessionClass(); the object throws an exception with the message: "Not enough storage is available to complete this operation." Has anyone encounter...more >>



take ownership of registry key with .NET 2.0?
Posted by Andrew at 8/31/2005 3:42:48 PM
I spent tons of time searching the web for how to use .NET 2.0 and C# to modify Registry key security. After finally finding an example, and once I knew the function names a few other small examples.. I can still find nothing that demonstrates how to take ownership of a Registry key if one has (...more >>

LDAP Search Results
Posted by James at 8/31/2005 2:49:31 PM
Why does my LDAP query from a C# console app limit its results to 1000? When I run the same query from a vb script I get over 6000 results. I have tried to set the SearchRequest.SizeLimit to a value grater than the expected results and still only get 1000 records. I did notice that in the ...more >>

marshalling a byte array to an unmanaged unsigned char*
Posted by Lee Crabtree at 8/31/2005 1:50:18 PM
I have a managed DLL that I've used to expose a C++ class. One of the functions in this class reads a line out of a file into a buffer of type "unsigned char*". Since all the data is just straight byte data (that is, I'm concerned with individual bits packed into the bytes), I'd like to put ...more >>

Try-Catch Implementation Guidelines?
Posted by clintonG at 8/31/2005 1:46:37 PM
Has somebody written any guidelines regarding how to determine when try-catch blocks should be used and where their use would or could be considered superfluous? <%= Clinton Gallagher METROmilwaukee (sm) "A Regional Information Service" NET csgallagher AT metromilwaukee.co...more >>

Typed datasets and xml documentation
Posted by alex NO[at]SPAM logic-tools.com at 8/31/2005 1:46:15 PM
OK, so you are using ndoc to make some nice documentation for your C# class library. What the hell are you going to do with your typed datasets? When you compile you get 100s of warnings and you aren't going to exactly document all that - even if you do it will get lost when you change your d...more >>

TCP Socket end of data?
Posted by gilad at 8/31/2005 12:58:34 PM
I am trying to write a program that will send an HTTP request and get an HTTP response. However, I am having trouble getting the full payload (i.e. the web page) returned from the host. I am using a blocking socket, so I need to test the end of the data somehow, or I get a "hung" effect whil...more >>

Finding occurences of many strings in another
Posted by Spondishy at 8/31/2005 12:32:22 PM
This is probably more of a algo question than specifically c# (although a c# solution would be great. I'm trying to parse a string and ensure that at least one occurence of a number of other strings within the main string. These must not overlap. For example, if I had the string... "The cow...more >>

Embedded Desktop Control
Posted by atn2002 NO[at]SPAM hotmail.com at 8/31/2005 11:57:19 AM
Does any one know of a free control or sample code that will allow me to place a control in my Forms that will act like the Windows desktop? Basically I want an area where I can add icons and move them around to ANY x/y point in the area. The ListView control doesn't work for me because (as far...more >>

questions
Posted by Britney at 8/31/2005 10:50:57 AM
1. what are virutal functions and how are they differenet from overloaded function? 2. what are interfaces and how are they different from abstract classes? ...more >>

ArrayList of custom classes as Datagrid's DataSource
Posted by dlobalzo NO[at]SPAM gmail.com at 8/31/2005 10:40:58 AM
Hi guys, I've been reading several topics that talk about creating a custom collection to use it as DataSource of a Datagrid. But the fact is I have a class called Action and another class called Profile. In my application, the user assigns several Actions to a Profile. I thought doing this us...more >>

Problem to remove \0 in the array in the best way
Posted by chrisben at 8/31/2005 9:56:08 AM
Hi, I have a windows C# app which read data through socket from a C++ app in a linux box. After a marshal a pointer and get an array of string ends with \0, I did something like this string s=new string(array); s = s.Replace("\0",""); if(s == "ABC") success else fail However, if...more >>

C# using statement
Posted by Trevor at 8/31/2005 9:11:18 AM
I have seen the "using" statement used in strange ways in some C# code. Example: using (StreamReader sr = new StreamReader("TestFile.txt")) { // do some stuff... } What effect does the using statement give you in this example? ...more >>

Newbie question - execute VB DTS package
Posted by Snoopy at 8/31/2005 9:02:46 AM
Hi I have created nice DTS package and saved it as .BAS file. How can I customize and execute it now from C#.NET? I have found on the net that I have to create custom task. I have customtask.dll, now I should implement something new there or I can just use it? Can I set properties from there ...more >>

Object Oriented approach to receiving messages
Posted by Brian at 8/31/2005 8:47:14 AM
Hi, I come from a C background. I am trying to receive messages over a serial port. The message data structure format is along the lines of int message_id; int message_length; int data[message_length]; There will be different messages received with different IDs and variable lengths. ...more >>

Using Word
Posted by Ken at 8/31/2005 8:23:13 AM
I'm building an app that uses MS Word. I'm developing it on 2 machines, one with Office XP, the other with Office 2003. I found that one of the methods (SaveAs) has changed signatures between the versions. In this case there is an additional, optional calling parameter at the end of the list. W...more >>

Enabling SSL on the server with test certificate
Posted by Lenn at 8/31/2005 8:05:07 AM
Hello, I've been struggling with this for couple of days now. All I want to do is to enable SSL protocol on the webserver. I want to be able to generate and sign my own certificates. I used various tools to do that, such as makecert.exe from .NET SDK and even downloaded OpenSSL and genera...more >>

GUI Lib Recommendation
Posted by John F at 8/31/2005 8:01:07 AM
Can anyone recommend a good GUI lib that provides sliding toolbars and other cool visual components? I've looked at Xtreme Suite by Codejocksoftware and Dot Net Magic by Crownwood. Dot Net Magic is in the United Kingdom and I don't want to pay the telephone bills to contact them as well as X...more >>

"DataTable.Select(String*)" criteria
Posted by TastoEsc at 8/31/2005 7:24:03 AM
I'm working with a dataset table populated with people name which contains "'" and "%" symbols. How can i filter my table with Select method? These symbols aren't supported by a simple string like string name = "Francesc'one"; DataRow[] filteredRows = ds.Tables["Contacts"].Select("Name = '" ...more >>

rowstate problems
Posted by Phil Townsend at 8/31/2005 7:20:39 AM
I have a datagrid in a windows forms application. The datagrid gets its data via a web service. Users can modify rows in the datagrid then post their changes. However, when changes are made the rowstate remains "Added" for all the rows--those that were modified AND those that were unchanged. Her...more >>

Newbie need help with a c# concept/exercise from Sams, Teach Yourself The C# Language In 21 Days
Posted by fred_barney NO[at]SPAM bigmailbox.net at 8/31/2005 6:59:49 AM
I'm slowly working my way through this book and in working on one of the exercises at the end of chapter 6 I'm having problems. Below is the text of the exercise. ------------------------------------------------------------------- 5. Using the dice class that you saw on previous days, create ...more >>

Using c++ dll in c#
Posted by Juan Martinez at 8/31/2005 6:54:38 AM
Hello! I am trying to use a DLL that contains c++ functions in c# but I have not been able to make it, this DLL is of a software called LOOX Maker, which is a graphic editor that has many options reason why I want to reuse that code so I not to have to program it again, also I have source c...more >>

Can Managed C++ Eliminate Boxing/UnBoxing Overhead?
Posted by Peter Olcott at 8/31/2005 6:40:46 AM
I want to be able to make my .NET applications run just as fast as unmanaged C++. From my currently somewhat limited understanding of the .NET framework and the C# language, it seems that Boxing/Unboxing might present of problem. Since C++ has pointer syntax, I was thinking that this might elim...more >>

Timers and Services
Posted by Paul.Hawkes NO[at]SPAM gmail.com at 8/31/2005 6:28:06 AM
Hello, I've written a windows service and so far what it does is browse to a shared directory on an extranet. Check to see if any files exist in this folder, if any do, the service downloads, processes and then uploads a response file back up to a different shared folder. My Question: I woul...more >>

Convert dd/MM/yyyy to sql server format
Posted by Assimalyst at 8/31/2005 4:49:16 AM
Hi i have a value entered into an asp text box, procedureDateTxtBx.Text, thet has the format dd/MM/yyyy. I need to convert this into a format recognisable by SQL server in order to properly query the database. I've tried a few DateTime.Parse methods but can't get any to work. The format of ...more >>

button stops loop
Posted by kaiser at 8/31/2005 4:43:58 AM
Hello I am just starting to learn c# and am looking for help pls....I want run a loop until a user clicks a button that stops it...how do I do this? ...more >>

Command window pops up on startup
Posted by H=E5vard_Olerud_Eriksen at 8/31/2005 4:18:26 AM
I've got a Windows application what I started out writing as a console app. Now when I start the application a console window pops up behind the Windows form. Is there any way to get rid of this? I've removed all my Console statements so there are no (as far as I can see) references to a consol...more >>

Crystal Reprot viewer print dialog
Posted by Das at 8/31/2005 3:45:11 AM
Hi all, I'm using crystal reports for the reporting..... the system is running on more than 10 clients... When show the report in the crystal report viewer & then click the print button. Print button on almost all the system comes immediately but on a couple of system it takes a lot of ti...more >>

Object Serialization
Posted by sandhya at 8/31/2005 3:44:03 AM
How can i serialize an Excel charting Object to XML using XmlSerializer IN .Net? I tried serializing it ..but comes with an error "Cannot Serialize Interface Excel.chart" Let me know how we can do this ...more >>

Question re Textbox Component
Posted by Stuart Ferguson at 8/31/2005 2:32:35 AM
Is there a way from a textbox that you can establish the maximum length of the text that will be displayed in the textbox on the screen. What i am not requring is the Max Length of the Textbox but the Maximum Displayed Length. Any help is appreciated Stuart *** Sent via Developersdex...more >>

VS2005 - Client Side Javascript and Wizard Control
Posted by YARG at 8/31/2005 2:28:31 AM
I've got a load of client side javascript that I want to use with the wizard control. The idea being that when the user clicks on the "Next" button then it will validate just that page. I don't want to use the built in control validation as I have a lot of javascript that I'd like to reu...more >>

Resizing a FolderBrowserDialog
Posted by Michael A. Covington at 8/31/2005 1:45:04 AM
Has anyone hacked a way to resize a FolderBrowserDialog and make it wider than the default size? Presumably, this could be done by supplying a HookBack delegate, intercepting the INITDIALOG message, and doing the resizing and repositioning then - but I'm quite foggy on how to do that. ...more >>

How to create form with #32770 classname in C# ?
Posted by Flo at 8/31/2005 1:35:03 AM
Hi, i want to create a dialog box form in C# but it is essential that i manage to set the classname of the window to #32770 which is the classname for system dialog boxes. For the moment, i was not able to find any way to achieve this on the web. The only thing i tried was to use the .NET ...more >>

Creation Generic class
Posted by Frank VDL at 8/31/2005 1:04:27 AM
Hi, I have some syntax problems creating my own generic class. my code: public abstract class IndexBase<T> { private Dictionary<T, MyBaseType> _dict; public IndexBase() { _dict = new Dictionary<T, MyBaseType>(); //this one is going wrong } } During compilation i get t...more >>

new versus override
Posted by ssg31415926 at 8/31/2005 12:34:09 AM
Could someone explain the implications of the differences between using 'new' and 'override' on a member declaration, please. I checked out MSDN but it's not exactly written for the beginner. E.g. on Name Hiding, it starts with this: "The scope of an entity typically encompasses more program ...more >>

html optimizer
Posted by www.felesh.tk at 8/31/2005 12:16:48 AM
i want a html broser with c# i like to know how i can make a html optimizer with c# if u have a sample code for me i become glad i am waiting forr... ...more >>

Opacity for controls
Posted by Frank Rizzo at 8/31/2005 12:03:53 AM
Is it possible to implement a feature similar to Form.Opacity for controls? I have an image assigned as a background for the form. I'd like to partially see the background image through the controls. Is something like this possible? ...more >>

button attributes disable validation
Posted by Tim Meagher at 8/31/2005 12:00:00 AM
I am trying to use both validation controls and to add submit button attributes, but when I add the button attributes, the javascript fpr the validation controls is no longer created for the page. How can I use both? Thank you, Tim Meagher ...more >>

Number of rows
Posted by Washington at 8/31/2005 12:00:00 AM
How can I get the number of rows in MS Access table? I know how to do that through the BindingManager, but in that case I need to have Grid control. int numRows = dataGridDetails.BindingContext[dataGridDetails.DataSource, dataGridDetails.DataMember].Count; I would like to know ho...more >>

exclude classes from build process
Posted by Marco Zapletal at 8/31/2005 12:00:00 AM
hi list, i have an c# project, which contains some additional classes (nunit testclasses), which are not needed in a release build? is it possible to exclude them in the release build process? i dont want to put the nunit tests in another project, because then i have to switch the access...more >>

Installed program path
Posted by Washington at 8/31/2005 12:00:00 AM
Is possible to find where program is installed in the cases if path is changed during installation? Can you point me to specific information? If possible, real code sample. Thanks I appreciate your help. ...more >>

split a string by number
Posted by ad at 8/31/2005 12:00:00 AM
I want to split a string into string[] by every a number. for example ss="abcdefghi; split(ss,3) --> "abc", "def","ghi" Are there this string function? ...more >>

Compiling to EXE succeeds but not to DLL
Posted by Terentius Neo at 8/31/2005 12:00:00 AM
I have two classes, A and B, both in the same namespace. If I compile files to a DLL, the A class does not compile. The error message is "[C# Error] BaseObject.cs(69): The type or namespace name 'Logger' could not be found (are you missing a using directive or an assembly reference?)" No...more >>

HotSpot?
Posted by Perspolis at 8/31/2005 12:00:00 AM
Hi all I want to have hotSpot on my image. I put some lables on it and when I click image I can know where I select. it works but if my image zoom in/out I lose positions of lables.. what's your opinion about that??is there a better way to have hotspot?? thanks in advance ...more >>


DevelopmentNow Blog