Home All Groups Group Topic Archive Search About

Visual C# .NET

microsoft.public.dotnet.languages.csharp
Score Simple Web service configuration
heddy - 4 Nov 2006 9:26 PM - 3 messages
Howdy folks.  I am trying to build a web service using the following configuration: I have Windows 2003 Server running in VMware.  I have IIS set up on it. I installed the .NET 2.0 package on the server as well.  The VMWare ...
Score Generic derivance and embedded classes
none - 4 Nov 2006 9:13 PM - 4 messages
Hello. Could anybody tell me why the following code: public abstract class Derived : Base<Derived.DerivedClass> {        protected sealed class DerivedClass : Base<Derived.DerivedClass>.BaseClass     {     } ...
Score C# Conversion Differences
Scott M. - 4 Nov 2006 9:04 PM - 6 messages
Why will this fail: (short) txtQty.Text and this succeed? Convert.ToInt16(txtQty.Text) ...
Score Proper programming semantics?
Jon Slaughter - 4 Nov 2006 8:00 PM - 5 messages
When programming, say, a control should I use the objects of the control directly, reference them from this, or use, if possible, the ones passed through event arguments? e.g., in a paint event I can use this. or just access the fields and methods ...
Score WM_ message definition for sendmessage api
SQACSharp - 4 Nov 2006 7:58 PM - 3 messages
Is there any way to get the int value of a specific WM_ message ?? ex: private const int WM_CLOSE = 16; private const int WM_SETTEXT = 12; ..... but where i can find the int value for WM_GETCONTROLNAME ???  Is it documented somewhere?? ...
Score Formatting A String As Currency
Scott M. - 4 Nov 2006 7:14 PM - 15 messages
Ok, this is driving me nuts... I am using VS.NET 2003 and trying to take an item out of a row in a loosely-typed dataset and place it in a label as a currency.  As it is now, ...
Score Problems passing object array
tcomer - 4 Nov 2006 7:13 PM - 4 messages
This is what I'm trying to do: class MyClass {      private MyObject [] object; public MyClass() {      object = new MyObject[10];      MyFunction(ref object); .... protected MyFunction(ref MyObject [] object) {      object[0].myVar= "value"; ...
Score A problem of invoking C# DLL from VBA
Paul - 4 Nov 2006 7:09 PM - 4 messages
I have a problem of invoking my C# DLL from my VBA code. I have created the C# component, my code is looking like this:     public class Class1 {         public Class1() { ...
Score How do I change my reference Path in ASPX.NET 2.0?
DE3A10 - 4 Nov 2006 7:06 PM - 3 messages
How do I change my reference Path in ASPX.NET 2.0?. I already look at [link](VS.80).aspx and I din't find reference path on the properties. Can some one tell me how ...
Score In need of a good FTP Component
Gina_Marano - 4 Nov 2006 6:30 PM - 8 messages
Hey All, Ok, I give up on writing my own FTP component. Too many requirements thrown at me after I started. (you all know how that happens ;) ) I am looking for and FTP component (http download would be a plu as ...
Score Hiding Attributes from Reflection
Sascha Dietl - 4 Nov 2006 4:37 PM - 5 messages
Hi NG, is there any way to hide an attribute from being reflected through PropertyInfo? The reason for that question: I got a class with a lot of attributes which are public and bound to the instance and I want to expose a few to an user ...
Score Understanding an event question GDI+ example
jm - 4 Nov 2006 4:12 PM - 4 messages
old now, but anyway, it has on page 71 (shortened): form.Paint += new PaintEventHandler(MyPaintHandler); static void MyPaintHandler(object objSender, PaintEventArgs pea) {    Graphics grfx = pea.Graphics;    grfx.Clear(Color.Chocolate); } When the paint event occurs the MyPaintHandler fires.  In there, and ...
Score Cursors
Martijn Mulder - 4 Nov 2006 4:12 PM - 3 messages
I am looking for a tutorial for creating and using custom cursors in a .NET application ...
Score Confused obout setting a Cursor
Academic - 4 Nov 2006 4:07 PM - 8 messages
What are the different effects of the following two statements: C1.Cursor = Cursors.WaitCursor C1.Cursor.Current = Cursors.WaitCursor I believe the first replaces the entire C1.Cursor object with a new one while the second only replaces the Current object of C1.Cursor, but I can't ...
Score populating a DataTable in a DataSet
Wilfried Mestdagh - 4 Nov 2006 3:11 PM - 7 messages
Hi, I have done following: Add new item - Dataset, then add DataTable, and add a few fields (VS2005) because this seems the only way to let a Crystalreport recognize a datatable in the project. Now the problem, should be simple but I cannot find it. How can I ...
Score 2000 .NET and sql server Interview question with answers PDF full free
Jobs - 4 Nov 2006 2:23 PM - 2 messages
2000 .NET and sql server Interview question with answers PDF full free download [link] ...
Score tab key, mouse click, or select method
Fred - 4 Nov 2006 1:57 PM - 4 messages
In the enter event of a combo box, how to know how this control got the focus :   - by clicking on it with the mouse   - with the tab key   - with the Select method of the control class I will want to do an action only if the combo box received focus after a ...
Score Connection to SQL database on local computer
axel22 - 4 Nov 2006 11:44 AM - 7 messages
I have added a new SQL database into my project, added a table manually in VS IDE, and then I've run the following code that always results in an exception? Could it be that the connection string is wrong? ...
Score Using an array that is allocated in a native dll?
Ole - 4 Nov 2006 11:33 AM - 6 messages
Hi, I have a native dll that has a byte array to which I want a pointer to in my C# application but I will need some help to do that. the dll exports this function: void DllFunction (PBYTE pArray, DWORD dwLen) ...
Score Modifying items within a hashtable
bandroo - 4 Nov 2006 11:07 AM - 3 messages
Hi Guys How can I modify the items within a hashtable "in situ" so to speak? At the moment, I am locating the item that I want, extracting it, modifying the item, deleting the hashtable item, and then adding back ...
Score gamepad and C#
mustafa.rabie - 4 Nov 2006 9:07 AM - 3 messages
Hi all, I have a low end usb double game pad/controller that i use with windows xp.  I want to capture inputs from the game pad to use it as a simple remote for a windows C# application.  I dont want something fancey or ...
Score Console application switches for argument values?
Dave - 4 Nov 2006 3:52 AM - 3 messages
Can you create your own switches or attributes for a console app to specify specific arguments? In other words, specify a /f to represent the "from date" and /t as "to date"? if I need to supply both? Thanks, Dave ...
Score Workaround for WaitHandle limitation?
Dave Booker - 4 Nov 2006 3:18 AM - 15 messages
I'm doing some analysis that is readily broken up into many independent pieces, on a multicore machine. I thought it would be best to just queue like 1000 of these pieces in the ThreadPool, and let that object take care of running them in the background ...
Score Comparing 2 files
Marco Shaw - 4 Nov 2006 1:17 AM - 2 messages
I've got 2 files with several entries.  There are some entries that will be contained in both files. I only want to output the entries that are *not* found in each file. What is the best way to do this with C#?  There must be some .NET features ...
Score FTP Parsing directory listings
Gina_Marano - 4 Nov 2006 12:54 AM - 3 messages
Good day all, Trying to get a listing of directories in a directory using FTP. I get the following as a result: "drw-rw-rw-   1 user     group           0 Nov  2 18:39 testdir" ...
Score Getting the command line switches for processes.
Frank Rizzo - 4 Nov 2006 12:44 AM - 2 messages
I am looping through the array of processes returned by Process.GetProcesses().  How do I get the command line parameters that each of the processes was started with?  Kind of like in the SysInternals' Process Explorer? I've tried Process.StartInfo.Arguments property but it is always empty. ...
Score C# Forms are larger than expected on Dell Laptop
commanderjason - 3 Nov 2006 11:33 PM - 3 messages
I am working on a project where I am using bitmap graphics over my form background and all controls. In general the app looks fine. However there are a few users that have a problem where the graphics and the controls do not line up at all. ...
Score REALLY need help with SendMessage WM_GETCONTROLNAME
SQACSharp - 3 Nov 2006 11:23 PM - 23 messages
I'm trying to get the control name of an editbox in another window. The following code set the value "MyPassword" in the password EditBox but it fail to return the control name of the EditBox.  I'm sure the ...
Score writing to the 32-bit registry from a 64-bit application (that darn WOW6432Node)
Chris Mullins - 3 Nov 2006 11:14 PM - 2 messages
I need to write to the 32-bit registry, and need to do so from a 64-bit MSI. It never occurred to me that this would be difficult... I have an application that installs some 64-bit binaries for development use ...
Score Trying to understand the purpose of interfaces
jm - 3 Nov 2006 10:56 PM - 28 messages
I am having trouble understanding the purposes of an interface, even though the concept of interfaces is around me all the time (user interface, for example).  I'm just not understanding software interfaces. Like anything else, it appears Interfaces are by design something that ...
Score Adding a copy of a row in a DataGridView
michael sorens - 3 Nov 2006 9:40 PM - 3 messages
I tried to do a simple operation on a Windows Form in VS2005 inside a  = key_down handler:     if (e.Control && e.Shift && e.KeyCode =3D=3D Keys.V)     {         int selectedRowIndex =3D dataGridView.SelectedCells[0].RowIndex; ...
Score Is it possible to keep page events from firing
TS - 3 Nov 2006 9:31 PM - 5 messages
i have an issue on page load when sometimes I want to quit processing the page, but the other events get called like page_prerender and individual controls' events get fired. i want to not raise any events after this point in page load. how can i do ...
Score problem
a - 3 Nov 2006 9:25 PM - 4 messages
i would like to use Microsoft.ink in my C# application but VS dont show ink after microsoft. Can someone tell me why? ...
Score Isolated Storage, XML File Upload
U.C. - 3 Nov 2006 8:22 PM - 4 messages
Hello, My client needs to collect data on a disconnected computer.  I am hoping I could store data in Isolated Storage as XML files and expose later to a server (does anyone have experience with Isolated Storage)? The solution I am looking for would be to have a connection string or ...
Score Why am I getting out of range exception with these code?
Pucca - 3 Nov 2006 8:15 PM - 8 messages
Hi:  Below is the error I got from the 2 lines of code below.  I don't understand why and how to correct it.  The actionMenu.DropDownItems has 0 item in its collection at the time of the code.  Thanks. ...
Score cannot implicitly convert to bool
Nick - 3 Nov 2006 7:43 PM - 3 messages
I am trying to find out if  particular array element contains InputOutput value.         private static int FillParameters(DbCommand command, SqlParameter[] p)         {             int x = 0;  //int initalize to hold zero ...
Score Add new datasource wizard
Andy - 3 Nov 2006 7:20 PM - 5 messages
Hi, I made some changes to a business assembly I have.  Now in the UI solution, I'm trying to add new object data sources.   For some reason, the wizard isn't letting me select my business assembly... it just ...
Score ArrayList without Boxing and UnBoxing
Peter Olcott - 3 Nov 2006 7:03 PM - 95 messages
How can I create an ArrayList in the older version of .NET that does not require the expensive Boxing and UnBoxing operations? In my case it will be an ArrayList of structures of ordinal types. Thanks. ...
Score Dictionary Throws OutOfMemoryException
O.B. - 3 Nov 2006 6:10 PM - 2 messages
I have an application that throws System.OutOfMemoryException when the application has only allocated 1.3GB of RAM (according to the Task Manager).  I've repeated the operation several times and the exception is thrown either when I'm calling Add or ContainsKey of a ...
Score Generic List - Split list
maxtoroq - 3 Nov 2006 6:08 PM - 2 messages
I know how to work the .FindAll method of the List class, but is there a way to split a list into 2 lists, one containing all the items that match a certain criteria and one that doesn't? ...
Score Help: ArrayList, Sort, Menu, IComparer, Object, multidemensional
jtfaulk - 3 Nov 2006 6:00 PM - 4 messages
Re: ArrayList, Sort, Menu, IComparer, Object, multidemensional I have a multi-dimensional arraylist, and I would like to sort one level of it but not all.  The multi-dimensional arraylist represents my menu system, and I would like to sort the third level menu items only ...
Score Why can't I call a parameterless-constructor from a baseclass ?
AndreasW - 3 Nov 2006 5:50 PM - 8 messages
Hi, internal static class Program      {          public class foo          {              private int _id; ...
Score Generics and Reflection
brian - 3 Nov 2006 5:07 PM - 3 messages
I have an application that dynamically invokes methods based on information in an XML file.  In order to do this, I first have to make sure that a method with matching parameter types exists. All of the usable methods have generic parameter types, but most of the ...
Score DatagridView vs ListView
--== Alain ==-- - 3 Nov 2006 4:35 PM - 2 messages
Hi, I would like to know why a lot of people wants to work with ListView control when DataGridView control already do the same thing ? for example, in my case i would like to display spin controls, progressbars controls, images, text, checkboxes,... ...
Score Terminating a socket listener thread in a loop
eliss.carmine - 3 Nov 2006 4:34 PM - 3 messages
Hi, I have an application where a listener thread has a while loop that just calls Socket.ReceiveFrom over and over. When I close the app by clickin on the X, the process doesn't die because there is still this ...
Score Calling delegate from another thread do not allow me to modify controls on the form
German Koninin - 3 Nov 2006 3:09 PM - 6 messages
Hi there. Quite self explained subject. I have a form where are few controls (edit boxes mostly). and I need to make some kind of search on the background. for that I made a separated class where I have a function that do actual search. ...
Score How to raise by code the click event of a button in C#
polocar - 3 Nov 2006 2:49 PM - 3 messages
Hi all, I'm writing a C# program, and I was wondering: is there a way to raise by code the click event of a Button control, as if it was the user to have clicked on it? Thank you very much ...
Score Capturing Carriage Return
senfo - 3 Nov 2006 2:45 PM - 3 messages
Hello all, To help alleviate human error, I'm developing an application that uses a barcode reader to fill in a value in a TextBox control.  The barcode reader is connected to the PC through the PS2 keyboard jack, so to ...
Score Create new Excel worksheet...
karthick - 3 Nov 2006 2:34 PM - 2 messages
Hi, I am using Asp.Net 2.0 with C#. I am looking to export two different Gridviews in one Excel file but as two different tabs, which means I should be able to create a new worksheet on the fly. How can I do that ?. ...
Score The most efficient way to build a new data table based DataTable.Select result
Maxwell2006 - 3 Nov 2006 2:33 PM - 2 messages
Hi, I am working with strongly typed datatables. What is the most efficient way to build a new DataTAble based on the result of DataTable.Select? At this point I use a foreach loop to do the work manually. I am looking for ...
Score how to load file from current directory into WebBrowser control?
MrNobody - 3 Nov 2006 1:37 PM - 2 messages
I want to load a document which would be residing in the same directory as the application so I pass in a string to WebBrowser control which has no path information- normally doing this with regular File IO it knows to go to ...
Score don't show error windows
Vicente García - 3 Nov 2006 1:19 PM - 3 messages
Hello all, First of all sorry for my bad English... I am making up an application that can't show any error window (e.g. Can't write to memory address) if any...therefore I wish destroy or manage this ...
Score Internal access modifier is not working the way I thought it would.
JT - 3 Nov 2006 12:30 PM - 10 messages
Here is the overall structure I will be referring to: End-program     ProvideWorkFlow.dll         Forms and methods that properly manipulate calls to methods in AccessUtils         AccessUtils (a web service) ...
Score insert command sql server 2005
Iwan Petrow - 3 Nov 2006 12:12 PM - 2 messages
Hi, I do this - take some data with sqldataadaptor (at this moment 2000rows) in fill datatable. For each two rows do some calculations and save data to the database with insert command. (the data which I insert are 5 int values for each two rows - so ...
Score lock() <-> exception question
Rainer Queck - 3 Nov 2006 11:49 AM - 3 messages
Hi NG, what happens if a exception in a lock block occures? lock(myObject) {         dothis();         dothat(); } lets assume, dothis() causes a exception, does this mean, I get a deadlock? ...
Score FORM VISIBLE QUESTION
in da club - 3 Nov 2006 11:40 AM - 6 messages
How can i make my form invisible public class Form1 : System.Windows.Forms.Form static void Main() { Application.Run(new Form1()); Form1.Visible=false; } It returns An object reference is required for the nonstatic field, method, or property 'System.Windows.Forms.Control.Visible' ...
Score Would threading be any use here?
Keith - 3 Nov 2006 11:15 AM - 4 messages
I'm writing an application that is somewhat similar to Visual Studios GUI Designer. Now my problem lies in that sometimes when there is a large number of forms read in from file, that there seems to be a serious lag in ...
Score Newbie question about Listbox
garyspam - 3 Nov 2006 10:04 AM - 2 messages
Hi, I want to create my own custom control based on the Listbox. I basically want to add a couple of attributes and methods to the Items collection within the Listbox class. I know that i can do MyNewClass : Listbox ...
Score Disable events temporarily
Marc Solé - 3 Nov 2006 9:52 AM - 5 messages
Hello everybody, I have a little "problem". I have a DataGridView that is loaded automatically by code sometimes, and manually by the user other times. When the user introduces data in the DataGridView, there are some events that control the introduced data for any errors the user can do. That's OK. ...
Score Interface to C++ (unmanaged) DLL and std::string or std::wstring
Howie Meier - 3 Nov 2006 9:02 AM - 5 messages
Hallo NG, i can call functions from a native C++-dll wich uses "const char *" as stringtype via P/Invoke without problems. Is there an easy way to call functions that uses std::string or std:wstring in the function call ? ...
Score Printer Ink Status
up3umrmuofnz3pd - 3 Nov 2006 8:01 AM - 3 messages
Hi guys, I'm working on a small desktop publishing software project where I need to display the default printer's ink status/level in the status bar of the main form. For the past 2 days I've been trying to find a way of ...
Score what property or method should I use in combo box to
Amanda - 3 Nov 2006 6:53 AM - 8 messages
User is  going to be transferring items out of combobox to listbox and vice versa keeping ascending and desending order respectively at all time. If user selects the last item in combobox, the program is supposed to display a message box stating that there is no more item in the ...
Score Best way to get MX record from C#
C.Levasseur - 3 Nov 2006 6:51 AM - 2 messages
Hi, I would like to know what's the best way to get a DNS MX record from C#. The Win32 DnsQuery() API seams to do the job but is there a C# (.Net framework) equivalent? If not, is P/Invoke my only solution? I'm not that ...
Score Oracle Stored Procedures with Enterprise Library June 2005 Version
ssp - 3 Nov 2006 5:55 AM - 3 messages
Hello there, I am trying to do very simple thing in trying to return results from an Oracle (10g) Stored Procedure using the Enterprise Library June 2005 Version. The stored procedure first: ============================================ CREATE OR REPLACE PROCEDURE AGENCYSELECTALL(p_cursor OUT SelectPackage.SelectCursor) ...
Score CloneMenu
Lev Elbert - 3 Nov 2006 5:45 AM - 3 messages
Hi, all! Right to the topic: In the main menu of the form I have View->Image-> and then 4 submenu items (let's call them original submenu). I want the same submenu as a Context menu. To do this I use such construct: ...
Score ArrayList.AddRange()
Ant - 3 Nov 2006 3:27 AM - 5 messages
Hi, I was wondering why it is that when adding a collection of controls to an array list, you must use AddRange, instead of Add. Thanks in advance for any ideas Ant ...
Score How can I locate and fix the random errors with my .vshost.exe fil
Pucca - 3 Nov 2006 3:21 AM - 2 messages
I'm getting the follow error message randomly and then my application crashes.  How can I locate the bug code and how can I fix this?  Managed Debugging Assistant 'DisconnectedContext' has detected a problem in 'C:\Projects\UnityAdmin\bin\Release\UnityAdmin.vshost.exe'. ...
Score about localization resources question.
fineman - 3 Nov 2006 2:59 AM - 3 messages
Hi all,     I had writed  a  C# solution that named ResTest, it is used to test resources file. The solution is made up of ConsoleApplication1£¬ConsoleApplication2£¬ConsoleApplication3.     The ConsoleApplication1 is main Application, ConsoleApplication2 bulid a ...
Score How can I mimic a container to run multiple copies of my C# applic
Pucca - 3 Nov 2006 2:57 AM - 4 messages
Hi, I have created an application that displays various information about Active Directory objects.  Is there a control or a way to mimic the "Windows" command on the Active Directory's Users and Computers MMC Snap-in, where user ...
Score Datagridview doesn't display context menu?
Brett Romero - 3 Nov 2006 1:04 AM - 6 messages
I have a simple test app with one form, one datagridview, and a contextmenustrip.  I've assigned the menustrip to the datagridview and given the grid one column.  There isn't any data in the grid.  I never ...
Score Forms and resolution independent display
eljainc - 2 Nov 2006 11:28 PM - 3 messages
Hello, I have developed a simple c# .NET program in VS2005. It runs fine on one PC. However, on another PC, the form displays too small. It does not stretch to fill the screen and resize proportionately. Is there a library available to do this or how can I ...
Score Q: Array question.
Martin Arvidsson - 2 Nov 2006 10:10 PM - 7 messages
Hi all you gurus! Whats the biggest difference between using a string[] x; or an ArrayList x; When to use wich? Regards Martin ...
Score why am I getting squiggly blue?
Amanda - 2 Nov 2006 9:34 PM - 4 messages
On .Friday and .Saturady and .Sunday in thie followign if statement (The code is form deitel book; I am writing the same code on my own) if ( dropOffDate.DayOfWeek ==  DayOfWeek.Friday || dropOffDate.DayOfWeek == DayOfWeek.Saturday || dropOffDate.DayOfWeek == DayOfWeek.Sunday) ...
Score is Keyword Question
jm - 2 Nov 2006 9:22 PM - 5 messages
[link] C# Language Reference is (C# Reference) Checks if an object is compatible with a given type. For example, it can be determined if an object is compatible with the string type like ...
Score IP Header Checksum Bad
rdherric - 2 Nov 2006 8:54 PM - 3 messages
Hello -- I have code that sends an SNMP packet using the Socket.SendTo method. When we sniff the packets using Ethereal, the UDP header checksum appears to be all right, but the IP header checksum is 0x0000.  This results in my SNMP packets being rejected at the server. ...
Score Error Creating Window Handle
Pucca - 2 Nov 2006 8:47 PM - 6 messages
I'm gettting this error at "Application.Run" in the code below.  The error message also says "Out of Memory".  How can I find out more about what's causing this error?  It just breaks there with no further information. ...
Score Scrollbar mystery
MrNobody - 2 Nov 2006 8:31 PM - 4 messages
I have a mystery where my scrollbar behaves differently from when I use it's slider/arrow keys compared to when I manipulate it's value with a onMouseWheel event... When I manipulate my scrollbar's controls (the slider or the arrow key)  to ...
Score How to create a loop in a Windows NT Service
Todd Jaspers - 2 Nov 2006 8:08 PM - 3 messages
Hey guys,     I've written several NT services before using Delphi. When I did, I would typically use the timer component and have a particular procedure run every, say... 30 minutes. What would the code (in C#) look like in order to ...
Score Managed way to log out?
Frank Rizzo - 2 Nov 2006 8:05 PM - 3 messages
Is there a managed way to code a logout?  I have it currently using ExitWindowsEx winapi, but I'd like to switch to managed. Thanks ...
Score GraphicsPath.IsVisible(): Unexpected Results
Martijn Mulder - 2 Nov 2006 7:50 PM - 3 messages
/* GraphicsPath.IsVisible() gives unexpected results. I fill a System.Drawing.Drawing2D.GraphicsPath-object with PointF-structures that define the unit-square (0,0), (1,0), (1,1) and (0,1). Then I test 3 different PointF-structures to see if they fall inside the unit- ...
Score Detecting keystrokes
Frank Rizzo - 2 Nov 2006 7:24 PM - 2 messages
I'd like to detect a condition when a user presses a predefined keyboard combination.  For instance, left shift + right control + 5 on the number pad. I've tried the KeyDown event on the form.  But I can't determine which ...
Score newbie question: generic collections cast
carry - 2 Nov 2006 7:23 PM - 2 messages
I'm passing instance of List<DrawNode> to my method AddRange(IEnumerable<DrawObject> objects) But I got this error: Argument '1': cannot convert from 'System.Collections.Generic.List<MyNamespace.DrawNode>' to 'System.Collections.Generic.IEnumerable<MyNamespace.DrawObject>' ...
Score How can I safely turn this into threaded code?
Jamie Risk - 2 Nov 2006 7:11 PM - 4 messages
I'm attempting to improve some serially executing code (that uses the SerialPort class) bogging Windows down when it runs. To do the 'antibogging' I'm following the example from MSDN Windows.IO.Ports.SerialPort page and use threading. I'm not sure if I'm creating problems with this implementation ...
Score Assemblies in dedicated bin directory for application
Anders Borum - 2 Nov 2006 6:36 PM - 6 messages
Hello! I guess this is a silly question, but I've asked google with no luck .. so here goes: Is it possible to place the assemblies associated with a .NET client (i.e. winform / console) application in a dedicated "bin" directory as is the case ...
Score accessing remote documents
offa23 - 2 Nov 2006 6:36 PM - 2 messages
hi all ive got a winform that displays  a list of word documents that are stored on a remote server. when he clicks an item on the list, the requested document should open (as a read only) so he can view it. to access the remote ...
Score Why can only call SwitchDesktop once (calling again throw error)?
John Smith - 2 Nov 2006 6:26 PM - 3 messages
I have a DLL that checks to see if a user has locked their desktop. The code is below. When i use this code a command-line, everything works perfectly every time. I can lock the desktop and it returns "true" every time. ...
Score Problem with Development
Lucas Davenport - 2 Nov 2006 6:24 PM - 3 messages
We have an application developed originally by a third party developer (who is out of the picture now).  The application is a combination of several projects, a web service, and a web site application.  The application was written in VS2003 and C#.  Upon receipt of the application, I converted to ...
Score form id, this.Controls ... ?
Arman Sahakyan - 2 Nov 2006 5:45 PM - 3 messages
Hi, While writing code for creating aspx controls dynamically, I noticed some strange (at least to me) behavior. Look at this code; // FreeQuery : System.Web.UI.Page // void cmdDo_Click(...) GridView grid = new GridView(); grid.DataSource = source; this.Controls.Add(grid); // HERE ...
Score Databinding to Array of objects
david.kao@opco.com - 2 Nov 2006 5:15 PM - 4 messages
Hi All: I have array of objects that binds to a list box control on win form. My problem is I do not want to display every object in the array on the list box. Is there an event or function occurs in the data-binding object, which ...
Score Creating a new font via tranformation
k - 2 Nov 2006 5:14 PM - 3 messages
Hi, I'm trying to migrate from Java to C# and have encountered a problem. I can't seem to find a way to create (ultra)condensed fonts for later use in a program. In Java I had a really nice method ...
Score Any benefit for fixed size hashtable?
chrisben - 2 Nov 2006 5:03 PM - 8 messages
Hi, If I am not sure how many items will be in my Hashtable/ArrayList dynamically (multiple threads can add/remove/check the item), however, I can estimate the total number will not exceed 60000. How much can I gain in term ...
Score ImageList issues...
stumorgan - 2 Nov 2006 4:34 PM - 6 messages
I'm trying to make a configuration menu similar to the one in the Firefox options screen, with an icon-based toolbar at the top.  I'm using the ToolBar object which gets the icons from an ImageList. However, the PNG files that I am putting in the ImageList look all ...
Score MD5 Problem
Chris Newald - 2 Nov 2006 4:15 PM - 3 messages
Hello there, Not sure if I'm in the right newsgroup but here it is anyway... I store web passwords by encrypting them using a simple MD5 .dll I wrote a little while ago using C#.  User passwords are stored as binary data in the ...
Score Visual studio debug question!
DBC User - 2 Nov 2006 4:04 PM - 2 messages
I am using VS2005 c# project. While debugging my program, (pressing F10) after a while the debug disappears(the yellow line is gone). Does anyone know what causes this to happen? It is not happening in a same line, it is happening in a one method but arbitary lines. ...
Score move from Java to C#
razor - 2 Nov 2006 3:52 PM - 5 messages
Is it simple or difficult? I have a chance to start coding business applications in C# (and totally move from Java to C# (and other MS technologies) I've 4 years experience in Java (J2SE, J2EE, JSP/Servlets) ...
Score Custom Active Desktop Application
Olie - 2 Nov 2006 3:46 PM - 3 messages
I need to create a application that acts as an Active Windows Desktop. I can currently get a form with controls to behave like the desktop and I use API functions (SetPosition()) to force it to always be on the ...
Score Creating IndexOf in a custom collection
Dale - 2 Nov 2006 3:42 PM - 8 messages
I have a design question.  I am creating a custom collection of products.  The unique key for the products is productId which is an integer.  By default, IndexOf(object obj), when obj is an int, would return the value ...
Score Question about resource files
Jason - 2 Nov 2006 3:37 PM - 2 messages
Greetings , I'm studying for a MS exam and I'm a little confused about assemblies. Not what they are but just a specific comment that I'm reading and it doesn't make sense to me. It reads "Assembly resource files are preferred for use with localized data that is ...
Score .Net Listview Woes
Michael.Suarez@gmail.com - 2 Nov 2006 3:26 PM - 4 messages
Is it me, or does it seem like they put no effort into creating the listview control in .Net. A few gripes I have with .Net listview that aren't present in vb6: -Inability to set tooltiptext of subitems (without the use of a very ...
Score storing credentials for a windows service
Christof Nordiek - 2 Nov 2006 3:09 PM - 2 messages
I'm writing a windows service wich shall be able to access certain resources (files etc). So accessrights will have to be configurable by a local administrator. One option is to use the account under wich the service runs wich can be set ...
Chm
Next »