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# > december 2004 > threads for tuesday december 7

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

Use Hex to build image
Posted by NuBBeR at 12/7/2004 11:45:08 PM
I have an image that has been broken down to hex and would like to rebuild it from the resulting hex. Does anyone have any ideas? Thanks in advance! ...more >>


Unicode convert
Posted by [Yosi] at 12/7/2004 11:27:07 PM
Hi, I have a string array includes unicode data, how can I print the char (real string), for example: "\x08\x03\x34\0.\0\x39\0" What should I do, I want to see the char of this array of unicode. I want to make convert between Unicode to string and string to Unicode. ...more >>

A threading question re MSDN example
Posted by Zach at 12/7/2004 10:47:19 PM
Re: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/ frlrfSystemThreadingMonitorClassPulseTopic.asp Why is the example shown there done as it is, and not as below? (I mean the logic not the little changes in nomenclature) using System; using System.Threading; u...more >>

Accessing dictd from Windows...?
Posted by (tantiboh NO[at]SPAM hotmail.com) at 12/7/2004 10:13:13 PM
Anybody ever come across away to access Linux's dictd servers in a Windows program? ********************************************************************** Sent via Fuzzy Software @ http://www.fuzzysoftware.com/ Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resource...more >>

TextBox Selection/Highlight
Posted by Jeff Bangert at 12/7/2004 10:09:08 PM
How to turn it off? For example, this code TextBox1.Text = "hello"; puts "hello" in the TextBox, but it is highlighted. I want to turn off the highlighting. I have looked at every TextBox design property. The TextBox is used for debug program output. Highlighting is hard to read. ...more >>

Distribution with Crystal Reports
Posted by Alberto at 12/7/2004 9:59:02 PM
I've done an application with some reports in Crystal Reports (with the version included in VS.NET) but I don't know how to distribute it to the final customer. Thank you for your help. ...more >>

How do I intercept a close event?
Posted by MrNobody at 12/7/2004 9:23:03 PM
How do I change a window's behavior so when someone clicks the little 'X' in the upper right corner it actually hides the dialog, instead of disposing it?...more >>

Round function?
Posted by ORC at 12/7/2004 9:20:05 PM
Is there a round function that do a "Normal" rounding and not the round to nearest as the Math.Rounds is? Math.Round(3.44, 1); //Returns 3.4. Math.Round(3.45, 1); //Returns 3.4. Math.Round(3.46, 1); //Returns 3.5. but what I am looking for is a round function that returns 3.5 when rounding ...more >>



opening a web page via a windows form
Posted by MrNobody at 12/7/2004 8:55:04 PM
I found an explanation of using Process.Start to open web pages but it has the following comments: // url's are not considered documents. They can only be opened // by passing them as arguments. So how do i get the default web browser ? The example used IExplore.exe but I don'...more >>

Identify File Difference
Posted by Josh Carlisle at 12/7/2004 8:47:24 PM
I've been tasked with developing a document/file versioning system of sorts. Similar to a very scaled down source control system. We're integrating it very closely with an existing application so it must be 100% home grown. Similar to how many source code controls systems behave I'd like to on...more >>

How to Insert New Row Into Existing DataTable While Looping DataTable
Posted by kelvinweb NO[at]SPAM gmail.com at 12/7/2004 8:19:27 PM
Dear All, Please help. Same as subject !!!...more >>

programmatically add/remove windows components
Posted by Tzvika at 12/7/2004 7:54:55 PM
Hi, Is there a way to programmatically add/remove windows components in c# or in any other language What is the API fro that? ...more >>

delaying TextBox.TextChanged event
Posted by VMI at 12/7/2004 6:01:29 PM
I'm trying to some dynamic searching to my windows Form so I added code in my TextBox.TextChanged so that, after every text change, a search is done to a datatable. So if I want to type the string "Memphis", it'll do a search (and display) all the items after the user types "M", then another ...more >>

Serializing a dataset
Posted by John J. Hughes II at 12/7/2004 5:15:53 PM
I am serializing a dataset and sending it across a slow socket connection using the following code. I know I can send binary data across a socket but when I serialize the dataset it ends up being text and very large. I am thinking about zipping it but was wondering if maybe there was a bette...more >>

ASP.Net javascript "focus" method needs to be called twice??
Posted by TC at 12/7/2004 4:41:11 PM
This is a multi-part message in MIME format. ------=_NextPart_000_000A_01C4DC7B.8F203FC0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I am using the script below to open a new window and once opened, = redirect to that open window fr...more >>

Another Newibie Post: Path to csc.exe
Posted by John Adcock at 12/7/2004 4:31:42 PM
Hello, Everyone! My Visual Studio IDE seems to be working properly but command line compilation won't work because csc.exe is not in the path statement. When I try to envoke the compiler (with a "csc filename.cs", from within the directory where the source file is located), I get an error ...more >>

Overloading with same param types
Posted by Brian at 12/7/2004 4:28:03 PM
Does anyone have a good way to handle the following situation... public void FilterResults(int a, int b) I need to filter based on none, one, or both parameters, so they both need to be "optional". Overloading is eliminated as a possible solution because both parameters are the same type. ...more >>

Number of files inside a directory (including all subdirectories)
Posted by jj at 12/7/2004 4:14:10 PM
Hi folks: I can get the list of files in a certain directory by using Directory.GetFiles("c:\temp"). But I want to get the number of files (ex. 20) within a directory including all subdirectories. I don't want to scan through the whole recursively and count. Is there a way? Thanks John ...more >>

newbie question on C#
Posted by Jacky Luk at 12/7/2004 3:54:39 PM
Hi, I am attempting to create an ASP.NET Web Service on the local host, but I couldn't even get it started. First off, I have a project created on http://localhost/MyFirstProject and is stored in G:\C# But I was refused and back to windows upon this action. Thanks in advance Jack ...more >>

Get Current Method's parameter values as collection with reflection(?)
Posted by Angelos Karantzalis at 12/7/2004 3:37:36 PM
Hi y'all .. I hope this is an interesting one ... Within an executing method, I can call MethodBase.GetCurrentMethod() and retrieve info about the method that's currently running, including parameter names & data types. Is there a way to get the parameter v a l u e s as well ??? ( I know ....more >>

Best Practice: Remove ',' from a string
Posted by Mike at 12/7/2004 3:36:14 PM
I want to remove all commas from a numerical form field. I know that Replace(",", "") will to the job, but Replace(',', '') seems more appropriot but does not work. Any efficient suggestions would be appreciated. Thank, Mike ...more >>

Change TreeNode.Text before editing
Posted by Patrick Noll at 12/7/2004 3:15:03 PM
hi ng, i have a problem when i try to change the text property of a TreeNode just before the user is able to edit this property. Example: // Label before anything happens... TreeNode.Text = "TestNode {ShortCut}"; // when user enters the edit mode, i want to remove the ShortCut entry... Tree...more >>

Graphics Drawing in Form Load
Posted by Al Sav at 12/7/2004 2:45:01 PM
I have the following in form load. When the form shows up, the graphics vanishes. This works, if I execute this from button_click. But, even that vanishes if minimize and restore the form. Similar to the functionality of ClipControls = False in VB6. How do I get to draw in a groupbox (same pr...more >>

VBA
Posted by BOOGIEMAN at 12/7/2004 2:35:39 PM
Could somebody tell me is Visual Basic for Applications dead language or it will keep alive in the future. Is Microsoft planing to make something like Visual C# for Applications or I have to learn VBA too. Question's maybe stupid, but I don't have expirience in programming and learning new prog...more >>

Help with the magically instantiating collection class
Posted by thechaosengine at 12/7/2004 2:21:27 PM
Hi everyone, I posted a question earlier about a collection class that I'd made seemingly getting instantiated magically after a class that contained a variable of that type had its constructor called. The constructor didnt touch the collection class and defineately didn't initialise it....more >>

Creating an ambience like windows media player???
Posted by Darryn Ross at 12/7/2004 2:10:12 PM
Hi, I was wondering how you create a program that mirrors the ambience on "Windows media player" the swirling and mixing colours? Regards Darryn ...more >>

TabControl without tab buttons
Posted by flam NO[at]SPAM rfranco-dot-ca.no-spam.invalid at 12/7/2004 1:57:00 PM
Is it possible to have the TabControl but without the tab buttons, but all the options like tabindex available? *-----------------------* Posted at: www.GroupSrv.com *-----------------------*...more >>

iValue.ToString("###########0",CultureInfo::CurrentUICulture));
Posted by Olaf Baeyens at 12/7/2004 1:20:47 PM
A question: (C#, C++) If I use iValue.ToString("000000000000",CultureInfo::CurrentUICulture)); The I get a string with a fixed lengt if format: "000000542663" But since I want the leading "0" gone, but still have the fixed string length I replaced it with this: iValue.ToString("###########0...more >>

Trouble with reference counting
Posted by BravesCharm at 12/7/2004 12:45:48 PM
BravesCharm Dec 7, 10:57 am show options Newsgroups: microsoft.public.dotnet.distributed_apps From: "BravesCharm" <mastrauc...@gmail.com> Date: 7 Dec 2004 10:57:40 -0800 Local: Tues, Dec 7 2004 10:57 am Subject: Have trouble with reference counts! Reply | Reply to Author | Forward | Pr...more >>

DLL Handle, CBT_Hook
Posted by FikiMiki at 12/7/2004 12:18:53 PM
Hi, I would like to ask how should I get handle of managed dll library? I need it to set up CBT_Hook running over different process. Do I have to use P/Invoke and LoadLibrary/GetProcAddress API functions? ...more >>

Splash screen when loading dll
Posted by David T. at 12/7/2004 11:50:09 AM
How can a splash screen be included that appears once for 2 seconds when ever a dll is loaded. This is to identify the component used is an educational version or a demo version and that the user of the code should not be using it in a commercial app. ...more >>

Sendkeys.send key combinations for 'Alt T'
Posted by sutcliffe_grant NO[at]SPAM hotmail.com at 12/7/2004 11:40:54 AM
I need to use a sendkeys key combination to automate the "accept files" that a remote user wants to send to me via Windows messenger. I am using automation to work with Windows Messenger client in a Winforms C# application. I have tried a number of code segment combinations for ALT T combinat...more >>

SQL statement in Access
Posted by John Sutor at 12/7/2004 11:24:51 AM
I am trying to write an insert statement in Access but it is not working with the OleDBCommand object. HEre is the code string sqltxt= "INSERT INTO contacts ( Last_Name, First_Name, Email_Address, [Note] )" + " WHERE (Last_Name)='Testlast') AND (First_Name)='TestFirst') AND (Email_Ad...more >>

SQL statement in Access
Posted by John Sutor at 12/7/2004 11:24:46 AM
I am trying to write an insert statement in Access but it is not working with the OleDBCommand object. HEre is the code string sqltxt= "INSERT INTO contacts ( Last_Name, First_Name, Email_Address, [Note] )" + " WHERE (Last_Name)='Testlast') AND (First_Name)='TestFirst') AND (Email_Ad...more >>

.resx-file read/write
Posted by Nadja Schmitt at 12/7/2004 11:01:46 AM
Hi! Is it possible to read/write a *.resx-file? The problem: I'd like to add some more columns to my resource-file, than read the data out of the file and write the data in this file. I tried this with ResourceManager and ResXRessourceReader/ResXRessourceWriter, but it did not work. Is ...more >>

How to compress and repair access database in c#.net
Posted by Venkatesha R at 12/7/2004 11:01:18 AM
This is a multi-part message in MIME format. ------=_NextPart_000_0008_01C4DC4C.147B8100 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, How to compress and repair access database in c#.net ? Please specify = the dll's which are necessary ...more >>

XmlInclude does it do anything?
Posted by R.A. at 12/7/2004 10:39:53 AM
Hi I have a web service that returns a custom class in one of the service methods. public class MyClass { public string Name; public string Street; } web method: [WebMethod (Description = "Get customer info")] public MtClass [] GetCustomerList (string ZipCode) { .... ...more >>

Retrieving command line arguments
Posted by Valerie Hough at 12/7/2004 10:01:27 AM
Is there a way to retrieve command line arguments to my System.Windows.Forms object OTHER THAN using the constructor Main( string args[] ) ? Thanks in advance. Chris Hough ...more >>

Outlook 2003 Object Model using Visual C# 2005 Express IDE Beta1
Posted by WillShakespeare at 12/7/2004 10:01:04 AM
Following an intro article from the msdn homepage about using C# to access the Outlook 2003 Object Model in Applications and Add-Ins, I came across a problem with the OPine example. I was reading through the article on the C# msdn home page about introducing the Outlook 2003 Object Model th...more >>

Can I run windows database application online?
Posted by Karl at 12/7/2004 9:59:12 AM
In the book, I read that we can call a C# exe from Internet Explorer. I tried with a small program. It worked. But when I tried with a database program, which works when I call it directly. It didn't work. I got an IO exception. I guess it is because the application has to access SEL server. B...more >>

Web service Impersonatation?
Posted by Frank Wisniewski at 12/7/2004 9:41:28 AM
When I set up impersonation in the web.config file and specify a user and password I get strange results. This line of code will get me the user account I set to impersonate: System.Security.Principal.WindowsIdentity.GetCurrent().Name This line of code will get me my user account ever time: ...more >>

.resx-Datein einlesen/wegschreiben
Posted by Nadja Schmitt at 12/7/2004 9:30:44 AM
Hallo zusammen! Ich habe folgendes Problem: Ich will eine *.resx-Datei um weitere Spalten erweitern und diese Datei anschließend auslesen bzw. in diese Datei die Ressource schreiben können. Der RessourcesManager unter C# und die ResXRessourceReader und ResXRessourceWriter bitten die...more >>

Call a C# dll from VB6
Posted by Marathoner at 12/7/2004 8:59:02 AM
Can anyone tell me how to call a C# dll from VB6? -- Robert Hill Senior Programmer/Analyst Wake Forest Univ Baptist Med Ctr...more >>

Time elapsed since midnight in C#
Posted by Zach at 12/7/2004 8:46:30 AM
I seem to remember that there is a method for establishing time elapsed since midnight, which is it? Thank you. Zach. ...more >>

Changeing supported runtime for 2005 Beta
Posted by Brian at 12/7/2004 8:15:01 AM
How you you change the supported runtimes for projects with 2005 Beta? I've tried: 1. select project in solution explorer. 2. project > properties Now I get a view of a new folder with this information: Application Reference Paths Build Events Build Debug Resources Settings In the 20...more >>

How to get a file's date/time correctly?
Posted by Andrew at 12/7/2004 8:09:06 AM
Hi, friends, I use the following C# code to find out date/time for all files in a directory: (Those files are retrieved from VSS). VSS_Item.Get(ref tempFile, (int) SourceSafeTypeLib.VSSFlags.VSSFLAG_TIMEMOD); if (File.Exists(tempFile)) FileDate = File.GetLastWriteTime(tempFile).T...more >>

Datalist loadtemplate
Posted by Fabrizio at 12/7/2004 7:53:04 AM
Hi, I'm trying to create a page with a datalist that loads from a template the ItemTemplate, which contains a linkbutton that should have the commandname = "edit" But when I click on the link button nothing happens. I tried also the findcontrol method, without any result. That's the templat...more >>

Accessing complex objects through properties
Posted by Jason Bell at 12/7/2004 7:44:04 AM
Every example of properties I've seen have used simple types such as integers and strings. Here's the scenario I'm trying to work out (3D graphics programming): I have a class called Matrix16f, containing 16 floats that define the matrix, which in turn defines an object's position and orie...more >>

add option to right click mouse menu
Posted by T.H.M at 12/7/2004 7:10:03 AM
Hello I create a datagrid(C# visual studio .net , aspx file) with a few column. One of the column is button column, linkButton type. In run time when I click on the data in the column with right click mouse I get the standard menu (with many option like: open, open new window, save target...more >>

Question about events and object arrays
Posted by Peter Krikelis at 12/7/2004 7:09:04 AM
Hi, Finally figured events and delegates whew! Thanks to the people in this community that helped me out. So now I have a class that raises an event. Now if I instantiate an object array of that class, and the event fires, is there any way of getting the array index of the object that ...more >>

Startup application
Posted by Tarscher at 12/7/2004 6:57:06 AM
Hi all, The entry point of my application is the controller class. After the creation of some variables a form should be shown. I do: MainForm myForm = new MainForm; myForm.Show(); The form shows for a mment but then disappears. How can I show the form in a proper way? regards Stijn...more >>

KeyCode Constants for C#?
Posted by deko at 12/7/2004 6:19:15 AM
Does anyone know where I can find a list of KeyCode constants for C#? I found the list for VB here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconconstantchangesinvisualbasicnet.asp but no luck finding a list for C#. What I'm trying to do is limit input int...more >>

Application blocks and connection pool errors
Posted by Phil Townsend at 12/7/2004 5:49:47 AM
In order to help alleviate connection pool errors, we have switched to the Microsoft Application blocks to help manange connections. Still, we are getting problems with connection pools reaching their limit and causing page errors. Aren't application blocks supposed to address this issue? ...more >>

Get full name of user
Posted by Jesper at 12/7/2004 5:25:02 AM
Hi, I don't know if its possible, but I would like to get the full name of the user. Using string name = System.Environment.UserName; only gives me the login name of the user - however, when I push the windows start button (in XP) , my full name is shown at the top of the start pop-up. ...more >>

Generate image on the fly c#
Posted by Popoxinhxan at 12/7/2004 5:01:03 AM
HI guy I am working on the web application that required to display the chart image on the page. The process is clicking the button and browser will popup another windows that displayed the image. The problem is the image is not a file but a array of bytes so that i couldn't us...more >>

Problem: Windows Service creating Outllook object
Posted by W Akthar at 12/7/2004 4:31:21 AM
Hi I am trying to create a windows service which queries SQL Server on timed intervals and depending on the results send appointments to Outlook. The problem lies when I try to create an outlook application object. StreamWriter sWriter6 = new StreamWriter (@"C:\CMSOutlook.log", tru...more >>

Windows Service - Error 1053
Posted by Richard Steele at 12/7/2004 3:31:02 AM
I have created a WinForm application that needs to be run as a windows service (the PC is inaccesible by any user) i have successfully installed the application as a windows service. When i start the service, i get the following error Error 1053: The service did not respond to the start or ...more >>

Controls in Datagrid column
Posted by krallabandi NO[at]SPAM gmail.com at 12/7/2004 3:20:43 AM
Hi How to change any control properties in a datagrid column. Basically, I want to check all controls in a datagrid column, if the particular control is label, I need to chage the properties of that label control. Is that possible? Pls help me to provide a codesnippet. Eg: for(int i...more >>

Path problem
Posted by hoffeller NO[at]SPAM 3-i-d.com at 12/7/2004 3:01:16 AM
Hello, i try to write some data into an XML-file via c#. When I specify the path like "c:\\temp\\test.xml" the XmlTextWrite could open the file. But when I tried to get the path from Directory.GetCurrentDirectory() and combine it with my file, the XmlTextWriter couldn't open the file. The ...more >>

Menu icons
Posted by R2D2 at 12/7/2004 2:55:03 AM
Is there any way of showing toolbar icons to the left of the main menu entries? Thanks...more >>

Floating toolbars
Posted by R2D2 at 12/7/2004 2:53:04 AM
Hello, I am relatively new to .NET and was wondering how to create a floating toolbar (like the ones in MS Office) to use in my applications. The only one I could find in VS.NET is a standard one that cannot be moved aroud. Please help!! Thanks...more >>

Kiosk mode
Posted by Honey at 12/7/2004 2:19:01 AM
I am developing a cyber cafe like application where users will not have access to any other application on the machine except they pass through my application interface.They should not be able to go to or acess the windows start menu.I will appreciate any help on this....more >>

DDE examples in .NET?
Posted by Dale at 12/7/2004 1:46:01 AM
I'm attempting to use the DDEML library in C#.NET. Some of the structures are not well documented however, leaving confusion over structure sizes and permitted values. Anyone know of an example in .NET using either DDEML or plain DDE? I'd prefer C#, but anything would be useful. Thanks. ...more >>

How big is a C BOOLEAN
Posted by Dale at 12/7/2004 1:43:34 AM
Stupid question, but since I can't find it in the VS help... I need to create a structure and pass it to a Win32 API function. How many bytes is a C BOOLEAN? And is it the same size as a C# bool/System.Boolean? If so is it set (values) the same, or do I need to create an integer of the requi...more >>

thread timing
Posted by droopytoon NO[at]SPAM hotmail.com at 12/7/2004 1:09:45 AM
Hi, I don't understand why sometimes, a loop running in a thread takes much more time than usual. I have a thread that must call each 20 ms a C++ unmanaged function. I made a C++ managed wrapper for calling this function from C# (see below _serialChannel.ItTask ()). It works great but for th...more >>

key-value pair to drop downlist
Posted by Tom Gao at 12/7/2004 12:27:20 AM
hi guys I'm wondering how do I pass a key-value pair to a drop downlist ? since I can not use hashtable as there is nor order.. and I can not use sortedlist as the order which I supply to the dropdownlist may not be sorted. how can I do this ? Thanks Tom ...more >>

newbie question.
Posted by Jensen Bredal at 12/7/2004 12:00:00 AM
I have written a command line program. I want to log my standard output to a file instead of "Console.writeline" In the old days i had to create a file , and format each line and write it to the file . Does DotNet simplify my job? Many thanks in advance. JB ...more >>


DevelopmentNow Blog