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

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

CodeParser
Posted by Jeti at 4/19/2004 11:44:17 PM
is there any class that can parse the source code? I tried with ICodeParser, but I can't make it... Whats the best way to parse source? example: the user of my application enters his source into textbox, and i want to parse it and display summary... how to do that? any hints? thx -- Je...more >>


How to include a file in a project
Posted by FrzzMan at 4/19/2004 11:29:23 PM
The subject may sound a lil dumb :D But my problem is: When my app run, it'll check if a specific file existed or not, if existed it's OK, if not it will create default file. I want to hardcode that file into my project and use it when needed. Hope you understand my problem... I don't k...more >>

locking question
Posted by Morten Wennevik at 4/19/2004 10:38:20 PM
Hi, I have a MDIChild with static properties that can be updated at any time by the MDIParent. These properties may also at unknown times be accessed by one or more worker threads. Now, I'm not too familiar with threads, but is there a danger that these properties can get corrupted? MD...more >>

C# for windows application
Posted by Vikram at 4/19/2004 9:41:37 PM
Is it not practical to develop windows application ujsing c# ? Its a big question and hitch going in our organisation, please let me know of any good articles, sample projects etc by which it seems as if c# is not bad for windows application. THanks...more >>

Hastable/SortedList->Combobox
Posted by nevin at 4/19/2004 9:30:45 PM
Hello all, I've looked on the net and can't seem to find what I need so I must be searching badly or have (another) 'non-problem'. I am simply trying to move the values of a hastable or sorted list into a combobox control. I'm willing to lose the key item of the collection I just need the val...more >>

Does anyone know what is wrong with these imports from User32.dll?
Posted by Will Pittenger at 4/19/2004 7:10:41 PM
The constants.windowLongIndices type is an enum. That is there so I can ensure the appropriate values are always used. Since I had to replace the GWL macros with new values, I decided to prevent passing 7 -- or whatever the author of the caller felt like. I tried both ExactSpelling=true and s...more >>

14 and 15
Posted by Thom Little at 4/19/2004 6:46:53 PM
Dumb questions 14 and 15 ... 14 How to I access the User Name in C#? 15 How do I access the Organization Name in C#? -- -- Thom Little -- www.tlaNET.net -- Thom Little Associates, Ltd. -- ...more >>

Event consuming
Posted by Joshua Moore at 4/19/2004 6:28:06 PM
I have a dotNet device (slow as tar) that is doing some really expensive processes, and I need a way to handle the user clicking a button too quickly, as I can't keep up with the redraw (1-2 seconds wait time per click). I feel an event is the way to go, but don't know how to say "if the event ...more >>



Excel 2003 Native Object Library (.net version ?)
Posted by cybertof at 4/19/2004 6:26:42 PM
Hello, Is there a .net native assembly / object_library to communicate with Excel 2003 ? All articles I have read are all using the Microsoft Excel Object Library which is a COM object, even from .NET ! It sounds to me strange that there would not be any over way to automate Excel 200...more >>

Changing UserControl property in the designer
Posted by Jake Smith at 4/19/2004 5:35:41 PM
In the designer, when I change the Text property of my UserControl, no code is generated in order to save the new setting. This means that when it is closed (saved) and opened again, or when the program is complied and run, it has changed back to its orignal setting. What am I doing wrong? J...more >>

Send to Tray..
Posted by VJ at 4/19/2004 5:33:06 PM
Is it possible to send a application as a Icon to the System Tray on startup?.. I am sending it tray on few events inside my application, I want to send it to tray on startup.. I tried the following it did not work.. I still the minimized view above the task bar.. this.WindowState ...more >>

sending text to outlook express
Posted by Patrick de Ridder at 4/19/2004 5:16:17 PM
I can send (email_address,subject,text) to outlook express. What I can't do is retain the line breaks. Could anyone please tell me how to do that? Sending "\r\n" doesn't force line breaks. Sending rtf doesn't work because outlook express cannot deal with rtf. I would prefer to send ASCII ...more >>

Object reference problem
Posted by db_from_mn at 4/19/2004 4:06:32 PM
I've got a very strange error. I get an error message: "Object reference not set to an instance of an object", which I've seen many times before, for good reason. But this time, I cannot find fault with my code. Here's my function call: eError = CUCanApi.eUCanGetBootFirmwareInfo( hDevice,...more >>

creating db connection by dragging from server explorer
Posted by Mark Broadbent at 4/19/2004 4:04:22 PM
why can i not drag a database node to the designer to create a new connection (as per my literature suggests). I vaguely remember being able to do this in Vis Studio 6. I can create a connection object every other way ...namely 1. right clicking Data Connection node ....... 2. draging connect...more >>

MultiThread and UI Forms update
Posted by cybertof at 4/19/2004 3:08:10 PM
Hello, I have read the following article : "You cannot interact with UI elements from a thread that did not create them." The article comes from http://www.codeproject.com/csharp/winformsthreading.asp I have changed the 2 thread code to make them interact directly with the UI Form...more >>

SelectNextControl
Posted by VJ at 4/19/2004 2:55:39 PM
I am in the last row of my datagrid and in the last but one column. I don't want the user to tab to the last column, but to my save button. How do I accomplish this?, using SelectNextControl does not work.. I even tried base.Parent.SelectNextControl, its of no use.. I have the code below.. ...more >>

C# Thread parameter question
Posted by Serge Klokov at 4/19/2004 2:38:45 PM
Hi! When I create a Thread Thread t1 = new Thread( new ThreadStart(Incrementer) ); How I can pass param in function "Increment"? if i use Thread t1 = new Thread( new ThreadStart(Incrementer(12)) ); i'm getting an error. public void Incrementer( int myParam ) { ...more >>

System.NullReferenceException -- tag -- treeview
Posted by Adie at 4/19/2004 2:30:04 PM
Hi, I can't seem to use the tag property of the treeview without craching my app. The basic code: while(SqlProducts.Read()) { TreeNode childNode = new TreeNode(SqlProducts.GetString(0)); cnode.Tag = "Product Details"; parentNode.Nodes.Add(childNode); } private void treeP...more >>

install mobile internet toolkit
Posted by wyl_lyf NO[at]SPAM yahoo.com at 4/19/2004 2:15:12 PM
hello all, I'm trying to install the mobile internet toolkit 1.0. but it says setup has detected an incompatible version of the microsoft .net framework. I'm using ms .net 2003 edition on xp pro. Anybody knows how I can install it now? Does that mean that mobile internet toolkit 1.0 doesn't s...more >>

Reflection performance
Posted by Mark at 4/19/2004 2:14:20 PM
Am I out of my mind if I use Reflection everytime someone logs into our web site to get and track the current Major/Minor/Build/Revision version that the person is viewing our site through? This information would then be logged to a database along with some other information about the user. ...more >>

Crystal Reports, CrystalDecisions.ReportSource
Posted by Randy at 4/19/2004 1:52:36 PM
Hello, I'm sorry if this is not the correct place to post this. I didn't see but one Crystal group and it was under VB. Anyways...I recently put a .NET app on a server and when I try and open the aspx page, I get the following error... File or assembly name CrystalDecisions.ReportSource, or ...more >>

web app that monitors and automatically updates..
Posted by vermon at 4/19/2004 1:50:29 PM
Is there any way to make a web app that updates automatically when the server updates some flags? An example would be a web mail interface that automatically updates the new email count as emails arrive. I guess one way is to have the page reload every x seconds, but that it is not elegant at ...more >>

FInding the days between 2 dates without using the inbuilt date functions or the DateTime Type
Posted by russell8mccloy NO[at]SPAM hotmail.com at 4/19/2004 1:45:18 PM
I have an assignment that I have to complete. I have to write a windows app in C#. Here is the spec: 1/ Date Comparison Build a program that will find the number of days between two dates. You CANNOT use the inbuilt date functions or the DateTime Type. Your program should work with any date...more >>

Array Fundamentals
Posted by Abhishek Srivastava at 4/19/2004 1:44:13 PM
Hello All, In .Net Array is a reference type and an int is a value type. If I create an array of int, then will the items inside the array get boxed? If yes, it will be a terrible overhead. If no, then where will the array elements exist? since items inside the array are value type they ha...more >>

RS232 component.
Posted by bryja_klaudiusz[at]poczta[dot]fm at 4/19/2004 1:41:04 PM
Hi, I need free for comercial use serial communiaction component for CSharp. Where can I get library? -- *Best regards,* Klaudiusz Bryja ...more >>

richTextBox UNDO/REDO
Posted by Mad Joe at 4/19/2004 1:34:17 PM
I'm using a richTextBox for editing a source code (with Syntax Highlighting) of my own programming language... How come that myRichTextBox doesn't respond to Undo/Redo functions by using default shortcut keys, or even programaticaly (by using Button_onClick event)? if(myRichTextBox.CanUn...more >>

how to set a 'global' variable in global.asax
Posted by Jason Shohet at 4/19/2004 12:56:47 PM
Lets say i have a numeric value drom a dropdown that is set on 1 page, but that the rest of my application needs afterwards. I'm trying to think of other ways besides a session / application variable, to accomplish this. So I don't have to bother with the overhead, session management etc. Its ...more >>

Flickering while refreshing
Posted by Jack Smash at 4/19/2004 12:43:21 PM
Hi, I'm using a UserControl object for all the graphics handling in my application. However, if I select an image and move it around, I get flickering. So in order to get rid of the flickering, I added this code in the constructor of the UserControl: this.SetStyle(ControlStyles.AllPaintingI...more >>

AssemblyVersion
Posted by Mark at 4/19/2004 12:23:17 PM
In the AssemblyInfo.cs page of a ASP.NET project, there is a defaulted property of: [assembly: AssemblyVersion("1.0.*")] It's my understanding that this indicates a Major Version of 1, a Minor Version of 0, and a Build and Revision that increment on their own. I could modify the minor and ...more >>

scope of private vs protected objects
Posted by Jason Shohet at 4/19/2004 12:02:47 PM
A label on an ascx control has a corresponding declaration in the c# code-behind page. I was curious what would happen if I made that declaration 'PRIVATE' instead of 'PROTECTED'. The only things that touch that label are functions in that code-behind page itself -- nothing on the outside. B...more >>

Determine whether App is running is Visual Studio
Posted by cody at 4/19/2004 11:12:38 AM
Is there a way to do: #if APP_IS_RUN_IN_VS path = ".\..\..\..\myfile.rpt"; #else path = "myfile.rpt"; #endif I don't want to put the files into debug/bin dir since they woulbe be deleted on rebuilt then. -- cody Freeware Tools, Games and Humour http://www.deutronium.de.vu || http...more >>

\r\n & rtf files
Posted by Patrick de Ridder at 4/19/2004 11:06:26 AM
When transferring the contents of a textBox (not a rich textBox) to the Microsoft email client I lose all the "\r\n". Consequently the email becomes one long string. With what can I replace all the \r\n so that returns+new_lines are inserted? Presumably more is needed. Alternatively, is there...more >>

Creating a Default function
Posted by Simon Jefferies at 4/19/2004 10:34:03 AM
Hello, How do I make a function the "default" function? In VB.NET its the keyword default, is there a C# equivalent? Thanks In Advance. Regards Simon Jefferies Tools Programmer, Headfirst Productions mailto:simonj@headfirst.co.uk www.headfirst.co.uk www.callofcthulhu.com - ...more >>

I think I found a bug of .NET Framework, how to report?
Posted by FrzzMan at 4/19/2004 10:29:31 AM
There's not much here, my question is the subject......more >>

Type.GetType not working for referenced library
Posted by Ekips at 4/19/2004 9:41:02 AM
Currently im using Type.GetType("namespace.myType") to get the type for the classes, but i want to store the types in a class library insted, however when i do this it will nolonger return a type, the class libary is referenced in the project and i can create any of the types from it... but not usin...more >>

Translation to VB.NET
Posted by JT at 4/19/2004 9:26:02 AM
Could I ask for some help translating some c# to vb.net? The typing of LDelegate I think is right, but the delegate creation is where I am stumbling ORIGINAL C Type LDelegateType = LWinFormsAssembly.GetTyp "System.HandleChangeEventHandler" tru ...more >>

Overloading and Arrays
Posted by Spike at 4/19/2004 9:06:03 AM
I have some custom types and have overloaded the tostring method so i can print it out and get a description of the contenet of the object for debugging purposes not just the default type however when i have an array of the objects it just uses the type, so where do i overload the tostring for an a...more >>

Colors: Hex to RGB
Posted by Gene at 4/19/2004 9:03:45 AM
I've been reading the documentation on Colors in .NET (System.Drawing.Color, System.Drawing.ColorConverter, System.Drawing.ColorTranslator), and so far have found nothing that lets us use the hex value of a color (e.g., #FF00FF); rather, it appears to me that all Color members use or require ind...more >>

Formatting in the editor
Posted by Ken Allen at 4/19/2004 8:53:59 AM
While I like many of the features of the C# editor in Visual Studio, the default control for indentation drives me nuts! Regardless of how I lay it out, the editor frequently reformats my code! For example, I am accustomed to coding standards that require that when a procedure call involves ...more >>

Identification
Posted by Thom Little at 4/19/2004 8:20:42 AM
Are the following values available at execution time of a windows application ... - Date the module (assembly) was compiled. - User Name specified during installation. - Organization Name specified during installation. What was the source of your information? -- -- Thom Little -- www.t...more >>

check for cookies
Posted by mike parr at 4/19/2004 6:43:38 AM
I'm trying to do a check to see if the client browser has cookies enabled. But my code below always gives me the value for acceptsCookies = true, whether the machine has cookies enabled or not. Can anybody help me out with this? private void Page_Load(object sender, System.EventArgs e) ...more >>

Class for Reading Configuration Files
Posted by jpuopolo NO[at]SPAM mvisiontechnology.com at 4/19/2004 4:36:07 AM
All, Is there a class in the .NET framework specifically designed for reading configuration files, e.g., MyApp.exe.config? I know that I can read them via XmlReader and the like, but I was wondering if there were classes with a slightly higher level of abstraction. Thanks, John...more >>

Trouble converting arraylist of bytes to a byte array
Posted by James Dean at 4/19/2004 1:25:16 AM
i cannot convert my arraylist of bytes to a byte array what could be the problem. i tried the following but it did not work: byte[] bytearray = (byte[])tempbitarray.ToArray(tempbitarray[0].GetType()); Also i was wondering is it possible to convert a bitarray to a bytearray. *** Se...more >>


DevelopmentNow Blog