Home All Groups Group Topic Archive Search About

Visual C# .NET

microsoft.public.dotnet.languages.csharp
Score (FileUpload)FormView1.FindControl(FileUpload1).FileName
Dave - 18 Nov 2006 11:32 PM - 5 messages
If you had a FileUpload control inside of a FormView...how would you use FindControl to access the FileUpload properties?  Let me just say that (FileUpload)FormView1.FindControl(FileUpload1).FileName doesn't work. The purpose is to insert a graphic in the InsertItemTemplate section of ...
Score Change Control properties that are in FormView
Dave - 18 Nov 2006 10:52 PM - 2 messages
I'd like to be able to change the ImageURL property for an Image control that resides inside a FormView.  Can someone give me a hand with this?  I'm not sure how to reference it. Thanks ...
Score Membership providers in dotNet 2.0
Allan Ebdrup - 18 Nov 2006 10:15 PM - 3 messages
I'm using VS Team Suite 2005 and dotNet 2.0, my webserver is running dotNet 2.0 I trying to set up a membership provider using a MSSQL 2000 database. I've run the aspnet_regsql.exe tool and have the tables created. ...
Score CreateInstance question
> Adrian < - 18 Nov 2006 8:24 PM - 6 messages
Array.CreateInstance( typeof(Int32), 5 ); What is the advantage of creating an array this way? Adrian. ...
Score Amazing !!!
youtube300 - 18 Nov 2006 8:21 PM - 16 messages
Priests & Preachers Coming to Islam? Former  American Priest tells his story : [link] ...
Score Question about Microsoft Visual C# Express Edition
Schizoid Man - 18 Nov 2006 7:48 PM - 3 messages
Hi, I want to write some custom UDFs for Excel in C# and and build them into   XLLs. However, I can't seem to check the Register for Com Interop box in the Express Edition of VC#. Is this a known limitation of VC# Express? Is there a way for me to ...
Score Bug with Array.CreateInstance() when lower bound > 0
Gianluca - 18 Nov 2006 7:29 PM - 3 messages
If you create an array using Array.CreateInstance() and use a lower bound > 0, you apparently get an array of the wrong type. int[] lenghts = new int[] {1}; int[] lowerBounds = new int[] {1}; string[] ar = (string[])Array.CreateInstance(typeof(string), lengths, ...
Score Package a UserControl in a dll
Carlo - 18 Nov 2006 6:42 PM - 4 messages
I would like to package several usercontrols in a dll. Then use them in another website. How do i accomplish this? I tried to add a reference of the 2nd website to the dll of the first website containing the usercontrols but i couldn't make it work. ...
Score Error messages web app
Robert Bravery - 18 Nov 2006 6:36 PM - 6 messages
Hi all, I am developing a web app.Using master pages. C# In it is a save method, which retunrs true or false (saing to a sql server) I want to notify the user of a save failure in two ways, check the error ...
Score try/catch in C#
pack - 18 Nov 2006 6:35 PM - 3 messages
Is "catch" in C# going to catch all exception, or it just catch the exceptions induced by "throw"? Will it also catch those "structured exceptions" that could be either from system modules or other DLL or COM objects of native code? ...
Score Never Ever...
xlar54 - 18 Nov 2006 10:30 AM - 57 messages
I've been going through the newsgroup, picking up best practices and things not to do, as I think it helps to make a good programmer a very good one.  But rather than fishing, I figure that there are many out ...
Score string problem
Mosquito Man - 18 Nov 2006 7:50 AM - 10 messages
string s("0101"); I can't change it into s=1101 by s[0]='1'; because string.this[i] is read-only, no assignment is allowed :-( thank you for your help ...
Score resize
Deniel Rose' - 18 Nov 2006 5:44 AM - 8 messages
How can I resize a list ? thanks ...
Score How can I get the specific file handle information from a System.Diagnostics.Process.Start call?
forest demon - 18 Nov 2006 5:42 AM - 4 messages
for example, let's say I do something like, System.Diagnostics.Process.Start("notepad.exe","sample.txt"); if the user does a SaveAs (in notepad), how can i capture the path that the user selects? thanks... ...
Score Has msdn2.microsoft.com become a bummer loading and mangling page display?
clintonG - 18 Nov 2006 3:21 AM - 5 messages
Why won't pages at msdn2 load? If they do finally load they throw object not found errors like crazy when using IE7. When the page finallty loads like literally 2-3 minutes after a request the page display is all mangled up. ...
Score Member Variables Naming Convention
Jonathan Wood - 17 Nov 2006 11:27 PM - 116 messages
I was just wondering what naming convention most of you use for class variables. Underscore, "m_" prefix, camel case, capitalized, etc? Has one style emerged as the most popular? Thanks for any comments. ...
Score What keeps track of delegates?
jm - 17 Nov 2006 9:44 PM - 6 messages
If I have multiple subscribers to a delegate, what keeps track of them? Are they out there on the heap? When I declare a delegate: public delegate void MyDelegate (object myObject, MyObjectEventArgs myEvent); public MyDelegate SomethingHappened; and later I have two subscribers, what's going on in the background. ...
Score Starting application like: C:\Direct -a -b -c <C:\Script.src > C:\log.txt
SMichal - 17 Nov 2006 9:42 PM - 2 messages
Hi, how can I start new process with this kind of application ? C:\Direct.exe -a -b -c  <C:\Script.src > C:\log.txt As you can see...I'll start appliaction ConnectDirect with 5 paramaters -a     =    node ...
Score Microsoft Outlook and ASP.NET
Dash Weh - 17 Nov 2006 8:23 PM - 3 messages
Does anyone know where to find a good tutorial for working with Outlook from an IE ASP.NET Application? Are there any stability issues I should be concerned about? I'm trying to create an Outlook Appointment in both a private user's ...
Score Is there an easy and direct way of creating an SQLServer table using the .Net dataset
Frankz - 17 Nov 2006 7:38 PM - 2 messages
Hi, I am new to this group so forgive me if this question sounds too newbie. :-) I am writing a C# program. One of its functionalities is to use a .Net dataset to create and populate a table in the SQLServer database. I ...
Score Easiest methods for copying and removing +elements+ of one ArrayList to/from another?
kenfine - 17 Nov 2006 7:12 PM - 5 messages
I have three Arraylists that hold strings corresponding to addresses of an e-mail list: ArrayList masterList ArrayList optInToMasterList ArrayList optOutFromMasterList I want to know the easiest way to add all of the +contents+ of one arraylist to another. masterList.CopyTo (optInToMasterList) does not have the intended effect: I ...
Score Recursive relationships in data objects
lithoman - 17 Nov 2006 5:14 PM - 5 messages
I have been working with objects long enough to have the basics down, but some things give me fits, and this is one of them. Brief description: I have an airplane object, and each airplane has an owner. Likewise I have a customer object and each customer has a list of ...
Score Reading/Parsing an XML string: code review
Gina_Marano - 17 Nov 2006 4:43 PM - 4 messages
Hey All, There are many ways to skin a dog (I like cats so  no cats) in .Net I have an XML string in the following format (without linefeeds): <remoteDir>   <dir>MyDir</dir> ...
Score How do I suppress "Thread xxxx has ended with code 0" output durin
MrNobody - 17 Nov 2006 4:43 PM - 2 messages
I have tons of thread running and closing and this output is driving me nuts. How do I get ri dof it? ...
Score C# and Database Programming
Todd Jaspers - 17 Nov 2006 4:30 PM - 4 messages
Hey guys,      I'm writing an application and I'm very frustrated right now. What I want to be able to do is have a form (regular Windows application), and have a series of drop-downs. ...
Score Best way to override AllowNull in a schema?
Martin Z - 17 Nov 2006 4:29 PM - 14 messages
I'm making a CRUD screen for an Oracle database... but problem is that the primary key in that table is populated via an autonumber, which in Oracle is done just with triggers and sequences.  Suffice to say that ...
Score Program a recorder in C#
jujulaustralienne - 17 Nov 2006 4:27 PM - 2 messages
I know many people have managed to this but no one has posted the code on the internet. I used the codeproject program: [link] to start with. The problem is that this program records and plays back right away. What I ...
Score Posting Jobs
GailIntuit - 17 Nov 2006 4:26 PM - 7 messages
I am a new user to googlegroups and wanted to ask if I am allowed to post jobs to this group.  I currently work for Intuit and am recruiting Software Engineers / Architects for California, Boulder CO, and Waltham, MA.  All with either Java, C++ or C# experience. ...
Score Evaluation order question ...
Jamie Risk - 17 Nov 2006 4:01 PM - 5 messages
Is this valid?    byte ptr[];    ...    if (null != ptr && ptr.Length > 0) {       ...    } (It would be in C) Or should I break it apart:    if (null != ptr) { ...
Score Complex UserControl, need help...
junk - 17 Nov 2006 3:51 PM - 7 messages
Senerio: I have a custom user control which contains two control arrays. The user control has a group box in which the two control arrays are dynamically built. The two control arrays are RadioButtons and PictureBoxes. Task: What I need to accomplish with this custom user control is to rearrange the ...
Score How to tell user an int typed field/property has not been set.
zlfcn - 17 Nov 2006 3:40 PM - 4 messages
Hi all, In java, if a field is Integer type, we can assign it to null indicating that this field has not been set yet. How can we achieve that in C#? In C#, "int" is struct, we cannot set it to null. Thank you ...
Score Synchronized Scrolling between C# applications
Roe - 17 Nov 2006 3:07 PM - 4 messages
What is the best way using C# .NET 1.1 to have two (or more) applications perform a "synchronized" scrolling?  These applications will all be C# .NET and will be on the same machine.  The effect I need ...
Score DllImport
Zoltan - 17 Nov 2006 3:06 PM - 5 messages
OS : Windows XP Professional Environment : MS Visual Studio 2005 Language : C# I am trying to call an unmanaged function that is in a dll written in C++. I did call the unmanaged fucntions already and i know almost everything. My problem is that i do not have those datatypes under C# ...
Score Visual Studio Find Window
Tommaso Caldarola - 17 Nov 2006 2:53 PM - 4 messages
I want to emulate the Visual Studio Find Window (window on top most per application but not modal), which properties I have to set? ...
Score Loss message on Socket Async mode
rockdale - 17 Nov 2006 2:49 PM - 2 messages
Hi, all Did not find a .Net Communication forum to post. I am soing a client/server message system and using C#.net socket and Async mode. Pretty much as described in article [link] ...
Score Passing Data between forms
Jason - 17 Nov 2006 2:47 PM - 8 messages
Hello I've got a very simple C# app, that has a datagrid, a text box, and a button which when clicked opens a second form... Form2 frm2 = new Form2(); frm2.Show(); When I place a datagrid, onto form1 I point to a DB called Test DB and then ...
Score problem with DataSet.GetXml() method
lucky - 17 Nov 2006 2:03 PM - 2 messages
Hi guys! i've filled the DatSet object and was trying to get xml data from it. i used GetXml() method for that. it worked fine when all columns of the datatable has data. it generates perfectly fine xml but when if one column in datatable has no ...
Score Making (enhancing) a remoting system to become a web service sysem
Mike9900 - 17 Nov 2006 1:44 PM - 9 messages
Hello, I need to make my already implemented .NET remoting system to become a web service or any system in order to be usefull over the internet. My current system uses .NET remoting and can be used in LAN and not the internet.  What ...
Score MethodInfo.Invoke and TargetInvocationException
Lambuz - 17 Nov 2006 1:34 PM - 4 messages
Hi all, when I use MethosInfo.Invoke method I obtain a TargetInvocationException where inner exception is +{"classBase.OpenConn cannot be invoked directly" }    System.Exception. I'm using the following class public abstract class classBase{ public static int OpenConn(){ ...
Score sqlServer - ODBC - WebServices
TheMaxx - 17 Nov 2006 12:44 PM - 4 messages
I've created ODBC DSN for sql server. When i connect from win application works OK. When i make WebService (on same machine) that connects to that ODBC connection fails: Error: Server was unable to process request. --> ERROR [28000] [Microsoft][ODBC SQL ...
Score How to ensure thread-safety between inter-dependent database persistence managers.
news.microsoft.com - 17 Nov 2006 11:26 AM - 5 messages
Hi all, Assume we have two entity class. Class1: Name: House Property:   ID:int   Name:String   Desktops:Desktop[] Class2: Name: Desktop And we have two corresponding Database Managers: HouseDBManager and DesktopManager If we want to insert a House instance into database, we need to call ...
Score Creating DTS pacakage in dynamically
itarunachalam@gmail.com - 17 Nov 2006 11:15 AM - 2 messages
hi,     How to create a "DTS pacakage" in sqlserver 2000 through .net code if you know please send me the code ASAP. Thanks Arun a***@glinfosolutions.com ...
Score Finding control type in ASP .NET if you only know the control name
Joachim - 17 Nov 2006 11:15 AM - 3 messages
How can you find a control's type in ASP .NET (using C#, in Page_Load function) if you only know the control's name? ...
Score C# Compiling Question
NvrBst - 17 Nov 2006 10:48 AM - 6 messages
I'm wondering if this is possible... Basically say I have a lot of .cs files but only 1 of them changes.  Is there a way (with the csc.exe, or VS.NET 2005, or another C# Compiler), that I can compile everything ...
Score Stored procedure to transfer the data of one row to a single column
itarunachalam@gmail.com - 17 Nov 2006 10:33 AM - 4 messages
Hi friends, I have  a table structure like this in SQL sever 2000. i want a stored procedure to transfer the data from "tblSurvey" table to  "tblRespondent" table. Table - tblSurvey ---------------------------------------------------- columnHeading      col1  col2   col3  col4   col5  | ...
Score How to marshall parameters in winhttpopenrequest()?
selva - 17 Nov 2006 10:27 AM - 2 messages
hi i am using the following c# code in winhttp to open a http request Win32Api.WinHttpOpenRequest(Winconnection,"POST","/winn/01Primary/",null,"W­INHTTP_NO_REFERER",WINHTTP_DEFAULT_ACCEPT_TYPES,0x00800000); and my function marshalling looks like                                    [DllImport("winhttp.dll", ...
Score Seald classes
> Adrian < - 17 Nov 2006 9:52 AM - 6 messages
When classes are not being inherited from. Is there an advantage to be gained by making them "sealed", and, if so, what is that advantage? Thank you, Adrian. ...
Score Dynamic data casting
Trev - 17 Nov 2006 9:28 AM - 4 messages
Hi, I have a series of functions which do the following: ValidateData( args );  //args if of type ArrayList // Work out if the data is valid or not, and work out the type of args[1] - int, string, whatever? if((bool)args[0]) // valid data ...
Score VS2005 UserControls
Robert Mago - 17 Nov 2006 9:21 AM - 3 messages
Hi, I have been using web usercontrols on 2003 for a very long time and i find them userful for modularity. Usually what i do is create a subfolder called 'UserControls' for example and placed the web usercontrols there ( i would ...
Score file header of grafic-files
Frank Kociemba - 17 Nov 2006 8:38 AM - 5 messages
Hi NG, how can i compare, if a file ends with jpg,jpeg,gif,tif is really such a file and not an unnamed one. Is ther a solution or an example who to do it in c#? Frank ...
Score DataGridView and CellContentDoubleClick event
beaker - 17 Nov 2006 8:00 AM - 4 messages
Hello, I have a DataGridView and I want to handle the CellContentDoubleClick event.  No problem so far, but when I double click on a cell the CellContentDoubleClick event only fires if I double click over text, and not over any 'white space' in the cell.  How do I get the event to fire ...
Score proper programming? (events)
giddy - 17 Nov 2006 7:06 AM - 12 messages
hi , ok , i have a programming background but i'm new to C# . i'm also self taught so : i have a datagridview that should act differently depending on which user has signed in now is it more effecient/correct if i do this: ...
Score Remoting query
KAMAL - 17 Nov 2006 6:56 AM - 2 messages
Hi all,          I have some problem in my .net project. In my project two systems will communicate by installation the client server application in them. They can be 1. Server1--->server2 (run client server application on each system) ...
Score cgi and c# ?
GoodJobFastCar - 17 Nov 2006 5:27 AM - 3 messages
Hi, Suppose I have a simple c# program which does something like give me the current time. How would I attach it to a cgi-bin action inside a webserver? So if my browser sends something like: [link] ...
Score strange thing using Process class to call outside executable file
Wang E - 17 Nov 2006 5:00 AM - 2 messages
I've been working on an online judge(for ACM/ICPC) using C#.Programmes submitted by users can now be compiled,and it's the problem to judge.I use the Process class in C#,and my thread is as follows:start a process ...
Score How can I develop a drop-down font control ???
Melisa - 17 Nov 2006 3:50 AM - 3 messages
Hi, I am trying to list all font families in a combo box control. But all font families does not support all font styles . How can i get the list of all font style and font size supported by a ...
Score canonical object access
wpmccormick - 17 Nov 2006 3:26 AM - 6 messages
What is the cleanest way to gain access to object methods and properties across classes and files in the same namespace? Example: A form object frmForm in file frmForm.cs creates obj1 defined in file obj1.cs, which in turn creates obj2 and obj3 defined in obj2.cs ...
Score C++ Calling a C# method
fatemah.aldouli - 17 Nov 2006 1:03 AM - 4 messages
Hi, I am new to C# (and not an expert in C++). I am trying to use a C++ program to call a C# windows application (to be specific the Main() method of the C# application). What should I do? Somebody else created ...
Score parse a space delimited text chart
segue - 16 Nov 2006 10:56 PM - 2 messages
I'm trying to decipher ethereal packets and convert them from hex to letters.  I'd like to stream ethereal text files, and stream a hex/ascii to letters chart, both into datasets, and search for the numbers that correspond ...
Score Problem appending a new element to xml file...
sherifffruitfly - 16 Nov 2006 10:29 PM - 14 messages
Hi all, I'm trying to distill all of the info from google searches into what I need, with partial success. In truth, the whole xmlNode, Document, Element, etc group of classes & methods is going over my head - lol! ...
Score singleton ienumerable, need to add more...
David - 16 Nov 2006 10:10 PM - 14 messages
Hi all, I have a singleton ienumerable that collects data from a database. I have listed the code below. It has the usual methods of current, move and reset. I need to go to a certain position or set filters or many other things and I ...
Score How can I get a list of AppDomains under current process?
Maxwell2006 - 16 Nov 2006 10:05 PM - 2 messages
Hi, How can I get a list of AppDomains under the current process? Thank you, Max ...
Score System.Security.Cryptography.MD5.Create( ??? )
Jonathan Wood - 16 Nov 2006 9:56 PM - 5 messages
Does anyone know why the documentation for System.Security.Cryptography.MD5.Create() seems to omit completely any description of allowed arguments. I'm trying to convert some C++ code to C# and seem to be getting different MD5 results. If other algorithms are available, maybe that is related to the ...
Score OleDb DataFactory bug. Watch out.
Bob - 16 Nov 2006 8:38 PM - 5 messages
Hi, Using the OleDb factory. Asked it to insert 4K records into a SQLAnywhere database table. Runs out of steam at record 244 and starts  writing corrupted versions of 243 primary index column until at 248 it hits a variation it has already ...
Score Cannot apply indexing with[] to an expression of type method group
Martin Pöpping - 16 Nov 2006 8:27 PM - 3 messages
Hello, I´m getting the above error with following lines of code: SortedList<int, int> preparedConcepts = prepareConcepts(docs); IList<int> preparedKeys = preparedConcepts.Keys; foreach (int key in preparedKeys) {     int count = prepareConcepts[key]; ...
Score Opening pdfstream in new window in asp.net-Help me
settyv - 16 Nov 2006 8:04 PM - 2 messages
Hi, I need to open PDF document in new window when i click on linkbutton in datagrid.For that i have written code as below: But the problem with this code is that it opens the new window ,but not ...
Score Threads, forms, and controls
Jon Slaughter - 16 Nov 2006 8:00 PM - 3 messages
Is this scenario possible? One has a form, a thread and a control. The thread adds a control to the form. The form adds handlers to every control added but because the control is in a different thread the handler might cause an exception. ...
Score How to copy one object to another?
DBC User - 16 Nov 2006 6:16 PM - 6 messages
I have 2 classes which are exactly same except the name. I do not have access to either of the class to change anything in it. In my code, I need to copy one of one class to another class. How can I ...
Score Centralized Master Pages
Lucas Davenport - 16 Nov 2006 5:54 PM - 2 messages
I have the task of creating several one-page websites for our subsidiaries. I would like to use the MasterPage concept with this task. The sites will all be separate site, located in their own folder. Essentially, I would like to ...
Score BackGroundWorker.ReportProgress method doesn't accept strings
jimmy - 16 Nov 2006 5:34 PM - 3 messages
Does someone know why BackGroundWorker.ReportProgress method doesn't accept strings ? You can't pass integer always for a progress meter as percentage completed cannot be calculated in many tasks like logging on to a remote computer. In that case, we would like just to show a message ...
Score Where is string.Reverse() and string.SwapChars()?
Jonathan Wood - 16 Nov 2006 5:30 PM - 5 messages
Is it just me? It seems like one moving from MFC to C# loses some string functionality such as the two mentioned in the subject. Did I miss something? ...
Score Focusing on a text box in a datagrid
Steve B - 16 Nov 2006 5:13 PM - 2 messages
I am using c# in VS 2002 using SQL Server 2000.  I have a datagrid with an 'edit' button.  When the 'edit' button is clicked, you can update the columns for that one row.  The logic works fine, but I would like to place the cursor ...
Score Writing to a text box, comminiting chagnes to a DB
Jason - 16 Nov 2006 4:58 PM - 2 messages
Hello I've got simple form with a datagrid and a text box, and I'm binding to a simple MS Access DB this is done in C# The textbox is getting it's data from a field in my database and that field ...
Score NumberFormat problem in StreamWriter
schaf - 16 Nov 2006 4:50 PM - 2 messages
Hi NG! I have a .NET project which uses a sublibrary written in C++. On the .NET side I use the XMLSerializer to serialize an object (into an MemoryStream). This stream would be casted into a byte-array and then passed to the C++ sublibrary. ...
Score Order of base class "OnWhatever()" calls
Jim Matheson - 16 Nov 2006 4:36 PM - 3 messages
Hi there, When overriding form/control functions like "OnLoad()", "OnFormClosed()", etc., should the base class version be called before or after your own code. The docs say nothing about this nor give any guidance. It probably depends on the function itself so are you supposed to determine this. Thanks. ...
Score VS2005 - 64bit - processor
John J. Hughes II - 16 Nov 2006 3:22 PM - 14 messages
All, General question.   I am working on upgrading my system from a 3.2GHz P4 to something better. 1) Well switching to Windows XP Pro 64 bit cause me massive problem with VS? 2) Is the Xeon or Core 2 Duo processor group better. ...
Score short[] to byte[] conversion
Alberto Cardoso - 16 Nov 2006 1:50 PM - 10 messages
Is there a direct way to convert a short array to a byte array? I dont to use a for and cast every short to a byte. I want something like the BitConverter class that accpets a short array as ...
Score Of Structs, Layouts, and Serialization
dvestal - 16 Nov 2006 1:29 PM - 6 messages
I have a class that needs to be serialized to a byte buffer.  I'm using a large, unwieldy, homegrown serialization method, which has to change every time the class's members change, and I think there's probably a ...
Score When is an event null?
dvestal - 16 Nov 2006 1:24 PM - 23 messages
Suppose I have this: class C {     public delegate void MyEventHandler();     public event MyEventHandler MyEvent;     public void foo() {         MyEvent();    // NullReferenceException?     } ...
Score Sub system protection
Sharon - 16 Nov 2006 1:10 PM - 6 messages
Hi all. To prevent access to a sub system internal types, is it necessary to create the sub system in a different project, and use the internal access level? Or is there another way that will enable the creation of several sub systems ...
Score Reading XML stream using unmanaged c++
Mayur - 16 Nov 2006 12:13 PM - 2 messages
Hello All, My code below sending request to web server and getting response as XML string. char* response; wf.getResponse(response,500); where outout of above function returns xml string which is stored in response variable. response ="<login> ...
Score Marshalling a Callback with BOOL parameter
markb - 16 Nov 2006 12:04 PM - 4 messages
Hi My C# app is being called from a callback from an unmanaged DLL. One of the parameters of the callback is of type BOOL. I am using PInvoke to marshal this to a (managed) bool. The problem is that no matter if we ...
Score How to how to get the privilege of domain controller
Leo - 16 Nov 2006 11:44 AM - 5 messages
Hi, guys. I want to use c# to get the privilege of a domain controller in a non-DC machine as i have the user name and password of DC. But i can't find any functions in MSDN. Has anyone met the same problem? ...
Score Regular expressions and numerical only input
Trev - 16 Nov 2006 11:42 AM - 10 messages
Hi everyone, I'm having some problems with my regular expressions in C# and was wondering if anyone could help? Basically, what I'm trying to do is check for numerical only input - either integer, or double, so I need to check for 1234, 1234.5 etc. ...
Score DataGridView / DataPropertyName - Displaying nested object information
connected - 16 Nov 2006 10:55 AM - 4 messages
I'm having difficulty with populating a DataGridView control with data correctly. It works with a single class, for example... class MyClass {     private string _propertyOne;     private string _propertyTwo;     public string PropertyOne { get { return this._propertyOne; } } ...
Score Advanced use of delegates to automatically disconnect delegates from a set of events
kristian.freed - 16 Nov 2006 9:18 AM - 3 messages
Hi, I currently work in a project written fully in C# where we make extensive use of delegates and events. We have a model where a "state", an object holding data but not much code but which fires events when ...
Score Determine the available Serial Port on a system
LongBow - 16 Nov 2006 9:10 AM - 6 messages
Hello,   Is there a way, in .NET, to determine what are the avialable Serial (Communications) Ports on a Windows OS and is there a way to determine that port isn't being use other than attempting to opening the Serial ...
Score Modal Form not closign cleanly
nick_nw - 16 Nov 2006 9:04 AM - 4 messages
Hi All, I think I'm missing a basic bit of understanding with modal forms. This is the problem I have: 1.  User clicks button on form, event handler throws an exception. 2.  In catch block a form is shown modally (i.e. errForm.ShowDialog ...
Score Multipul override.. virtual?
Your_Persona - 16 Nov 2006 8:32 AM - 3 messages
Is there a way to get effect1 with the method in effect2? ///////////////////////////////////////////////////////////////////////////////////////////// using System; using System.Collections.Generic; using System.Text; namespace ConsoleApplication1 {     class Program     {         static void Main(string[] args) ...
Score Convert.ToString() Base Limitations
Jonathan Wood - 16 Nov 2006 7:17 AM - 5 messages
Does anyone know why the toBase argument in Convert.ToString() is limited to 2, 8, 10, or 16? It takes virtually the same code to support all base values from 2 to 36. And can anyone tell me if the .NET library provides the means to convert a ...
Score OpenSubKey() return a null value when existing the right key.
Leo - 16 Nov 2006 6:21 AM - 3 messages
Hey, guys Please see the code below: /////************************************************ RegistryKey rkHive = null; RegistryKey rk = null; string target = "127.0.0.1"; rkHive = RegistryKey.OpenRemoteBaseKey(RegistryHive.LocalMachine, this.target); try {    rk = rkHive.OpenSubKey(oro.key.Value);    //rkHive = {HKEY_LOCAL_MACHINE}    //oro.key.Value="\\SOFTWARE\\Classes\\.wax" ...
Score Dynamic Resource Naming
TheLostLeaf - 16 Nov 2006 6:13 AM - 3 messages
Hello, Im a c# noob, How do I Change this: this.pictureBox[c].Image = global::WindowsApplication1.Properties.Resources._00; this.pictureBox[c].Image = global::WindowsApplication1.Properties.Resources._01; this.pictureBox[c].Image = global::WindowsApplication1.Properties.Resources._02; To This for (int c = 0; c < pictureBox.Count; c++) ...
Score Is there a way to construct a "smart" code snippet?
forest demon - 16 Nov 2006 5:19 AM - 7 messages
what i want is a snippet of an XML comment, that when inserted above a method, will pickup stuff like the return value, etc. by default, a /// will supply method parameters, but not much else. thanks... ...
Score Dynamic Object Naming
TheLostLeaf - 16 Nov 2006 4:48 AM - 4 messages
How do I change this : this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.pictureBox2 = new System.Windows.Forms.PictureBox(); this.pictureBox3 = new System.Windows.Forms.PictureBox(); this.pictureBox4 = new System.Windows.Forms.PictureBox(); this.pictureBox5 = new System.Windows.Forms.PictureBox(); ...
Score getting IntPtr of -1
iwdu15 - 16 Nov 2006 2:31 AM - 4 messages
hi...can anyone tell me why im getting an IntPtr of -1 being returned? the device is plugged in and being recognized by windows....so i dont understand this. Thanks private void GetFiles(String str)         { ...
Score Formatting a bound textbox to show currency?
mracuraintegra - 16 Nov 2006 2:25 AM - 4 messages
I am seriously at my wits' end here with this. I've got a textbox bound to a money column in a database, but it shows up as a decimal value, meaning that $9.25 shows up as 9.250000. ARRRRG. ...
Score More elegant way to get "Friday of last week"?
sherifffruitfly - 16 Nov 2006 2:14 AM - 11 messages
Hi all, This is how I'm currently getting Friday of last week. It strikes me as cumbersome. Is there a slicker/more elegant way? Thanks for any ideas, cdj         private string prevFridayString(DateTime day) ...
Score Can't read network path?
Brett Romero - 16 Nov 2006 12:37 AM - 6 messages
I'm running the code below to get network paths. DirectoryInfo diSource = new DirectoryInfo( fullPath ); They usually look like this: \\cpx-270\SomeFolder I may or may not have access to SomeFolder.  Sometimes the machine isn't on or the folder is spelled "SomeFolders" on a particular ...
Score Parsing Multipart formdata
Cuong.Tong@gmail.com - 15 Nov 2006 11:45 PM - 4 messages
Greeting, I am writing my own web server and having some problme parsing  the the mulitpart/form-data stream that is sent from the browsers. I have a form looks something like this <form action="process.dll> ...
Score about Settings.settings
Rick - 15 Nov 2006 11:15 PM - 2 messages
Hi guys, i have  a question about Settings.settings I have some datasets in my app, each dataset uses a connection (myCnn) created in Settings.settings if i use Properties.Settings.Default.myCnn="otherStringConnection"; i got Error 3 Property or indexer 'Usuarios.Properties.Settings.myCnn cannot be ...
Next »