Home All Groups Group Topic Archive Search About

Visual C# .NET

microsoft.public.dotnet.languages.csharp
Score is vs.net slow for others as well?
Peter Rilling - 21 Jan 2006 11:21 PM - 9 messages
You know, this is my first day using VS.NET 2005 and, although it has some impressive new features, there are parts that they did not put together well. Does anyone else experience a periodical hang when in the editor?  It seams ...
Score DrawString right aligned
GTi - 21 Jan 2006 11:08 PM - 5 messages
This must be the simplest question on the web. How can I right align text with DrawString ? Normal (left aligned): 1234567890 123456789 12345678 1234567 123456 12345 1234 123 12 1 Right aligned: 1234567890   123456789     12345678      1234567 ...
Score using enter as a tab
Andrew - 21 Jan 2006 10:53 PM - 2 messages
Hi! I'm new to c# and I stumbled across this dillema during a project: can anyone tell me how I can emulate the action af a Tab when enter is pressed? I saw something in visual basic that looked like this: ...
Score Rename all method names in an assembly
Caroline - 21 Jan 2006 10:01 PM - 4 messages
I have a CF app and I haven't found a decent obfuscator for it. I want to write a simple obfuscator, that replaces variables and methods names. Is there any way to rename all method names returned by Assembly.GetMethods, ...
Score Convert Price.ToString("C2") to decimal again?
Steven Spits - 21 Jan 2006 9:13 PM - 2 messages
Hi, Suppose decimal Price contains 12,3. Price.ToString("C2") gives 12,30 ? (yes, I'm located in Europe). What would be the best way to convert this string to a decimal again? Steven - - - ...
Score Determine if a text string is really a numeric type?
AdamM - 21 Jan 2006 9:04 PM - 4 messages
Hi all, What function lets me check a text string and determine if that string is really a int, float, double, etc. just formatted as a string? Thanks in advance! Adam ...
Score cookie encryption/security
gl - 21 Jan 2006 9:00 PM - 5 messages
I'm currently making a web app that stores a user id in a cookie, and builds user information off of that in the differnt pages of the site. The cookie is created on login, and is separate from the authentication cookie. Are there ...
Score Getting description for special folders
Andrea - 21 Jan 2006 7:51 PM - 2 messages
I need to get the description (with the default language of the operating system) for the special system folders like Control Panel, My Computer and so on. I have the CLSID of them and, for example, I launch the control panel ...
Score Getting the COM IDataObject interface from the DataObject class
Bob Staheli - 21 Jan 2006 7:10 PM - 5 messages
The .Net DataObject class implements the COM/OLE IDataObject interface , so how do I get it. I have tried this, but it does not work : // Declare the COM/OLE IDataObject interface [ComImport, Guid("0000010E-0000-0000-C000-000000000046"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] ...
Score Tracing from Class in ASP.net application
asapjim - 21 Jan 2006 6:49 PM - 4 messages
Hi, I have a C# class that is being used by an ASP.net application.  How can I include the tracing from the class in the ASP.net application's trace output (trace.axd)? ...
Score using GDI+ Graphics object and getting confused, help!
Peter Row - 21 Jan 2006 6:33 PM - 8 messages
Hi, I've started work on my own control some parts of which use standard controls, others I need to draw on my controls surface to get the display output I require, however.... I seem to be stupid or missing the point. I used DrawString( ) as a simple ...
Score How to parse the names of methods & variables in a cs file
Simone M - 21 Jan 2006 6:33 PM - 6 messages
I would like to make a list of all the names of methods and variables in a cs file. I need to open up a file, create the list of all methods and properties, and variables, contained in that file, and close the ...
Score Multi-line ListView in VS.NET
JimC - 21 Jan 2006 6:08 PM - 4 messages
I think this question has been asked before, but I haven't found a satisfactory answer. Does anyone know how to make a ListView that displays multiple lines in a row? Jim ...
Score How to do this in .net
dfetrow410@hotmail.com - 21 Jan 2006 5:09 PM - 6 messages
I have the following table. notice I need to mahe the first td red, the next 4 yellow and the rest gray. This is being defined in the css. The Commercial is coming from the database??? <table border="0" cellpadding="0" cellspacing="3" width="202"> ...
Score Building a Syslog Server
Guy Noir - 21 Jan 2006 5:07 PM - 9 messages
Hello. I am needing some advice. I need to build a syslog server that writes to a sql backend. I am concerned about the server not being able to handle multiple requests. For example on an enterprise network, I may need to handle a ...
Score Question about DataTable
Danny Ni - 21 Jan 2006 4:59 PM - 7 messages
Hi, If I want to programatically add rows to a  DataTable, do I call AcceptChanges per row? Or do I call AcceptChanges after all rows added? TIA ...
Score Retrieve description of an EXE file
Andrea - 21 Jan 2006 1:46 PM - 2 messages
I need to retrieve the "description" of an executable file. This is a filed present in the file properties. How can I do that? Thanks Andrea ...
Score getting current track playing in wmp programmatically
Paul Fi - 21 Jan 2006 1:11 PM - 2 messages
im writing a C# program that tries to get the currently playing song in a seperate windows media player instance (external app) i found out that there might be a way to do that using the windows messaging system. some how i was able to use the win32 funtion findwindow() to get the ...
Score Retrieving an Image from a resource file
Doug Handler - 21 Jan 2006 12:30 PM - 2 messages
I'm using VS2k5 and i've added a bunch of images to the project's resource.resx file and thus they reside in the Resources folder.  I want to dynamically add an image to my project.  I have no problem adding an image ...
Score List of DHCP servers ?
jmd.msdn - 21 Jan 2006 11:49 AM - 4 messages
Hello. Is it possible to obtain programmatically, with .net 2.0 + C# + Active Directory or P/Invoke, a list of the authorized current DHCP servers in a forest/domain ? And, if the above question can be solved, is it also possible to manage the ...
Score Communicating Between Multiple Projects
Veleek - 21 Jan 2006 8:21 AM - 3 messages
An alternate title for this might be "Creating my own set of core classes". Just a quick overview.  In order to learn C#, Sockets, Multithreading and whatever else I can, I am attempting to create MSN Messenger (My Sucky New Messenger), ie. a simple IM program as it is a interesting ...
Score What is the purpose of the string.copy method?
CMirandaman - 21 Jan 2006 8:05 AM - 13 messages
Sounds like a stupid question I know. I can tell that they are used to copy strings. But what is the difference between           x = y; versus x = String.Copy(y); Or are they essentially the same? ...
Score Design Pattrens
TulasiKumar - 21 Jan 2006 5:15 AM - 5 messages
Hi all, What is a DesignPattrens? Why Design pattren cocpets are intorduced? Using Csharp how should i develop designpattern concept? Any one please explained me or any reference sites please provide me I want to know the concept regards, Tulasi kumar ...
Score building a scheduler from scratch
VMI - 21 Jan 2006 3:58 AM - 9 messages
I'm searching for a way to build a scheduler that will store its data in sql server. I've searched google but it mostly displays sites that sell scheduler controls. Anyone know of any sites that show more or less how to build a simple ...
Score Cant drag from IE to my C# app
commanderjason - 21 Jan 2006 2:51 AM - 2 messages
Im trying to drag links into my c# windows app. my code is pretty straitforward for this test private void Form1_DragEnter(object sender, DragEventArgs e)         {             e.Effect = DragDropEffects.All; ...
Score Global Array Structure
wg - 21 Jan 2006 1:58 AM - 3 messages
I am new the C# coming from a VB6 world. In VB6 I have serveral applications where I create a UDT in a module then make an array of the UDT. All modules and forms could access this. Now I am attempting to do this in C#. I would ...
Score unit testing in vs.net 2005?
Peter Rilling - 21 Jan 2006 1:53 AM - 5 messages
Does VS.NET 2005 Professional support integrated unit testing, or is that only with the team system? ...
Score Running Client Side C# Using ASP.NET
steve_barker333 - 21 Jan 2006 12:29 AM - 6 messages
Hi guys! I found a great article a while ago about how to write client side C#. Sadly, I can't find it again now, but here's the jist of what I learnt to do: 1. Write a C# (or any .NET language) dll. ...
Score Not getting latest on DLL?
Brett Romero - 21 Jan 2006 12:28 AM - 7 messages
I have a DLL "file" reference in my project.  The DLL has been updated. I recompile my project but it does not see the DLL updates.  I remove and add back the DLL.  Now I can see the updates. ...
Score problems with AutoPostBack
Sean Chapman - 20 Jan 2006 11:46 PM - 3 messages
I've got a simple page I've made with a few controls (Treeview, Dropdownlist, ..). I'm running into an issue with autopostback. If I set it to AutoPostBack = "True", when the event should fire I get a Javascript error in IE. ...
Score Inheritance woes
relient - 20 Jan 2006 10:38 PM - 6 messages
This is rediculous. It is said when you override a method in a derived class that's implemented in the base class, you "override the base class methods" implementation, correct? but in my test, base.SomeMethod() still prints out it's *own* implimentation - that's ...
Score Speed up App Startup
ted - 20 Jan 2006 10:21 PM - 5 messages
I have a legacy app that launches a C# app.  It takes a long time for it to launch the first time and after that it launches fine.  I know it has to do with the .net runtime.  Is there a way around this?  This app uses 1.1 .net ...
Score signing an assembly
Val - 20 Jan 2006 9:55 PM - 2 messages
I was trying to publish my project for installing the application on another computer, but encoutered an error when using a wizard. Several assemblies that I was refering too in a project gave the following: Error    1    Assembly 'Name' must be strong signed in order to be marked as a ...
Score resize & keep Winform layout
Sharon - 20 Jan 2006 9:04 PM - 4 messages
On VS 2003 I have on a form textbox and 3 buttons , the buttons are aligned and keep the same line , I want the Gui to keep the same ratio when resizing the form Say 90% textbox and 10% buttons ...
Score Constructor firing Inheritance in C#
RickHodder - 20 Jan 2006 9:00 PM - 12 messages
I'm having a problem, and here is a simplified example of code that demonstrates it: public class BizObj {    public string TableName="";    private DataSet oData;    public BizObj()    {       LoadData();  ...
Score Create file using drag and drop
Darren - 20 Jan 2006 8:54 PM - 2 messages
I'm trying to create a file using drag and drop. I want to be able to select a listview item drag it to the shell and create a file. Each icon in the listview represents a blob in a database. ...
Score System.Reflection.MethodInfo.Invoke and multiple threads
Me - 20 Jan 2006 8:51 PM - 4 messages
I am trying to figure out any issues with calling System.Reflection.MethodInfo.Invoke() when dealing with multiple threads. For instance.. Say I have a class that allows you to pass in a string that represents a method name and an object that represents an instance of some class which ...
Score Referencing Property as variable?
Brett Romero - 20 Jan 2006 8:43 PM - 4 messages
If I have a collection such as: Person.addresscollection[0].Address1 and have a variable myAddressField = "Address1" how can I do something such as Person.addresscollection[0].myAddressField to reach the field "Address1"? Thanks, Brett ...
Score Null Coalescing ?? Operator
Rich - 20 Jan 2006 8:35 PM - 10 messages
Hi I do like C# 2's new ?? operator, which enables us to code something like: // Ensure someString is not null someString = someString ?? ""; But wouldn't it make a lot of sense to take this a step further and allow a ...
Score DirectoryInfo and MoveTo() method
AE Guy - 20 Jan 2006 8:03 PM - 6 messages
**I just realized I initially posted this in the wrong group, sorry to those of you who see it twice I have a windows service written in C# that WAS moving files individually.  Now I am trying to make it move entire directories.  When trying to use the ...
Score help using Win32_Product.Uninstall
Steve Long - 20 Jan 2006 7:48 PM - 4 messages
Hello, can someone help me figure out how to do a couple of things here? I would like to use the Uninstall method of the Win32_Product class and am having trouble figuring this one out. When I do a query with the following code, I get a ManagementException  of ...
Score Datatype of an enum
Brent Ritchie - 20 Jan 2006 7:37 PM - 5 messages
Hello all,     I have been wondering is it possible to get the datatype of an enumeration without using reflection. To clearify if I do:     enum Genders     {         Male, ...
Score Pages using a master page losing images
Rik Brooks - 20 Jan 2006 7:33 PM - 2 messages
I have a master page in the root directory of my web app. If I create a page from that master into another folder then all of the images, and only the images disappear. If I then move the web page into the root folder where the ...
Score Javaalmanac
Stevens S - 20 Jan 2006 7:23 PM - 2 messages
Java people have their javaalmanac.com Does C# people have csharpalmanc.com or any same kind of website? ...
Score How tell ClickOnce we moved and renamed our app?
Ronald S. Cook - 20 Jan 2006 7:17 PM - 2 messages
As, let's say, "Acme" company we published a C# Win app named "MyApp" using ClickOnce. But now our company name has changed and even the app name has as well. How can we update things correctly in ClickOnce so that our current users ...
Score Serializing NameValuePairs
INeedADip - 20 Jan 2006 7:09 PM - 6 messages
I need to store some sort of Name-Value collection in the Application State. I keep trying different ones, but it errors out saying that they are not serializable.  Do I need to write my own or is there one in the Framework ...
Score the Alignment of the textBox and RightToLeft property
Ehsanal - 20 Jan 2006 6:55 PM - 3 messages
plz i have a question: when i put the properties in a textBox like this:              TextAlign  = System.Windows.Forms.HorizontalAlignment.Right;                 RightToLeft = RightToLeft.YES; ...
Score Determining Drop Down List Value
Mike Collins - 20 Jan 2006 6:29 PM - 4 messages
I'm not feeling too smart right now, but I cannot get the correct drop down list value from a drop down I have on my web form. I get the initial value that was loaded in the list. Can someone show me what I am doing wrong and ...
Score OT: Business Objects - what are they and can they contain objects like sockets?
g18c - 20 Jan 2006 6:14 PM - 2 messages
Hi, i have posted off topic to hopefully pick up a few design tips from the experienced programmers here. I have a number of objects in my current application, two of which are nodes and gateways. The DataGridView is excellent for me because i can add new objects to a ...
Score How to inherit from two places?
Brett Romero - 20 Jan 2006 5:55 PM - 10 messages
I know inheriting from two different classes isn't allowed but here is my situation.  I'm creating a custom datagrid class that inherits from DataGrid.  I have another class (dgExt) with useful methods that will be used in the customDataGrid() class.   I can create a new dgExt ...
Score Wrapper for the Instrumentation Block in Enterprise Library June 2005
Manoj Nair - 20 Jan 2006 5:40 PM - 2 messages
Hi all, For our application we need to create a wrapper for the instrumentation and logging block of the Enterprise library june 2005 release. Can any one send a link which can help us in this ? Thanks in advance Regards ...
Score Generic argument as a base class
Harold Howe - 20 Jan 2006 5:20 PM - 4 messages
Howdy all. Is it possible to use a generic argument as a base class? Based on the error that I am getting, I think the answer is no. public class Test<T> : T { } main.cs(5,24): error CS0689: Cannot derive from 'T' because it is a type ...
Score MailMessage & mime encoded SMTP data
asnowfall - 20 Jan 2006 5:14 PM - 3 messages
I am trying to build System.Mail.MailMessage object out of mime encoded SMTP data. I have following questions Byte[] byteMailData; //mime encoded STMP data for "email with attachment" 1) MailMessage.Body = Convert(byteMailData);     If I do the above, will MailMessage object extract the Message ...
Score How to create minidumps in C#
Patricio - 20 Jan 2006 4:19 PM - 7 messages
Hello, I need to create minidumps (or the equivalent) to debug C# applications post-mortem.  I know that it is possible in C++ using minidumps. I read some old posts where they said that for C# it is impossible to use ...
Score Casting using "as" question
Dave - 20 Jan 2006 4:08 PM - 6 messages
What is the benefit of using "as" vs the other? HttpWebRequest myReq =    (HttpWebRequest)WebRequest.Create("[link]"); vs. HttpWebRequest myReq =    WebRequest.Create("[link]") as HttpWebRequest; ...
Score global.asax for non-page inheriting objects
Dylan Parry - 20 Jan 2006 1:38 PM - 6 messages
Hi folks, I'm not really sure of the terminology here, so I'll try my best. I have been using global.asax to set up application variables that are used within my applications, but for obvious (or not so) reasons the ...
Score Obtaining c# type declaration
Lawrence Kevin - 20 Jan 2006 11:13 AM - 10 messages
Hi all I am using reflection to obtain some FieldInfo objects, what I need to do is convert the .Net type to the c# syntax - I can do this myself using my own conversion but I was wondering if there was a quick and easy way - example: ...
Score List<T> thread safety question
Rainer Queck - 20 Jan 2006 9:50 AM - 18 messages
Hi NG, one more question about thread safety of generic lists. Let's assume a generic list: List<MyTyp> aList = new List<MyType>(); Would it be a problem if one thread removes elements from the list like ...
Score how to make List<T> thread safe?
Rainer Queck - 20 Jan 2006 9:20 AM - 10 messages
Hi NG, what would be the easiest way to make a generic list thread safe? Thanks for hints and help! Rainer ...
Score fileMappig with paging
Vlad - 20 Jan 2006 9:04 AM - 3 messages
I'll do a mappig of a big file using a paging for reader it. The first time I call CreateFileMapping and MapViewOfFile with a page of 655360, the pointer is not null; then I want to read another page ...
Score Silent installation of .NET 2.0 using VS 2005
S.Creek - 20 Jan 2006 7:51 AM - 2 messages
Hi, i am using a VS 2005 set up project ,to distribute my application, i cant find a way to silently install the 2.0 framework. Microsoft has an option to check it as pre-requisite, but then the user sees the EULA etc.. and this is basically a separated ...
Score managepermissions.aspx
Dave - 20 Jan 2006 7:11 AM - 2 messages
I use the following utility to manage security on my machine, http://localhost/asp.netwebadminfiles/security/permissions/managePermissions.aspx I use it to assign roles to certain folders and deny access to certain folders. How do I assign roles to folders on the machine where I'm deploying my app. ...
Score Unable to Cast
Danny Ni - 20 Jan 2006 4:29 AM - 5 messages
Hi, I am having problem with the following code snippet: DataTable dt = getDataFromXLS(@"c:\test\Customers.xls");  //getDataFromXLS function reads an Excel file and return a sheet as a datatable for (int i=0;i<dt.Rows.Count;i++) ...
Score Problem with assembly loaded at runtime
Luis Arvayo - 20 Jan 2006 3:53 AM - 6 messages
When I load an assembly at runtime, that is to say, a plugin DLL through Assembly.Load, an old version of the assembly is loaded. If I recompile the DLL and then copy the result to where the assembly is ...
Score Memberwise assignment of an object.
Kevin Frey - 20 Jan 2006 3:29 AM - 5 messages
Can someone please tell me if there is any way to do this easily in C#: x = new MyClass( ); y = new MyClass( ); I want to copy the values from y to x, without it resulting in the construction of a new instance of MyObject( ). It is a deep copy, but ...
Score When to Qualify Interface Method Names in an Implementation class
Kevin Frey - 20 Jan 2006 3:19 AM - 3 messages
Consider this simple example: interface IReader {    bool Read( ); }; class MyReader : IReader {    bool Read( ); // or should it be bool IReader.Read( ) ? }; When I declare the implementation of the Read( ) method, what syntax should I be using - the interface-qualified method name, or not. ...
Score Document open on double-click?
David Veeneman - 20 Jan 2006 3:13 AM - 4 messages
I used to know how to do this--I want to double-click on a document created by my application and have the application and the document open. I have created the file association in my deployment project, and double-clicking a ...
Score SqlConnection, SqlCommand, SqlDataReader
Jason Huang - 20 Jan 2006 2:35 AM - 4 messages
Hi, In C#.Net, can we have more than one SqlCommand in a SqlConnection? And in one SqlCommand, can we have more than one SqlDataReader in a SqlCommand? In what situation should I use SqlConneciton.Dispose() instead of SqlConnection.Close()? ...
Score Call an event handler on a parent form from child form
jimcolli - 20 Jan 2006 1:45 AM - 4 messages
I have a parent form with a menu button that has a handler. I want to call this same handler when a button on a child form is clicked. I have this simplified code in the main form's Load handler. ...
Score How do threads get entered in to?
Coder - 20 Jan 2006 12:29 AM - 6 messages
So there are various ways to enter a thread.  Example: -  Button click -  Event from delegate call back. -  etc... In fact, I suppose all entry points are from some form of an event. Questions: - When I click a button, does it it get blocked till the last button ...
Score FREE statistical library
2m - 20 Jan 2006 12:26 AM - 2 messages
Hi guys, im looking for a FREE statistical library (in fact no so complicated) It should include: - linear regression - matrix transformations (mainly inverse) - goodness of fit test (not so important) I know it can be a dream, but... if you have any suggestions :) ...
Score VS 2005 - Case Sensitivity?
gregory_may - 20 Jan 2006 12:13 AM - 16 messages
Is there any options in VS 2005 to better handle case issues in C# (Similar to VB.Net)? ...
Score Unable to Copy File
MAF - 19 Jan 2006 11:51 PM - 10 messages
Does anyone know why in 2005 I might be getting this error everytime I try and recompile? Error 226 Unable to copy file "obj\Debug\myfile.dll" to "bin\Debug\myfile.dll". The process cannot access the file 'bin\Debug\myfile.dll' because it is being used by another process. myfile ...
Score How do I wait until myVar == true
Coder - 19 Jan 2006 11:43 PM - 19 messages
Howdy everybody! How do I do the following... while (myVary != true){}; Obviously I do not want to use 100% of the processor to stay in this infinite loop till myVar == true.  But wait do I do? Thanks yal! - Coder ;) ...
Score .NET Remoting DNS Caching problem?
Michael Bray - 19 Jan 2006 11:10 PM - 2 messages
Ok guys here's a tough one...   I have a client/server application that uses remoting for communication.  I am using Activator.GetObject to create a remoting instance with an URL that specifies the client machine by name. ...
Score Trouble understanding compiler message on generic where clause
Brad Wood - 19 Jan 2006 11:01 PM - 4 messages
I have this method declaration: private SomeType getSomething<T>( T spec ) where T: String, MemoryStream The compiler error I get is: 'string' is not a valid constraint. A type used as a constraint must be an interface, a non-sealed class or a type parameter. ...
Score GetRequestStream slows down?
Jim Toth - 19 Jan 2006 10:50 PM - 9 messages
I have a multithreaded application that is posting XML requests to a remote web site.  As more and more calls are made to HttpWebRequest.GetRequestStream, the length of time increases for each call from an initial 2-3 seconds to anywhere from 15-30 seconds.  What am I doing ...
Score Need help on Regex
smileyjenny - 19 Jan 2006 10:27 PM - 2 messages
Hi, I need to replace all spaces in a square bracket with understores. Does anybody know the regular expression to do that?  For example, [Employee First Name] will become [Employee_First_Name]. Thanks in advance!! ...
Score Why does this compile?
tni - 19 Jan 2006 9:39 PM - 6 messages
int x = 0; int y = 0; int z = 0;             try             {                 z = x / y; ...
Score Duplicating Tabs
RobKinney1 - 19 Jan 2006 9:36 PM - 3 messages
Here is a head scratcher: I have 2 tab controls, upper and lower.  LowerTabControl must be an exact duplicate of UpperTabControl only with selected tabs from the upper. For instance, I may want to duplicate tabPage1 and tabPage3 from upper and ...
Score System shutdown notification
VJ - 19 Jan 2006 9:31 PM - 2 messages
How do I bn a notification in my program that windows operating system is shutting down or restarting? VJ ...
Score How do I do a SendMessage like operation in C#
chris.dannemiller@gmail.com - 19 Jan 2006 9:11 PM - 3 messages
In VC++ When I wanted to send a message to a window from a worker thread I would use SendMessage. Events only work Semi-well in C# becuase certain GUI operations require they run in the same thread that the window exists in. Such as displaying a balloon on the tray. Does ...
Score Programmatic set GridView1 SelectedIndexChanged
Netmonster - 19 Jan 2006 8:33 PM - 3 messages
I am having trouble programmatically setting the SelectedIndexChanged of a GridView. Code as follows.        Panel Panel1 = new Panel();         GridView g = new GridView();         ObjectDataSource o = new ObjectDataSource(); ...
Score MessageBox shuts down program
brianbasquille - 19 Jan 2006 8:01 PM - 6 messages
Hello all, Any reason why a program would simply shut down when a MessageBox.Show() is issued? Strange behaviour as the MessageBox never actually pops up.. but running through the debugger shows it fails and shuts down at the line ...
Score Overlapping Regex matches
Jim_Kanepele - 19 Jan 2006 7:38 PM - 2 messages
I have been looking for this all day and night. Am I right to say this is not possible with Regex? Example input string: NVNVNNRVN I'd like to match all NVN occurrences.               NVNVNNRVN ...
Score list item deleted event?
Alex K. - 19 Jan 2006 7:26 PM - 2 messages
Hi all How do I catch an event when list item is deleted from ListBox? Is there such event? Thank you Alex ...
Score Novice: SecurityException on TableAdapter.Fill()?
Peter - 19 Jan 2006 7:20 PM - 3 messages
Hello, Thanks for reviewing my question.  This is my first program with the new VS 2005 and I created a simple dialog with a datagrid connected to a new database I created with VS as well. this.sampleTableAdapter.Fill(this.sampleDataSet1.Teams); ...
Score Highlight a PictureBox OnMouseEnter
Joe - 19 Jan 2006 7:04 PM - 3 messages
I have a PictureBox that we're using like a button. Is there a way to apply a sort of highlighting to the image in the MouseEnter event? I was thinking something like changing the color of all the pixels by a ...
Score Generics and multi-level inheritance
Daniel Billingsley - 19 Jan 2006 6:52 PM - 3 messages
Let's say I have: public class RootClass<T> {    public virtual T GetOne()    {       return default(T);    } } and public class MiddleClass<T> : RootClass<MiddleClass<T>> ...
Score What is wrong with debugger?
Brett Romero - 19 Jan 2006 6:52 PM - 6 messages
I have a line of code that references a method in a .NET DLL.  I can usually debug into this DLL and step through the method.  With a recent update of the DLL (from some one else), I can't step into this method. ...
Score Best way to save a datatable into SQL server
John - 19 Jan 2006 6:44 PM - 2 messages
Hi, I have a datatable object in memory, the datasource is not from SQL server. I want to save this datatable into SQL server 2000, what is the best way to do it? The only way I know is to create table dynamically then loop thru datatable ...
Score moving/renaming directory to 2 levels below
Daves - 19 Jan 2006 6:24 PM - 4 messages
why the heck can't I use Directory.Move() to rename a directory (containing files) to a entry 2 levels below e.g. uploads/tempfiles -> uploads/tempfiles/48/003files if I do this in one line it says "part of the file name not found" bla bla ...
Score Software protection
John - 19 Jan 2006 6:11 PM - 11 messages
Hi, I would like to protect my software from copying. What are best tools for it (hardware protection is not an option), do you have some reccomendation for protection or third party software that works? Thanks very much John ...
Score Replace, Left, Right functions in C#
Ed Chiu - 19 Jan 2006 6:00 PM - 4 messages
Hi, Does C# has functions such as replace, left, right, substring for strings? Without these functions, it's not easy to process strings. TIA ...
Score foreach or List.ForEach
Tripper - 19 Jan 2006 5:24 PM - 28 messages
Which is the better way to go and why? //trivial example List<string> strings = GetStrings(); foreach (string s in strings) {    // some operation; } strings.ForEach(   delegate(string s)   {     // some operation   } ); ...
Score Convert string to Type
John Cotsell - 19 Jan 2006 4:46 PM - 5 messages
Basically I have a class called Dog and when using the objectdatasource I can use a string parameter to pass into the selectmethod. so I pass in a string = 'Dog' now once in the selectmethod I need to convert that string ...
Score Which PInvokes aren't supported in C# or managed code?
Scottie_do - 19 Jan 2006 4:42 PM - 7 messages
I've heard from the CDO team that managed code is unsupported.  With a site like [link] it's possible that I'll easily end up with a faulty application architecture that will require a rewrite after I write the darn ...
Score Release Compling & References
Steve B. - 19 Jan 2006 3:58 PM - 3 messages
I have a ADO.Net Library project (adonet.dll) in my VS solution Recently, when I Debug comple I don't get any errrors.  When I Release compile to my local share network drive the compiler says it can't find the ...
Score Tabbed (Paged) dialog in C#
Kylie - 19 Jan 2006 3:26 PM - 4 messages
Hi Everyone, I am going to quickly develop a C# application with the paged options dialog type. like Mozilla FireFox Options dialog box or Internet Explorer Tabbed option dialog or ... I have found a sample at [link] but the source ...
Score Static Method Question
Doug Handler - 19 Jan 2006 3:19 PM - 4 messages
I have a static method that needs to assign a type to an instance of an object.  What's the best way to address this? e.g. private Panel pnlMain = new Panel(); ..... public static void SetControl(Button btnInfo) {     // pseudo-code - I need this to happen here - how can I do this.  The ...
HI
Next »