Home All Groups Group Topic Archive Search About

Visual C# .NET

microsoft.public.dotnet.languages.csharp
Score where can i get this namespace?
dhnriverside - 9 Apr 2005 8:07 PM - 4 messages
Hi I've used a converter to convert from VB.net to C#, and the resulting code uses the namespace Microsoft.VisualBasic.CompilerServices Where can I get this namespace? I can't find it in references or anything. Cheers Dan ...
Score Encryption Provider with PUBLIC decryptor and PRIVATE encryptor?
blesh - 9 Apr 2005 7:42 PM - 2 messages
I have a need to encrypt information with a private key and decrypt it with a public key.  As odd as that sounds, that's what I need.  I need to make sure the public can't duplicate the encryption.  Is there an ...
Score how to call Two processes sequentially
Ray5531 - 9 Apr 2005 7:33 PM - 3 messages
In my application I have two lines like: 1) Process.Start(Exe1) 2)Process.Start(Exe2) Problem is that these two guys run together ,and I want the first process is run first and when it's finished the second process is called. ...
Score Marshal.PtrToStructure crashes
Tyron - 9 Apr 2005 7:11 PM - 4 messages
I want to get the Position of the Mouse when the User click in the non-client area of a Window. WM_NCLBUTTONDOWN seems to be the right Message for this - and the LParam contains a POINTS struct of the Mouse Position (so the speak on MSDN. ...
Score VB.NET Books for C++/C# Developers?
.NET Developer - 9 Apr 2005 5:19 PM - 2 messages
I'm an experienced C++/C# developer, looking for VB.NET books with the following focus: (1) VB.NET WinForm development for C++/C# Programmers (2) VB.NET (or C#) Custom Controls (Design Time) Thank you in advance. ...
Score XmlDeserialize problem
m96 - 9 Apr 2005 2:27 PM - 5 messages
hi, i have a problem with XmlDeserilisation which drives me crazy. i know i must be missing something very trivial... i'm trying to parse the folling xml file i really would appreciate any help. cheers... === <?xml version="1.0" ?> ...
Score 2 dimensional arrays collection - how to?
Macin - 9 Apr 2005 11:39 AM - 2 messages
Hi, I need to create a collection of 2 dimensional arrays. How can I do this? What type of collection? And the second question would be, how can I then display all of the small arrays at once as showed below? ...
Score Panel as menu
Szymon Kosok - 9 Apr 2005 10:39 AM - 3 messages
Hello, I want to make menu with panel component, but i have one big problem. If user click outside panel, it (panel not user lol) must be hidden. (just like main menu component) It's there way to make it possible? ...
Score What is the difference between: readonly and const
My4thPersonality - 9 Apr 2005 10:17 AM - 14 messages
I am reading something about the details of C#, and I came acros the statements readonly and const. I do not understand, it seems to be the same, what's the difference? Here is the text were it refers to: ...
Score creating namespaces - how to organise solution.
dhnriverside - 9 Apr 2005 9:07 AM - 2 messages
Hi peeps I want to create some namespaces and dlls to encapsulate some common functionality. Here's what I want. Me Me.CompanyA Me.CompanyA.BusinessObjects Me.CompanyB. Me.CompanyB.BusinessObjects Me.Utils Me.Utils.Security ...you get the picture. Ideally I'd like each namespace to be in a seperate ...
Score TcpListener how to abort?
Coder - 9 Apr 2005 7:21 AM - 3 messages
hi, i have a simple question; Suppose that followig code is a thread; /***************************************************/ listener = new TcpListener( IP, PORT); listener.Start(); while(running) { sock = listener.AcceptSocket(); // this is blocking... suppose no client connects /*bla bla bla*/ } /***************************************************/ How can i release(dipose, free) the listener socket. i have tried ...
Score autorun maker
Ray5531 - 9 Apr 2005 6:51 AM - 12 messages
I'm looking for a good Freeware autorun maker for my C# application.Any suggessions? Thanks ...
Score Need an experienced professional's ADVICE
Keith Smith - 9 Apr 2005 3:43 AM - 9 messages
I know this is a little off topic but I hope it is still acceptable to this forum.  Please read this carefully.  I am not looking for a quick answer - I am hoping to find someone who has been in my shoes before... ...
Score calling a shell32 function from C#
vikram Nayak via .NET 247 - 8 Apr 2005 11:32 PM - 3 messages
Any tutorials / samples on how to call a shell32,user, kernel function from C# thanks, ----------------------- Posted by a user from .NET 247 ([link]) <Id>ggZviDuAt0+dTZLvBvWX5A==</Id> ...
Score Multi-dimension arrays
HarryTjr - 8 Apr 2005 11:07 PM - 4 messages
I tried making a 3x3 array like static int[, ,] Table = {{1,2,3},{4,5,6},{7,8,9}}; The example from the docs is for a two dimensioned array and it works fine. Are dimensions greater than 2 disallowed? ...
Score Problem wit .NET forms
Boni - 8 Apr 2005 10:43 PM - 2 messages
Hi all, starting from about a week ago I have strange behavoir of VS2003. All .NET forms in designers are loading very slow (about 5 min) and the processor load goes to 100%. I can't remember to change something in the options or ...
Score Convert from string to byte[]
Yama - 8 Apr 2005 9:25 PM - 8 messages
Hi, I have the following binary data: StringData = 800006000000; which is equivalent to the following: byte[] bytes = new byte[6]; bytes[0] = 0x80; bytes[1] = 0x00; bytes[2] = 0x06; bytes[3] = 0x00; bytes[4] = 0x00; bytes[5] = 0x00; How can I parse the string StringData  to the equivalent byte array above? ...
Score VS 2003 COM Server and Delphi Client
glenn - 8 Apr 2005 8:50 PM - 2 messages
I have a COM Server I wrote according to a book I have in C#, VS 2003.  I can call the object fine from a VB Script, however, if I try to import the type library into Delphi 6 I get a "type not validated" error on Byte, ...
Score Converting String to User Defined Type
gmccallum - 8 Apr 2005 8:43 PM - 6 messages
I am trying to convert the value of a string to a defined enum value such as follows. public enum MyEnum { One, Two }; string MyString = "One"; // or even this is fine string MyString2 = "MyEnum.One"; // This doesn't work (obviously), but effectively this ...
Score (urgent) Binary data to byte[] array
Yama - 8 Apr 2005 8:43 PM - 4 messages
Hi, I have the following binary data: 0x800006000000 which is equivalent to the followin byte[] bytes = new byte[6]; bytes[0] = 0x80; bytes[1] = 0x00; bytes[2] = 0x06; bytes[3] = 0x00; bytes[4] = 0x00; bytes[5] = 0x00; How can I parse the binary to the quivalent byte array? ...
Score Compiling a C# Source File
OutdoorGuy - 8 Apr 2005 8:40 PM - 7 messages
Greetings, I was wondering if it is possible to compile two C# source files at the same time?  I am attempting to use the code below from a Command Prompt, but am receiving an error: csc C:\C#\C#_Samples\frmMain.cs frmInstructions.cs ...
Score what is the meaning of this syntax ? public ComboBoxExItem(: this("")
Sagaert Johan - 8 Apr 2005 8:23 PM - 3 messages
Hi i found this in an example class, but never saw this syntax before. thais was inside a derived class of a combobox public ComboBoxExItem() : this("") { } public ComboBoxExItem(string text): this(text, -1) { } why isthe method followed by  : this ("")   ? ...
Score Reflection
Alexandre - 8 Apr 2005 8:20 PM - 5 messages
Hi, i currently know how to instantiate an object which has no parameters in the constructor. but i have objects which do have parameters in the constructor, how do i go about instantiating it. can some one please point me in the right direction? ...
Score needing help about pointers and 'System.NullReferenceException'
Ghada Ayed via DotNetMonster.com - 8 Apr 2005 8:13 PM - 2 messages
Hello every body, please help me in this problem i have written the following C# code in VS.Net and when i run the window application i have got  'System.NullReferenceException' so please if anybody can help reply to this message. ...
Score overloaded constructor, access zero-argument constructor
mblatch - 8 Apr 2005 8:08 PM - 4 messages
This is probably a C#-101 type question, but I've struck out on finding an answer.  I am setting up a class with a few overloaded constructors. Inside those constructors, I would like to call the "default" zero-argument constructor.  The compiler gives me an error ...
Score Serializable and adding fields
Steve Teeples - 8 Apr 2005 7:25 PM - 5 messages
I have a simple class that is Serializable() so that I can read/write it to/from disk.  Functionally it works great.   However, I soon learned that if I added a field or property to the class that I could no longer read the ...
Score help with reading fields in a text file
Vicky via DotNetMonster.com - 8 Apr 2005 6:11 PM - 7 messages
Please  help with reading fields in a text file. I need to get the index name, (ticker field in text file), Please see one file as an example (There are actually 1000 files) If we open the file, the text includes Header and data ...
Score How do I hook into the Load event of the base Control class?
Robert Werner - 8 Apr 2005 6:03 PM - 7 messages
I want to write one general purpose set of code that will handle the population (where required) of all controls on a form.  Though I'm new to C# my instinct is to somehow hook into the Load event of the Control class, as ...
Score modify a char in string
Zeng - 8 Apr 2005 5:20 PM - 12 messages
Hello, Is it true that in C# we can't modify directly a character in a string? I can't find the method anywhere. I would expect something like this should work,but it doesn't string myStr = "blah'; myStr[ 3 ] = 'e'; ...
Score When is a Thread considered dead?
cider123 - 8 Apr 2005 5:19 PM - 4 messages
I have a simple Window Service that loads up a list of Folders to monitor, along with parameters for a maintenance profile. Every time the interval is reached, the Window Service spawns off a Worker thread: .... _ActiveThread = new Thread(new ThreadStart(_WorkerThread.ThreadStart)); ...
Score Access Variables Across Classes
Jim - 8 Apr 2005 5:09 PM - 2 messages
I'm hoping someone may be able to help me.  I have a page the displays information "content.aspx".  At the top of this page I show a "breadcrumb".  The breadcrumb is a templated custom control.  The ...
Score leading 0s omitted when exporting to Excel
kscdavefl - 8 Apr 2005 4:55 PM - 2 messages
When I export the contents of a datagrid to excel, the leading 0s of the first column are truncated.  Is there a way to keep this from happening.  I am using the following code: private void ExportToExcel()         { ...
Score converting sql datetime to just time in c#
M.Smith - 8 Apr 2005 4:42 PM - 4 messages
I am returning a datetime from SQL and need to populate a field with just the time... I have tried: DateTime.Parse(TheTime.Hour.ToString()) + ":" + DateTime.Parse(TheTime.Minute.ToString(); But that does not return the correct HOUW format. Any suggestions? ...
Score UserControl: How to use ClipRectangle in OnPaint handler
TT (Tom Tempelaere) - 8 Apr 2005 4:15 PM - 8 messages
Hi everyone, I'm developing a custom control that basically draws a circle. However I notice that when I resize a form that contains the control, there is a lot of flicker. I suppose that is because I'm not clipping using the ClipRectangle ...
Score Microsoft SQL Desktop Engine - using
1qa2ws - 8 Apr 2005 4:01 PM - 9 messages
Hi, who can use MSDE 2000? If I develope an application with C# having MS Visual C# .NET 2003 Standard which uses SQL Server, can I distribute my application with MSDE? 1qa2sw ...
Score C# OODB / Post Relational - Your thoughts
Mark Everett - 8 Apr 2005 3:57 PM - 2 messages
Hi, I am going to be undertaking a large project that I am going to write in C#. I want to use an object oriented database to reduce development times and allow me to write clean object code without cluttered ugly ...
Score DllImport and debug ...
Fabien Penso - 8 Apr 2005 3:33 PM - 3 messages
Hi. I imported a .dll in my C# code and call a C function that takes a struct of pointers of functions as callback functions. It seems to work fine (the callbacks function wrote in my C# code are called) for this ...
Score connection pool errors
Phil Townsend - 8 Apr 2005 3:16 PM - 3 messages
I have tried (apparently in vain) to correct the constant "connection timeout error" in asp.net pages. We have switched to Applicatin Data block, with little success. We have combed through all of our code to make sure that datareaders are closed and resources deallocated and ...
Score MS Visual C# .NET 2003 Standard - license
1qa2ws - 8 Apr 2005 3:15 PM - 6 messages
Hi, I need a license (can be scanned one) for the MS Visual C# .NET 2003 Standard. Can anybody send it to me? 1qa2ws ...
Score C++ question
web1110 - 8 Apr 2005 3:14 PM - 7 messages
Hi y'all, This is the wrong venue, but I have C++ question. I was playing with VS 6.0 and tried this program: #include "stdafx.h" #include <iostream.h> class prop { private:    int x;    int y; ...
Score Missing first parameter exception.
BillZondlo - 8 Apr 2005 3:13 PM - 6 messages
I am new to VsC#. Am working on Visual Studio .NET Pro 2003. I wrote a solution that is a form containing 2 buttons. Button1 uses folderBrowserDialog to select a directory. Button2 uses saveFileDialog to get a file name. Then the file names from the directory selected are then written to the text ...
Score VB.NET DataAdapter.Update
Joe Fetters via .NET 247 - 8 Apr 2005 3:09 PM - 3 messages
Have googled and read the VS.NET documentation can't seem to get the answer to the following. Environment: Framework 1.1 VB.NET WinForm Access database Using all automagic tools (DataAdapter Wizard with generated Dataset and generated Select, Update, Insert and Delete commands, controls bound to DataSet using the Advanced Databinding properties) ...
Score User Control has no impact on parent control carrencyManager
David K. - 8 Apr 2005 2:45 PM - 4 messages
My question concerns C# Windows Forms user controls. I have created navigation user control. It gets the consumer application parent control's (a Form) CurrencyManager to its bindable property. In the user control, any change in the CurrencyManager position is displayed OK. ...
Score reading from a process sdtout
palaga - 8 Apr 2005 2:02 PM - 3 messages
Hi I'm starting an external process that writes data to stdout, and I want to get back these data. So I use myProcess.StandardOutput (everything is correctly set, I can read the data). to read data, I use myProcess.StandardOutput.ReadLine( ). (the data is ...
Score Generate picture C#
John.Arthur - 8 Apr 2005 1:57 PM - 5 messages
Hello, I need to create picture containing number that I will write in the picture. I need it to show it to the users of my application and they will write the number in a textBox, so this is to prevent automatic ...
Score using applications built with dotnet
Jozsef Bekes - 8 Apr 2005 1:26 PM - 6 messages
Hi All, I have a question about how to use the final product I build with dotnet. I used to work with VC++ 6, and there was an option in the project settings to either use the MFC dlls or build the exe in a way that the MFC dlls are not ...
Score Application error in event log
Wayne - 8 Apr 2005 1:23 PM - 3 messages
I have an application where I added a comment as the first line of my Config file, as I found out I can't do this. However, an entry was made in the event log about the error (Source = .net Runtime): ...
Score Change Window Class Name
Flo - 8 Apr 2005 1:23 PM - 3 messages
Hi I got a C# form that imports a DLL i developped. I need this DLL to find the form's window handle (using FindWindow API function for example). I thought doing this by using RegisterClass function for my form class name, but i did ...
Score Low, high, bandpass filter using DirectX
Woojtos - 8 Apr 2005 1:14 PM - 2 messages
Hi, I have a problem. I don't know how to create lowpass, highpass and bandpass filter. I capture the sound using CaptureBuffer from DirectX library. Then I create memory buffor as follow: int BUFFER_SIZE = 100000; byte [] data = (byte[])captureBuffer.Read(0 , typeof(byte), ...
Score Closing event
Al the programmer - 8 Apr 2005 1:01 PM - 7 messages
I want to catch the Closing event for my form.  I created a test windows app using the wizard.  I then create the Closing event by clicking the lightning bolt on the properties pane.  The code is added to the app but my app won't ...
Score write to an xml file
juli jul - 8 Apr 2005 1:00 PM - 3 messages
Hello ,I am trying to do something like that in order to write content of one xml file to other  : XmlDocument xml_new=new XmlDocument();        File.Copy(this.file_name,xml_new.Name); But it fails,why? ...
Score Learning C# after you studied the books?
My4thPersonality - 8 Apr 2005 12:53 PM - 3 messages
Hello, I've read quite a lot about .NET and C# now. It's no big surprise, it's not that difficult since I know C++ and some Java. But it's all passive learning. Is there any free tutor, or a good book that gives you some real ...
Score Delegates and Events
FredC - 8 Apr 2005 12:53 PM - 5 messages
When multiple objects (say ClockA, ClockB, ClockC ...) from the same class (Clocks)have the same delegate ( say secondTick) that calls the event handler serviceClockTick, do the events stack up in a some sort of a queue, do they preempt each other safely, does a preempting event push an existing event out ...
Score Messagebox.Show ignores my call
Allan Ebdrup - 8 Apr 2005 12:46 PM - 5 messages
When I try to Messagebox.Show() a string that is 197680 or more chars long, my call is simply ignored, no error is thrown, the call is simply ignored. 197679 chars or shorter is shown correctly. Is it a XP or dotNet bug? ...
Score asp.net 2.0
Phil Townsend - 8 Apr 2005 12:43 PM - 3 messages
I've been a little out of the loop--has ASP.NET 2.0 been released yet, or is it still in beta? *** Sent via Developersdex [link] *** ...
Score [ANN] edtFTPnet 1.1.6 released (Open Source C# FTP Client)
javaftpclient - 8 Apr 2005 12:31 PM - 3 messages
Enterprise Distributed Technologies is happy to announce the immediate release of edtFTPnet 1.1.6, the popular .NET library for embedding full FTP capabilities into .NET applications. edtFTPnet is Open Source (LGPL) and can be freely embedded into commercial applications. It supports a wide range of FTP commands, and ...
Score problem with adding attachment to mail
Bart Stes - 8 Apr 2005 11:55 AM - 3 messages
Hey guys, I'm try to write a very simple winform app that allows the users to send an email. I use the System.Web.Mail MailMessage class for this. But when it comes to adding an attachment, something appears to go wrong. ...
Score problem with Mail attachments
Bart Stes - 8 Apr 2005 11:47 AM - 4 messages
Hey Guys, I'm trying to write a very simple thing that allows a user to send an e-mail from a windows form app. I use the System.Web.Mail MailMessage class for this and then send my e-mail ...
Score problem with adding attachment to a mail
Bart Stes - 8 Apr 2005 11:47 AM - 2 messages
Hey guys, I'm try to write a very simple winform app that allows the users to send an email. I use the System.Web.Mail MailMessage class for this. But when it comes to adding an attachment, something appears to go wrong. ...
Score Re: Packaging MSDE in with Winforms C# app, using Windows packages
Andrew D. Newbould - 8 Apr 2005 11:39 AM - 2 messages
In message <h9RMd.6491$B8.6***@fe3.news.blueyonder.co.uk>, Paul Aspinall <p***@aspy.co.uk> writes Everything I have found on the subject of packaging MSDE in your own MSI or InstallShield package says "Just Don't Do It". It has many with ...
Score Classes
Josema - 8 Apr 2005 11:19 AM - 3 messages
Hi, Im reading some examples in internet about classes, and i see in some cases that the name of the classes should be like nouns (for instance: class person, inside namespace company, inside of another namespace called country)... But in another webs, i see that there are people that call to his classes ...
Score Serialize a Form.
objectref - 8 Apr 2005 11:11 AM - 6 messages
Hi to all, let's say i have a form with 2 buttons and 3 textboxes on it. Is there a way to Serialize the form so when i de-Serialize and cast it to a Form, i will get back the original form with the textboxes ...
Score binding a struct array to a DataGrid
Nony Buz - 8 Apr 2005 11:05 AM - 2 messages
I have an Array of a struct that contains int's and a string.  I would like to display that in a DataGrid, how do I do it?  There will be an extra field that will get updated which is not in the ...
Score How to write a CommandText to include db values
Chief - 8 Apr 2005 11:00 AM - 3 messages
Hi, i am baffled with this simple problem. I want to try and pull out some info from a datatable, using a sql query. i don't want to use a stored procedure. How do i phrase my commandtext? i've messed ...
Score In code can I determine if I am a release or debug build
Paul Tomlinson - 8 Apr 2005 10:34 AM - 4 messages
Is there a special variable or anything that *in code* I can check - I only want to messagebox in debug build. ...
Score fetching data asynchronously using ado.net dataset
Srinivasan R - 8 Apr 2005 10:13 AM - 2 messages
Hi, I am trying to get asynchronous fetching of data from sql server database. I would like to show the progress of fetching records in GUI. Is there any simple/complex steps for the same in C# using ado.net. Please help me. Have ...
Score Windows Service Problem
Victor - 8 Apr 2005 10:06 AM - 3 messages
I made a window service with c# and when the machine were the service is installed is reset and start again, the service is started but it doesn`t go, i stop and start the service and it goes perfectly, what ...
Score How to - Access another application's Text
news.microsoft.com - 8 Apr 2005 10:03 AM - 6 messages
Hello How can I access another application window's Text?  It is ilistview if seen by spy++. I know we have to get the windows handle and read the text. But I cannot seem to find any c# code for that. ...
Score Custom Attributes (AttributeTargets.Property) and Property Type
Zarko Gajic - 8 Apr 2005 9:58 AM - 2 messages
Hi I've create a custom attribute class "MyAttribute" with [AttributeUsage(AttributeTargets.Property)] Is there a way to get the type of the property myAttribute is applied to? I need to raise an exception if "MyAttribute" is attached to a non-string ...
Score Disable programmatically raised events
Max Weber - 8 Apr 2005 9:57 AM - 3 messages
Hello, Is there a way to avoid an event to be raised programmatically ? As an exemple : ScrollBar.ValueChanged is raised when the value of the scrollbar changes, whenever the user moved the slider or some code has been executed which changed the value of the scrollbar. How to avoid ...
Score Datagrid scrolling....
Gidi - 8 Apr 2005 8:45 AM - 2 messages
Hi All, i have a datagrid table that contains customers names, and a textbox which the user enters the customer name and the datagrid's dataset is updated so the customer name will be first. anyway i want to that user will be able also ...
Score encrypt/decrypt
Hrvoje Voda - 8 Apr 2005 8:14 AM - 5 messages
Does anyone knows a good example of how to encrypt/decrypt a string? Hrcko ...
Score Problems with GDI+ and transparent PNG-Imges
felix - 8 Apr 2005 7:16 AM - 5 messages
Hi, I tried google and searched the old posts -- with no success. Like a zillion of people before I have a problem when rendering transparent PNGs with GDI+ and the C# Graphics class. The image shows am object on a ...
Score write text file into dataset
WebSim via .NET 247 - 8 Apr 2005 7:13 AM - 2 messages
Hi, I want to read a text file, and then write it into dataset. Is it possible? or Is there any solution that read text file into DB? ----------------------- Posted by a user from .NET 247 ([link]) ...
Score EventLog Class
McKool - 8 Apr 2005 7:13 AM - 2 messages
Hello. I'm making a Windows service with C#.  This service connect a comm Port when start and disconnect it when stop. I use an EventLog class to write information about this service, by example, when the port get connect or ...
Score VS .NET 2003: Debug vs. Release
muz dogru - 8 Apr 2005 7:01 AM - 3 messages
Hi, my question is concerning the visual studio .net 2003 environment. In C++ projects for example, it is possible to define different postbuild codes for debug configurations and release configurations. I have tried to use different postbuild scripts for these two configurations for my ...
Score Did microsoft invent their own unit of time?
Michael C - 8 Apr 2005 5:15 AM - 8 messages
I'm installing the dot net framework and it was stuck on "Time remaining: 6 seconds" for a while so I started to time it. After 25 seconds it went up and said it had 10 seconds remaining. It's now just finished another 3 ...
Score Question about FileAttributes Enumeration
Edgardo Rossetto - 8 Apr 2005 5:08 AM - 2 messages
Quoting from MSDN docu: "This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values" I don't get it, how can I check if FileSystemInfo.Attribute has the Hidden and System attribute, or maybe only one of those? ...
Score best way to stop arrow key functionality
timma - 8 Apr 2005 5:05 AM - 2 messages
I've got a c# winform control that I've created.  Any time I press down arrow or up arrow, even though I try to handle the key, it tries to take focus away from my control.  I've tried this with a bare ...
Score Collect the data
Vivek Sharma - 8 Apr 2005 3:32 AM - 3 messages
Hi, Under the current scenario I am fetching around 700 records in an application and keeping the recordset open.  The reason being the user wants to navigate through the records anytime. I am not sure if it is the best ...
Score any solution for my problem?
roopeman - 8 Apr 2005 2:39 AM - 2 messages
Dear all;       Do you have any solution for my problem? i need monitor network printer server 's job info. to a mdb Database . somebody can help? Thanks! i can not found some uesful help in website! ...
Score DeviceIoControl from C# ?
Michael Allen - 8 Apr 2005 12:47 AM - 3 messages
I would like to perform something similar to the below function in C# .NET. The C++ below code is from a Microsoft DDK sample driver application. Specifically, I would like to perform Device I/O Control from a .NET application. ...
Score C# program with repeating records printed in Crystal report
Alpha - 8 Apr 2005 12:13 AM - 3 messages
I have a C# program that user would select several search criteria and then outputs to the Crystal Report.  A message is output to user if no matching record is found.  In my code I also clear, removed and dispose of the table ...
Score c++ question
Big D - 7 Apr 2005 11:41 PM - 3 messages
I could not find a c++ news group, So I appoligise for posting here. I have written a c++ program that takes in arguments to create paramaters for many different applications or netowrk info. One parm that I take is ...
Score Thread Marshalling help
Steve - 7 Apr 2005 10:17 PM - 2 messages
I have two objects, each on a different thread.  Object 1 periodically fires an event, which Object 2 sinks.  How can I marshall the event from Object 1 to the thread on Object 2? ...
Score Overriding Properties
ESPNSTI - 7 Apr 2005 10:11 PM - 3 messages
Hi, I'm very new to C# and .Net, I've been working with it for about a month. My experience has been mainly with Delphi 5 (not .Net). What I'm looking for is for a shortcut way to override a property without actually having to reimplement the get and set methods. ...
Score Closing a Form
Sherwood Page - 7 Apr 2005 9:49 PM - 6 messages
Greetings, I have a "newbie" question related to forms.  I have the following code in which I display a second form when a button on the first form is pressed (using the "Click" event). private void btnClickMe_Click(object sender, System.EventArgs e) ...
Score Where's the DOCUMENT object
AcademicUser - 7 Apr 2005 9:41 PM - 2 messages
An instruction stated "...change the Title property of the DOCUMENT object to..." Where's the DOCUMENT object in a VS C# project? Thanks, Norman ...
Score Icon in EXE
Brian - 7 Apr 2005 9:29 PM - 2 messages
I want to add an icon to my project's exe file, so that when i create shortcuts to it, they use that icon.  I've added the icon to my project and marked it as an embedded resource.  I've changed my form's icon property to use ...
Score Deep/Shallow copy when returning objects (DataTable) from methods
bubby - 7 Apr 2005 9:04 PM - 2 messages
Should I be concerned about the classic "Deep/Shallow" copy problem when returning objects, specifically a DataTable or DataView from a method?  For example, see the code below: private DataTable LoadStuff() {   DataTable dt = new DataTable();   ....   dt.Columns.Add(...) ...
Score Integrated Security
Emmanuel - 7 Apr 2005 8:51 PM - 2 messages
Hi, I would like to make an application that uses the windows access control list to enable/disable features of the application depending on the user. The idea is to reuse the Windows NT user accounts and groups and allow the ...
Score Fundamental question about bound controls
kaborka - 7 Apr 2005 8:15 PM - 5 messages
I have a WinForm with controls bound to a typed recordset that was generated by the Dataset Designer.  There are several ComboBox controls with their DataSource bound to different lookup tables.  Everything is working fine, except when I need to handle a null default value in the data record coming ...
Score C# ASP .NET Book
emr - 7 Apr 2005 7:25 PM - 3 messages
Can you please suggest me a good book? i' ve never done asp or something similar before. ...
Score Initialize Array
MAF - 7 Apr 2005 7:08 PM - 2 messages
Is there a quick way to initialize an array with one value for example int[] IDs = new int[100]; I want all items to be initialized to -1. ...
Score Suggestions to control concurrent users...
pnp - 7 Apr 2005 7:05 PM - 9 messages
Hi all,     I've developed a win C# app that is actually database driven using SQL server 2000. The idea is that only one application will be installed on a server in a network and the program will be able to run at each client ...
Score validate attribute usage
tolisss - 7 Apr 2005 5:56 PM - 2 messages
Hi i have to custom attributes for using with properties. What i want to do is instruct the compiler to throw a warning or ever better an error if both attributes are used in the same property. Is it possible? any ideas? ...
Score open binary file and search hex string
Nikos - 7 Apr 2005 5:41 PM - 5 messages
Hi... I would like to search for a hex string (for example: "E903") inside a binary file... Although I open the file correctly, how do I search hex values? Thanks in advance! Nikos ...
Score How can i get the Property value using Reflection (Return type: Collection of controls)
Mudassar - 7 Apr 2005 5:03 PM - 2 messages
i want to get the property value using reflection. Scenerio:   i have a status bar on MDI form. it has property named "Panels" and i want to get a specific panel from that panels collection using reflection.     Please let me know. ...
Score Evaluate true in C# using switch
Jim - 7 Apr 2005 5:02 PM - 5 messages
Hey all, I'm hoping someone may be able to help me.  I need to evaluate some strings to see if their values are  what I expect and it doesn't seem to work.  Any help you can provide would be really appreciated. ...
+=
Next » 2 3 4 5 6 7 8 9 10