|
ms
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Visual C# .NETmicrosoft.public.dotnet.languages.csharp
Generics with inherited Interfaces.
JCauble -
9 Sep 2006 11:54 PM - 8 messages
I have a question about using Generics with Interfaces and some of there inheritance issues / problems. If this is not possible what I describe below I will have to go a different route and would like some suggestions. I am unable to use abstract classes as my code must not effect any current ...
callback function from unmanaged dll using DllImport and delegate
Bart Burkhardt -
9 Sep 2006 11:35 PM - 7 messages
Hi, I could use some help in setting a C# callback function that an external unmanaged dll will call on a event. Using a delegate and use the external callback set function doesn't work. The carbage collector says hello here (-; ...
Performance over COM
Linan -
9 Sep 2006 10:22 PM - 5 messages
Recently I wrote a program to help my wife to extract data from about 500 excel files. For each file, around 1000 cells are visited and the texts are retrieved. Firstly I wrote a python script, used win32com module. The program ran ...
.NET 2.0 Books
Simon Tamman -
9 Sep 2006 9:14 PM - 3 messages
Well, I have to make the inevitable upgrade to .NET 2.0 and am wondering if there are any books that cover specifically the differences between 1.1 and 2.0. I've heard there are quite large differences in such areas as databinding ...
Communication between applications - HowTo
Dominik Gorsler -
9 Sep 2006 8:47 PM - 3 messages
Hi, how can I enable my standard windows form application to react to a "trigger" from another application (not necessarily managed code)? The application has conventional windows form features and is usually used stand alone. Additionally it should "listen" to requests from another aplication and ...
"Global" Dataset - Singleton
Hans Greif -
9 Sep 2006 8:38 PM - 9 messages
Hallo, hello, i try to implement a global dataset - singleton based. On [link] i found a singleton implementation: sealed class SingletonCounter { public int Counter = 0; private SingletonCounter(){} public static readonly SingletonCounter Instance = new ...
Is there a component that...
Michael A. Covington -
9 Sep 2006 8:33 PM - 4 messages
I need to make something consisting of movable boxes which snap into position when arranged in a row, such that you can change the order by moving them around -- rather like the video clips in Windows Movie Maker. Is there anything like this predefined in C#? ...
Hex help needed
AMP -
9 Sep 2006 7:53 PM - 5 messages
What datatype is hex in c# ? I have: const ????? ACTION_ERASE_CHECK=0x04; in c i just have: #define BSL_ECHECK 0x04 Thanks Mike ...
Suggestions for advanced c# book?
Brett Romero -
9 Sep 2006 6:31 PM - 10 messages
I'd like to know what you have read lately on c# that could be considered advanced and that you would recommend. I'm looking for in-depth rather than reference books. No starter books and something that uses .NET 2.0 or published no later than 2004. ...
Win XP: Log users on/off
Lew Barnesson -
9 Sep 2006 5:06 PM - 11 messages
I need to write code which can determine what users are logged on, and which can log users off. Can anyone steer me to such a Namespace/API's? Thanks. - Lew ...
Binding Custom Collection/Objects
Merk -
9 Sep 2006 4:39 PM - 3 messages
I'm new to .NET (using 2.0) and was wondering how to go about binding a collection of custom classes to a DataGrid. The class exposes 5 read-only String properties. I would like for each of these properties to appear in a column in the DataGrid. ...
BackgroundWorker class
Bob Chambers -
9 Sep 2006 3:40 PM - 3 messages
Hi there, Can anyone comment on two apparent problems I've noticed with the "BackgroundWorker" class (e.g., the design pattern itself). The canonical examples always show a demonstration of a "Cancel" button handler invoking "BackgroundWorker.CancelAsync()" but two possible problems then arise: ...
Problem: GetHashCode for string is different in 1.1 and 2.
Mike9900 -
9 Sep 2006 1:23 PM - 7 messages
Hello, I am wondering why GetHashCode() for the string is using two differemt algorithms in .NET Framework 1.1 and 2. This is creating a big problem, because we relied on this hashcode as unique. How can we fix this problem? ...
Data Acess aplication block
Mukesh -
9 Sep 2006 1:08 PM - 7 messages
Hi I have Microsoft Enterprise Library 2005 installed on my local system. I m also using ASp.net 1.1 And C3 as coding language , I have MS Sql Server 2000. I am developing a web application in which i am using data Access ...
TaskBar Items
GVN -
9 Sep 2006 12:21 PM - 2 messages
Hi, I wan't to write C# Windows application which returns the names of the items available in Windows taskbar. Can anyone help me in this regard? Thanks, GVN. ...
Set the toolbox icon and default text for a control
cashdeskmac -
9 Sep 2006 10:49 AM - 3 messages
Hi, I have create an inherited control (a TextBox which doesn't accept numbers) and have added it to my toolbox. Can anyone give pointers on how to set the Text to "" when an instance of this control is dropped onto a Windows form? I have set the Text to "" in ...
File.Exists
PiotrKolodziej -
9 Sep 2006 9:42 AM - 3 messages
Hi I want to check if the file can be executed. Its directory path is either in environment 'path' variable or isn't there. Exists method seems like it's not checking variables at all. For any help thanks. ...
Form OnClose()
GVN -
9 Sep 2006 9:22 AM - 5 messages
Hi, I have two projects in my solution explorer. Say ProjA, ProjB. In ProjA I have a form called ProjAForm. In ProjB I have another form called ProjBForm. Now in ProjAForm, under a button click, I want to load ProjBForm in modeless fashion. I can load as many forms as I want ...
Best Practice for removing objects from delegates/events before garbage collection?
CB -
9 Sep 2006 7:47 AM - 2 messages
When designing an object, is there a best practice for how to allow the user of the object to tell the object to remove itself from any delegates / events it has registered with? For example.. say we have a static settings class, and it has some ...
xml serializing of IList
Umi -
9 Sep 2006 6:37 AM - 3 messages
How can we serialize(xml serialisation) the IList C# object ...
regular expression for tags with there attribute and content.
Heron -
9 Sep 2006 3:19 AM - 2 messages
Hi, I'm new to regular expressions and having troubles recreating one that would match tags with there attribute and content. Example on which i'm doing the match: [CODE class="testclass" created=John] protected void btnLogout_Click(object sender, EventArgs e)<br /> {<br /> ...
a project very same as Microsoft Word word correction system
fAnSKyer -
9 Sep 2006 2:14 AM - 5 messages
very same as Microsoft Word word correction, or like Gmail's word correction, if you choose a word, it gives you several candidate and if none is okay, user can type one. I want develop it in C#2005 Now the problem is, How to do it? How to represent each word, just like ...
huge Voice file transfer via TCP;
fAnSKyer -
9 Sep 2006 2:07 AM - 8 messages
My method is use big buffersize, 512KB [I dont know eventually how large buffer can I have]. And use StreamWriter.Write(bytes, 0, bytes.Length) to transfer to Server. It works, however, because the test file is below 512KB, but when I ...
Design question and databases
Flack -
8 Sep 2006 11:26 PM - 9 messages
Hey guys, I'm in the process of designing a small app that will be used by myself and a few other people. Now, there is some data that this app will need to run. I know it is possible to put this data, for example, in an Access database ...
Why I can not compile this interface?
ttan -
8 Sep 2006 9:49 PM - 3 messages
//This is my interface namespace MyGroupPolicyObject { [ComImport, Guid("EA502723-A23D-11d1-A7D3-0000F87571E3"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface IGroupPolicyObject { void GetDisplayName( [MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszName, ...
Reading a file from a UNC path in C#/.NET
trs-ggcsea -
8 Sep 2006 8:19 PM - 12 messages
Hi, I am reading a file from a UNC path in my Visual studio 2005 C# (.NET 2) program and getting an access denied exception. I am unsure if this access denied is due to the .NET security model, or because I need to ...
Passing array sections to unmanaged code..
Atmapuri -
8 Sep 2006 8:18 PM - 3 messages
Hi! Is it possible to pass a subsection of an array as a parameter to unmanaged code without explicitely pinning down the array? In unmanaged code you just pass a pointer to to the first selected element, but here it seems you ...
System.IO alternative user credentials? Is it possible?
Dmitry -
8 Sep 2006 7:44 PM - 4 messages
I am trying to figure out how to pass set of credentials to System.IO Challenge is: App is running under one set of credentials, but via GUI user have a chance to enter another set. I would like to be able to use supplied credentials ...
Using log4net to write to one log file from multiple programs.
UJ -
8 Sep 2006 7:09 PM - 4 messages
Has anybody done anything with using log4net where you have multiple programs on a single machine writing to the same log file? TIA - J. ...
Interprocess Communication.
UJ -
8 Sep 2006 7:05 PM - 4 messages
What's the easiest way to send a 'message' to another program running on the machine. All I need to do is send a message saying that something has happened. The other program should be able to figure out based on the ...
Determine if OS is x64 or 32bits?
tchinla -
8 Sep 2006 6:47 PM - 5 messages
Hi, I can determine that my OS is: "Microsoft Windows NT 5.2.3790 Service Pack 1" via calls to OperatingSystem(pID, ver) and BuildOperatingSystemObjects() Now, I have 2 Windows 2003 Enterprise servers, one is x32 and one is x64. ...
Using too much memory
IsRaEl -
8 Sep 2006 6:30 PM - 6 messages
Hello, I was wondering. Is there any way to make Console app use less memory?? i just did a simple Console app that download some FTP files and use 9 mb!!!!!!! I think it should use at max 1 mb!!! ...
Inheritance Constructor Overload Question
needin4mation -
8 Sep 2006 5:26 PM - 4 messages
The code is taken from the book Professional C#: abstract class GenericCustomer { private string name; public GenericCustomer(string name) { this.name = name; ...
Recomendations for Books/Resources for learning C#
bill -
8 Sep 2006 5:09 PM - 2 messages
Since this is the only C# forum I see, I will hope that this is the right place. I am fairly new to object oriented programing, nearly all my experiance is with VBScripting, BAT files etc. I would love to get some feedback on any sources that provide any of the ...
Strange Behavior With BackColor In Inherited Control
senfo -
8 Sep 2006 4:55 PM - 4 messages
I developed a Windows control in VS 2005 that inherits from the PictureBox Control that adds the ability to select images in a Windows application. It is, however, experiencing a strange issue that I can't explain. One of the desired affects was to provide the ability to ...
Dot matrix printers
Joza -
8 Sep 2006 4:12 PM - 5 messages
Hi! Can somebody give me a piece of code how to send data to dot matrix printers? I have used google for example but nothing that can help me. I'm using C#. Thanx. J. ...
Simple Beginner Question about Interfaces
needin4mation -
8 Sep 2006 4:04 PM - 3 messages
I am looking for a good book on C# that has what an interface is and how to use it. In my local library they have a lot of Java books. Is an interface a C# thing or an OOP thing? So that if I read about the ...
Two questions: 1. Change Enter to tab, 2. PostEvent like for PB to
Andres Romero -
8 Sep 2006 4:01 PM - 3 messages
1. How can I do?, if the user press the Enter key, tranform to the Tab key 2. If someone has used PowerBuilder, there is a way to Post events and functions (PostEvent(eventname) or Object.Post FunctionName/EventName: Adds ...
Custom ContextMenu with underlined text
_DD -
8 Sep 2006 3:50 PM - 2 messages
Is there any way to display underlined/highlighted characters in a custom Context Menu? Preferrably with scrolling. HTML maybe? ...
Reading Excel File
Brad -
8 Sep 2006 3:24 PM - 4 messages
I'm having a problem reading data from an Excel file into a dataset. Can anybody give me an idea of what's happening? I've included the problematic source and the error message to the end of this message. ...
Using DataGridView with Hashtables
Thrasher -
8 Sep 2006 2:56 PM - 4 messages
Hello everybody! I'm using C# to program a library management tool and am done with the storage of the data in an xml-structure. The data are read at startup and managed in a hash table for fast searching, since the amount of book-objects ...
Hide / Show Panels through a Repeater
Sully -
8 Sep 2006 1:57 PM - 2 messages
Hi Everyone, I am pretty new to coding in .net and need some help in showing and hiding information from a repeater control. I am calling a list of FAQ's from a Database and display both the question and answer. What i ...
Thread.Suspend()
Robert Speck -
8 Sep 2006 1:50 PM - 7 messages
Hi there, Can anyone shed anymore light on why "Thread.Suspend()" has been deprecated by MSFT beyond what MSDN says about it. I'm not sure if I quite appreciate the various pitfalls they discuss but using it under certain circumstances ...
Dynamically change IP Address
DMA -
8 Sep 2006 12:40 PM - 5 messages
How can I change my IP address ? I try to do it in C#. It's easy to get the IP but to fix it is another problem.. Thanks. ...
sql table
QaiserMehmood -
8 Sep 2006 11:43 AM - 3 messages
Dear Sir.. i have a visual foxpro table(v.7) and i need this table in my sql database is there any way to import vfp table into sql database with ...
SaveFileDialog + FileName
gopal -
8 Sep 2006 11:23 AM - 9 messages
Hi, I would like to display only the file names in SaveFileDialog control when i open it the Window in the without the complete file path Example if the file - -- test.doc is in folder c:/abc/test.doc ...
Sending out email from a web page
Jimbo -
8 Sep 2006 11:19 AM - 3 messages
Hey Ive been looking at Linked in. It seems that when i invite a friend the "From" address is my email address and the "To" address is my friends email address, when my friend receives the email. This is cool, so i wanna do this on the web site that im currently ...
reading NAnt properties from another file
con.brady -
8 Sep 2006 10:26 AM - 4 messages
Hi Folks, Disclaimer: I apologize if this is the wrong place for this type of question, but if so, I don't know where the right place is and I'd be very grateful if someone could point me in the right direction. ...
How to create a sub-class based on some pre-determined flag.
Wolf -
8 Sep 2006 10:04 AM - 5 messages
Say I have the following XML (as example) <root> <foo type="num">10</foo> <foo type="date">2006-10-10</foo> </root> ...
Passing constructor parameter by value?
Chris Ashley -
8 Sep 2006 9:58 AM - 6 messages
I'm getting a little confused at the behaviour of C# with one of my class constructors. A code example will probably help: public class RawBitmap { internal BITMAPFILEHEADER fileHdr; internal BITMAPINFOHEADER infoHdr; ...
Xml Validation - splitting good and bad elements
Henryk -
8 Sep 2006 9:40 AM - 3 messages
Hi, I'm using C# in VS.NET 2005. I have got the code working to validate an entire XML file and raise events for validation errors and warnings (see below). My question is how can I modify this code so that I end up with two ...
writing new value to registry key
Piotrekk -
8 Sep 2006 9:37 AM - 2 messages
Hi I have accessed registry key where system path is stored: RegistryKey myKey = Registry.LocalMachine.OpenSubKey("System\\CurrentControlSet\\Control\\Session Manager\\Environment"); Then i'am trying to change the value: if (myKey != null) ...
Decoding question
GTi -
8 Sep 2006 8:22 AM - 5 messages
I have this snippet function: string buf = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<rows>\n"; buf += "<row id=\"1\">\n"; buf += "<cell>2</cell>\n"; buf += "<cell>S&P 11</cell>\n"; ...
accessing contents of csv file as dataset
Mike P -
8 Sep 2006 8:12 AM - 2 messages
Does anybody have a simple example of using the classes in the System.Data.OleDb namespace to access the contents of the a csv file as a data set? *** Sent via Developersdex [link] *** ...
diff between virtual and abstract?
chandu -
8 Sep 2006 7:33 AM - 4 messages
hello, what is the difference to use the keyword virtual,abstract when we are overriding the methods.instead of abstract shall we use virtual everywhere when we need to override? i am little confusing to use these keywords. thaks.. ...
Server.MapPath
Peter Kirk -
8 Sep 2006 7:30 AM - 2 messages
Hi we have some classes which sometimes run in a web application, and sometimes run in standalone applications. These classes have some configuration parameters, of which one is a file-path to some resources (eg. to some text files). In order to ease configuration when deployed in a web-app (especially if ...
How can change the height of TrackBar control
ck.kislay -
8 Sep 2006 7:08 AM - 2 messages
Visual stdio 2.0 doesnot support the change in height of the Trackbar control.Is there any way to change the height of the TrackBar Control. Waiting for reply. Chandan ...
about inheritance
tony -
8 Sep 2006 5:51 AM - 5 messages
Hello! Assume I have a base class called Base and a derived class called Sub. Assume all the property for the Base class can't fit exactly for the Sub class. I mean some of the property for the Base class is wrong for the Sub class is ...
File transfer
Pramod -
8 Sep 2006 4:51 AM - 3 messages
Hi all, I have created a chat application, and one of it's functionality to send files to the connected user. I read the contents of the files into a Byte array and send that through sockets. Now when i send a file of 150 kb size the file seems to be corrupted at ...
c# and MSDE
Jason -
8 Sep 2006 4:08 AM - 5 messages
If I've got simple Access DB, and I've got a front end with a with a datagrid and use SQL SERver 2005 Expression edition to create the connections, develop the app then I give the DB and the front end ...
Delegates for overloaded methods?
Brian Hampson -
8 Sep 2006 12:48 AM - 9 messages
I'm new to this delegate thing, and I need to use it to do UI updates from a backgroundworker thread. I have a method with overloaded signatures of: void MyMethod(string MyString); void MyMethod(); How can I define (a) delegate(s) for this function without having to ...
Execute string parameter
Alan T -
8 Sep 2006 12:30 AM - 2 messages
I have a string in the format: Export.exe %1 %2 I will exexute this string by Process.Start(); However, before calling the Start I need to substitute the %1 and %2 with the source file name and destination file name, how do I substitute that? ...
VS2005 Web Project - No DLL for Nunit
Steven Nagy -
8 Sep 2006 12:30 AM - 9 messages
Hi, Creating a new website and building, there's no DLL. Apparently it builds it on first request and sticks it in some temp cache somewhere. That's all fine and dandy, except how do I reference my web project ...
Photo Listbox
cbschuld -
8 Sep 2006 12:05 AM - 2 messages
Hello All: Does anyone know of a good photo listbox to use? I need something where I can display photos and their corresponding filenames in a listbox (also needs to support outbound drag/drop). I have searched for one and come up empty handed. I have also constructed my own using ...
Why won't generic accept type param?
Brad Wood -
7 Sep 2006 11:11 PM - 8 messages
The following works fine; passing a type to CreateInstance: private Type _next; BaseWizardForm nextForm = (BaseWizardForm)Activator.CreateInstance( _next ); So why doesn't this work (error = _next' is a 'field' but is used like a 'type'): BaseWizardForm nextForm = ...
VS 2005 .sln / web Solution Problem
Mark Jerde -
7 Sep 2006 9:39 PM - 8 messages
Googled unsuccessfully. VS 2005 Pro on a laptop and two desktops, all WinXP Pro. (MSDN Universal subscriber. ;-) I use Subversion for version control so I need to have the .sln file in the same folder as other parts of the code. This afternoon my laptop stopped ...
Debug output...
Atmapuri -
7 Sep 2006 8:27 PM - 5 messages
Hi! Are there some commands that allow me to print debug strings to the VS2005 message window similar as is this possible in C++? Thanks! Amapuri ...
Operating System and H/W for new Dev Workstation
Arsen V. -
7 Sep 2006 8:26 PM - 3 messages
Hi, What's the best OS to use on a Development Workstation? The dev environment includes projects in: VB 6.0, C++ (Visual Studio 6) ASP 3.0 ..NET 1.0 (Visual Studio 2002) ..NET 2.0 (Visual Studio 2005) ...
OpenFileDialog: MyComputer
Mike Wesling -
7 Sep 2006 8:22 PM - 4 messages
Hi, does anyone know how to show the OpenFileDialog with "My Computer" as InitialDirectory? I tried it with openFileDialog.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyComputer); but it didn't work, unfortunately. ...
Mystery Solved
Bob -
7 Sep 2006 8:15 PM - 2 messages
It was a V1.1 project after all. I had forgotten I still had 1.1 on my machine. Duh. Bob ...
Locking memory and multiple timers?
FredC -
7 Sep 2006 8:08 PM - 6 messages
I have an application that uses mulitple timers. Each of the timer event handlers manipulate a common array of data. I'm getting Null refererance errors - should I put a lock on the array when I change a value? As well, should I lock the array when I only want to read a value? ...
C#/OOP Frustrations:)
Shawn Ferguson -
7 Sep 2006 7:47 PM - 4 messages
Hello All, I'm starting to learn C# and OOP to become a better programmer, however I;m getting frustrated. It's tough, but what is making it really tough for me is trying to do everything with objects in mind. Here is a typical example of a scenario that I could choose different ways to approach. I have a class called Pet. Pet has an insert, update, delete, get all, get specific methods inside the class. I have a form that has the pet properties (fields) on it. I want to insert the pet (fields) properties inside a database when someone clicks the Insert Button. The first method I tried was to use the ObjectDataSource control. It doesn't work, it gives me errors on the ControlID, then when I add a control ID, it gives me a different error "Target Invocation Exception" on the ObjectDataSource.Insert() method. ...
Busy Sockets
WhiteWizard -
7 Sep 2006 7:36 PM - 4 messages
Assume for a moment (and yes, I DO know what happens when you assume something ;), that at a given point in my Windows application that I try to use a socket and it tells me that it is "busy" and I KNOW, without a shadow ...
Creating the same class w/o duplicating?
Brett Romero -
7 Sep 2006 7:26 PM - 8 messages
I need a static version of a class that can be referenced anywhere as a singleton and the same class that can be used as instances. Can this be done without basically creating the same class twice (one with ...
Array.Resize question
heddy -
7 Sep 2006 7:19 PM - 8 messages
I have an array of objects. When I use Array.Resize<T>(ref Object,int Newsize); and the newsize is smaller then what the array was previously, are the resources allocated to the objects that are now ...
Converting a PDF File into Word
kalamantina -
7 Sep 2006 7:12 PM - 4 messages
Hi everyone, I am trying to build a small library ( in C# and VS2003) that accepts a PDF file and converts it to a word document. During this process all alignments are to be kept. Is there a way to deo it through code, I am playing with the ...
Large object heap...
Atmapuri -
7 Sep 2006 7:04 PM - 6 messages
Hi! If the array is allocated from the large object heap does that mean that it does not have to be pinned down when passed to unmanaged code? Is the limit of 1000 elements as the switching point between small and large object heap ...
Windows Service
John F -
7 Sep 2006 6:58 PM - 3 messages
Hello All, Can SetWindowsHookEx and a global keyboard hook be implemented in a C# Windows Service? I can trap the print screen key in a regular windows application, but the same code simply doesn't catch the key press when I set ...
How to stop an Application Pool in IIS 6.0 in c#?
M Craig -
7 Sep 2006 6:08 PM - 7 messages
I'm trying to write a custom installation engine to plug into our existing build system. Some things I'm trying to do are, Create/Delete/Start/Stop Application Pools, Web Sites, and Virtual Directories. At this point I'd be happy if someone can provide a sample of how to ...
convert string to string array
kvicky -
7 Sep 2006 6:04 PM - 7 messages
I have multiline textbox and I am trying to do a search functionality based on the input entered in this Textbox. I am able to convert into a string array if the search components are separated by commas, for ex ...
Gettin started with C#
wannabeSeriousProgrammer -
7 Sep 2006 5:56 PM - 4 messages
Though I do not have industry experience, I am not at the beginning level and have been exposed to amndy lanaguges. Currently, I am reviewing Java with intention to get to J2EE. I am currently taking intermedite VB.Net. I have registered for an online C# class at a local college with ...
Interop - string from dll issue
Jason -
7 Sep 2006 5:06 PM - 6 messages
I am trying to retrieve string data from a c++ dll: extern "C" __declspec( dllexport ) const char * getbagstr(); extern "C" __declspec( dllexport ) const char * getbagstr() { const char * buff = g.getbag()->getbagstr(true).c_str(); return buff; ...
Creating Events
Hoop -
7 Sep 2006 4:48 PM - 13 messages
Hi, I have a timer class and I would like to send an event based on specifc times from the timer, example at maybe every 500ms call a function, most likely a callback, similar to the way the Systems.Timer works. ...
Help with Exception handling
VMI -
7 Sep 2006 4:44 PM - 4 messages
I have two classes in my web app: the interface and the DB connection. In the method that connects to the DB, there's a try..catch statement that looks like this: public DataTable connectToDB() { try { // CONNECT ERROR. Wrong server name ...
Selecting a PictureBox
Fao, Sean -
7 Sep 2006 4:22 PM - 6 messages
I'm working on a Windows application (VS 2005) that I will need to be able to select images I've added to a FlowLayoutPannel. I was attempting to select the various PictureBoxes and noticed that it wasn't ...
.NET/SQL viewer
TheSteph -
7 Sep 2006 4:19 PM - 5 messages
Does anybody know a tool that I could use to see all SQL statements send by my application (C# .NET 2.0 ) to SQL Server ? I know Delphi has that kind of tool. Thanks Steph. ...
Finding Current/Active Session ID
Ahmed Perlom -
7 Sep 2006 3:49 PM - 5 messages
Hi all, How can I know if the session ID that a certain process is running on is actually the active session that he consol is connected to. I can get the session id of a process by Process P = Process.GetCurrentProcess(); ...
Delegate Question: How does it know?
needin4mation -
7 Sep 2006 3:25 PM - 6 messages
Learning about delegates (again, I admit), I think I finally get it, maybe. I can reference any method in any class in the same namespace as long as it has the same signature. Right? But how does it know? Does the .NET runtime keep a list of all the ...
How do I know my collection was modified?
Steve Barnett -
7 Sep 2006 2:49 PM - 4 messages
I have a user control that includes a StringCollection. I provide my users with a property that retrieves a reference to the string collection so they can add and remove items from it, just as you would do if this were, for ...
creating 2 indexers in dotnet 2?
Elhanan -
7 Sep 2006 2:46 PM - 5 messages
hi.. i would like to create something very much like DataTable, only for it to hold actuall objects (not their string representation) i saw that DataTable as DataColumn Collection which has to 2 indexes, it can bring up a columns by name or by it's ordinal number, is there ...
Enum Serialization as Integer or Literal
Diego -
7 Sep 2006 2:25 PM - 4 messages
I have an Enum like this: public enum DAYS { Monday = 1, Tuesday = 2, Wednesday = 3, Thursday = 4, ...
Queue.Contains(myobj) return always false..
semedao -
7 Sep 2006 2:15 PM - 9 messages
Hi I have some Queue object that I enqueue other objects into it. I want to check if someobject already exists before enqueue , using the Contains method but italways return false. in the object that I enqueue I implement CompareTo method (Icompareable) ...
how to prohibit writing to a collection by other threads ?
bonk -
7 Sep 2006 2:13 PM - 10 messages
Does anyone have a simple example on how to prohibit that any thread other than the current thread modifies a certain object (a collection) while we are in a certain section of the code? In other words: while we are inside this codeblock whoever might think ...
Serialisation fails, but without any errors being thrown.
Greg -
7 Sep 2006 1:54 PM - 3 messages
I have a bizarre situation in which serialisation is failing routinely under a specific condition, and I'm wondering if the details ring a bell with anyone here. I have 2 classes that my application serialises before closing down. One of these classes contains a string field which contains a path to a ...
Windows Service on Win2003 server
Michael -
7 Sep 2006 1:48 PM - 4 messages
Hello, I have created a windows service in C# that watches a folder, then moves files place in it to another server. When I test this service on my local machine it runs great. I have had it running for about 5 days now. I have ...
BLOB Binary data in database
MarcelV -
7 Sep 2006 12:51 PM - 2 messages
Hi Experts, I am trying to add documents (xl, doc, pdf, image) into our database. In this case it will be an access database because of the local caching. But that is not the issue. I managed from a windows form with drag/drop or fileselecter to select ...
Properties Get and Set
Madhavi -
7 Sep 2006 12:20 PM - 4 messages
1) Cant i write a Set without a get public bool cccc(bool kkk) { set { If (kkk=true) { bool rrr; hhhhhh jjjjjj } } } 2) and how do i return the value can i say in the same above set get { return rrr; ...
strange build error
Jakub Cermak -
7 Sep 2006 11:54 AM - 3 messages
Hi all, when I try to build my solution in Release mode (debug mode is ok), I get following error: Error 74 Could not find file 'Microsoft.Windows.CommonLanguageRuntime, Version=2.0.50727.0'. ...
Convert PHP pack() function to C#
gogaz -
7 Sep 2006 11:27 AM - 5 messages
Hi, PHP has a function called pack() ([link]). I need to translate some code that uses this function to C#. What's the C# equivalent of pack()? Basically in php $i = 1038; pack("N", $i); ...
Print out contents of a hashtable
Water Cooler v2 -
7 Sep 2006 11:21 AM - 5 messages
I can't believe I've stumbled on a simple problem such as this. After all these years, that too. Anyway, it goes that I just realized that I could not iterate through my hashtable and print out its contents. On further probing, I realized ...
|
|||||||||||||||||||||||