Home All Groups Group Topic Archive Search About

Visual C# .NET

microsoft.public.dotnet.languages.csharp
Score asking about event
Kenichi - 4 Mar 2006 11:46 PM - 4 messages
hello, i'm still new to vs i have a question, how can i clear my event like to set that to null ? i would like to do something like this without knowing what is the event handler before ex: (error) ...
Score Clearing on load
Verdagon - 4 Mar 2006 11:18 PM - 3 messages
Hey everyone. I have this function in my form called "Display", which I call every time the load, resize, and paint events are called. It works fine on paint and resize, but on load it doesnt happen. When the form loads, it draws what I want, but then after a few ...
Score compact framework audio recorder
Jonathon - 4 Mar 2006 11:08 PM - 2 messages
I am creating an app that needs to capture dictation.  I am currently starting to work with the OpenNETCF library. First, are there any other (better) alternatives to this package.  We can spend some money on new libraries, but as always, the cheaper the ...
Score Easy question about events
Jonathon - 4 Mar 2006 11:01 PM - 4 messages
In order to make a function handle an even such as a click, do you just have to name the function [object_name]_EVENT where EVENT is the event that you are trying to handle with the function? I'm creating a compact framework app, and originally started in VB, but ...
Score borderless form resizing
Lee - 4 Mar 2006 8:44 PM - 5 messages
Hi, how can this be achieved? are there any examples anywhere? thanks in advance lee ...
Score Simple Typed DataSet Primary Key Question
Steven C. - 4 Mar 2006 7:40 PM - 10 messages
Hello: I'm getting an error, "primary key not defined" when trying to use the FIND method on the DataTable Rows collection. I have a typed dataset called 'MortgagesDS' that I created with the XSL builder tool in .NET.  I define the dataset at the beginning the ...
Score how to react to CTRL+V in TextArea?
MrNobody - 4 Mar 2006 6:09 PM - 2 messages
I want to immediately do something when someone pastes something using CTRL+V into my TextArea... isn't there a specific event I can handle for this? Or do I have to do a keyboard event and check for those keys? If so, then won't the ...
Score Yet another global vars question
Lee - 4 Mar 2006 5:03 PM - 3 messages
I've been programming with Delphi for the past 4 years or so and while Delphi does allow globals, I use them very judiciously.  I say that I *do* use them because I think that in some cases they are a good choice. ...
Score Changing the border color!
Lee - 4 Mar 2006 4:42 PM - 2 messages
Hi, how can I change the border color (and status bar color) of a form at runtime? thanks in advance lee ...
Score Drawing graphs
Curious - 4 Mar 2006 2:59 PM - 6 messages
Hi, I am trying to search for some code/component to be able to draw automatons/graphs on a windows form. Does anybody know of some good links from where to start up. Thanks in Advance ...
Score Source code documentation
GTi - 4 Mar 2006 12:41 PM - 41 messages
Is there any source code documentation tools available for Visual Studio 2005 ? I have created a LIB that must be documented. Must I do it by hand or is it some kind of tools to pre document my source code? ...
Score DB application and (ick) Macintosh
Scott C - 4 Mar 2006 9:39 AM - 2 messages
I'm going to develop a small application with a simple database which I need to be able to deploy in both a Windows and Mac environment.  This is a simple "client" (ie. no server) application. One of the requirements of the user (a friend of mine) is that he can ...
Score Control the input cursor?
Rader - 4 Mar 2006 9:20 AM - 3 messages
As the textbox is focused,if I press the keys up/down arrow instead of other keys like a,b,c...... the input cursor moves left and right.Now its the problem,I want the cursor stay where it was(stop moving), as I press the up/down key.Can I ...
Score create an instance with a string Name
wu jianhua - 4 Mar 2006 7:30 AM - 7 messages
hi. If I have a form, like FrmAbout, can I create a form instance only with a string "FrmAbout"? not like : Form frm = new FrmAbout(); I want the code : Form frm = createInstance( "FrmAbout" ); How to code my createInstance function? Thanks. ...
Score findind Computer Resources
salman - 4 Mar 2006 7:23 AM - 2 messages
how can i find cpu speed , ram capacity and cpu's free cycle in C# ..Net. Please reply urgent. ...
Score References across multiple projects
sonali_reddy123 - 4 Mar 2006 6:57 AM - 2 messages
Hi all, I have developed an application in which there are uptill now 12 projects and few of them are dependent on each other. The problem is I am not able to manage the references across different projects. Previously I used to get one error it says something like the object of ...
Score Is it worth while in developing VB.NET or C#.NET
vighnesh - 4 Mar 2006 5:13 AM - 54 messages
Hello Everyone I am about to develop a project like Registry Mechanic using either VB.NET or C#.NET. But I dont know is it worth while in using these languages ? I mean is there necessary support provided in .NET to accomplish this task? If Provided please suggest me the ...
Score How to use USB
Dragon - 4 Mar 2006 5:03 AM - 2 messages
How to connect to USB device in C# ? ...
Score c#
howell - 4 Mar 2006 4:05 AM - 2 messages
how can i create a program. the question was ,                               enter a nth number then disw play the sum of the nth number u enter? From [link] Posted via DevelopmentNow.com Groups [link] ...
Score Not Operator?
Lee - 4 Mar 2006 2:02 AM - 2 messages
If (Not MyBooleanVal) Then   Begin   // Do Something   End; if (! MyBooleanVal) {   // Do Something } Same right?  ...
Score Audio mixing console slider control
Teo - 4 Mar 2006 12:04 AM - 2 messages
Hi, I need to use a slider control like the TrackBar in the vertical position, but with "smoother" moving. I have tried to find one on the net, without any success. Do you know if there is something available, even if it's not free to use ?! ...
Score How to order builds?
Brett Romero - 3 Mar 2006 11:31 PM - 4 messages
I'm using a custom Configuration to build four of eight projects under the same solution.  For this configuration (call it ConfigA), I have the four projects set to build.  However, the order is important.  When I update a DLL that happens to start with the letter "u", the EXE, ...
Score delete file: Access to the path 'X' is denied
wo20051223 - 3 Mar 2006 10:45 PM - 6 messages
Deleting some files with C# fails with "Access to the path 'X' is denied". I have files copied from a CD that I burned (and not locked by a process) and a text file that I created in Windows Explorer.  I can ...
Score Load data into combobox control asynchronously
Vish - 3 Mar 2006 10:44 PM - 5 messages
Hi, I am having a problem with my form being too slow to load up. I have a 4-5 of comboboxes on the form that load a lot (~30,000 records) into them. So this is causing a lot delay (5-6 seconds) for the form to load. Most of the ...
Score System.IO.Ports
José Valim - 3 Mar 2006 9:48 PM - 3 messages
Hi, Can I use System.IO.Ports to read virtual COM ports, created by a driver? I need to know it before buy a Serial-to-USB cable! hehe Thanks, José Valim. ...
Score Newbie: Should code go in Form.cs or FormDesigner.cs?
deko - 3 Mar 2006 9:46 PM - 11 messages
There are situations where it appears code can go either in the form Designer's class or the form's class.  Is there a best practice regarding where code should go?  Does it matter? Here are some examples: ...
Score Facade pattern
anonymous.user0@gmail.com - 3 Mar 2006 9:20 PM - 2 messages
I'm a little confused about the Facade pattern.  As I understand it, it's supposed to be a single, simplified interface into a larger amount of subsystems.  The question I have is basically how simple and interface is it supposed to be?  Lets say I've got an application with ...
Score Installation problem with C# 2003
JohnTheys - 3 Mar 2006 8:56 PM - 3 messages
Cannot seem to install Standard Visual C#.net 2003.  Was previouslly installed and framework got wiped out.  Reinstalled framework 1.1 from Prerequisics disk OK but installation of C# produces this error: " [03/03/06,10:48:33] Visual C# .NET Standard 2003 - English: [2] ...
Score Data conversion
Roy - 3 Mar 2006 8:44 PM - 2 messages
In C#, how do I convert a data (could be any primitive types or user defined structures such as int, short [] ...) to byte[]? How do I convert it back assume I know the type in advance? ...
Score how to convert datetime
ziggislaw - 3 Mar 2006 8:14 PM - 3 messages
hello how can I convert DateTime from "25.12.2005" to "2005-12-25 00:00:00.000" ? Now I have DateTime as string (I get it from <asp:label>). Thanks ...
Score Suggestions For Touch Screen Form Sizes [C#]
MikeY - 3 Mar 2006 6:18 PM - 2 messages
Hi Everyone, I'm looking for suggestions for touch screen form sizes. Or better yet dealing with forms very various screen sizes. How to deal with anchoring buttons etc and so they don't overlap with bigger screen size. I'm trying to build a hospitality touch screen application w/ Window forms. ...
Score Wrox:Anonymous method in event hanlder
moondaddy - 3 Mar 2006 5:41 PM - 8 messages
I'm reading the book Wrox-Professional C# 2005 and it's trying to demonstrate an anonymous method in an event handler.  I would not do this in a real app, but am trying to understand how this works. ...
Score Custom Attributes - Are they implicitly inherited by subclasses?
Lee - 3 Mar 2006 5:26 PM - 2 messages
public class ClassA { [MyCoolAttribute] private string  _FieldName;       public string  FieldName     {       get { return _FieldName; }     } } public class ClassB: ClassA { // [MyCoolAttribute] // Must be explicity typed in attribute or implicit in ...
Score Using Application.Settings at run time
autenzio - 3 Mar 2006 4:52 PM - 3 messages
I want to be able to load up the items collection of a combobox with string values I create in Application settings. I have created a collection of strings in the Settings window, but I am unable to bind it to the "items" member of a combobox because that member is not ...
Score SortedList bind to datagrid
Sean - 3 Mar 2006 4:52 PM - 3 messages
How does one bind a SortedList to anything. If it cant be done why would anyone ever even use a sortedlist? We are currently (via business objects that use interfaces etc) binding gridviews to List<T> type with zero problem which was an upgrade from our ...
Score communication between apps
Luiz - 3 Mar 2006 4:18 PM - 3 messages
Basically my dept. needs to rewrite a big powerbuilder app into C#(vs 2005) and since we're doing it in modules, the 2 apps need to talk to each other(like passing string back and forth). Does anyone have an idea on how to ...
Score DataAdapter UpdateCommand not updating record
susan.f.barrett@googlemail.com - 3 Mar 2006 4:16 PM - 3 messages
Hi, Despite me being able to type the following in to SQL Server and it updating 1 row: In my code, it is not updating any rows.             dataSet = new DataSet(); ...
Score Which reporting tool to use?
Mathieu [Marti-IT] - 3 Mar 2006 4:03 PM - 2 messages
Hi all, in creating a C# Windows Forms library to create professional applications with. In searching for a good reporting tool to create and distribute my applications reports with. Does anyone know a good reporting tool for .NET? Crystal Reports is, of course, a good reporting tool, but i'm wondering if ...
Score Capture control as image when running in background
aledrjones - 3 Mar 2006 3:59 PM - 4 messages
Hi I've got a c# application that will often run in the background as it is used to monitor connections to a host. An activex control displays the communication between the app and the host.  When the host disconnects the app, I want to take a screen shot ...
Score Generic Collections and inheritance (again)
Adam Clauss - 3 Mar 2006 3:34 PM - 5 messages
I ran into a problem a while back when attempting to convert existing .NET 1.1 based code to .NET 2.0 using Generic collections rather than Hashtable, ArrayList, etc. I ran into an issue because the old code allowed me to do what basically was ...
Score writing multithread applications in dotnet 2.0?
Elhanan - 3 Mar 2006 3:15 PM - 5 messages
hi.. we are planning to do a file distibution system in dotnet 2.0 (the system will recieve request for file transfers from one legacy system to another using connect direct api, the execution of the file transfer itself will be multi-threaded. ...
Score DataTable
Roy - 3 Mar 2006 2:58 PM - 4 messages
How do I copy the binary data (possibly longer than 8000 bytes) to a DataTable? What is the syntax to add a column and add data to it like below? DataTable.Columns.Add("MyBinaryField", ???); (What is the syntax for the 2nd ...
Score UserControl with a ComboBox
Jochen Berger - 3 Mar 2006 2:57 PM - 2 messages
Moin! I've 'composed' a special UserControl I need for my current project. On this Control I put a ComboBox. The user is not allowed to access the ComboBox directly (to protect some properties), so I used Properties to enable the user to do some things in design mode. It all works fine ...
Score Cannot add MSWord reference
vul - 3 Mar 2006 2:57 PM - 4 messages
I'm trying to add Microsoft Word 11.0 reference to the project. It adds with a yellow mark and it doesn't bring anything in Object Browser.. I tried it in VB 2005 and C# (VS 2005) on 2 machines (Windows XP Pro) with the same ...
Score DB parameter collection
Roy - 3 Mar 2006 2:30 PM - 2 messages
I have a binary data to write to sql database by using a stored procedure. What is the syntax for data type passed to the following call for adding the parameter? What if the data is longer than 8000 bytes? ...
Score Identify hidden folders
CodeRazor - 3 Mar 2006 12:34 PM - 7 messages
I loop through all the folders in a directory. I want to be able to check if a folder is set as hidden. I've been playing around with FileAttributes, see below. But its not working. FileAttributes fileAttributes = File.GetAttributes(fileName); ...
Score .dll to exe conversion
jyoti - 3 Mar 2006 11:47 AM - 4 messages
Hello friends,                  i m working on a project for developing a framework component for multilingual support in C# .net.                  I have a class library project so i want to convert ...
Score Read files
alberto - 3 Mar 2006 11:38 AM - 4 messages
I want to read all the files of a directory using this: DirectoryInfo d = new DirectoryInfo(Environment.CurrentDirectory + @"\Documents"); The application is stored in another machine and when I try to execute it, an error appears: System.Security.SecurityException. What can I do? ...
Score .NET and MS Word : setting rightAlignment ???
cc - 3 Mar 2006 11:07 AM - 3 messages
Hi, I'm writing a .NET-application from which I work with a Word document. In the document do I create a table and set some properties of the cells in the table. Word.Table table1 = m_doc.Tables.Add(m_wordapp.Selection.Range, MAXROWS, ...
Score initializing an array of structs
Steve Roberts - 3 Mar 2006 11:02 AM - 5 messages
In C# is it possible to initialize the items of an array when the array is an array of structures? When I try to initialize the items of the array (as shown below) using the method I would use in C++, I get the compiler error "Array initializers can ...
Score Getting info on the user's system
beaker - 3 Mar 2006 10:59 AM - 2 messages
Hello, I'd like to be able to (programatically) determine the following about the computer my application will be running on:    * whether the machine is a laptop or a desktop    * whether DirectX is installed, and if so which version ...
Score appSetting in .Config file
Mats-Lennart Hansson - 3 Mar 2006 10:01 AM - 7 messages
Hi, In a windows service, I have some appSettings. If I during runtime changes one of the values, is it availabele to the service from that moment? Or do I have to restart the service before I can access the new value? ...
Score Check Date Format
Thomas - 3 Mar 2006 9:50 AM - 2 messages
Hi all, i have to check if a value is a valid date format depending on a "format string" the user specified. For example: Format String: "dd/mm/yyyy" Date Value: "01/12/2006" Valid: Yes! Format String: "yyyymmdd" Date Value: "01/01/2006" ...
Score Which database ?
Steven - 3 Mar 2006 8:54 AM - 9 messages
Hi, I have to create an application using a database. There won't be client/server access (only one user...). What is the best solution ? Access ? MSDE ? Something else ? Thanks ! ...
Score Using OpenProcessToken
Niclas - 3 Mar 2006 8:02 AM - 3 messages
Hi, I am trying to get a usertoken from a particular process running on the computer, from a Windows Service to do a Windows group membership of the user running that process. I was planning to use a API call to ...
Score PropertyBinding an ApplicationSetting to a combo box's members?
Joel Thornton - 3 Mar 2006 7:41 AM - 2 messages
Is it possible to use C# 2.0's (VS2005's) PropertyBinding properties to automatically load an ApplicationSetting (presumably of type System.Collections.Specialized.StringCollection) so that it auto populates the drop down list on program startup? Also, what is the easiest way to save a new item to said ...
Score .net types to sqldbtypes
Roy - 3 Mar 2006 5:11 AM - 6 messages
The SqlCommand.Parameters.Add(..) function takes an paramter for SqlDBType. Is there a generic way in .NET framework to convert .net types to SqlDBTypes? Or I have to mapping manually with a big switch statement? ...
Score simple inheritance question
relient - 3 Mar 2006 5:03 AM - 7 messages
Hi, I have three classes: Animal, Dog and Cat. Dog inherits from Animal and Cat inherits from Dog. My question is: is Cat now also a Animal even though it didn't inherit directly from Animal? ...
Score Inheritance design quandry
news.microsoft.com - 3 Mar 2006 2:15 AM - 5 messages
Hello, I've got a design problem that I can't figure out.  I need to override a static method which happens to be referenced by methods inside nested classes.  In the sample below, in the call tst.runTest() I need the result ...
Score Not able to load 23 MB PNG File in Bitmap Class
Anand Ganesh - 3 Mar 2006 12:32 AM - 3 messages
Hi All, I am trying to load 23 MB PNG file using the Bitmap Class, but I am getting an out of memory exception. My computer has 1 GB RAM and 1.5 GB Virtual Memory but still I am getting ...
Score convert int to bool
John A Grandy - 3 Mar 2006 12:12 AM - 5 messages
Often in dbs , tinyint is used instead of int (because tinyint cols may be indexed , whereas int cols may not). What is the best way to convert integers to booleans ? The following fails: bool myBool; tinyint myTinyInt = 1; myBool = (bool) myTinyInt; ...
Score Is this a Bug ? Image and NumericControl
Anand Ganesh - 2 Mar 2006 11:51 PM - 3 messages
Hi All, I just have a simple Windows Application with one Windows Form and one button. In the Button Click event I have the following code. Bitmap TheImage = new Bitmap(@"C:\GV7TestService\SIDSpot\mrsiddecode_win\TestImage.png") ; bool ImageLoaded = true ; TheImage.Dispose() ; ...
Score HTML Email Question
akylitis - 2 Mar 2006 10:59 PM - 3 messages
Hello: Anyone have an opinion on the best way to formulate a dynamic HTML email?  Thus far I have figured out that the only way to "build" the HTML prior to the email (I'm using System.Net.Mail) is to manually ...
Score Dynamic updates of remote object without service interruption
lk - 2 Mar 2006 10:26 PM - 4 messages
I need some help regarding the mechanism to put in place to be able to dynamically update a remote object when the assembly where it is defined is modified, and this whitout having service interruption. Basically what I'm missing is how do we re-expose a remote object when ...
Score Trouble with DataGrid and adding Rows
Flack - 2 Mar 2006 9:58 PM - 3 messages
Hey guys, I have a DataGrid and DataTable field in my class : private ImageDataGrid dataGrid1;  //ImageDataGrid extends dataGrid and just overides OnMouseDown private DataTable dt = new DataTable("MyTable"); In the classes constructor, after InitializeComponent() I call the following method: ...
Score Configure a console application to a Windows Service
tdavisjr - 2 Mar 2006 9:53 PM - 2 messages
Can anyone give me any hints on how to do this.  I already have a console  app that I have to start manually but I want to configure it to run as a windows service. ...
Score How to properly exit an application from the Main Form?
ESmith - 2 Mar 2006 9:51 PM - 4 messages
When a user starts up my application, I want to check for some prerequisite conditions, and if not met, the exit the application. Example: public Form1() {    InitializeComponent();    if ( MandatoryConditionsNotPresent() )    {        MessageBox.Show ("So Sorry!  Unable to run."); ...
Score Windows service design question
deko - 2 Mar 2006 9:50 PM - 8 messages
I'm trying to finalize a windows service design any would appreciate any comments - I'm new to windows services. Essentially my UI app relies on a service to schedule IO tasks.  The service does nothing but keep track of elapsed time. ...
Score How to get only the first file in a directoy without reading the entire directory file collection fi
MSDN - 2 Mar 2006 8:59 PM - 3 messages
Hello, I have the following code below that does not work for me because the directory has millions of files. foreach (string ofile in System.IO.Directory.GetFiles(strMyDir)) { System.IO.FileInfo oFI = new System.IO.FileInfo(ofile); oFI.Delete(); ...
Score Data binding with enums?
David Veeneman - 2 Mar 2006 8:29 PM - 3 messages
I want to data bind a user control and a business object, using a BindingSource control. The control has a 'Priority' property that takes a 'Priority' enum (High, Normal, Low). The business object has a property with the same name, which takes an identical enum. ...
Score Windows Forms communicating with Services
Gianmaria - 2 Mar 2006 7:52 PM - 2 messages
Hi, i've wrote a windows service that handle incoming tcp connections. Now i need to let him communicate with a windows form.. but without remoting. My service fires events too that i subscribe in my win form... is it ...
Score Question about ListView
Roy - 2 Mar 2006 7:43 PM - 2 messages
I have a ListView on a dialog with Detail view. (1) How do I select the whole line instead of the 1st column? (2) How do I hide a column so that  user would not be able to see it? ...
Score Design Question
Lee - 2 Mar 2006 6:42 PM - 3 messages
I am in the beginning stages of rewriting an application from Delphi to C#/VS2005.  In the current application, we cache much of the static data on the local work station in memorydatasets.  This works nicely because it reduces network traffic and the app is very responsive. ...
Score Could someone please write Design Patterns in C# for Dummies?
Carlo Stonebanks - 2 Mar 2006 6:13 PM - 3 messages
I have the infamous GoF Design Patterns boo - it's been sittin gon my shelf for years. I have a huge reading list and find this book a rather dry read and am always putting it off. I have recommendation for "Head First Design Patterns" book, but it's aimed ...
Score Open Unconnected ADORecordset
Brent Rogers - 2 Mar 2006 5:48 PM - 7 messages
I am trying to open an Unconnected/Disconnected ADORecordset. Using VB I would use the following function call rs.Open() However C# requires a Source and Connection. What do I pass in? I have tried null, the null string, zeros, empty objects but I keep getting ...
Score Converting COBOL code to C# ?
dm1608 - 2 Mar 2006 5:45 PM - 16 messages
We have a number of COBOL programs, and some were currently developing, that simply read TEXT based reports and scrap the reports for various information. I'm curious to know if anyone has attempted to do this sort of thing using ...
Score I thought this wasn't allowed in C# - invoking static members from a subclass
Larry Lard - 2 Mar 2006 5:39 PM - 9 messages
Today I discovered that a syntax that I thought was forbidden in C# but allowed in VB.NET (and I _don't like_ that it's allowed in VB.NET) is actually allowed in C#. Which confused me. The syntax in question is ...
Score Cool Windows controls
brosembob - 2 Mar 2006 5:13 PM - 5 messages
Currently I'm working on a Windows application (C#) where I'll need to create controls, like VU Meter, Sine Meter, switches, etc. What's the best technology to use to create those controls? Is GDI+ good for it? Also I'm looking into possibility of buying such controls. Can ...
Score mouseover...please help
new_sense - 2 Mar 2006 5:11 PM - 2 messages
Basically I'm creating a map application. When a user selects display all accomodation, the accomodation icon appears painted over the map(in picturebox). Is there anyway to display info eg name of hotel when user uses the stylus to mouseover the icon?? ...
Score Using The Remove Method with a Custom Object
a - 2 Mar 2006 5:11 PM - 8 messages
If the code to insert a new Student is: Profile.Teachers[tId].Classes[cId].Students.Add(new TCS.Student(id,teacher, class, name)); what is the code to Remove a student? I tried the code below, but I don't understand the syntax: ...
Score why does adding 2 bytes together result in an int?
moondaddy - 2 Mar 2006 5:10 PM - 14 messages
my understanding is that the max value of a byte is 255.  Therefore, why does the following code get a compile error? byte val1 = 10; byte val2 = 23; byte ttl; ttl = val1 + val2;  //this line wont compile compile error: Cannot implicitly convert type 'int' to 'byte'. ...
Score Event Problem
Willy_At_Work - 2 Mar 2006 5:03 PM - 4 messages
I want use a different signature for a base class event and also override the On... protected method.  It's not working.  What am I doing wrong?  Here's the code. public partial class UCBase : UserControl     { ...
Score Showing comments of a class in ObjectBrowser
Lee - 2 Mar 2006 5:03 PM - 3 messages
When looking through the object browser, I see comments that are shown for each property, method, etc. What is mechanism for doing this? Thanks, ...
Score DataAdapter.update not updating
RSH - 2 Mar 2006 4:54 PM - 4 messages
Hi, I have a situation in where i have two instances of SQL server, the first is our Production Environment, the second is our Development environment.  Both servers contain the same databases but I need to write a utility that can ...
Score finding a specific child node
apandapion - 2 Mar 2006 4:39 PM - 2 messages
I'm new to programatic manipulation of XML, and I'm sure I'm not doing everything in the best way.  In specific, I have a number of pieces of code that look like this: string foo=""; foreach (XmlNode xnii in xni.ChildNodes) ...
Score Problems with memory at WTS/Citrix Servern
Alexander Overmann - 2 Mar 2006 4:16 PM - 4 messages
Hello, currently we encounter several huge memoryproblems running .NET C# Applications under Windows Terminal Servers/Citrix. Sometimes the program claims 100 MB which is not very much at a single PC but a pain in the ass at a Terminalserver when 20-25 Users start the program (25*100 = 2500 MB). ...
Score Automated process hanging waiting for dialog
Benny - 2 Mar 2006 4:03 PM - 4 messages
I have an automated application that opens and manipulates Office documents.  Every time a document triggers a dialog to pop up, the process waits for the dialog before it continues.  After a little research, it seems like I will need to use hooks and messages in the ...
Score Tab page event handling
Jan Smith - 2 Mar 2006 3:50 PM - 3 messages
I have a C# project with tab control with eight tab pages.  I would like to allow the text or the text color to change when an event occurs, then have the text or text color change back when the tab is clicked.  However, I don't ...
Score SQL Connection String using Domain Account
Tim Sapp - 2 Mar 2006 3:35 PM - 4 messages
Folks, I am working on a .Net web site that connects to SQL Server 2000 on another box.  The DBA has given me a Domain user account with rights to the database and table.  I have confirmed with Query Analyzer that the user ID and ...
Score Naming a Setup Project
Bry - 2 Mar 2006 3:35 PM - 2 messages
Is there any way of modifying the ProductName in my setup project dialogs that doesn't involve me having to rename my setup project? I have an application named 'Foo', and the main project within the soloution is 'Foo'. I'm trying to make my setup project use the name ...
Score Converting int seconds to datetime or formated string
Pat Brown - 2 Mar 2006 3:26 PM - 3 messages
I am pulling an integer value of the amount of seconds since 12:00 am from a SQL Server DB.  I want to convert this integer into a formated string or datetime to display a legible time of day.  Are there any built in methods in ...
Score Question about the max length of a TextBox control
Flack - 2 Mar 2006 3:26 PM - 2 messages
Hey guys, I have read that the max length of a multiline TextBox control is 64K and of a single line TextBox control is only limited by the amount of memory of the user. Are those correct statements? So, take this code for example: ...
Score Conditional statement to display asp:textbox or asp:label
maflatoun - 2 Mar 2006 2:35 PM - 2 messages
Hi, I have a datagrid and based on a condition I like to display either a asp:textbox or asp:label. How would I do that? I have the following <asp:TemplateColumn HeaderText="Qty"> <ItemTemplate> <% if (DataBinder.Eval(Container.DataItem, "DynamicAttribute") = "No") ...
Score business objects
Rudderius - 2 Mar 2006 1:30 PM - 4 messages
Hey folks, I have a toppic I would like to discuss: Many authors write that business objects should have the CRUD behavior implemented (create, read, update, delete). Which means that a class Customer has a method Load() etc... In my opinion this is not the right way, because this means that you ...
Score Using an unmanaged c++ dll
Torben Laursen - 2 Mar 2006 1:29 PM - 2 messages
Hi I have a function in a c++ dll that I need to use, but I do not know how to pass the arguments. This is the function in c++: extern "C" __declspec(dllexport) void __stdcall Info(char *Label, const int ...
Score sysytem analysis and design practical question?!!! help plz
apple - 2 Mar 2006 12:54 PM - 2 messages
hello all, i have a question about system analysis and design, i tried to solve it but i could not .. choose a relaively small organization that is just beginning to use information systems. what types of systems are being used? for what ...
Score Running only 1 application instance in a machine
anonieko - 2 Mar 2006 12:37 PM - 3 messages
Avoid running several simultaneous instances of the same application on a single machine. ( Checking if application is already running) (Book Excerpt Practical C#2) Thanks to the static methods named GetCurrentProcess() (which returns the current process) and GetProcesses() (which returns all the processes on the ...
Score (Slightly OT) deploying C# applications and Windows Installer
Bart Simpson - 2 Mar 2006 12:30 PM - 3 messages
I am about to deploy a C# application which requires a third party database to be installed and ready at the client machine. The third party database has its own .msi file, complete with expected user interaction etc. My question is, is posible to create an ...
Score Casting question
tom@vandeplas.com - 2 Mar 2006 11:17 AM - 9 messages
Hi All, I'm stuck whit an issue I can't seem to resolve in C#: I have an arry of bytes which I would like to "recast" to an array of structs with an Explicit layout. I tried the Buffer.BlockCopy method, but ...
Score Serialization, XSD to class, and deep copying?
jjkboswell - 2 Mar 2006 10:27 AM - 5 messages
I have an XSD which I have generated a class from using the xsd.exe tool.  My XSD contains complex types within it, so that the generated class has member variables which are of types that are also defined in ...
Next »