Home All Groups Group Topic Archive Search About

Visual C# .NET

microsoft.public.dotnet.languages.csharp
Score How to read a doc file?
Kevin - 14 Jan 2006 8:55 PM - 2 messages
Hi! How to read a doc file in C# 1.1? =) Thanks ...
Score Position of the scroll in a TextBox
Fabio Cannizzo - 14 Jan 2006 8:10 PM - 4 messages
If a multiline text window is "scrolled", how can I get ho much it has been scrolled from the begin of the document? Thanks, Fabio ...
Score Set alphabetical as default in VS property editors?
David Veeneman - 14 Jan 2006 7:42 PM - 3 messages
Is there any way to change the default view in Visual Studio's property editors from categorical to alphabetized? I'm getting awfully tired of clicking the A-Z icon every time I open a collection editor. Thanks ...
Score executing an exe located on anther computer?
erman.olca@gmail.com - 14 Jan 2006 7:28 PM - 6 messages
Hi all, I have a question for you. I used a program two days ago. there was  a lan and program was just on one computer. But other computers have its short cut icon on their desktop. And it runs. When i came home tried ...
Score Drag'n'drop - GiveFeedback event never called
Dave - 14 Jan 2006 7:03 PM - 7 messages
I am trying to implement drag and drop in a C# app, but for some reason I can't get it to call the GiveFeedback event. I have done everything by the book as far as I can tell, but a breakpoint in the GiveFeedback event is ...
Score passing structs through Sockets
Arun Kumar - 14 Jan 2006 6:16 PM - 6 messages
Hi In .NET 2.0 I am trying to send a datarow or a data struct through sockets to all connected clients. for example heres the data struct struct {     string seqno     double SysTime     string Description ...
Score Bitwise Partial Match
cpnet - 14 Jan 2006 6:12 PM - 5 messages
I have a known binary value, and I want to match it to other binary values when a certain number of the same bits in both values are 1.  For example, if I have the known value 0111, I want it to match any other 4-bit value ...
Score Custom values in Enum
Vi - 14 Jan 2006 6:03 PM - 3 messages
Hi, Is there a way to declare an Enum with non-secventual values? For example I want to declare the following enum: public enum Days :byte {Sat=1, Sun, Mon, Tue, Wed}; where Sat=1, Sun=2, Mon=12, Tue=13, Wed=14} ...
Score Combobox databinding bug??
Peter M. - 14 Jan 2006 5:39 PM - 6 messages
I'm struggling with combobox databinding with something I consider a bug... I'm binding my combobox to an array of structs. The struct exposes two public properties, ID and Name, to be used as the value and displaymember properties. ...
Score getting number of items from curr playlist of windows media player
Paul Fi - 14 Jan 2006 11:07 AM - 6 messages
I have this code which tries to obtain the number of items in the current playlist of windows media player: private void MainForm_Load(object sender, System.EventArgs e)         {             // get Window handle ...
Score Problem with TestOut's C# For Programmers
PSL - 14 Jan 2006 10:46 AM - 5 messages
Hi, I am going through the training C# For Programmers made by TestOut and like the presentation. The only problem is that this tutorial has a nastie bug that renders this software practically useless. I've tried using TestOut's ...
Score Referencing a Generic
PJ - 14 Jan 2006 9:56 AM - 6 messages
I have a class defined as so: public class Pager : Control {     private PagingList<T> itemList; .... I'm getting an error message that says, "The type or namespace name 'T' could not be found.  Obviously, I'm just trying to define a class that ...
Score How to evaluate in C# a string of expression
Bhuvanesh - 14 Jan 2006 8:39 AM - 3 messages
Hi Happy 2006 Anyone please suggest me how to evaluate a string of expression. I have used the same in VBscript and javascript. e.g. stringvariable1 = "TemplateTopUserControl"; stringvariable2 = "\"TemplateTop.ascx\""; "this." + stringvariable1 + " = (" + stringvariable1 + ")this.LoadControl(" + stringvariable2 +")" I want this to be executed as ...
Score How to set culture in the application?
Tsair - 14 Jan 2006 5:14 AM - 3 messages
I would like to use the date format as dd/mm/yyyy, normaly i have to set the Windox XP culture info. How to set the application culture to the format i need winthout change the Windox XP setting ? Thanks. ...
Score DataColum.DefaultValue
netsql - 14 Jan 2006 1:39 AM - 2 messages
I am trying to get a vale of a column. Above gets me null, but it seems that I do have data. How to get data out of a column? tia, ..V ...
Score Casting problem with small int
Mike - 14 Jan 2006 12:55 AM - 7 messages
When using a DataReader to return records from a SQL server, I'm having a problem with the following code (abbreviated) int ID = 0; ID = (int)dr["user_id"]; will work if the user_id column is an int field.  The same code throws an ...
Score Constructor in sublass of List<>
PJ - 14 Jan 2006 12:22 AM - 6 messages
I have a class definition            : public class PagingList<T> : List<T> {     private int pageSize, pageNumber;     public PagingList()     { ...
Score How to stop updating DLLs?
Brett Romero - 14 Jan 2006 12:17 AM - 9 messages
Say I have four projects - one is an EXE and three are DLLs.  The EXE references all three DLLs.  If I update one of the DLLs and compile, next time I run my EXE project, it will get the latest version of the ...
Score Handle the Windows Lock Desktop event/message?
brandon - 13 Jan 2006 11:57 PM - 5 messages
Anybody out there know how I could go about handling, in a systray'd app, the windows message that the desktop is going to be locked? This way the application can react whenever the Win+L or Ctrl+Alt+Del+L is ...
Score Display TV within WinFom?
Ronald S. Cook - 13 Jan 2006 11:37 PM - 3 messages
I have a TV tuner card and can display TV on my PC via the software that comes with it.  But it would be really cool to show it in my C# win app in a form. Any idea if this can be done or how to go about it? ...
Score update/insert with microsoft.xml.xquery(.net2.0beta)
Daniel - 13 Jan 2006 11:04 PM - 3 messages
update/insert with microsoft.xml.xquery(.net2.0beta) can anyone provide an example of how to update/insert with microsoft.xml.xquery? ...
Score Is there a way to prevent a Button to get the focus?
EricL - 13 Jan 2006 10:57 PM - 5 messages
C# question: Is there a way to prevent a button from getting the focus and from being painted with a rectangle of small dots when clicking on it? Specifically, I have a form with 2 TextBox and a Button: say I am in the ...
Score EventArgs design question
Leslie Sanford - 13 Jan 2006 10:51 PM - 4 messages
I have a hierarchy of message classes. Many times when messages are created/received by a class, an event is generated to let the outside know. Also, the message is passed along when raising the event. To follow the .NET event guidelines, each message class therefore needs ...
Score Weeired compile issue
Winista - 13 Jan 2006 10:00 PM - 5 messages
I have a property in my class like.. Int32 iVal; public String Val {    get{return iVal;}    set{this.iVal = value;} } Strange that compiler does not pick it up as error because of type mismatch. ...
Score Overriding a ComboBox
RSH - 13 Jan 2006 8:20 PM - 5 messages
I tried an implementation of overriding a ComboBox control.  I am simply trying to avoid it repainting, but I can't seem to get it to work. What am I doing wrong? Please help. Thanks, Ron using System; using System.Collections.Generic; ...
Score Drag Drop data into Windows Explorer
BradBrigade - 13 Jan 2006 8:14 PM - 3 messages
I want to drag an object from my application into Windows Explorer and have it create a new file, but the object I want to drop is not a file to begin with.  It seems the only thing I can do is create a temporary ...
Score How to find users executing processes
Han de Monnink - 13 Jan 2006 8:10 PM - 3 messages
Hi, I am looking for a way to determine het user that is running a certain process, I can retrieve the process ID by calling the GetProcessByName("test") method which will return all processes named 'test'. But how do I retrieve the user that is  running the process ( the process ...
Score Most recent data point?
Michael Bray - 13 Jan 2006 8:07 PM - 2 messages
I have a table that stores data points for several different data sources.  The general format is: DECLARE @Data TABLE (         DataID int,         TimeCollected int,         DataValue decimal(9,9) ...
Score Intelligent Directory Tree control
_DS - 13 Jan 2006 7:44 PM - 4 messages
Problem with mapping a directory tree to a tree control:  It takes a while to recurse subdirs and map them to nodes.  This is solved in some books I've seen (MacDonald, Albahari) by reading the subdir only ...
Score Circular dependency flagged at compile time
_DS - 13 Jan 2006 7:40 PM - 6 messages
I have two projects that currently need to refer to each other.  More precisely:      Proj A:          Class 1        refers to Proj B Class 1 ...
Score OOP Design
Chris Fink - 13 Jan 2006 7:00 PM - 3 messages
I have a the requirement for a class to alert via an email message when an error occurs.  In this main class, I have wrapped the main logic into a try catch statement.  When an error occurs, inside of the catch statement a call ...
Score Can i retrieve all properties in a class to copy one object to another?
Michael.Suarez@gmail.com - 13 Jan 2006 6:41 PM - 6 messages
Basically I want to do something like this (psuedo-code): you have:   MyClass MyObject; which is instantiated in the form load. You have a copy function: {   MyClass MyObjectCopy = new MyClass(id);   foreach (property p in MyClass.properties) ...
Score Memory management question
Paul - 13 Jan 2006 6:35 PM - 3 messages
Hi all, I'm still learning about dispose()'ing of resources and i'm curious if there is anything I should do in the following circumstance: rtbBrowseEntryBody.SelectionFont = new Font(<font info>); By using the 'new' keyword i'm allocating memory. Should I do anything ...
Score C# optimization trick
Marty - 13 Jan 2006 6:08 PM - 6 messages
Hi, I've read that the if/else statement, or get/set accessor, can be compiled inline by the C# compiler if they are small enough. Have you seen any documentation that 'summarized' all thoses optimizations tricks?  I would like to be aware of all tips and trick ...
Score text alignment and buttons
Terry Brown - 13 Jan 2006 5:19 PM - 8 messages
I have a problem where, depending on the text of a button, the display of that text seems to change size or alignment. Here is the code:         HomeScoreNameButton.ForeColor = Color.Green;         HomeScoreNameButton.Font = new System.Drawing.Font("Tahoma", ...
Score Do not have permission...
Jeremy - 13 Jan 2006 4:52 PM - 3 messages
I am writing a little appliation. One process I want to do is to copy a folder to a different location, delete the contents of the original folder, and fill the original location with new files. It's a relatively ...
Score Prevent a service from stopping.
chris.hearson - 13 Jan 2006 4:42 PM - 6 messages
How do I programmatically prevent a service from stopping?  I want to be able to keep my service running (started), under certain conditions, when a user tries to stop it.  I have tried throwing an exception - from OnStop(): the SCM waits for a long time, reports that the ...
Score Virtual Directory Detection #2
Amos Soma - 13 Jan 2006 4:28 PM - 8 messages
Thanks to Peter Bromberg for showing me how to detect if a virtual directory exists. Now I need to determine what folder the virtual directory points to. For example, I have the following C# code. It correctly finds the 'MyVirtualDirectory' virtual directory. Now, what method do I call to ...
Score How to interrupt a method ?
Const - 13 Jan 2006 4:09 PM - 7 messages
Hello, I wonder how i could interrupt the execution of a method. Like : My method can work on some lerg text file (severals Mb), and i would like to interrupt it by pressing "escape" tuch for exemaple. How ?? Thank you! :) ...
Score strange switch scoping
apandapion - 13 Jan 2006 4:01 PM - 4 messages
The following code snippet fails to compile with "a local variable named n is already defined in this scope."  This makes me uncomfortable, but I could not tell you exactly why.  My instincts are telling me that each case should be a seperate block, I guess.  Any ...
Score Set Attributes of a Directory
Curtis Justus - 13 Jan 2006 3:56 PM - 5 messages
Hello, How can I set the attributes for a directory?  The File class has a SetAttributes method, however the Directory class does not. Thanks in advance, cj ...
Score Visual Studio 2005 Web projects
Code Monkey - 13 Jan 2006 3:50 PM - 2 messages
Just received the Visual Studio 2005 Pro DVD. One question - VS2003 had 2 options when building - 'DEBUG' and 'RELEASE'. I can only see 'DEBUG' as an option in VS2005 - how do we do a RELEASE version? Is or it all down the web.config file? ...
Score accessing data in external file?
Geoff Cox - 13 Jan 2006 3:33 PM - 5 messages
Hello, Just starting C# with MS Visual Studio Pro 2005 ... How do I access array data which is in an external file? I would prefer to have it there to make the code less cluttered.. Thanks Geoff ...
Score how to loop through properties?
Alex K. - 13 Jan 2006 3:21 PM - 5 messages
Hi all Is there any way to do something like this: SomeClass A = SomeClass(...) .... foreach (property P in A.Properties) {     Console.WriteLine(P.Name + "=" + P.Value); } In other words, I need to be able to see all object's properties values ...
Score Multi-Threading & Performance Questions
1944USA - 13 Jan 2006 3:01 PM - 3 messages
I am re-architecting a C# application written as a multithreaded Windows Service and trying to squeeze every bit of performance out of it. 1) Does the thread that an object is instantiated on have any impact on its performnce? ...
Score Virtual Directory Detection
Amos Soma - 13 Jan 2006 2:44 PM - 3 messages
Anyone know how I can programatically detect whether a virtual directory exists on a machine my app is running on? And how to retrieve information about that virtual directory? Thanks very much. Amos. ...
Score Problem in DataGrid
Prakash - 13 Jan 2006 1:55 PM - 3 messages
Hi Friends, I have used DataGrid in my application. My client requirement is the field change is written to the database as soon as the user navigates away from the field. Please suggest me how to do it. Regards, Prakash. ...
Score Datagridview Remove Sort
inpuarg - 13 Jan 2006 1:51 PM - 2 messages
Is it possible to disable sort temporarilty ? without changing current row ? I want to add a row to a specific location. But if user sorted the datagridview row goes to a wrong position. That 's why before calling InsertAt() method i ...
Score Extending templated classes for specific data types.
Paulustrious - 13 Jan 2006 1:46 PM - 8 messages
How do I extend a template class for a specific template data type? I am trying to achieve something like.... public class SomeItem{} public class SomeProcess < T> { } and now the extension public class SomeProcess<SomeItem> {   public SomeMethod() { }  // special code for just this combination } ...
Score Program icons in the ALT+TAB menu
Peter Larsen - 13 Jan 2006 1:40 PM - 10 messages
Hi, I have asked this question before, but did not get anything useful from it - so sorry that i am asking again !! How do i prevent an application from appears more than once in the ALT+TAB menu. As it is today, my application will show an icon for each window visible in ...
Score FTP Client Upload Code
coder - 13 Jan 2006 1:14 PM - 4 messages
Hello, I need to upload a file using ftp protocol, any sample csharp code avaliable ? FTP Server is located on a mainframe and Complete Ftp Session should look like this. How could I write a routine for this process ? ////////////////////////////////////////////////////////////////////////////////////////////////// ftp> open testserver.domain.com ...
Score TimeSpan\ConvertingResult
gh - 13 Jan 2006 1:06 PM - 6 messages
I have 2 columns in a grid where the user enters a begining time(TI) and at the end of the day an end time(TO).  I then want to take the TO - TI to get the difference and display it as hours and minutes.  If the ...
Score How to make Windows inaccessible from my software user?
Mahesh Devjibhai Dhola - 13 Jan 2006 12:38 PM - 6 messages
Hi all, The following are my need: 1. When a PC starts, my software should come up directly without any user interaction. 2. Only my software will be accessible to the user and they will not be able to access anything from Windows - nothing at all. ...
Score Window service question
dfetrow410@hotmail.com - 13 Jan 2006 12:37 PM - 4 messages
I need to make a c# program that will do uploads and downloads at 9am and 3PM. The server is here, so I have access to it. Do I make a console app and schedule it as a task. Or is there a better way. Is ...
Score How to close a mon-modal window
Sumit - 13 Jan 2006 11:30 AM - 2 messages
Hi all, I have a windows application in which I open a non-modal window on click of button. I want to close that window in case of an event raised on my application. This non-modal window is in different assembly than the assembly in ...
Score multiple key assigment
Alexandru Taeaha - 13 Jan 2006 11:23 AM - 2 messages
i am trying to make a program that opens diferent programs from th numpad key. my question is :can i make those keys have more the one assigment like for example standard if i press it opens iexplorer but if i press control for ...
Score Positioning a control on a form?
gsb58 - 13 Jan 2006 10:59 AM - 5 messages
Hi! On a form I have a calendar. The form is rezised to 1024x768 (Don't worry - this is a training case) when loaded. Now I want to center the calendar on the form so that its edges are equally far from the upper, right, left and bottom borders of the form. ...
Score Get class information
nicolas ETIENNE - 13 Jan 2006 10:50 AM - 3 messages
Hi I create a struct, or a class and I'd like to know which are the members available.. by code something like pubic class nico { public int age; public int old; } and somewhere , i could do something like this ...
Score DllImport problem
gsb58 - 13 Jan 2006 10:24 AM - 3 messages
Hi! On a form I have a monthCalendar which display all months of year. Now, as a training case here at school in C#, I'm trying to print the calendar. I've found, I think a good example how to print graphics, but it ...
Score .NET plugin for windows media player
Paul Fi - 13 Jan 2006 9:50 AM - 2 messages
any body knows of a good resource on the internet on creating .NET plugin for windows media player, i need to write quite a basic plugin that monitors what is currently playing on a windows media player instance and stores a log of it in some file like say XML file. ...
Score Opening form from a windows service
Vitaly Zayko - 13 Jan 2006 8:13 AM - 4 messages
Is it possible to attach a form (C# .NET 2) to windows service and show it in OnStart event? When I tried to do this in general (new, Show()) way it just didn't do anything nor gave me any errors. I want to use ...
Score Attribute on return value, how ??
Soren S. Jorgensen - 13 Jan 2006 8:11 AM - 3 messages
Hi, How do you set an attribue on a return value ?? In Microsoft.SqlServer.Server you got SqlFacetAttribute wich I need to use on my CLR function that should return a SqlString(MAX) - the SqlFacetAttribute must be set on the static methods return value to do this. ...
Score .NET 1.1. and 2.0 on the same computer
MuZZy - 13 Jan 2006 6:37 AM - 8 messages
Hi, We just closed a release (say, version 7) of our app which was using .NET 1.1 and for the new release (version 8) we are going to use .NET 2.0. Problem is that we still need to support version 7 ...
Score CodeFiel and path
WT - 13 Jan 2006 6:30 AM - 6 messages
Hello, I have my code pages in App_Code\Subdir\ *aspx..cs folder, the coresponding aspx are in \Subdir\*.aspx . Compiler can't find the aspx when compiling the aspx.cs and generates  error for the controls from the aspx page. ...
Score What is C#'s analogue of Delphi's TAction ?
Oleg Subachev - 13 Jan 2006 5:44 AM - 7 messages
What is C#'s analogue of Delphi's TAction ? If there is no one, how to implement the same functionality > Oleg Subachev ...
Score Suggestion: nameof(xyz) operator
Jedrzej Miadowicz - 13 Jan 2006 5:42 AM - 18 messages
I recently (re)discovered data binding in Windows Forms thanks to its advances in Visual Studio 2005.  As I looked a little deeper, however, I realize that it still suffers from an irksome tendency to stick a whole bunch of literal strings in my code.  Quite frankly, I consider them a ...
Score Reflection and Generics, Collections, etc...
INeedADip - 13 Jan 2006 4:59 AM - 4 messages
What I am trying to do is a sort of Recursion "search" or listing of all the properties of a type. If I have a class that looks like: public class MyClass {     private string _name = "jeff";     private int _age = 22; ...
Score Plugin assembly path to find other needed assemblies
Luis Arvayo - 13 Jan 2006 3:35 AM - 3 messages
Actually it is: How to define the plugin assemblies path in order to find other assemblies which the plugin depends on. Example: If I have: c:\myapp\application.exe then, other assemblies are also installed on the same subdirectory, example: ...
Score Convert HTML Codes
Jonathan - 13 Jan 2006 2:10 AM - 4 messages
Hi I want to convert HTML codes ("&#33;" , "&#35;" , "&#36;" , "&#37;") to text ("!","#", "$", "%"). How can i do it without replacing one an one the codes? Thanks in advance ...
Score big confusion
Pohihihi - 13 Jan 2006 2:06 AM - 8 messages
Hello, I have 3 form (e.g. A, B, C). Form A has collection that is passed to Form B which in turn pass that to Form C. Now this is reference rather than a copy. Now I am creating my object from my class in Form C and conditionally adding it to collection in Form A. After adding that object I dispose Form C, and user can close Form B as they want or continue with other things. ...
Score Generics in Cache
INeedADip - 13 Jan 2006 1:53 AM - 5 messages
Can I put a generic List<MyObject> in cache? I read that generics can't be serialized.. Can I cache them? Can I return them from Web Services? ...
Score Do I need to include this project?
Brett Romero - 13 Jan 2006 1:38 AM - 7 messages
How can I communicate with a parent form if that parent form type isn't included in the project? my.EXE project references a.DLL.  a.DLL has a couple of forms that my.exe uses.  When my.exe opens a form in a.DLL, users can edit data in ...
Score design discussion: when to throw exceptions
cat - 13 Jan 2006 1:31 AM - 9 messages
I had a long and heated discussion with other developers on my team on when it makes sense to throw an exception and when to use an alternate solution. The .NET documentation recommends that an exception should be thrown only in ...
Score Custom panels
Joe - 13 Jan 2006 12:46 AM - 2 messages
I trying to create 2 custom panels. Panel 1 can only contain objects of type panel2 and panel2 can only contain certain objects. At design time if I drop panel2 in panel1, panel1 does not become the parent. I have to set it in code. Also, if I click on panel2 when its parent ...
Score create dynamic object[]
androidsun - 13 Jan 2006 12:44 AM - 2 messages
Hi, Does anyone know how to do it? I have an oCommandWrapper that has an input paramater{{"@registrationId",DbType.String,strRegCode}} and two output paramerters {{"@strSessionTime",DbType.DateTime,8}, {"@strCourseName",DbType.String,200}}.  The db.ExecuteNonQuery(oCommandWrapper) is successfully executed.  I am ...
Score Adding custom Mail header to System.Net.Mail.MailMessage
asnowfall - 13 Jan 2006 12:20 AM - 2 messages
I am creating MailMessage out of already  existing email message. My existing message has few custom properties. I wan to add them to System.Net.Mail.MailMessage How to add custom properties? I was thinking adding custom properties to ...
Score Seeking examples of screen scraping....
Jim - 12 Jan 2006 11:52 PM - 30 messages
I want to extract data from several websites that I visit daily.  I'd like to condense the info into a single web page that I can visit (instead of the multiple websites I have to visit now to get the same info).  There are no ...
Score How to use TypeOf()?
Brett Romero - 12 Jan 2006 11:14 PM - 2 messages
I have a collection that holds DataGridTextBoxColumn types, which I then bind to a DataGrid.  I loop through all of the DataGridTextBoxColumn that were created and add them to the collection like this for(int i=0; i<dataGridStyleColumnCollection.Count; i++) ...
Score Setting an Event Handler on data member of parent class in derived class
Olivier - 12 Jan 2006 10:54 PM - 5 messages
I have a parent class that has a protected DataTable member.  In the constructor of the derived class I have set up a DataRowChangeEventHandler on the DataTable to catch RowChange events.  However, when a row is changed, added, etc., ...
Score Visual Studio and Custom Control colors
kevin cline - 12 Jan 2006 10:52 PM - 5 messages
I have code like this: public class MyControl: Control {   public MyControl()   {     this.BackColor = MyStandardBackColor;   }   public bool ShouldSerializeBackColor()   {     return BackColor != MyStandardBackColor;   }   public void ResetBackColor()   {     BackColor = MyStandardBackColor; ...
Score How do I Read & Create DOC files(Structured Storage Files)
Dwight - 12 Jan 2006 9:11 PM - 4 messages
I need to be able to read and create Structured Storage Files. I have not been able to find anything about this except for C++, which I do not know. currently i'm using a DOC viewer (eDoc) just to view them. But I need to do ...
Score Conflicting Modifiers for Partial Class?
Cody Powell - 12 Jan 2006 9:07 PM - 2 messages
I have a partial class split across two files.  In the class declaration found in the first file, I state that it's a sealed class. In the class declaration found in the second file, I do not use the ...
Score dealing with hex values in c# vs VB
jamie - 12 Jan 2006 8:26 PM - 7 messages
ok I'm attempting to implement a basic crc32 algorithm that I have the original in VB and need to implement it in c#. I appear to be running into an issue with the hex values when doing the bit ...
Score Read a PDF file
Kevin - 12 Jan 2006 8:25 PM - 3 messages
I need a solution for reading a PDF-file without using 3rd-party components. Anybody knows how can I do that? Thanks ...
Score Looking for proper way to code this
dfetrow410@hotmail.com - 12 Jan 2006 8:11 PM - 3 messages
Is there a better way to break this out a bit?         static void Main(string[] args)         {             try ...
Score Generic Dictionary not serializing with the rest of a class...
Gabe Covert - 12 Jan 2006 7:50 PM - 2 messages
I have the following classes defined (gets/sets removed for brevity): [Serializable] public class Warband     {         public Warband()         {             Contents = new Dictionary<string, WarbandContent>(); ...
Score Caching using HTTPContext
kplkumar - 12 Jan 2006 7:37 PM - 3 messages
This is the scenario. The flow of control goes from WebService --> OurManager --> Persistence --> Database also OurManager spwans a thread to execute the EmailSubsystem. This system ues the persistence to retrive some information from the database as well. ...
Score SoapExtension and Web Service Validation
Ted A W - 12 Jan 2006 7:31 PM - 2 messages
Hello all! I'm looking for information considering SoapExtensions which can be used, if I understood rigth to validate parameters that comes to Web Service method. Does anyone kone any sample code or documentation how to make these extensions? Like learn more about them, ...
Score where does Microsoft.Xml.Xquery live?
Daniel - 12 Jan 2006 6:47 PM - 2 messages
where does Microsoft.Xml.Xquery live? where does Microsoft.Xml.Xquery live? all i can find is a copy of it in the sample project: [link] ...
Score OT: Posting code to newsgroup
Michael Bray - 12 Jan 2006 6:26 PM - 8 messages
Jon Skeet [C# MVP] <sk***@pobox.com> wrote in Really?  When I read my own posting, my newsreader (XNews) actually displayed the contents of the attached file as if it *was* included inline.  Makes it very easy to see.  ...
Score How do I create a completely programmed list/table?
manwslohand - 12 Jan 2006 6:16 PM - 5 messages
Newbie here. Stupid question follows. Please be kind. I'm using c#.net 2003 and have a web form that uses a datagrid to display a list from a table. It's working okay but I want to expand the ...
Score How to check if textbox text changed?
Brett Romero - 12 Jan 2006 6:05 PM - 5 messages
Besides using a very long if statement and storing old text box values, is there a way to see if text box values have changed since an event? For example, say I have 8 textboxes when the form loads.  They start ...
Score Printing a File..
VJ - 12 Jan 2006 5:49 PM - 7 messages
I am able to print to File, which I am doing fine in our Program now. I want to be able to take this file and Print to a printer. Vijay ...
Score SMTP error
JPS - 12 Jan 2006 5:47 PM - 6 messages
I seem to have everything setup correctly but when I send a messge I get this. The problem is: Could not access 'CDO.Message' object. ...
Score Upgrading app from 2003 to 2005
Brian Shafer - 12 Jan 2006 5:25 PM - 7 messages
Hello, I am VERY new to .Net and C#.  But I have an app that I bought from a vendor with the source.  This was written in C#2003.  I have VS2005.  I went through the upgrade process.. I have a problem, I am not sure what it is or what to ...
Score Convert types to types
Pedro - 12 Jan 2006 5:12 PM - 5 messages
Hi all I have this code and give me a eeror in converter type , some one can help me: class ListaFicheiro {      ArrayList _listaF = new ArrayList();      public void addFicheiro(Ficheiro f)      { ...
Score Running Batch files from Installer to set Environmental variables
Shiraz - 12 Jan 2006 5:06 PM - 5 messages
Hi I'm using Visual Studio Installer to make my installer, and have not as yet figured out a straightforward way to use it to set environmental variables. Amongst the various things I tried, I'm thinking the following might help. I ...
Score SMTP w/o 2.0
JPS - 12 Jan 2006 4:54 PM - 5 messages
I am trying ot create an email app using SMTP but I do not have .Net 2.0 so I cannot use System.Web.Mail.  Any ideas or code samples would be appreciated ...
Score Create a Collection like ToolStrip
osmarjunior - 12 Jan 2006 4:41 PM - 3 messages
In VS2005 there is the class ToolStrip. If I open the CollectionEditor to edit the items of the tool bar, I can choose from a Label, Button, TextBox, ComboBox... I wanna create my own user control, when I have a collection like that ...
Score Multicast Invalid Argument
Nuno Magalhaes - 12 Jan 2006 4:03 PM - 6 messages
I'm trying to set a multicast server but I get "Invalid argument" when setting multicast options. Below is the code that gives me problems more precisely in SetSocketOption with the AddMembership name... it exits with a runtime error telling me "An invalid argument was supplied". Does anyone know ...
Next »