Groups | Blog | Home


Archived Months
June 2003
July 2003
August 2003
September 2003
October 2003
November 2003
December 2003
January 2004
February 2004
March 2004
April 2004
May 2004
June 2004
July 2004
August 2004
September 2004
October 2004
November 2004
December 2004
January 2005
February 2005
March 2005
April 2005
May 2005
June 2005
July 2005
August 2005
September 2005
October 2005
November 2005
December 2005
January 2006
February 2006
March 2006
April 2006
May 2006
June 2006
July 2006
August 2006
September 2006
October 2006
November 2006
December 2006
January 2007
February 2007
March 2007
April 2007
May 2007
June 2007
July 2007
August 2007
September 2007
October 2007
November 2007
December 2007
January 2008
February 2008
March 2008
April 2008


all groups > c# > july 2007 > threads for thursday july 12

Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Service install -- The specified service already exists
Posted by John J. Hughes II at 7/12/2007 9:36:02 PM
I am getting an error when I install a service I wrote. I have an MSI installation using VS 2005 with custom actions and a custom installation. I have compared this to several other setup with services I have written and other then the names being different I can't see a difference between ...more >>

Create installation pack.
Posted by Boki at 7/12/2007 8:51:58 PM
Hi All, How to create installation pack for user to install ? I remember there is a command in VB6, after ran it, it can auto prepare the pack. Thanks! Best regards, Boki. ...more >>

question about listview dynamic control needed to handle changing
Posted by Lynb NO[at]SPAM ms.com at 7/12/2007 7:52:00 PM
I have a executable winforms application I would like to change. I use quite a number of listview controls in my main form. I dump about 15 columns of data into a couple of listviews. This data comes from classes that implement Ienumerable ... I use a method in the main form to update the ...more >>

Hot keys detection
Posted by Boki at 7/12/2007 6:57:44 PM
Hi All, The program is background running, when user press a pre-define hot key, ex: ctrl+g It will fire some other event. Problem: When program is running at background, it can't receive the keyboard event, right ? How we to detect the hot keys? Thank you! Best regards, Boki...more >>

Could not start application from Network,...
Posted by Kerem Gümrükcü at 7/12/2007 6:49:20 PM
Dear NG, i have some code/assembly here that must be executable from a network share. But it only works if i run it as a Administrator or another privileged user. But it does not execute and silently fails when i try to run it as a standard user. I tried this to make the assembly work wi...more >>

Hashtable thread safety / documentation
Posted by Adrian H at 7/12/2007 5:48:01 PM
I have a basic question regarding the Hashtable thread safety. According to MSDN docs, #1 Hashtable is thread safe for use by multiple reader threads, or a single writing thread #2 Synchronized supports multiple writing threads, provided that no threads are reading the Hashtable. The synchro...more >>

Marshal.PtrToStringAnsi() Memory Leak? Options
Posted by sabys NO[at]SPAM hotmail.com at 7/12/2007 5:46:16 PM
I've been noticing a memory leak with the following sample code snippet. Can someone please advise. Have a C# Winforms app with the following code on a button-click event. private void button1_Click(object sender, System.EventArgs e) { IntPtr p1 = new IntPtr(-1); string in...more >>

custom listview object
Posted by a at 7/12/2007 5:37:42 PM
Hi I would like to add some additional custom features to the listview, like cell editing. The created object will be added to the form as part of the GUI, and it should be able to handle events. I will create a class which conains the listview. Should I inherit this class from any exist...more >>



form problem
Posted by seema at 7/12/2007 5:18:02 PM
I have a form1. It has a textbox1. I created another form2. I want to grab the value of textbox1 of form1 into form2. I am doing like this In form2 form1 myform = new form1(); string mystr = myform.textbox1.Text; But it is giving me follwing error. form1.txtNewMake' is inaccessible du...more >>

How to access a property by its name
Posted by Rainer Queck at 7/12/2007 2:58:45 PM
Hi NG, how can I read/write a objects property, by just knowing ist Name as a string? Is there something like : myObject.GetPropertyByName("aName"); Thanks for help ...more >>

How To let all users in a Group to call a method by using an attribute?
Posted by Leon_Amirreza at 7/12/2007 2:53:51 PM
I Used this and an exception is thrown: [PrincipalPermissionAttribute(SecurityAction.Demand, Role = @"BUILTIN\Backup Operators")] ...more >>

Registering a custom DLL after deployment - advice?
Posted by Rich at 7/12/2007 2:24:01 PM
I use "Click Once" Deployment from VS2005. Works like a charm. I have to deploy a console app and an MS Access ADP. The console app invokes the ADP. I copy the ADP to the application files to be deployed from the console app and then use the Process obejct to invoke the ADP on the end Use...more >>

Setup + dll problem
Posted by Gaurav at 7/12/2007 2:18:03 PM
Hello... I create a setup application and distribute it to the clients for testing. This package contains some DLL files that are installed onto the users Program Files directory (eg. c:\program files\xxx\myDLL.dll). This DLL now is supposed to function in a certain manner. The correct ver...more >>

treeview
Posted by at 7/12/2007 1:43:58 PM
Hi, Im using two forms, thanks to your help yesterday I resolved my first problem. I open form1, from a menu I choose a task which loads form2 which contains a treeview. O i expand each node until I get to the last one, select this and form2 closes, with data bieng used in form1. The first time ...more >>

Writing Binary files
Posted by Michael at 7/12/2007 1:08:04 PM
Does anyone know how I can write a binary file? Basically I want to read in a file that is an exe and write it back out bit by bit so I can add some header info. Thanks, Michael...more >>

expandableObjectConvertors TypeConverters
Posted by Greg Clark at 7/12/2007 1:06:02 PM
I have an object which I present to the user through a propertyGrid. With many of the properties (many of which are objects themselves) I have implemented my own TypeConverters; many of these inherit from the ExpandableObjectConverter so that child properties are available to the user. Th...more >>

Control Behavior
Posted by Jimmy V at 7/12/2007 12:39:14 PM
Hey guys and gals, I am creating a composite control and need to expose the ImageList and all related properties of a label in this control; I do not want to expose the entire label. What I am looking for is a way to get the ImageKey and ImageIndex properties to behave the same as they do with...more >>

[deprecated] string Enum.ToString
Posted by Tim Sprout at 7/12/2007 12:10:41 PM
Intellisense tells me in creating the first MessageBox below that string Enum.ToString is deprecated. Is the preferred method shown in the second MessageBox below? What is the preferred method to convert enum to string? private void button3_Click(object sender, EventArgs e) { ...more >>

Get specific date (Day of Week)
Posted by Katit at 7/12/2007 12:07:02 PM
I need to get Date for Monday and Friday of current week. I can't seem to find any better way then to DateTime.Now and loop forward/backward incrementing/decrementing by 1 day until I reach DayOfWeek. Any better way to do that? ...more >>

Listing User rights assignments in local security settings
Posted by yellowblueyellow NO[at]SPAM gmail.com at 7/12/2007 11:58:42 AM
Hey ,, I wanted to List user rights assignment programmatically using c#.. the function should list the privilege and the user it has been granted to. I think it can be done using PInvoke . Is there another way?. if not can someone give me a hint as to how to proceed. thanks ...more >>

C# Debugging Alternatives
Posted by phreaker at 7/12/2007 11:43:58 AM
Hi, I'm interested in the alternatives to debugging C# other than Visual Studio .NET I have a large multi-threaded application, and I find that the debugger that comes with Visual Studio .NET is not powerfu enough. Can anyone direct me to different debuggers that would be better, especia...more >>

secure remoting on the Mono
Posted by Builder at 7/12/2007 11:20:35 AM
Does anybody know whether secure remoting through tcp channel works OK on the Mono? Thanks for any answer. ...more >>

Caspol exe issue
Posted by prakashdehury NO[at]SPAM gmail.com at 7/12/2007 10:39:27 AM
Hi I am trying to execute a .Net Exe from network share \\calcscps80\SM \test.exe Which interns call some DLL and that dll wants to create few files at local drive as well as the path wher i have kept the exe. I have added the site file://calcscps80/* to the trusted site and through caspool ...more >>

Detecting CD drive letter in C#
Posted by yellowblueyellow NO[at]SPAM gmail.com at 7/12/2007 10:36:17 AM
Hey All, I am using the following line of code to pick all logical drives on the local machine: string[] drives = Directory.GetLogicalDrives(); using the above code I can get output in the form of C:\, D:\, E: \..etc now I want to filter out the CD/DVD and FLOPPY drive... how do I do ...more >>

Dynamic Settings
Posted by Aaron at 7/12/2007 10:06:01 AM
I am trying to create dynamic settings in a .NET 2.0 C# application. I need to be able to store settings on the user, but I do not know how many settings are necessary at design time because the settings are determined by a business object that is loaded into the app of which there could be o...more >>

Strange error-(WebResource.axd) CryptographicException: Padding is invalid and cannot be removed.
Posted by Brent K at 7/12/2007 9:49:58 AM
Ok, I have an internal intranet website created in visual studio 2005, c#. It was running fine for months, and then all of the sudden a few days I started getting these errors emailed to me (I have it set up to email me exceptions). Here is the error. I have gotten this error probably 100 time...more >>

using keyword
Posted by Mike P at 7/12/2007 8:38:34 AM
I've recently started using the using keyword for my connections, but I have just seen some code where you have a using within a using, which is opening a command : using (SqlConnection _conn = new SqlConnection(ConfigurationManager.ConnectionStrings["constreng"].ToStri ng())) { ...more >>

C# DLL unloading appdomain
Posted by Tim at 7/12/2007 7:59:21 AM
Hello, I've finally managed to remotely load a DLL. I've expanded the code to load it in a seperate domain to unload the appdomain, which works to a certain extend. The host application always keeps the entry DLL in memory. How can I also unload this main DLL? As it's left after unloading the...more >>

has anyone managed to call gocr from C#?
Posted by giddy at 7/12/2007 7:42:40 AM
hi, Like i said , has anyone managed to call gocr from C#? I dont have any idea of C++ , if someone has done something similar or is familiar with the gocr model, could you give me an idea of how i should call it from C#? Gideon ...more >>

Re-writing COM DLLs in C#.net
Posted by shiva at 7/12/2007 6:16:02 AM
Hi, I have some VC++ COM DLLs and want to reuse the same DLLs in C#.net application with Add Reference but I have a requirement for my application that therre should not be any DLLs for registration in the installation. Without rewriting the VC++ COM DLLs in C#.net and without registration c...more >>

RSS feed questions
Posted by paul.hester NO[at]SPAM gmail.com at 7/12/2007 5:25:03 AM
Hi all, I work for a classified-type site and am planning on having an RSS feed for each category. I understand the basics of RSS, but I can't decide how often to update each RSS feed. Each category will probably have several new listings every hour. What's generally the recommended update ...more >>

error while displaying csv file into datatable.
Posted by archana at 7/12/2007 3:51:07 AM
Hi all, I have csv file which i want to show into datatable. when i try to use oledb to copy content of csv file into datatable not all rows are getting copied into datatable. Some last rows are missing. What i observe it if i open csv file in textpad and save that in file format 'PC' it ...more >>

Serial number protecting.
Posted by Boki at 7/12/2007 2:50:28 AM
Hi All, Could you please advice the serial number protecting method for software product ? Thank you very much! Best regards, Boki. ...more >>

Pop up a message with a URL.
Posted by Boki at 7/12/2007 2:48:28 AM
Hi All, Could you advice how to: 1. Pop up a message, I remember it is called messagebox.show() in VB6. How to do it in VC#? 2. I want add a URL inside the messagebox, is that doable? How ? Thank you very much! Best regards, Boki. ...more >>

.NET Garbage Collector Question - Pinned Memory
Posted by Crash at 7/12/2007 2:48:06 AM
..Net - All versions I have Essential .Net Vol 1 (Don Box) and the Jeffrey Richter articles on the .NET heap - they are both excellent reads. But I am still unclear on the big pinned memory question: Pinned memory: if I have a block of pinned memory active on the heap when a garbage collec...more >>

Date limitation.( trail software )
Posted by Boki at 7/12/2007 2:46:50 AM
Hi All, About the date limitation software ( trail software ) If user change their system time/date, is the limitation still work? It seems we need to write something to registry index, does Windows OS fine for us to add it ? is there any issue. Please advice how to do it, thank you ver...more >>

vs2005 not auto adding controls to code behind
Posted by Charlie Bear at 7/12/2007 2:42:37 AM
hi, i'm running visual studio 2005 working on asp.net projects. Suddenly visual studio has stopped automatically adding controls to the designer code behind. anyone know why or how to fix it? i can add them manually but that is annoying. ...more >>

GDI+ error with lots of PictureBoxes
Posted by Cruithne3753 at 7/12/2007 1:11:08 AM
I'm trying to create a Windows app with a clickable index of images within a local folder. Within a loop I've got:- PictureBox pb = new PictureBox(); pb.Image = Image.FromFile(file); .... pnlImageIndex.Controls.Add(pb); Where "file" is the name of each file within a folder. They are a...more >>

Application errors out on Vista
Posted by Adrian at 7/12/2007 12:18:10 AM
An application I wrote installs ok on W98 and XP. When installed it asks for Framework 1.1. When the application is installed on Vista and Framework 1.1 is made available, the application installs ok but errors out as soon as the icon is clicked to start up the application. The application was de...more >>

SQLClient Parameter Bug?
Posted by bob at 7/12/2007 12:00:00 AM
Hi, Is this a bug? SqlClient Parameters collection Prior to the following snippet a set of parameters were declared and added to the parameters collection. The parameter values I originally assigned using the syntax in the SECOND line of code. The code failed on the first line when it was ...more >>

Is it possible to convert standard VS project to Test project ?
Posted by Josip Mu¹ac at 7/12/2007 12:00:00 AM
And how ? :) Tx ...more >>

returning a list of table objects from a connection
Posted by Milsnips at 7/12/2007 12:00:00 AM
Hi there, i've got a small test application that can either connect to sql server, oracle or mysql (via odbc). When the connection is active, i want to return a list of the user tables and list them in a table. Now i know i can get them using SQLDMO for sql server, but is there anything gen...more >>


DevelopmentNow Blog