Home All Groups Group Topic Archive Search About

Visual C# .NET

microsoft.public.dotnet.languages.csharp
Score Why is the control larger when on a form?
Netter - 8 Apr 2006 10:15 PM - 4 messages
I made a usercontrol (a couple of years ago). Actually it is a calculator with lots of little buttons. I have the control on a form. When I view the form in the IDE (or when running) the control is larger then ...
Score regex help
Howard - 8 Apr 2006 9:51 PM - 18 messages
I need to write a regular exp to replace more than 1 space to a single space input: this is  a    computer program output this is a computer program output = Regex.Replace(input, "something here", " ") thanks ...
Score Shutdown Exception: "The string binding is invalid"
Søren Dreijer - 8 Apr 2006 7:27 PM - 8 messages
Hi, I have a mixed C#, managed C++ and unmanaged C++ project. The managed class calls a method which exists in an unmanaged singleton class. During the entire lifetime of the application, this gives no problems whatsoever. However, upon shutdown an exception pops up: ...
Score SQL-DMO and C#: retrieve the list of User-Defined Functions
serge - 8 Apr 2006 7:09 PM - 5 messages
[link] I am using the sample code from this link but I am unable to figure out how to retrieve the list of the User-Defined Functions. I am able to get the ...
Score How to return class member as string?
Brett Romero - 8 Apr 2006 6:23 PM - 7 messages
I'd like to get the string name of a specific public class property. Say I have a class named Person with a public property named PersonId (Int32 type).   I create a new person object and do p.PersonId.ToString().  This returns the default value of PersonId - ...
Score Re: Excel files as HTML using C#
Kewal - 8 Apr 2006 4:09 PM - 2 messages
Hi Greg, Thanks a lot for your time and reply. I am using the  Excel interop with save as commend to HTML.  Something similar  below.... any suggestions? using Microsoft.Office.Interop.Excel; public void ConvertExcelFile(String excelFile) ...
Score Can't delete a record from access DB
Pete Davis - 8 Apr 2006 3:34 PM - 7 messages
I have a web-based C# app. I've got a routine to delete a record from a database. It executes just fine. No exceptions, no errors that I can find, but it simply doesn't do anything. It's not a file permissions issue. I can add new records just fine. I can ...
Score How to convert hex string to integer
Tanja Krammer - 8 Apr 2006 2:27 PM - 4 messages
Dear all, string a="0x0000000a"; int.Parse(a) <-Wrong format exception!!!! What do I do wrong? ...
Score Hiding/Closing ContextMenu
[EVA-02]Tseng - 8 Apr 2006 12:39 PM - 2 messages
Hi, got a problem with Contextmenu. I got a ListView and want to have the ContextMenu only shown when the user rightclicks an Element in the Listview. If ther is no element under the mouse cursor no menu shall appear. ...
Score inheritance conundrum
bill tie - 8 Apr 2006 12:33 PM - 5 messages
Consider the following classes A and B. public class A {   public enum Person   {     Peter = 0,     Paul = 1   }   public A(Person name)   {   } } public class B : A {   public B() : base(Person.Peter) ...
Score datatable X array of objects
cax - 8 Apr 2006 11:42 AM - 2 messages
Hi there. I am fixing an c# app. compiled to dotnet 1.1. Yet I want to port it for dotnet 2.0. But in some part of code there is a casting from an array of objects to a datatable that generates an ...
Score Redeclare an array;what happens to its objects?
Behzad - 8 Apr 2006 7:34 AM - 2 messages
hi, i want to know what happens to objects in an array if i redeclare the array.. look at the following code: ////my code public MyClass[] myarray=new MyClass[ somevalue ]; for( int counter = 0 ; counter < somevalue ; counter++ )      myarray[counter]=new MyClass(); ...
Score Reading the Windows Event Log
hecsan07 - 8 Apr 2006 4:35 AM - 2 messages
Hey I am trying to read the Windows Event Logc. In fact, I am able to read the Event Log. My problem is that I am reading and filtering a large log and it takes a very very very very long time to complete. I am using the ordinary ...
Score Updating a second DataGridView with Access Data
Steve Teeples - 8 Apr 2006 3:37 AM - 5 messages
I have a form with two DataGridView controls.  The form has linked to it an Access database with just two tables.  The second table contains unique "child" data having a one-to-one relationship with each row of the first ...
Score NUnit Test
Ether.Sysu - 8 Apr 2006 3:06 AM - 6 messages
hi   I'm new to NUnit. Is there any way to test a private method with NUnit?   thanks! ...
Score Where does Outlook get its colors?
Frank Rizzo - 8 Apr 2006 12:24 AM - 13 messages
...
Score Property or Function?
sklett - 7 Apr 2006 11:59 PM - 28 messages
I just found myself doing something I haven't before: <code> public uint Duration {     get     {         uint duration = 0;         foreach(Thing t in m_things) ...
Score To handle logarithms in DataTable.Columns[0].Expresion
Oscar Patarroyo Velasco - 7 Apr 2006 11:49 PM - 2 messages
...
Score Populate TreeView from ListView
Beginner - 7 Apr 2006 10:54 PM - 7 messages
Hi, I'm trying to populate a TreeView from an existing and filled in ListView (lvwBuild).  lvwBuild is a basic two column listview which can have any number of rows.  I would like the first column of lvwBuild to ...
Score instance of sqlDataReader - is not available to an exteranl method
Web learner - 7 Apr 2006 10:48 PM - 8 messages
I am trying to create a method GetDataFor(string column) becaues I have to repeat the same statements for several columns but I get an error as follows: The name 'dr' does not exist in the current context It seems the dr -the instance of sqlDataReader - is not becoming available to the method. How to make it available? This seems trivial and newbie problem related to OOP, but I am confused. Could you pl. look at the code or point me to some relevant URL. ...
Score Beginner Confusion - C# Terminology - Simple Function as Example
Ranginald - 7 Apr 2006 10:26 PM - 5 messages
Sorry for the simple question but thanks in advance: My goal is to create reusale code for a web app in C#. I have written the code already as a windows app but here is where I am confused: To keep it really easy let's say this is the code: ...
Score Regex: pulling values out of this string
sklett - 7 Apr 2006 10:19 PM - 5 messages
given one of these two string: ProtocolRecord(0, 100, 100, arZeroMax , 1, 0, SKIP,0), ProtocolRecord(0, 100, 100, arSetSet , 4, 0, DJMPNZSTOP, (void *) &Protocol_TD[0]) I want to pull all the values out that are separated by commas and the last ...
Score Radio Buttons in Menu
Martijn Mulder - 7 Apr 2006 9:10 PM - 8 messages
How can I put a set of Radio Buttons in a Menu? A bullet list of items where selecting one automatically unselects the others. Thanks ...
Score which method is called first ?
thickface - 7 Apr 2006 9:07 PM - 2 messages
Hi all, I have a question and any suggestions for solutions would be greatly appreciated. In my program, I first defined a variable called 'incidence' which has to be updated at every time step, public static int   incidence = 0; ...
Score Is there any dbunit for .NET?
probashi - 7 Apr 2006 8:26 PM - 2 messages
Is there any dbunit for .NET? ...
Score log4net clear log file
Dhans - 7 Apr 2006 8:11 PM - 5 messages
Hi there, I am using log4net in my (.net v1.1) application to log the messages. I tried to clear the logfile while application is running. since log4net has the file handle it did not allow me to clear/delete the file. I need to clear ...
Score DataGridView ComboBox Binding
Nathan - 7 Apr 2006 6:51 PM - 3 messages
Hi, I have a datagridview bound to a List of objects (ObjectA).  Each ObjectA contains an ObjectB property. Class ObjectA { public ObjectB objB {} } The datagridview has a combobox column that is bound to each ObjectA's ObjectB, like this: ...
Score Asking again: Implementing interface, returning subclass
David Thielen - 7 Apr 2006 5:30 PM - 11 messages
Hi; I am writing a class that implements IDbConnection. The i/f defines a method BeginTransaction() that returns an IDbTransaction. I want to define this as returning a DbTransaction (as DbConnection does). It makes sense to me that this is legal as DbTransaction implements IDbTransaction so it does meet the ...
Score regex question
Bob Weiner - 7 Apr 2006 4:55 PM - 4 messages
I have a string which contains html tags and data.  What regex patter will capture the data without the tags? For example     My new <a href="myHouse.com">home</a> is <B>very</B> nice! ...
Score Select and attach to specific COM EXE instance as COM object
Jon Davis - 7 Apr 2006 4:55 PM - 10 messages
I am working with an application that is compiled as a COM EXE (written in Delphi 7). I don't know if it's the nature of COM EXE or if it's implemented in the COM EXE, but when I create a new object based on the COM interface ...
Score Grabbing image out of a window
TheJediMessiah - 7 Apr 2006 4:14 PM - 2 messages
I have a window which is used to playback video media. I have another smaller window which I need to use as a snapshot window. When a user pauses the video and finds the frame he is interested in, I need to ...
Score Express Edition
Vijay - 7 Apr 2006 4:07 PM - 3 messages
Can I write ASPX pages wtih VC# Express edition for windows? Will get a template, like New ASPX page? VJ ...
Score Blowfish encryption
Iain - 7 Apr 2006 3:21 PM - 4 messages
Hi I need Blowfish encyption (freeware hopefully) for a c# project, any ideas where to start? TIA Iain ...
Score Cancel a pending async operation?
Anders R - 7 Apr 2006 2:56 PM - 5 messages
Hi, Anyone know howto cancel a pending async operation? I'm using the .NET 2.0 SerialPort and I start a BeginRead(...); What I like to do is to cancel that pending read. In c++ or with api calls you could use PurgeComm(handle, PURGE_RXABORT); ...
Score ReadOnly File Attribute
Josh - 7 Apr 2006 2:46 PM - 2 messages
How do I unset the ReadOnly attribute on a file.  Everything I find on Google does not appear to work. ...
Score Add Bytes to Bytes array
Geoffrey - 7 Apr 2006 2:28 PM - 2 messages
Hello, I have one array of Bytes , and I want to add some Bytes at the start of the array. Is it possible to move all the bytes of the array to right , so I can insert my Bytes like Bytes[1], ... ...
Score Need PropertyGrid Help
crow_y2k - 7 Apr 2006 2:27 PM - 2 messages
Hellooo out there... i have a problem with my propertygrid ( who dont have such a problem ;-) ): i want to programm a small app to easy edit a .ini file. i thought that a property grid would be a nice solution for that. ...
Score Directory disk space usage.
UJ - 7 Apr 2006 1:54 PM - 4 messages
I've now got the way to figure out how much disk space is on a disk. Is there any way to get the disk space usage for a specific directory and below? I could write a routine easily but if there is code already out there that ...
Score dotNet vs J2EE
Shayaan Siddiqui - 7 Apr 2006 1:47 PM - 5 messages
Hello I am working on a new project and I would like to do it in dot Net Can someone provide me with good irrefutable reasons to do it in dot net than J2EE? Shayaan ...
Score GUI Delegates & Text Disappearing
Curious - 7 Apr 2006 1:20 PM - 3 messages
Hi, I have program, creating multiple threads, and each thread is updating the same richtextbox(appending to previous text), and text in the statusbar. To update the richtextbox and statusbar, I am using delegates. At some point in time the text in the richtextbox is being cleared off. ...
Score [service] Detecting login / logout / inactive account
Eduard Witteveen - 7 Apr 2006 1:04 PM - 3 messages
Dear list, In the corporation, we want to know who is using which computer, and do some phone routing based upon this information. When a user log's uses it's account to login, the phone on the desk should also ring on the same desk. When the user leave's / sleeping, we ...
Score how to design shopping site
Sukh - 7 Apr 2006 12:58 PM - 5 messages
My client given me requirement to design ecommerce shopping site and his main requirement is he want to display item photo's with price and brief detail on site and he wants to change these items daily without compiling the site. Can any one help me how to approach for this. Any ...
Score Adding Property to my DataGridViewColumn
Michel Lapointe - 7 Apr 2006 12:43 PM - 3 messages
Hi, I have a problem while creating a customized DataGridViewColumn with a custom property. The problem is that after defining the property, adding the column to my Datagridview and settings it's property to true it never get define in the ...
Score Color.FromArbg
UJ - 7 Apr 2006 12:36 PM - 5 messages
What is the 'alpha' part of the color? All the documentation seems to say the alpha field is the alpha value. So what's the alpha value. TIA - Jeff. ...
Score SHELLEXECUTEINFO Hooking into the Shell
donald - 7 Apr 2006 11:42 AM - 3 messages
Hi there, I follow this [link] articles to made a Hooking into the Shell. I just want to know which App has call it for example was it start run, or from the desktop or from outlook as a attachment??? ...
Score Sorting arrays on more than one value
Mantorok - 7 Apr 2006 11:08 AM - 3 messages
Hi all I have an array of objects - each object contains a Surname and Forename property.  What I want to do is sort these by Surname, then Forename. Is this possible? Thanks Kev ...
Score Get directory listing from a web server
Pete Kane - 7 Apr 2006 10:55 AM - 7 messages
Hello all, how do I get a directory listing from a web server ?, I'm playing around with reflection and "Click once" deployment and would like to loop through a directory listing and use Assembly.LoadFrom(dllname) many thanks ...
Score How to pass a class to a method
MrEd - 7 Apr 2006 10:36 AM - 9 messages
Hi all, I need to pass a class to a method, (not an instance of a class), I'll explain... lets say we have a class, lets call it Shape (as the tipical example), then lets say that i also have Circle, Rectangle and Triangle classes ...
Score Which CHECK constraint causes the exception?
ferg - 7 Apr 2006 10:23 AM - 3 messages
I have a Customer table. The table has two different CHECK constraints. Then there is the Customer details dialog, which provides the user with an UI for changing users. I have some UPDATE sql, which is called once the user clicks the OK button on this dialog. ...
Score cannot access class?
Daves - 7 Apr 2006 10:18 AM - 2 messages
I have a custom (derived) Page class called BasePage where I define a class called ImgLink and it has a public constructor:     public class ImgLink{ publicImgLink(params...)} From the Masterpage I instantiate a BasePage class to access the ImgLink ...
Score Unable to properly set the InteractiveProcess property on a windows service
letibal - 7 Apr 2006 9:53 AM - 2 messages
Hello, I have written a windows service and created an installer for it. The service runs under the system accounts. When started, it launches a GUI. By default, the InteractiveProcess property of the service is not set (this can be checked by right-clicking on the service in the Services ...
Score Is it possible to use inheritance here or some other construction to make the code less
tony - 7 Apr 2006 9:47 AM - 2 messages
Hello!! Below I have some methods that first setup a select string then read the dataset into a ArrayList. I have used the Data Adaper ConfigurationWizard for these adapter that I use here. I just wonder if it's possible to use inheritance and polymorfism or some ...
Score subscribing to events
Mike P - 7 Apr 2006 9:43 AM - 10 messages
I'm trying to subscribe to the radio button CheckedChanged event.  I've tried using rbtn.CheckedChanged += new EventHandler(CheckedChanged); but it doesn't work.  Can anybody help? *** Sent via Developersdex [link] *** ...
Score Is this a bug?
Michael C - 7 Apr 2006 8:48 AM - 5 messages
I'm setting the AutoScrollPosition of a scrollable control. I was having quite a bit of trouble with it not doing what I expected. Eventually I worked out that if you want it to have a negative value you have to pass in ...
Score reference type garbage collection
Ivan - 7 Apr 2006 8:15 AM - 2 messages
If a reference to an object or an array is set to null, will the object/array and all of it’s members/elements be garbage collected as well (Assuming that no other references are held on the members/elements, and none of these ...
Score Constructor chaining
Sidharth - 7 Apr 2006 8:03 AM - 9 messages
Hello, I have this situation where I have two overloaded constructors and I would like to call one constructor from another without using the initializer way. I.e. without doing: public myClass(/*param list*/) : this(/* more param list */) internal myClass(/*more param list */) ...
Score Version Check of .NET Framework at runtime
vighnesh - 7 Apr 2006 7:35 AM - 3 messages
Hi All Can anybody help on version check of .NET Framework at runtime. Thankyou verymuch in advance Regards Vighneswar ...
Score datagridview - DataPropertyName
WayDownUnder - 7 Apr 2006 6:44 AM - 2 messages
I have a datagridview that is bound to a cutom collection. The classes contained in the custom collection have the properties that are bound to the class . This works fine ! But if one of the properites exposes another object I would like to bind a ...
Score Bugger
Michael C - 7 Apr 2006 4:31 AM - 3 messages
I spent a good deal of yesterday making a usercontrol that would display a picture for me with scrollbars to scroll around the pic (getting the scrollbars working nicely was what took most of the time). Today I found out ...
Score Permissions for Updater Application Block
Mark Gregory - 7 Apr 2006 3:16 AM - 4 messages
Would like to know how to make this work for a user not logged in as Administrator. We can get this to work when the client computer has an Administrator logged in. Would appreciate a pointer on how to do this correctly. ...
Score Help with .Contains
Kendall - 7 Apr 2006 1:50 AM - 6 messages
Hi, My form is - a listbox which contains 5 items, a textbox and a button. ListBox - subjectListBox TextBox - subjectTextBox When the button is clicked, I want the 5 items in the listbox to be compared to the text in the textbox (note: items in listbox are single ...
Score attributes in C#
vivekian - 7 Apr 2006 1:21 AM - 4 messages
Hi , I am moving on from C++ to C# . Though have understood how attributes work , still dont understand what need do the fullfil ? Where should they be used ? What are their advantages ? some sort of example might help . thanks in advance. ...
Score Adding Local Users to Local Groups
enilno - 6 Apr 2006 10:35 PM - 4 messages
I'm working on a C# app., and I need to programmatically add a local user to a local group on the computer on which the app. is running.  When end-users run this app., they will be logged on as local Administrator (so they should ...
Score How to detect if a printer is connected in C#?
ZS - 6 Apr 2006 10:12 PM - 5 messages
Hi, in c# how can one detect if a printer is connected to the computer or not. Thanks in advance -zs ...
Score FileDrop - Files Only, No Folders
Joe Reggae - 6 Apr 2006 9:51 PM - 3 messages
I have a routine that fills a listbox with file and folder names dragged in from Windows Explorer. I'd like to limit the listbox entries to file names. Can someone advise me on how to distinguish between a file and folder so I ...
Score REGEX help
pfeifest - 6 Apr 2006 8:55 PM - 4 messages
Hello- How would I validate the following statement in a REGEX validation? Thanks- pfeifest *********************** a 7-digit number starting with an 8 or an 8-digit number starting with a 5 *********************** ...
Score Random -- impacted by the computer?
Mark - 6 Apr 2006 7:39 PM - 2 messages
Is the code below impacted by the computer that it is executed on, or would one expect two computers that use the same seed to generate the same numbers?  For example, I executed the code below on two different computers ...
Score strange console output question
djc - 6 Apr 2006 7:31 PM - 5 messages
is this possible: lets say my output has 2 columns with headings like 'host' and 'status'. host    status ------------ host1    down host2    up host3    up host4    down ...
Score GetType() from a static class
sklett - 6 Apr 2006 7:20 PM - 5 messages
I'm moving some functions that are littered in various inappropriate classes into a single, static utility class. I ran into a problem with this line: <code> Assembly thisAssembly = Assembly.GetAssembly(this.GetType()); </code> Looks like I don't have access to the 'this' reference (duh), but I can't ...
Score Get Byte Count For Folder And Subfolders
joey.powell - 6 Apr 2006 7:10 PM - 5 messages
I am working on a windows forms app where I need to do copies. I also need to show a progress bar. In order to be able to set the Maximum property for the progress bar and then update it during the copy, I ...
Score Free disk space and total disk space
UJ - 6 Apr 2006 6:31 PM - 4 messages
How can I find out the free disk space and the total disk space for a drive? TIA - Jeff. ...
Score Parameter Passing to Fortran?
David - 6 Apr 2006 6:26 PM - 13 messages
I am attempting to pass an array from C# to Lahey Fortran and get return values from the array. The values are getting into the fortran, but the array that comes back has no values. Fortran code: function TestPass (floatArray) result (iRes) ...
Score ToolStripTextBox focus problem
osmarjunior - 6 Apr 2006 6:20 PM - 4 messages
I cannot set focus on a ToolStripTextBox of my tool bar. I've tried the following: myToolBar.Select(); myTextBox.Focus(); The edit cursor doesn't appear on the text box... strange!!!... Junior... ...
Score Trouble converting smallmoney to decimal
Aaron Prohaska - 6 Apr 2006 5:58 PM - 2 messages
Good morning everyone, I'm having problems when I convert the SQL Server datatype smallmoney to the .net datatype decimal. I am doing this to pass a dollor amount to the Verisign payment gateway. Verisign requires that the amount passed ...
Score State of MdiClient
MuZZy - 6 Apr 2006 5:47 PM - 6 messages
Hi, I'm developing an MDI application and i am having a problem: how do i know the state of MdiClient; what i mean is: when i maximize a MDI child, then close it and then open a new MDI child, it will open ...
Score Help with XmlNode - HasChildNodes always returns true even no immediate child exists
RJN - 6 Apr 2006 5:44 PM - 2 messages
Hi I have to read an xml and add the node elements into a hashtable with nodename as key and nodetext as value. If the selected node has childnodes, then value should go as an array. for eg., <Root> ...
Score Performance tuning a WinForm app
Frank Rizzo - 6 Apr 2006 5:35 PM - 2 messages
I am looking for some pointers on how to tune a pretty large WinForm app (written in vs2005).  Currently it is pretty sluggish on a 2.8 Ghz P4 with plenty of RAM.  The forms have a lot of controls (but they are well ...
Score WebBrowser questions!
Jose Chavez - 6 Apr 2006 5:08 PM - 2 messages
How Do I to get the focus on one of the frames of a webpage, after the webpage completed ? How I supposed to read some tags inside the html ? thanks for your help... ...
Score Killing my web service
Eric - 6 Apr 2006 4:52 PM - 2 messages
Hello, I've written a c# web service that functions as a test harness.  It mimics the user interface of a client's web service.  I would like to make it die based on being passed in a certain parameter, so that I can ...
Score Adding 'object' to Treeview?
Ed Minrights - 6 Apr 2006 4:31 PM - 5 messages
I have a bunch of related classes that I want to add into a Treeview with a hierarchy. However, Treeview doesn't support the insertion of the root 'object' type into the nodes, which surprises me. I just wanted to add them in and have the mouse events fire back with the ...
Score How To Casting/Convert Color
MikeY - 6 Apr 2006 4:22 PM - 6 messages
Hi Everyone, Is there a way (syntax) for converting/casting color so I can find the System.Byte of my chosen color with in my button? I have buttons colored ie "Color.Olive" and up to now I change the color ...
Score Trouble with Forms.WebBrowser
Tomaz Canabrava - 6 Apr 2006 4:18 PM - 2 messages
kay, here it`s my problem. i have a TreeView and a WebBroswer, when i choose something on the treeview, the program generates an html, and it is showed on the webbroswer, but the html has links to other classes that are displayed on ...
Score Need to reliably detect a text file's encoding for XML deserialization
Marc Scheuner - 6 Apr 2006 4:10 PM - 5 messages
Folks, I have a text file which contains some XML. In its XML header, it claims to be of UTF-8 encoding - however, it's really not, it's a ANSI / Windows-1252 / ISO-8859-1 encoding. Trouble is: when I deserialize objects from that file, all the German ...
Score application to read website code
phil2phil - 6 Apr 2006 3:50 PM - 2 messages
Hi, I wanted to know if there is any example or library that I could look at to help me write an application that could read the html code from a website.  We currently have a site that display data like ...
Score Can't edit property in IDE
Steve Barnett - 6 Apr 2006 3:35 PM - 3 messages
I have a field in a user control which is a structure. The structure has three fields, an integer a string and a Boolean. When I put my user control on a form, the property that references the structure is greyed out, so I ...
Score How to Package and Deploy Windows Installer 3.0
John - 6 Apr 2006 3:22 PM - 2 messages
I have made setup project (VS 2005) that includes setup of my app and Framework 2.0 How can I check if there is installed Windows Installer 3.1 and if not to install it? I know that I have to add launch condition, but don't know what to type in ...
Score Need databinding help
Michael Rodriguez - 6 Apr 2006 3:10 PM - 3 messages
Does anyone know how I can bind to the Enabled property of a toolstrip button?  That class doesn't seem to expose the DataBindings property... TIA, Mike Rodriguez ...
Score Problem with generics replacing hashtable
WT - 6 Apr 2006 2:59 PM - 2 messages
Hello, I was using hastable to store collection of objects of the same class MyClass. I start replacing this hastable by a Dictionary<string,MyClass>....but I was storing this hastable in cache an accessing it from another component ...
Score Off Topic: Advice on designing reliable applications
derrick.signup - 6 Apr 2006 1:02 PM - 2 messages
Hello all; I apologize for being slightly off topic, but I have great respect for the knowledge in this group. I am about to begin developing a .NET application where reliability (i.e., uptime/availability) is important.  It is going to be a ...
Score Component class and Custom control
tony - 6 Apr 2006 12:25 PM - 2 messages
Hello!! When you add an item you can select to add a component class or Custom control or several other. I know what a Custom control is but what is a component class? Is it more or less the same as a custom control? ...
Score Converting to grayscale
Sirin Azazi - 6 Apr 2006 12:14 PM - 3 messages
i am trying to convert an image into grayscale format. but i have a problem saving the bmp file after the process.here the code; for (int y = 0; y < Height; y++)     {         for (int x = 0; x < Width; x++) ...
Score many new instances
Martijn Mulder - 6 Apr 2006 11:10 AM - 6 messages
I do some hefty computing in the inner loop of a graphics application. In Java I used the new operator a lot since, as many authors assured me, the Java run-time would implement that very efficient with inline code that ...
Score Multiple derivations from UserControl
steve.kaye - 6 Apr 2006 11:05 AM - 8 messages
I am writing a number of controls which use inheritance and I have a problem that I do not know how to solve.  It's best if I describe the class structure I want. Grid - derives from UserControl and contains most of the functionality ...
Score DataSet.WriteXML doesn't close the file?
UJ - 6 Apr 2006 10:46 AM - 3 messages
It appears when you do a DataSet.WriteXml ( <filename>, <writemode> ) it doesn't close the file immediately. Is that true ? The reason I think that is I have two programs that are going to be access the same XML file and when one writes to it the other can't ...
Score blob
Hrvoje Voda - 6 Apr 2006 10:45 AM - 2 messages
I'm using this code to get blob from sql server, but I get an error "Parameter is invalid." SqlDataReader sqlRead = null; Image profile; db.sqlConnection.Open(); System.Data.SqlClient.SqlCommand ProfileBLOBSelect = new System.Data.SqlClient.SqlCommand(); ProfileBLOBSelect.CommandText = "dbo.[AppProfileSelectIDBLOB]"; ...
Score Pass parameter/set property using reflection
poppy - 6 Apr 2006 10:25 AM - 2 messages
I am using reflection to open a form in an assembly.  The form contains a picture box. What I want to do is not just open the form usinf reflection but pass an image location/filename to the form to display. ...
Score how to sign interop?
Tanja Krammer - 6 Apr 2006 10:04 AM - 2 messages
Dear all, when I add a COM object to a project an Interop is generated automatically. This Com object is created in other project, so when I rebild solution it is regenerated and readded. How can I sign this interop automatically? Without ...
Score HttpHeader problems
KrippZ - 6 Apr 2006 9:07 AM - 4 messages
Hello I'm tryin to develope my own webserver and I need some help with the HTTP aspect. Im trying to create a webserver with session handeling and for this I use the Set-Cookie header wiich I can manipulate as I ...
Score Using foreach
tony - 6 Apr 2006 8:49 AM - 5 messages
Hello I use foreach when I have a container of some kind for example an array or ArrayList. But in this case is it really possible to use foreach. In case it is how would I write it. for( int i = 0;  i < dSMspComposition.Tables[0].Rows.Count;  i++ ) ...
Score Object data source + HastTable
Jarod - 6 Apr 2006 8:38 AM - 2 messages
Hey I have List<myObjects> and each myObject has property with HashTable. And I want to bind it to GridView. Each item in HastTable is a column in gridView but it will change in time so this one it will have 5 columns, next 3 , next ...
Hi
VB6
Next »