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 2005 > threads for thursday december 8

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

How can I make DataGridView retrieve the table structure from DAL or BLL for design?
Posted by abc my vclass at 12/8/2005 11:45:49 PM
How can I make DataGridView retrieve the table structure from DAL or BLL for design? ...more >>

Mysterious error with System.Windows.Forms
Posted by Robert W. at 12/8/2005 11:37:02 PM
I reloaded a WinForms project in VStudio 2003 that has been working perfectly fine for months. Suddenly I'm getting strange reference errors AND I can no longer load any form in Designer view. Yet when I start a new project, everything appears to be working fine. What might have gone wron...more >>

Want function or class that uses reflection to iterate over properties in custom object
Posted by kenfine NO[at]SPAM nospam.nospam at 12/8/2005 11:25:55 PM
I'm writing web applications. I build and extend a lot of custom objects, and in the course of debugging my apps I invariably find myself writing a lot of junky code: Response.Write("Title: " + uwtm.Title + "<br>"); Response.Write("Pubdate: " + uwtm.Pubdate + "<br>"); Response.Write("Byline...more >>

DLL
Posted by vanitha at 12/8/2005 11:25:02 PM
hi, I am creating a wrapper dll. example i want to add a user. logic is written in SP. Web Service is used to get details from the application, then web service will pass the details to the wrapper dll, where i shd decide which function to be called in the application block dll to do...more >>

textBox1.Size.Width
Posted by Pohihihi at 12/8/2005 11:13:57 PM
Why can't the following work when it has a set property defined? this.textBox1.Size.Width = 25; I get error Cannot modify the return value of 'System.Windows.Forms.Control.Size' because it is not a variable but following works Size s = new Size(textBox1.Size.Width + 5, textBox1.Size...more >>

Is there any examples about DAL or BLL binding data to datagridview?
Posted by abc my vclass at 12/8/2005 11:11:14 PM
There are some programs written on .NET 1.1. These applications are apply n-tiers contains Data Access Layers or Business Logic Layer. Now, our company upgrade to .NET 2.0 and enhance or rewrite the applications. In ..NET 1.1, we favour to return DataTable from DAL or BLL and then press to ...more >>

Queue.Dequeue () slow?
Posted by Benny Raymond at 12/8/2005 11:06:51 PM
It's currently taking a minimum of .2 seconds for me to dequeue an object - I'm wondering if it's the dequeue that is taking so long or if it's just the fact that i'm doing it like this: retMsg = (ServerMessage)s_messages.Dequeue(); is there a faster way?...more >>

IIS doesn't found Oracle libraries in runtime
Posted by Jim B Johnsson at 12/8/2005 9:49:18 PM
I have done a Web Service (C#) in Visual Studio.NET 2003. When I drive or debug Web Service which uses Oracle DB it Database classes gives "Oracle libraries not found" errormessages. When using Windows application using Oracle same environment can use Oracle normally. What is usually wron if W...more >>



close hide
Posted by Maarten at 12/8/2005 9:48:04 PM
Hi I'm trying to make something i tought is was simple if i press the cross on the childform to close it, i want it to hide. but when i press a button on the parrent i want to close the child. so on the child i made a formclosing handler an in the handler i put: this.hide(); now on the...more >>

Beginner Inheritance Question
Posted by ^MisterJingo^ at 12/8/2005 9:32:32 PM
Hi all, I have a question regarding inheritance. I'll use the following code for an example (its been stripped down to the minimum): // code start using System; class Animal { public string name; public Animal(string pName) { name = pName; } } class Dog...more >>

Export from Rich Text to MS WORD
Posted by sb Luis at 12/8/2005 9:04:00 PM
Hi everyone, I am going to export content of Rich text into MS WORD (.doc file) in a window application. thanks. Sb. Luis. ...more >>

Threading and Dell's dual-core
Posted by bruce_brodinsky NO[at]SPAM glic.com at 12/8/2005 8:33:21 PM
Don't know whether to post this on a hardware or software board, so here goes: I wrote a c# chess program which searches for checkmate. Now, it's single-threaded. But I was thinking. I just got a Dell XPS dual-core machine. If I modify the chess program to use threading, will it take advan...more >>

C# PDF Writing API (free)
Posted by tman at 12/8/2005 8:07:39 PM
Are there any free/open source PDF writing API's out there for C# that are actually pretty good? ...more >>

How does C-Sharp Perform in Large Desktop Applications?
Posted by Bruce at 12/8/2005 5:21:55 PM
Currently our desktop application is a large VC++ 7.1, Unmanaged, MFC application. We are going to be re-architecting our application and we are considering rewriting it using C-Sharp. So far, we have written a few pieces of our program in C# that get called through a managed DLL. But th...more >>

Where is HitTestInfo?
Posted by Brett Romero at 12/8/2005 5:17:40 PM
I've read on the forums of other people having problems with HitTestInfo not appearing. I've read these but they didn't help: http://groups.google.com/group/microsoft.public.dotnet.languages.csharp/browse_thread/thread/19e0d259a4ba1d47/3c6428decee1637e?q=where+is+hittestinfo&rnum=1#3c6428decee1...more >>

C# reflection
Posted by jianhua.he NO[at]SPAM gmail.com at 12/8/2005 5:16:07 PM
I am working on an application in C#, it will load another managed code library DLL in runtime, instead of write the following code: Assembly asmb = Assembly.LoadFrom("C:\\test\\AssemblyTest1\AssemblyTest1.dll"); object test = asmb.CreateInstance("AssemblyTest1.Test", false, BindingFlags...more >>

exception inside lock before lock body
Posted by Daniel at 12/8/2005 5:12:35 PM
exception inside lock before lock body lock(foo()){bar();} what will happen if foo() throws an exception? will there be a lock on the exception? ...more >>

COM Events passing Object as parameter (problem)
Posted by Jayme Pechan at 12/8/2005 4:52:33 PM
I have a ATL COM object that is loaded through Interop in a C# application. The COM object fires an event and one of the parameters is another object created inside the object. This object has a property on it that is also another object. private void pIObj_EventProc(MObj.MainObj pObj) { ...more >>

using a c++ dll that returns a pointer
Posted by Jerome at 12/8/2005 4:44:52 PM
Hello all, I think I'm a bit lost in the managed/unmanaged world! My problem is that I have a c++ dll for a program on a pda and I'd like to use it in a program in .net and c#. I've almost understood how it works when you wanna use a simple function, but I don't understand how to use it when...more >>

How do I create a tabbed web browser?
Posted by Mateusz Rajca at 12/8/2005 4:43:02 PM
Hello, Is there any good tutorial on how to create a tabbed web browser? Mateusz...more >>

Databinding a double field and displaying text
Posted by Joe at 12/8/2005 4:35:08 PM
I want to bind a textbox to a field which is a double. If this field has not yet been set I would like to display a text value. Is there a way to override the display text when value == somedefault? -Joe ...more >>

Updating my UI from a worker function
Posted by sklett at 12/8/2005 4:23:27 PM
I have been doing research on updating the UI while doing time intensive processing. Basically, I have a click event in my Form that will call a member function on one of my business objects, that function that gets called takes a long time. I read that I can't make calls to the UI from an...more >>

Master Detail Forms refreshing datagridview
Posted by RSH at 12/8/2005 4:21:46 PM
I have a situation where I have a Master form that contains a DataGridView. Each row has a details... button that spawns a new winform which shows many more fields than the DataGridView. The user can elect to update any of the displayed information the problem is that if they do, even thoug...more >>

What is context node?
Posted by nicholas at 12/8/2005 4:13:20 PM
Hi folks, I'm diving into XPathNavigator.SelectDescendants method. There's a boolean type parameter matchSelf, and MSDN says "To include the context node in the selection, true; otherwise, false". But I don't understand how to use it. The sample code in MSDN is below, but I didn't find any ...more >>

Quick question: Help topic
Posted by B. Cavour at 12/8/2005 4:12:07 PM
How do you link a form's help button to a specific topic in the generated help? thanks, BC ...more >>

Binding data to form controls
Posted by Dries De Rudder at 12/8/2005 3:21:00 PM
Hi, I am trying to bind an object to form controls. I've got an object MyObject which has some properties e.g. ID. I've got a form, Form1, that contains a textbox ,TextBox1, now I want to bind the value of the ID-property of a MyObject-object to the TextBox1. I've tried doing this: -...more >>

problem with IDE or ... !!!
Posted by Pohihihi at 12/8/2005 3:10:15 PM
I am not able to see Environment.SpecialFolder enum in IDE. I restarted IDE many times and seems like I did not install one of the GAs. Is that the case or something else I am missing? ...more >>

Calling external functions
Posted by Tim Greenwood at 12/8/2005 3:08:52 PM
I am at my wits end here. I have a simple project with one global function returning a long value. __declspec(dllexport) long myfunc() { } I've built the dll, added it as a reference to my C# project. Now how in the world do I reference "myfunc" ???? It totally eludes me. Many than...more >>

WindowsForms LoaderException
Posted by David Smith at 12/8/2005 2:52:15 PM
My app has a base Form class, called FunctionForm, from which all forms inherit. This worked fine last week, when I was using VS.NET 2005 Pro but this week, while using VS.NET 2005 Team System Developer, I get the following while working in the designer. The form compiles and runs fine, but I ...more >>

Q: Printing files depending on the file ext.
Posted by Visual Systems AB (Martin Arvidsson) at 12/8/2005 2:46:47 PM
Hi! In the good old days i used the ShellExecute with print option to print a ..DOC or .XLS file. Is there a neet way to do this in C#? Is it the printDocument control to use? Can it detect if it's a word document, excel document etc to perform the right print out? Regards Martin ...more >>

Convert bit string to byte
Posted by Vitaly Zayko at 12/8/2005 2:28:42 PM
How to convert bit string to byte and vice versa? For example: string bitstr = "11111111"; after conversion should get 0xFF -- Vit Zayko...more >>

regular expression to match substring xxx and not substring yyy
Posted by likong NO[at]SPAM email.com at 12/8/2005 2:21:10 PM
Hi, Any idea about how to write a regular expression that matches a substring xxx as long as the string does NOT contain substring yyy? Thanks. Kong ...more >>

How do I append a text file to another text file
Posted by Roy Gourgi at 12/8/2005 1:58:50 PM
Hi, How could I append a text file to another text file. Let's say that I have a File1 and I want to append File2 at the end of File1, how would I do that? TIA Roy ...more >>

One ImageList, Multiple Forms (DESIGN TIME)
Posted by Lee Grissom at 12/8/2005 1:58:19 PM
Since MS decided to seal the ImageList class, I can't work around this problem very easily. What's the best technique for having an ImageList shared amongst many forms in my project? I want it to work at Design time as well as run time. -- Lee ...more >>

MVC delegates problem...
Posted by Dominique at 12/8/2005 1:37:02 PM
In order to become more familiar with the Model-View-Controller pattern, I have written a demo where each View is a plugin and the plugins are loaded at startup from the plugins directory. When the View's are loaded they add themselves to the DataModel View list... FDataModel.AddView(this);...more >>

Delete a Row in Excel Spreadsheet
Posted by Karl Richards at 12/8/2005 1:36:55 PM
I am attempting to delete duplicate rows in a spreadsheet using the = Excel object. Does anyone have any idea how to do this? I've looked everywhere that I = can find on the Web and have not been able to find anything on it. What I have so far is: Excel.Range range =3D oSheet.get_Range("A1...more >>

"Frames" in c#
Posted by Torben Laursen at 12/8/2005 12:46:02 PM
Hi Is there a component in c# like the Frame in Delphi. I'm looking for a way to handle a large number of component in one winform and a frame style component could do the trick. Or is possible to dock a winform on a winform? Thanks Torben ...more >>

Reflection and Assemblies
Posted by erin.sebastian NO[at]SPAM cowaninsurancegroup.com at 12/8/2005 12:12:33 PM
Hi All, I am new to reflection and have successfully used it in a project, the following code works wonderfully ObjectHandle objectHandle = Activator.CreateInstance(this.AssemblyName, this.ClassName); // use the Activator to create an Instance AbstractWebProperties webProperties = (Abstrac...more >>

Importing DLLs
Posted by Hector Y. Martinez at 12/8/2005 12:03:02 PM
Hi everybody... my problem is: Well I want to make an app, that you the user could add some plugins (DLLs)... this plugins can contains classes that inherit from one class in my app, of course the user will only have the app in binary, not source code. Well, in C++ I know this could be m...more >>

File.OpenRead and System.IO.IOException...
Posted by Kevin at 12/8/2005 11:40:44 AM
I'm using a File.OpenRead call within a custom httphandler to read a file from a remote computer using a unc path as the parameter to OpenRead. This is done within an impersonation call to ensure the proper credentials are used to get the remote file. After a few page refreshes (approx 3-5), I...more >>

Custom Text Box go to next Text Box
Posted by Mike L at 12/8/2005 11:40:12 AM
Custom text box to go to next text box in tab list. When the user types in a text box and the max length is meet, the focus goes to the next text box in the tab list. Here is my code so far, but I don't know what to put in the first parameter of SelectNextControl, noted with a question mark....more >>

searching through tables
Posted by Hrvoje Voda at 12/8/2005 11:39:45 AM
Is there a way to search for a specific item through a various number of tables? I want to find out , for example, if there is a name of user in some of three tables in database. Hrcko ...more >>

Debugging DLLs skips breakpoints
Posted by Brian Bischof at 12/8/2005 11:39:20 AM
I'm having troubles getting the debugging process to work consistenly for external classes. I got it to work once and then I turned it off. But now I can't get re-enabled. Here is what I'm doing. If someone could tell me what I'm missing that would be great. 1. Create an external class and cal...more >>

typed datasets and default values
Posted by tg.foobar NO[at]SPAM gmail.com at 12/8/2005 11:36:48 AM
my setup: visual studio 2005 sql server 2000 i'm using a dataset (used to be called typed dataset in 2003), where i use the MSDataSetGenerator to create a class for me based on the scheme of my SQL server. This schema doesn't include the default values that are defined in the SQL server. I...more >>

Granting Full Trust to a network share
Posted by Anders K. Olsen at 12/8/2005 11:20:03 AM
Hello group. I would like to develop my software from a network share, that is, place my code on a network share. Is it possible to grant Full Trust to this share (e.g. X:) and only to this share? The reason for this, is that I can then ensure that there are taken backup of my current wo...more >>

How to print a C# Windows Form?
Posted by Jason Huang at 12/8/2005 11:09:53 AM
Hi, I have no problem in printing the C# Windows Form codes. However, when it comes to print the Form, the "Print" button is greyed out and I can't print the form directly from the Visual Studio developer. Is it possible to print the Form from the Visula Studio Developer? Thanks for help. ...more >>

SharedProperty iteration
Posted by gluggi NO[at]SPAM bigfoot.com at 12/8/2005 11:05:35 AM
Hi, I try to read out the Groupnames and Propertyvalues of SharedProperties. With the SharedPropertyGroup I have a IEnumeration object that let my iterate the different groups and receive the Groupnames like this. SharedPropertyGroupManager oManager = new SharedPropertyGroupManager(); Syst...more >>

Writing text to another form
Posted by RSH at 12/8/2005 10:50:38 AM
I have a basic framework where I have a frmMain which is my main form that is opened when the application is run. Upon a button click I have a second from that is opened as such: Form FormB = new Form2(); FormB.Show(); That form has a label called "label1" which I would like to write to...more >>

C# runtime version
Posted by marcus at 12/8/2005 10:48:36 AM
Hi, I'm trying to get a C# application developed with .NET 2.0 tools to run with .NET 1.1. runtime. Is this possible? I have only used methods and properties compatible on .NET 1.1. Are there specific build options that I need to use? Are there samples on writing configure files that mana...more >>

Eclipse and .NET
Posted by Peter Rilling at 12/8/2005 10:46:46 AM
Are there any good plug-in for Eclipse IDE that suppose .NET and C#. I think the Eclipse IDE is better than VS.NET and it would be nice to develop in this environment. I also do Java development so it would be a benefit to use the same IDE for both. ...more >>

Web - Images From A Database
Posted by David P. Donahue at 12/8/2005 10:45:42 AM
Currently, when I want to display an image from a database in my website, I reference another page with a query string argument of that image's unique ID in the table. Then that other page grabs the image and the content type from the database and writes it out to the client. However, this...more >>

Virtual disk volume
Posted by Tomaz Koritnik at 12/8/2005 10:16:59 AM
I need to add a virtual disk volume to the windows. In the foreground, data will be presented in a form of a disk drive so users can access it using explorer but in the background, data will be read from FTP server an not actual disk. I don't wanna write a driver but are there existing facilit...more >>

How to properly update DLL ref?
Posted by Brett Romero at 12/8/2005 10:08:48 AM
I have two projects - one is an EXE and the other a DLL. The EXE references the DLL. I make a change in the DLL and see the version number change. .20969 for example. In the EXE, I rebuild and see the DLL reference has the same version. However, when I run the EXE, I don't see it using new ...more >>

Newbie Q: Force compile/Caching question
Posted by B. Cavour at 12/8/2005 10:02:28 AM
Ok, I know this is a very generalized question, but here goes.... The current software I'm working on has several sets of solutions w/ each having 30+ projects. When I make a change in the lower architecture/system solutions, my changes do not reflect even after I compile the solution. Fo...more >>

Generics / Property Question
Posted by Doug Handler at 12/8/2005 10:02:27 AM
Hi (and thanks in advance) I have a class called Person that i want to expose a public property called Numbers. I have a class called PhoneNumbers that is a generic collection of Phone. All i want to do is be able to access the Numbers property from within Person. In other words, an indi...more >>

C# runtime requirements
Posted by marcus at 12/8/2005 9:56:47 AM
Hi! I'm new to C# and Windows programming. On what Microsoft platform is the .NET Framework and CLR part of Windows, that's it, installed by default on end-user's computers? And what version of the Framework is it? I tried to find answer on this issue in e.g. ".NET Infrastructure and Servic...more >>

error on build
Posted by Brian Henry at 12/8/2005 9:55:57 AM
When i build my project i get this error warning CS1668: Invalid search path 'C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' this is in .NET 2.0, so im not sure why there are still ...more >>

Strange Session Restart
Posted by na at 12/8/2005 9:55:18 AM
I am using form authentication and InProc cookieless session. The strange thing is that when an authenticated user try to navigate to any page that is in subfolder of the application root, the session is restarted and new session id is generated. Thus the user would never be able to access tho...more >>

make it native
Posted by Pohihihi at 12/8/2005 9:55:04 AM
How can I compile my C# code so that client machine do not need to install framework to make it run. Problem is that framework install is way bigger than the application itself and this will only be the application running on framework on client side. Maybe small runtime files like old VB ? ...more >>

Late binding: call a method by string name
Posted by Joel Finkel at 12/8/2005 8:32:03 AM
Is there a way to execute a method if all we know is its name as a string? Let's say we have the following class. What is the code for the Execute method? I need a solution that works with the Compact Framework. public class Executor { public static Execute(string p_whichFunction) {...more >>

Fast Data grid
Posted by Vijendra Malhotra at 12/8/2005 8:06:52 AM
What is the fastest way to refresh contents in a data grid. I would like to populate a grid based on message from a EMS queue with a frequency of about 100 messages per second. what is the best way to do this? ...more >>

XML file vs. DLL?
Posted by Brett Romero at 12/8/2005 8:00:27 AM
I'd like feedback on using an app.config file to store static information such as company name, database name, etc. then use a DLL to load it. I want to put everything into enumerators. This is a winform app. I'd like to avoid having to create an instance to access this information. In other...more >>

Double BUffer
Posted by Rain at 12/8/2005 7:40:02 AM
Hello Gurus! I really need this one to finish a module in my thesis. PLease please help me. I need a double buffer class so i can call it and use it anytime i want, the problem is everything ive tried as a class doesnt work.. please please help. I only need the double buffering of controls,...more >>

c# and musicxml
Posted by wilder wein at 12/8/2005 7:30:40 AM
i want to play with musicxml. is there a mature product for doing that in c#? ...more >>

derived controls
Posted by Alex K. at 12/8/2005 7:00:03 AM
Hi everyone I have a class MyListBox derived from standard ListBox. To use it on a form I have to add it manually in the code because it is not shown in the toolbox. So usually I would put a ListBox on the form and then in code replace all occurrences of ListBox by MyListBox. It works fine,...more >>

ButtonColumn
Posted by Dave at 12/8/2005 6:46:03 AM
On a web form I have a grid, grid1, with a ButtonColumn bound to a field in a table. When the button is clicked I want do do something with the data view in the row clicked. How do I retrieve the data in the clicked ButtonColumn? When I use GridViewRow selectedRow = GridView1.Rows[index]; ...more >>

Showing Windows Forms
Posted by Mateusz Rajca at 12/8/2005 6:14:04 AM
Hello, I got my main form called Form1. Now I added Form2. On Form1 there is a button that would make Form2 appear. What code should I add to the button so that Form2 will appear when the button is pressed? Mateusz Rajca...more >>

Reflection Vs Events - Performance
Posted by HL at 12/8/2005 5:35:04 AM
The requirement is to send some information to other objects. The objects to whom the information has to be sent is not available at compile time. The names of the types (objects) will be provided through an external file in which case we can use reflection to create objects of that type at ru...more >>

Question about CD!
Posted by Mihai Velicu at 12/8/2005 5:26:40 AM
If I read all the drives from my computer with System.IO.Directory.GetLogicalDrives() what property shows me which one is the hard-drive and which one is the CD drive? Thank , Mihai ...more >>

fatal error LNK1104: cannot open file
Posted by danip at 12/8/2005 5:15:49 AM
Hi, I have a C# project that have a C++ .net DLL as a reference. Everything is working okay, except when I try to rebuild only the C++ DLL I receive the error: fatal error LNK1104: cannot open file. Any Solutions ? -- Dani ...more >>

General MSMQ and C# question
Posted by Claudia at 12/8/2005 4:55:20 AM
Hi all... I'm working on a project that uses MSMQ as its core for inter-process communication. At the moment there is a single process that listens for inbound TCP-based messages on a socket, and when something is received it gets packaged up and sent to an MSMQ queue for further processing. ...more >>

Handling multiple events
Posted by Java Challenge at 12/8/2005 4:02:33 AM
Dear all, I'd like to handle two similar events with the same code (pressing enter in a search textbox AND clicking on the button "search"). I could copy the code in both events handlers but this looks like a very unpleasant solution. I think that in VB.NET you can do something like: Sub myb...more >>

Windows installer
Posted by Jesper at 12/8/2005 3:58:02 AM
Hi, I'm looking for a good in depth tutorial for the windows installer in visual 2005. Know of anyone good? Is there a newsgroup for this topic? regards Jesper...more >>


DevelopmentNow Blog