Home All Groups Group Topic Archive Search About

Visual C# .NET

microsoft.public.dotnet.languages.csharp
Score parsing JSP files
MR - 14 Apr 2007 7:57 PM - 2 messages
i need to parse data that is presented in a JSP file. i am trying to get a handle on how to approach this. is there is way to parse this directly? do i need to convert it to some ...
Score Pop up a form with a temporary message
Michael A. Covington - 14 Apr 2007 6:44 PM - 4 messages
I want to define a form that has a textbox on it, and at some stages in my program: - create the form - put a message in the textbox - show the form - do a time-consuming computation - close the form Currently, the form appears at the right time but the textbox always comes ...
Score A .NET Control to handle Ratings and reviews
Rob Dob - 14 Apr 2007 6:16 PM - 4 messages
Hi, Does anyone know of a good, cheap, prefereably free ,net control that I can use that will aloow users to not only rate something i.e.: 1-5 stars but also post comments on whatever they are rating.  i.e. a possible a picture.. ...
Score Using ConfigurationManager breaks WinForms designer...
Charlie@CBFC - 14 Apr 2007 4:52 PM - 3 messages
Hi: Program runs and compiles fine, but WinForms designer breaks when using this line of code... ConfigurationManager.ConnectionStrings["RepairShop.Properties.Settings.BaseRepairShopConnectionString"].ToString(); It says "Object reference not set to an instance of an object".  How then do I access app.config? ...
Score Initialise multi dimension arrays
Cairn - 14 Apr 2007 4:50 PM - 2 messages
Its easy enough to create and initialize a a 2D array of ints as int[,] intarr = new int[,] {{1, 2}, {3, 4}, {5, 6}};, but how can i do this with a 2D array of Point, or other multi init data types ...
Score visitor pattern
RedLars - 14 Apr 2007 4:04 PM - 2 messages
Hi, Given this class definition, public class Node {     Node parent;     object current;     ArrayList children; } I would need to type check the object variable everytime I'd need to use it. Like shown below; ...
Score Detecting selection change in ComboBox column of a DataGridView
David Jackson - 14 Apr 2007 9:57 AM - 3 messages
Hello, I have an unbound DataGridView of which one of the columns is a ComboBox colum containing category data, plus an additional option called <new> So when the ComboBox is dropped down it looks like this <new> ...
Score Rich Client Platform (RCP) in C Sharp?
hilz - 14 Apr 2007 5:26 AM - 3 messages
Hi group, I am starting with C Sharp, and want to build a desktop application. I come from the Java world, where there are Rich Client Platforms that make life easier by providing most of the standard services needed by a ...
Score Ignore Keystrokes/Shortcuts after initial press
garygeorge - 14 Apr 2007 5:20 AM - 2 messages
Hello, I have a program that takes a series of pictures after a key is pressed (basically a photo booth type thing).  I am using a button that is sends a F9 keystroke when pressed.  I am then using the ...
Score C# Windows Form ListView concept
Jason Huang - 14 Apr 2007 5:17 AM - 3 messages
Hi, In my C# Windows Form application, I have a ListView control Lvw1 in MyForm. For most cases, the Lvw1 has no more than 5 rows of data.  But now comes the situation that one user has to input approximately 100 rows into the Lvw1. ...
Score Should I use SQL data type money or decimal given .NET datatype is decimal?
Ronald S. Cook - 14 Apr 2007 4:23 AM - 5 messages
We're designing the data model for a project.  The app will be in .NET, the database will be in SQL Server 2005. I'm a little confused on type conversion between the two and which I should choose. ...
Score my own forum free?
apple - 14 Apr 2007 1:29 AM - 2 messages
[link] More powerful than the phpbb This is a great site that is completely free, and can make some cool forums, here's an example of one, you can make your own topic, polls, ...
Score ping IP address
Alex K. - 13 Apr 2007 11:22 PM - 5 messages
Hi all I need a simple program that allows me to check if an IP address is pingable. I am not going to send/receive anything to the remote host, just check if it is visible. Something like this: private bool CheckIPAddress(string address) ...
Score I freaking HATE var!!
Jon Davis - 13 Apr 2007 11:13 PM - 16 messages
Bill Wagner posted something here .. [link] "Local Type Inference, Anonymous Types, and var" "Of all the features in C# 3.0, local type inference is generating the most questions and misunderstanding.  You know, 'var'.  The fact is local type ...
Score Re: converting string to int, without assuming int32
titan nyquist - 13 Apr 2007 7:50 PM - 4 messages
In what way is int.Parse(str) better or worse than Convert.ToInt32(str)? Titan ...
Score Immediate Window annoyance
Frank Rizzo - 13 Apr 2007 7:33 PM - 7 messages
I am using the Immediate Window a lot to see the progress of the application. In VS2003, if your cursor was at the very bottom, the window would scroll down whenever something new showed up.  If your cursor was somewhere in the middle of the text output, then there would ...
Score Re: Cannot obtain account SID using C#/WMI
VictorG - 13 Apr 2007 7:30 PM - 4 messages
On Apr 12, 1:59 pm, "Willy Denoyette [MVP]" <willy.denoye***@telenet.be> wrote: Hi Willy, Thanks for the response.  If there is no local SID for the domain user, then is there a registry hive for this user on the local ...
Score Why use Monitor.Pulse?
Ben R. - 13 Apr 2007 7:26 PM - 3 messages
Hi, I'm new to threading, and am trying to understand monitor.pluse. I get the general idea, but what does this offer that simply using a semaphore does not offer? If you have two threads, couldn't you just immediately have one thread ...
Score debugging between namespaces?
Les Caudle - 13 Apr 2007 7:22 PM - 3 messages
I've got some old .NET 1.0 code written by another programmer where he has a project divided into several different namespaces.  I'm attempting to get it working under .NET 2.0. I notice that I'm unable to single step debug from one namespace to another, or ...
Score object type
Mike J - 13 Apr 2007 7:22 PM - 4 messages
how to assign a instance of a class to object type i get error class thisclass { object CallingObject public thisclass(object o) { this.CallingObject=0 } } thanks ...
Score converting string to int, without assuming int32
titan nyquist - 13 Apr 2007 7:05 PM - 3 messages
To convert a string to an int, I used: int integer; string str; integer = Convert.ToInt32(str); But, that assumes int = int32. Is there a method that matches whatever "int" is, instead of assuming it is int32? Titan ...
Score String.LastIndexOf() Am I Retarded?
senfo - 13 Apr 2007 7:02 PM - 10 messages
I realize it's Friday and I'm probably already on vacation for the remainder of the day; but, I have a really, really stupid question.  Is there a bug in the .NET 2.0 Framework in regards to the LastIndexOf() ...
Score Interop with ASIO driver COM object
Technics - 13 Apr 2007 6:59 PM - 5 messages
Ok I will be as clearer as I can (sorry for english/technical mistakes) I would like to write an audio application that supports ASIO drivers. I downloaded the ASIO sdk from Stainberg and I read the docs and viewed the code provided. The sdk retrieve the varius ASIO drivers ...
Score DLL file not found in on fly compilation - (help please)
pamela fluente - 13 Apr 2007 6:03 PM - 4 messages
It's 2 days I am struggling on a problem and I can't see the solution. Please someone help me. I am doing some on-fly compilation by using: CompileAssemblyFromSource(CompilerParameters, Code) This happens within an asp.net 2 application and the code being ...
Score SqlConnection vs IDbConnection
JoeW - 13 Apr 2007 5:58 PM - 9 messages
I normally use SqlConnection, SqlDataReader, SqlCommand for most of my queries but recently a friend of mine who is a long time java programmer suggested I use the IDbConnection, IDbCommand interfaces because the queries where compiled  instead of just executed like on ...
Score Marshall a call onto an instance of Thread
HolyShea - 13 Apr 2007 5:38 PM - 7 messages
All, Not sure if this is possible or not - I've created a class which performs an asynchronous operation and provides notification when the operation is complete. I'd like the notification to be performed on the same thread thread that instantiated the class. One way to do this ...
Score Databinding not working for invisible controls
PGP - 13 Apr 2007 5:34 PM - 3 messages
I have a windows form where i bind data to an invisible text box and it doesnt seem to work. I tried with an invalid datamember name and it doesnt even generate an exception till i make the control visible. Is this by ...
Score How to make a form of main application reuseable by others?
Pucca - 13 Apr 2007 5:34 PM - 4 messages
Hi, I'm using vs2005, .net 2.0, Win2k server for a Windows applcaiton.  I have a main application where there is a a form and the codes that I would like to make it reuseable by other applications. ...
Score Read Excel Form
Johnny - 13 Apr 2007 5:22 PM - 2 messages
Hi all: I am trying to read an Excel Worksheet that ahs been created as a form and I cannot seem to get the data. Reading worksheets when the data is organized into rows and columns works fine, but I cannot seem to figure out what the ...
Score Pressing Enter on ListBox should invoke DoubleClick
Zytan - 13 Apr 2007 5:03 PM - 19 messages
I want the same function to be run whether you press Enter or double click the listbox.  It seems really verbose to write both handlers to both events everytime, even if they both call the same function, or one calls the other. ...
Score Trapping key sequences from anywhere in an app
Tom Jones - 13 Apr 2007 4:09 PM - 2 messages
I have an MDI WinForms app that I would like to embed a hidden key sequence that will reveal internal information (specifically, the installation path of a an application deployed by ClickOnce). Is there any way to trap key sequences at a high level, such as Ctl-Shift-P? ...
Score Why public method in internal class is allowed
Andrus - 13 Apr 2007 3:27 PM - 7 messages
class Class1 {     public void foo() {}   } Does not cause any error or warning at compile time. Why ? public access modifier should not allowed in foo()  since it is member of internal class Andrus. ...
Score double or single \\ in config file
daniel.serrano - 13 Apr 2007 2:17 PM - 4 messages
when writing to config file, should i use c:\\temp\\myapp.log or c: \temp\myapp.log in the config file.  It seems that all dotnetter say to use the first, but the whole world doesn't create config files with ...
Score Login failed SQL Express
RichGK - 13 Apr 2007 2:14 PM - 5 messages
How do I actually setup what users have access in SQL Express? Please note that I am a SQL Server administrator so am comfortable with creating id's etc in the full product. I cannot however find out how to do this with Express. ...
Score interface to web service
Stephen.Schoenberger - 13 Apr 2007 1:38 PM - 6 messages
Hello, Can someone provide me some resources/point me in the right direction as far as converting standard C# interfaces into web services? I have a .cs file that includes an interface and all of its supporting classes, functions, etc.. Any advice would be great. ...
Score How much memory is a process using?
Mufasa - 13 Apr 2007 1:15 PM - 3 messages
I've got a system where one of the processes that is running (not done by me) is causing a memory leak. This is a process I call so I'm trying to find out how much memory it's using. What I want to do is get the amount of ...
Score how to do a call back between forms
edepperson - 13 Apr 2007 1:15 PM - 17 messages
I've been looking for an answer to this problem and have seen the same question posted on other forums... but still no answer.  My background is Delphi2 - 7 and I used to do this all the time with method pointers ...
Score Page load vs. reload ?
Zeba - 13 Apr 2007 12:24 PM - 3 messages
Hi ! How do I distinguish a page reload event ( i mean a page_load due to some clicks, etc. which dont cause a postback) from a page load event ( the first time the page loads) ?? Thanks ! ...
Score .NET Remoting, Event Subscription to the Remoting Object / Subscribed event does not fire...
erbilkonuk - 13 Apr 2007 12:13 PM - 3 messages
Hi, I am very new to .NET Remoting and I try to run a simple program to subscribe to an event raised by Remoting Class. The Remoting Server initiates an instance of Remoting Class as Singleton / Server activated mode on startup. The Remoting Client accesses the Remoting ...
Score Get local explorer string equvalents of "Cut","Copy", etc.
Özden Irmak - 13 Apr 2007 12:01 PM - 2 messages
Hello, Does anybody know a way to get the local equvalents of strings used by explorer such as "Cut","Copy","Paste" ? Thanks in advance... Regards, Özden Irmak ...
Score Calling an update or draw function on a combo box?
gwoodhouse@gmail.com - 13 Apr 2007 11:14 AM - 3 messages
Hello all, I have a combobox cell in a datagridview component. Im using a seperate window to remove the items from the combo box. Whenever i drop down the combo box however the items still seem to be there. My first thought was that i was somehow cloning the combobox and ...
Score How to select the first item (the one at the top) of an ordered ListView object
polocar - 13 Apr 2007 10:45 AM - 2 messages
Hi, I'm using Visual C# 2005 (part of Visual Studio 2005 Professional Edition), and I have the following problem: I populate a ListView object with several items, and at the end of this process I put a statement that orders the ListView by a certain ...
Score Cool Interview questions for dot net developers
chrisplanters@gmail.com - 13 Apr 2007 10:24 AM - 6 messages
Hi .. are you a dot net developer. If yes... then please visit [link] This website is dedicated to most commonly asked questions in dot net interviews. please feel free to leave your comments and reviews ...
Score Outlook MailItem
Mike P - 13 Apr 2007 9:36 AM - 2 messages
I am using Outlook MailItem to reference emails in the local inbox, but I need to refer to the sender's email and the received by email and they do not seem to be accessible in the MailItem object.  Does anybody know ...
Score Visual studio editor
Torben Laursen - 13 Apr 2007 8:43 AM - 4 messages
I dont know if this is the right newsgroup but I dont know where else to post the question. Something has change in the editor of my VS2005. Everytime I use the keyboard and type anything the CPU load of my PC goes up to around 50% ...
Score Disabled columns in a DataGridView
David Jackson - 13 Apr 2007 8:30 AM - 3 messages
Hello, I have a DataGridView which is populated from an Access database. The final column is a calculated column. I have set this to ReadOnly in the column collection properties, but now I would like to prevent the users from even ...
Score Send an email with attachment through default email client
Ben K - 13 Apr 2007 7:46 AM - 6 messages
I saw some posting some time ago regarding a "trick" to automatically pop up an email editor with attachment using the default mail client. It is basically using automation to do the following steps   1. Using Explorer and copy a file, "C:\temp\attachment.txt" ...
Score ObjectDataSource not refreshing correctly from a business Object
WayDownUnder - 13 Apr 2007 5:58 AM - 7 messages
When I link an ObjectDataSource to a business object, it appears that the Refresh Schema button does nothing. I have added a property to the business object and want to display this new property on a gridview attached to my ObjectDataSource. ...
Score Simple animation and stuff...
rlrcstr - 13 Apr 2007 4:48 AM - 4 messages
Can someone point me to some good info on how to do somoe simple animation on a form.  Specifically, I want to have some tiles that when they are clicked, they flip over in place and reveal a number.  Obviously the flipping part should be animated and the user interface should not have to wait for the tile animation to complete before another tile can be selected. ...
Score Passing an arraylist which contains a struct which contains an arraylist
Christopher H - 13 Apr 2007 3:28 AM - 4 messages
I've been reading about how C# passes ArrayLists as reference and Structs as value, but I still can't get my program to work like I want it to. Simple example: code:------------------------------------------------------------------------------     class Program     { ...
Score Static vs Non-static
Rajesh - 13 Apr 2007 3:03 AM - 9 messages
Based on my understanding static members do not have access to non- static members. In the below example static method 'name' accessing non-static method creating reference. Seems to me it is not holding to the theory? Pls explain. Here is an example: ...
Score Screen resolution & color depth for website
Zeba - 13 Apr 2007 2:26 AM - 6 messages
Hi! How can I get the screen resolution and color depth for my website project ? Thanks ! ...
Score forms designer loads slow with derived control
PGP - 12 Apr 2007 10:49 PM - 3 messages
I recently derived from a ComboBox to make a countries combo and included it in couple of forms. The derived combo box loads an xml list of countries and uses the DataSource and DisplayMember properties to point to the appropriate ...
Score How to refresh a users permissions?
ISD - 12 Apr 2007 10:36 PM - 3 messages
Question: How do I refresh on the local computer the users AD( LDAP ) credentials without having them re-log our re-boot their system? Scenario: Users A is denied access to folder Z. Admin on DC grants User A group ...
Score Sqlcommand
Mike J - 12 Apr 2007 9:22 PM - 2 messages
How to check Return value of a variable Ado.net Sqlcommmand cmd.Parameter["FileId"] I need to Check if the value of the output Var above is null or has value MJ ...
Score Refactoring class location
Kowalski - 12 Apr 2007 7:46 PM - 10 messages
I want to move a class from one namespace to another. Do you know any refactoring tool with such a feature? ...
Score Screen Scraping a Password Protected Site
apondu - 12 Apr 2007 7:40 PM - 5 messages
I'm trying to screen scrape a site that requires a password. I am using C#.Net, i am new to this and with the information available around on the internet i just put tht information into the code. But still i am not able to achieve what i want to. ...
Score Exception when accessing backgroundWorker.CancellationPending
Chris - 12 Apr 2007 6:41 PM - 3 messages
When I try to access the backgroundWorker.CancellationPending property I get the following exception: An unhandled exception of type 'System.Reflection.TargetInvocationException' occurred in mscorlib.dll Additional information: Exception has been thrown by the target of an invocation. I am using the backgroundWorker in a component that I am trying to make for ...
Score closing excel from c#
pleaseexplaintome_2 - 12 Apr 2007 6:36 PM - 7 messages
Help please.  The excel instance is removed from task manager when I run the code below.  If I uncomment the lines pertaining to a workbook, the instance of excel is not removed from task manager.  can someone help?  Thanks ...
Score GridView not being displayed: Lil silly mistake i guess....
weird0 - 12 Apr 2007 6:28 PM - 2 messages
Can somebody point out to the mistake i am making. I want ti display a GridView upon selecting a date range in the combo boxes and clicking the button "Go". Here is the code for it but it does not work and i ...
Score Cannot obtain account SID using C#/WMI
VictorG - 12 Apr 2007 6:11 PM - 2 messages
Hello, The below C# code works fine in obtaining the windows user's account SID when the user is local to the machine.  It throws a "Not Found" exception when trying top obtain the SID for a user who is on a ...
Score Need Help: Common IsolatedStorage per user regardless of application
SteveM - 12 Apr 2007 5:12 PM - 2 messages
I am writing a ToolUsage tracker which we will be accessing from each of our custom written tools. It will basically capture various pieces of information about the user, and the application they are using, and then either store it directly in a database we have designated for ...
Score How to use object?
Andrus - 12 Apr 2007 5:01 PM - 4 messages
public static bool Empty(object? obj) {     return false;   }   public static bool Empty(string? obj) {     return false;   } causes error Error 1 The type 'object' must be a non-nullable value type in order to use ...
Score Debugging a ClickOnce deployed application
Tom Jones - 12 Apr 2007 4:45 PM - 3 messages
ClickOnce deployment appears to install applications on the local machine using an obfuscated location. I have an application that contances Trace statements that can be turned on by setting a TraceSwitch level in the config file... but here is the problem... I can't find the config file when ...
Score Generics
ReneMarxis - 12 Apr 2007 4:42 PM - 6 messages
Hello I have some problem with events and generics. I'd like to raise an event that inone generic class that has generic arguments: //===== public class PageStatusEventArgs<T> : EventArgs {     T _status;     public PageStatusEventArgs (T status) { ...
Score DataPlotter
colin - 12 Apr 2007 4:22 PM - 4 messages
Hi,     Im using the DataPlotter from codeproject, it does some of what I need and is nice and simple to understand and use, but it doesnt take care of things like setting numbers on the scale so they look pretty, ...
Score Can someone show an example of how to read an XML file into an XMLDocument object?
chance - 12 Apr 2007 4:14 PM - 5 messages
The file might be called C:\\XMLFile1.xml tia, chance. ...
Score VB6 .NET Interop - Passing Array of Objects or Object Collection
Torsten Z - 12 Apr 2007 3:42 PM - 3 messages
Hi, I have tried several things to passing an array of objects or a Object Collection from .NET to VB6 but I can't get it work. Passing one object works fine, but more than one not. Has anybody a solution for that. ...
Score Modify old style .NET 1.1 object collections to support LINQ query
Olivier Matrot - 12 Apr 2007 3:22 PM - 5 messages
Hello, I'm still using old style strongly typed collections (derived from CollectionBase .NET 1.1) and I would like to be able to query in memory collection with LINQ in the future. I also would like to improve performance ...
Score Breaking off an overly wide table
Zark3 - 12 Apr 2007 3:13 PM - 2 messages
Hello people, In my server-side code, i create a table that can potentially grow to extreme width (each cell containing a word from the database). Therefore, I want to be able to chop this thing up, but is it possible ...
Score How to capture key
Larry Smith - 12 Apr 2007 2:47 PM - 9 messages
Hi there, Can someone enlighten me on how to trap a keystroke in my "PropertyGrid" override. I see functions or properrites at the control or form level called: OnKeyDown OnKeyPress OnKeyUp OnPreviewKeyDown ProcessKeyPreview ProcessDialogKey ProcessCmdKey KeyPreview IsInputKey and there are probably more. I've overrided "OnKeyDown()" in my derived ...
Score Get Signal Strenghts in Windows Vista
Maarten Weyn - 12 Apr 2007 2:22 PM - 4 messages
Hi all, Is there a way to get the Signal Strenghts of the access points around your laptop in windows vista. In XP it can be done talking to WMI, but this doesn't work in vista. regards Maarten Weyn ...
Score How to associate a menuItem and a toolbarbutton?
supermonkey - 12 Apr 2007 2:17 PM - 3 messages
As we all known, a menuItem often has a corresponding toolbar button in a windows form program. I want to associate a menuItem with corresponding toobarbutton which has the same action with it. So that when I check a menuItem, the toolbarbutton will ...
Score NotifyIcon (System Tray)
Asaf - 12 Apr 2007 2:04 PM - 4 messages
Hi, I have created a System Tray application using C# for .NET 2.0. My PC will not shut down or make a restart if my System Tray application is working at the Tray. Only after I end the process of my System Tray application then my PC is ...
Score Installing updates to my software from the web
Claire - 12 Apr 2007 1:07 PM - 2 messages
I want to include auto updating of my software from www and I've not done it before so I thought I'd ask. Using visual studio 2003. Windows forms application. I prefer to create a single file installer directly from visual studio. I ...
Score How to flipp the TrackBar ?
Sharon - 12 Apr 2007 12:52 PM - 2 messages
I'm using the System.Windows.Forms.TrackBar, but I want the it to brawn flipped 180vertical so the sharp tip of the tracker will point up instead of down. How can I do that? I'll be thankful if you can post a code sample in here. ...
Score About virtual and abstract method
David Zha0 - 12 Apr 2007 12:40 PM - 5 messages
Hi, "when we call a virtual method, the runtime will check the instance who called the method and then choose the suitable override method, this may causes the performance drop down", is this right? And, why not use "new" instead of using "virtual"? ...
Score Picking off XML Elements
chance - 12 Apr 2007 12:22 PM - 7 messages
If i have this XML schema: <col>foo</foo> <val>123</val> I would like to write a function (or use existing .NET functionality) to return the value given the column name. That is to say, I would ...
Score Process exits when reading a file which is being written
Lonifasiko - 12 Apr 2007 11:46 AM - 9 messages
Hi, Using Process class I asynchronously launch an executable (black box executable) file from my Windows application. I mean asynchronously because I've got an EventHandler for "Exited" event. Therefore, when process finishes, "Exited" event is raised. This executable writes a long file for over 1-5 minutes, and I, from ...
Score Generics Objects
VicToro - 12 Apr 2007 11:42 AM - 4 messages
Hi all, I created a Class defined as: public class GenericDataAccess<T> : DataAccessObject<T> where T : DBObject This is my base class. I reuse it in every project. Now, in a particular project I have another class: ...
Score Disadvantages of C#??? just curious
chandu - 12 Apr 2007 11:35 AM - 11 messages
Hello every body , upto now i saw advantages of C# only,i am curious about what are the disadvantages of C#..(because any programming language should have some positives and negatives..) Thanks Chandu ...
Score host a windows workflow problem
Claudia Fong - 12 Apr 2007 11:01 AM - 4 messages
Hi I was using a console application to host the windows workflow and when I change to winforms, I don't know how to do it... I pass the parameters into the workflow from the winform and is work fine, but I try to output something from my workflow to the winform ...
Score FindByPrimaryKey(keyID) returns null
Nime - 12 Apr 2007 10:58 AM - 5 messages
I use a dataset and autogenerated logic codes. VS2005 generated FindByPrimaryKey method but the method returns null instead of the related row even ý use a valid key. The lines are below: //DataTable DataSetOrganizasyon.tableGeziDataTable tblGeziDT = new DataSetOrganizasyon.tblGeziDataTable(); //DataTableAdapter ...
Score Can not get cookies from a web page.
Shashank - 12 Apr 2007 10:38 AM - 4 messages
Hi all, I am making a http request to a html page residing on a server through a desktop application . The page is actually an html page with some perl queries on the top. For this page I have some cookies set on my local browser. ...
Score Guid
newbienew - 12 Apr 2007 10:28 AM - 3 messages
What is the maximum value of a GUID... is it possible to get the maximum value from a method or property like Guid.Empty? ...
Score Exceptions caught within a loop
wildThought - 12 Apr 2007 10:13 AM - 4 messages
I want to be able to catch an exception and KEEP PROCESSING with in the try block.  In my application, I may receive bad data in a particular file line and want to keep processing the rest of the ...
Score passing mouse event from control to form
shark - 12 Apr 2007 9:43 AM - 3 messages
hi, I have user control placed on form. How to make this control transparent for mouse events. I need to handle mouse events in form not in user control (like label ctrl). Thanks Shark ...
Score Events firing when I don't want them to
David Jackson - 12 Apr 2007 9:42 AM - 4 messages
Hey, I'm new to C#, so sorry if this is a dumb question. I have a WinForms app with a form. The form has two combo boxes which which have SelectedIndexChanged methods. The user selects a record in the first combo box and its ...
Score Enum - XmlEnum
wasco77 - 12 Apr 2007 9:20 AM - 3 messages
Hi all, I've a problem using enum tag. I need to create a structure like this: // --------------------------------------- [Serializable] public enum typeSupply     {         [XmlEnum(Name = "5VOnly")]         5VOnly, ...
Score How to get the default namespace at runtime ?
Sharon - 12 Apr 2007 9:00 AM - 2 messages
How can I get the default namespace of my executable assembly at runtime? ...
Score Print using GDI+ and plain PrintDocument object to a pdf file
pamela fluente - 12 Apr 2007 8:10 AM - 7 messages
hi, What is the cleanest and effective way to use the PrintDocument object to print directly to a pdf file "myfile.pdf" (with no prompt to the user: just print to file and make pdf) ? Does anyone have a simple code snippet? Either VB or C# will be ...
Score lamba expressions
Mike P - 12 Apr 2007 7:59 AM - 2 messages
I've just been reading up on lambda expressions and how you can use them to make selections from XML in a similar syntax to SQL. Does this mean there will be no more need for Xpath? I have used Xpath once or twice ...
Score lambn
Mike P - 12 Apr 2007 7:58 AM - 4 messages
I've just been reading up on lambda expressions and how you can use them to make selections from XML in a similar syntax to SQL. Does this mean no more need for Xpath? I have used Xpath once or twice and hate the ...
Score C# Noob - Exception Handled but not available
Richard Coltrane - 12 Apr 2007 7:42 AM - 3 messages
Hello, Im reasonably new to C#. Im catching an exception of type WebException as below: catch (WebException ex) { link.LinkState = (short)(LinkState.Stored); Debug.WriteLine(ex.Message); } The first line in this catch block is hit and executes but the second is ...
Score CSharp code generation
Ram - 12 Apr 2007 7:35 AM - 3 messages
Hi,    I have created class diagrams in visio. Is there any way to create csharp (.cs) class directly from this visio diagram? I googled it but could not find any solution. Please help. Thanks Ram ...
Score try catch (re)throw problem...
Lloyd Dupont - 12 Apr 2007 7:27 AM - 3 messages
I have an object where I do 'special' cleanup in case of exception my code is somewhat like that: void Method() {     try     {         Something();     }     catch ...
Score A problem with System.Configuration namespace
Jyothi Kumar - 12 Apr 2007 5:50 AM - 4 messages
Hi, my project is a migrated project from VS 2003 to VS 2005, in this project I used System.Configuration.ConfigurationSettings.AppSettings, now in VS 2005 it is giving a warning Message like: ConfigurationSettings.AppSettings is Obsolete, please replace with ConfigurationManager.AppSettings, but Iam unable to find this ConfigurationManager class in System.Configuration namespace, but if I add System.Configuration.dll as reference to my project Iam able to find ConfigurationManager class, Can anybody tell me about this concept? ...
Score I am having difficulty in converting string to datetime
Ambrose - 12 Apr 2007 5:49 AM - 5 messages
"31-03-2007 10:00:00 AM" to Datetime .Regional Local settings is dutch (NL).Please help me . ...
Score install assembly in GAC
fairyvoice - 12 Apr 2007 1:54 AM - 3 messages
i create a project and sign it with strong name then i build it into an assembly as a dll file. after these i use "gacutil /i assembly.dll" command in command line to install the assembly and it told me the installation was successful, and i ...
Score DateTime and ParseExact
sippyuconn - 12 Apr 2007 1:02 AM - 3 messages
Hi Why does this alway return false ???? I would think I have all the correct formats Is there a built in format ie f,F,g,G for datetime with AM/PM ??? Thanks string[] dateFormats = { "f", "F", "g", "G",                                      "dd-MM-yyyy hh:mm tt", ...
Next »