Home All Groups Group Topic Archive Search About

Visual C# .NET

microsoft.public.dotnet.languages.csharp
Score how to create a public enum to be used accross classes in my solut
diatom@newsgroup.nospam - 21 Apr 2007 8:18 PM - 3 messages
Hello, I would like to create an enum that can be used accross all the classes in my windows solution.  How can I do this. TROUBLESHOOTING I created a new .cs file in my windows solution.  I call it Enumerations.cs. ...
Score Inherit ComboBox / Windows Vista
Nathan Laff - 21 Apr 2007 5:23 PM - 7 messages
Why when I inherit a ComboBox and make no code changes, when I set the new control DropDownStyle to dropDownList it appears different than the standard ComboBox control on Vista? In Windows Vista when this mode is set, the control is all one color ...
Score Combo Box DropDown Style
kashifsulemani - 21 Apr 2007 4:36 PM - 2 messages
Combo Box DropDown Style. A combo box is bound to a data table field name. When combo box has simple / drop down style then bound is successful. Other hand if Combo box has drop down list style then bound is ...
Score Datasets or object model for "standard app"?
Burt - 21 Apr 2007 4:05 PM - 5 messages
I'm working on a Windows app that pulls data from SQL Server, displays it on various forms and grids, and allows the user to update, insert, delete data. Some but not much business logic, just validation and and some processing, like allowing the user to import data into the db ...
Score newbie question up multi-table update
GS - 21 Apr 2007 3:36 PM - 4 messages
I am using VS 2007 express Sp1 dotnet 2 what is the best way to deal with multi-table update/add? I found an example of using TransactionScope with a couple of database connection.  DO I have to use one connection per table even if the tables ...
Score how to tranfer file using networkstream through sockets in c#..
shahla.saeed - 21 Apr 2007 9:54 AM - 4 messages
hi, plzz check my code and let me know where the problem is lying...becuase whenever i try to tansfer the file of 573KB(mp3) it just tranfer few Kb of file(Somtimes 5.2Kb,somtimes 32Kb..every time i ...
Score changing culture on datetimepicker
marcussilfver - 21 Apr 2007 6:59 AM - 3 messages
I want to change the culture on a DateTimePicker The code below works somewhat. I get the date in english format when dateTimePicker1 is not expanded. When I click dateTimePicker1 in my application GUI though (and thereby expands dateTimePicker1, showing ...
Score Recording Audio
chandrika_503 - 21 Apr 2007 6:45 AM - 2 messages
Hi ,         I am Working as a C# Developer and I am new to this Lang . I want to Record Audio using C# program . i did it by using Microsoft Directrix .Now the Problem is , I want to record Three members voice ...
Score OT: Can somebody who knows the Bible well help me learn something?
9-11 Was An Inside Job - 21 Apr 2007 2:35 AM - 2 messages
OT: Can somebody who knows the Bible well help me learn something? I've always wondered. Who brings the anti-christ into power to rule the world from Jerusalem; the Jewnited States or the Muslims? <!-- 9-11 Was An Inside Job --> ...
Score Any advantage to this syntax...
rlrcstr - 21 Apr 2007 12:28 AM - 17 messages
Is this: A = B = C; Any more efficient than: A = C; B = C; In the compiled application? Thanks. J ...
Score Problem with Method handling a BaseClass parameter
Andreas Schmitt - 20 Apr 2007 9:21 PM - 6 messages
I have a problem here. I've read a book about C# already and got the basics of how the language handles polymorphism I think but I ran into a problem here that I simply never even thought of as a problem coming ...
Score threading and delegates
RobcPettit@yahoo.co.uk - 20 Apr 2007 8:43 PM - 5 messages
Hi, this is a hard question to ask without posting some code, so sorry if its to much. Im using a control which Ive added labels. Basically I want update the data every second. Ive rad up on threadind and now ...
Score Manual hyperlinks in XML docs (see cref)
Ron Ruble - 20 Apr 2007 7:34 PM - 3 messages
Is there a way to manually enter a url in the XML summary comments in C# source code modules? I have some components I'm creating that apply fairly advanced XPath queries and XSL transforms, and I wanted to link to the W3C ...
Score naive question
GS - 20 Apr 2007 6:44 PM - 4 messages
how to setup different events for a control? I double lick a control in designer I get either clicked event or text changed event depending on control. don't shoot me with the next comment - I am just leaning .net studio with ...
Score How to find unused methods?
Frank Rizzo - 20 Apr 2007 5:56 PM - 9 messages
Is there a setting in VS2005 to quickly locate methods that are unused (maybe through compiler warnings)?  If not, any utilities out there that do that? Thanks ...
Score VB6 Color From Long - Equivalent in C#
Harvey Triana - 20 Apr 2007 4:35 PM - 5 messages
Hi. Say, in VB6: Const CLR2 As Long = &HFFF0DC ' light blue AnyObj.BackColor = CLR2 - How is the equivalent one in C#? Thanks, <Harvey Triana /> ...
Score User defined mesage in C#?
Eric - 20 Apr 2007 4:28 PM - 4 messages
When porting the Win32/MFC code to C#, I do not know how to deal with those user defined windows messages. I just cannot cannot find an equivalent thing in C#. Those messsages are so convenient in C/C++, especially when a thread ...
Score Changing the value of a DateTime
billygotee - 20 Apr 2007 4:21 PM - 8 messages
Hi, Okay this is taking longer to figure out than I thought it would.  The integer members of a DateTime  (such as DateTime.Minutes, DateTime.Seconds, etc.) can only get the value, not set it.  Is there ...
Score How can I copy the graphics inside a picturebox to the clipboard?
cakirsoydan - 20 Apr 2007 4:06 PM - 3 messages
Hi, I drew some graphics inside a picturebox by using "GRAPHICS" class. Can you please show me a way to copy these drawings to the clipboard? Then, I will paste them to Word. Thanks in advance for the help. ...
Score How to tell who referenced me?
JSBarten - 20 Apr 2007 3:43 PM - 3 messages
I have a class library that I'm using from both a windows form application and a web services.  Is there a way to tell if the refrencing/executing assembly is a windows form application, web service or other?  Basically, I want to possibly display information ...
Score MethodBuilder.CreateMethodBody
shark - 20 Apr 2007 2:27 PM - 3 messages
Hi, MethodBuilder.CreateMethodBody creates the body of the method using a supplied byte array of Microsoft intermediate language (MSIL) instructions. Is there any way to create and compile method at runtime created from byte[] of c# code? i.e. public int sum(int a, int b) ...
Score Install custom action fails when assembly signed w/ strong name ke
Jack Smith - 20 Apr 2007 2:06 PM - 11 messages
Hello, I have a solution that contains a C# application that is installed and runs as a service.  The solution also contains several DLLs, some of which are C# assemblies and some are C++ DLLs.  The service application references the ...
Score How can I capture a signature?
jmDesktop - 20 Apr 2007 2:04 PM - 7 messages
I have a writing/sketch tablet attached to a PC and want to capture the signature with c#.  I am not using a tablet pc or a pda, but a regular computer.  I am using 2.0 framework. ...
Score Can generic types be overloaded?
muler - 20 Apr 2007 1:46 PM - 4 messages
Hi, [Section 20.1 The C# Programming Language;Anders Hejlsberg, Scott Wiltamuth, Peter Golde] " Generic types may not be "overloaded"; that is, the identifier of a generic type must be uniquely named within a scope in the same way as ...
Score ToolTip over a DataGridView row?
gregarican - 20 Apr 2007 1:19 PM - 5 messages
I have a standard VC# 2005 DataGridView showing a group of records coming from a table. Currently I have a CellMouseDoubleClick event popping up a MessageBox which pulls a timestamp of the transaction from a related table based on the row in the DataGridView that the ...
Score C# Source to independent (from .net framework) binary compiler (alternative to remotesoft)
sam - 20 Apr 2007 12:57 PM - 8 messages
It can compile .net code to native code which can run without an installed .net framework. This would remove one of the greatest disadvantages from C#. Sounds quite interesting. [link] But it`s a bit expensive. ...
Score ConfigurationManager
Johnny Jörgensen - 20 Apr 2007 12:36 PM - 3 messages
I don't get the ConfigurationManager object. All I want to do is store my application settings and retrieve them on the next run. I instantiate the Configuration: static private Configuration m_Config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); I check if my setting exists: ...
Score LINQ and OO
David Veeneman - 20 Apr 2007 12:30 PM - 4 messages
I've been hearing a lot about LINQ in connection with Orcas, the next release of VS.NET. Micorosoft touts LINQ as the Next Big Breakthrough, but it looks to me like further muddying of application layering. I use an ...
Score SqlDataAdapter.Fill() Performance isues
Baudin - 20 Apr 2007 12:25 PM - 3 messages
Hallo all, I have the following problem. I'm trying to fill a DataTable in a DataSet with data from an SQL server 2000 database. I create a SqlConnection, SqlCommand and finally an SqlDataAdapter with which I fill a table in my DataSet with the ...
Score Call javascript from ASP.net content page
weird0 - 20 Apr 2007 11:05 AM - 3 messages
How can i call a javascript from a asp.net  content page on the clicking of a button. Where the Hell should I place the code which should be, I guess: <script> function Open() { window.open('AddAccounts.aspx') ...
Score Grab data from string
Arjen - 20 Apr 2007 10:57 AM - 5 messages
Hi, I have a string with a lot of text. I want to filter out some data. I know some characters before and after the wanted data. I know that there is a substring method but this one use a fixed length, a ...
Score treeview expand client-side attributes
csabadapp - 20 Apr 2007 10:37 AM - 3 messages
i have a treeview (id="trv") i would like to do something like this: trv.Attributes.Add("onexpand", "javascript:alert(this);"); i cannot make this work i would like to know if this is the way I should do it, or should i ...
Score Error message when service fails to start
Christof Nordiek - 20 Apr 2007 9:51 AM - 2 messages
Hi, the Service I wrote in C# may fail to start for some reason. I can report that failure to the SMC resp. to the net start command by setting ExitCode to a non zero value and then throw an Exception. ...
Score DllImport with CallingConvention.StdCall and _cdecl
Ezmeralda - 20 Apr 2007 9:38 AM - 2 messages
Hello, in some old projects I am using DllImport with its default CallingConvention.StdCall, but the according DLL uses standard _cdecl calling convention. To my understanding this should not work, since the calling convention does not agree - in fact it seems to ...
Score Active Directory query doesn't work...
aziegler - 20 Apr 2007 9:16 AM - 4 messages
Hello, everybody. I'd like to do this: For a big program (a web service) I need information about the usergroups an active-directory-user is member of. To be more precise, I need to know if a particular user is in a particular group or not. ...
Score Dataset and the empty rows
Shum - 20 Apr 2007 9:00 AM - 3 messages
Hi! i have a question.. I'm filling a dataset from a table in which some rows are empty, i dont want those empty records to be filled in the dataset.. Does any one know how to restrict it to only non empty ...
Score yet another GUI/Console question
per9000 - 20 Apr 2007 8:48 AM - 4 messages
Hi, I've written a small app that I mostly want to run from the console. Sometimes I want the output in a GUI instead to facilitate a "Save As" feature etc. I created a nice form etc and the switch -g prints the ...
Score Query MS Access data 'like ....' from CSharp
Tea - 20 Apr 2007 8:39 AM - 2 messages
Please help me ! My data in Microsoft Access Query direct in MS Access : I wrote      Select * from TableA where field1 like '*abc*' Query from Visual Basic : I wrote      Select * from TableA where field1 like '%abc%' ...
Score convert byte[] to an type
sklett - 20 Apr 2007 8:00 AM - 6 messages
I wasn't sure how to phrase the subject. Currently I'm storing a file as a byte[] in a database, when I want to work with the file I download the byte[] and write the data to a file on disk ...
Score Slot information
Tracid83 - 20 Apr 2007 7:18 AM - 5 messages
hi, I use wmi to get slot information from remote computer.I want to know the name of the device connected on the specific slot. Thanks for your help Tracid ...
Score create .chm file using c#
Supriya - 20 Apr 2007 7:15 AM - 8 messages
Hi All,     Is there any way to create .chm file programmatically? Please let me know. Thanks in advance.     Supriya ...
Score C# Doubt.
vvsarun - 20 Apr 2007 4:37 AM - 2 messages
Hi, i wants to use GetBitmapBits and SetBitmapBits functions with my Bitmap object in C#. i have imported above said functions from GDI32.dll. GetBitmapBits is working fine and i was able to get all the bits of the bitmap. Then i have updated the bits and called SetBitmapBits to ...
Score System.Web.Services exception
koredump - 20 Apr 2007 12:58 AM - 3 messages
Hi all, I have a windows app  that makes some asyc calls to my webservice (WSE 3.0 with MTOM). exception gets thrown in the client win app. This exception is being thrown on another thread by a class in the System.Web.Services ...
Score Why doesn't C# allow incremental compilation like Java?
mwelsh1118 - 20 Apr 2007 12:08 AM - 36 messages
Why doesn't C# allow incremental compilation like Java? Specifically, in Java I can compile single .java files in isolation. The resulting individual .class files can be grouped into .jar files. In C#, there appears to be no analog. I have to compile all my .cs ...
Score How to fill a DataGridView without freezing the UI thread
michael sorens - 20 Apr 2007 12:02 AM - 3 messages
The auto-generated line of code to fill a DataGridView once it is placed on the designer surface in VS2005 is typically: this.xyzTableAdapter.Fill(this.myDataSet.MyMember); But if the query takes a long time to run, this freezes the UI (in a Windows ...
Score Multiple images in a PictureBox Control
prynhart - 19 Apr 2007 11:49 PM - 4 messages
I have a PictureBox Control which is 96*96 pixels. I want to display nine 32*32 pixel bitmaps in this control arranged in a 3X3 square. How can I do this ? All the examples I've seen load only one image in the ...
Score Events between processes
Lubomir - 19 Apr 2007 10:06 PM - 4 messages
C#, .NET 2.0 Hi, I have two processes and I need that one process will notify the other. I could use the EventWaitHandle object and create an (named) event, but this doesn't allow me to pass any parameters. ...
Score Must inherit form doesn't show up in list.. bug?
Ronald S. Cook - 19 Apr 2007 9:10 PM - 3 messages
I have many forms in my Windows project.  When I go to create an inherited form, I see all my forms in the list of choices. HOWEVER, if any form is marked as must inherit, then it doesn't show up in ...
Score 3 Tier Inheritance
zmigliozzi@gmail.com - 19 Apr 2007 8:49 PM - 3 messages
I have a Super class (class1), a sub-class (class2), and then a sub- class of the sub-class (class3). In Class3 would the syntax for using inheritance be class Class3 : Class2 : Class1 or class Class3 : Class2 *since Class2 will already inherit Class1. Is that right?* ...
Score delegate in custom attribute
Nathan Laff - 19 Apr 2007 8:23 PM - 11 messages
I have a custom attribute which i use for fields in an enum. I want to pass around a delegate in these things. so i want to do something like this [MyCustomAttrb(string name, string desc, int value, delegate clickEvent)] ...
Score Making static class ToString() not possible, why?
Zytan - 19 Apr 2007 7:22 PM - 10 messages
"A static member 'function' cannot be marked as override, virtual or abstract" Is it possible to make a static class member function (which is also static, obviously) that is an override to ToString()?  Maybe it makes no sense to do such a thing... ...
Score Bug in C# 2.0 compiler?
evgeniy81@gmail.com - 19 Apr 2007 6:44 PM - 10 messages
When i try to compile something like this with c# 2.0 compiler there is a compile time error. class Foo    {         public int F(bool a, int b)         { ...
Score OdbcDataAdapter batch inserts
paul.d.mcswain - 19 Apr 2007 6:34 PM - 2 messages
This has probably already been answered, but it didn't show up when I did a search. I need to be able to perform a batch insert using the ODBC ADO.NET objects (OdbcCommand, OdbcDataAdapter, etc). I know that there are ODBC method to perform this via the DLL, but ...
Score System.Data.SqlClient.SqlException: An attempt to attach an auto-named database for file "Location"
weird0 - 19 Apr 2007 6:12 PM - 2 messages
System.Data.SqlClient.SqlException: An attempt to attach an auto- named database for file "Location" failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. I am getting the above the exception while connecting to the db and i ...
Score Preventing null propagation
Weeble - 19 Apr 2007 5:28 PM - 3 messages
Back in C++, I had a type that looked something like this (entering from memory so this might not quite compile): template <class T> class NotNull { private:     T* value; public:     NotNull(T* ptr) ...
Score MSBuild Visual Studio 2003
AdrianDev - 19 Apr 2007 5:15 PM - 3 messages
Hi, Is MSBuild.exe available for Visual Studio 2003 projects using .NET1.1 and if so where is is available from? thanks, ...
Score How do i get SCOPE_IDENTITY from INSERT query using tableadapter.
Devan - 19 Apr 2007 5:14 PM - 2 messages
Hi,   I have a table adapter for a database with an insert query. I want to be able to get the PRIMARY key of the inserted record for that insert statement. I know that SCOPE_IDENTITY is the database equivalent. How do i get that ...
Score Binding to datagridview
VMI - 19 Apr 2007 4:52 PM - 3 messages
I have a datatable with 3 fields, and I want to bind each one of these fields to one my Windows datagridview. In my case I have three datagridviews with one column each.  Is this possible? Even if the grid has one column, ...
Score Some c# interview questions
weird0 - 19 Apr 2007 4:19 PM - 11 messages
I heard of two c# interview questions that i still clearly don't know and havent understood the concept. One reason is also that I havent worked upon them 1. What is the difference between a reference and a pointer? ...
Score Service OnShutdown is not called
lb.weissman - 19 Apr 2007 3:38 PM - 3 messages
Hi, I have a simple service, which I want to stop normally. I added the method OnShutdown, and set the CanShutdown property to true. Still, when I restart the computer my OnShutdown method is not called. The OnStop and OnStart methods are being called. ...
Score Tab Pages ... yet again !!!
amir - 19 Apr 2007 3:22 PM - 3 messages
Hello all, I have a little problem. I have created a form and on it a tabControl. to the tab control i am adding pages dynamically with a class of my own which is called myTabPage which contains a TabPage with my own ...
Score design question, using xml-serializable objects with databound controls
KJ - 19 Apr 2007 3:06 PM - 2 messages
Hello Folks, I am working with a third party web service whose inputs and outputs are always passed as XmlNode objects. To work with this system, I am using two MS tools: 1) xsd.exe: to generate strongly-typed datasets from the Xml messages ...
Score RichTextBox - Show Unicode Control Characters
Bruce - 19 Apr 2007 2:19 PM - 4 messages
The ComboBox has a context menu with an option to "Show Unicode Control Characters". How can I use that context menu in a RichTextBox or call that functionality from a RichTextBox? Is there a way to do that. I'd be surprised if that was missing from RichTextBox and only ...
Score Smooth Scrolling Text using GDI+
Bishman - 19 Apr 2007 1:59 PM - 2 messages
Hi, I have been trying to get text to scroll smoothly accross a windows form using GDI+ and a timer. Changing the position of the text by a configurable amount and calling invalidate to force a redraw at various intervals ( based ...
Score Visio style flowchart line connectors
Rob - 19 Apr 2007 1:58 PM - 5 messages
I need to create graphical objects and connect them with relationship connectors that bind to the objects similar to Visio's connectors.  (The connector stay connected when the object is moved by the user.)  I have the objects, but I need to create the connectors.  I was wondering if anyone ...
Score how to invoke event
somequestion - 19 Apr 2007 1:44 PM - 3 messages
there are 2 class A and ALib class A is general class class ALib is library class this class call each other... A call Alib and then method of Alib call method of A....is it possible? class is like below.. ...
Score An IEquatable<T> object cast to IEquatable<explicittype> results in wrong Equals override called.
taumuon - 19 Apr 2007 1:43 PM - 6 messages
I've got an object, Person, that supports IEquatable<Person>. It implements bool Equals(Person obj) as well as overriding bool Equals(object obj) I've got a container type that holds a member object of generic type ...
Score Hyperlinks in datagrid!
rcoco - 19 Apr 2007 1:37 PM - 2 messages
Hi all, I have two datagrid, one has a list of allowed user of the second datagrid. The second datagrid is an inserting datagrid and it Function properly. Now where my problem is I need to be able to select a ...
Score Registration problem with COM interop sample.
SD - 19 Apr 2007 12:44 PM - 4 messages
Hi, I'm using the the MSDN sample "COM Interop Part 2 Sample" (CSharpServerWithCOMClient.sln). The C# COM component gets registered when the solution is built. Somehow the component doesn't get registered properly. When opened with OLE/COM Viewer the component throws up an error saying: ...
Score File Duplication check
giftson.john - 19 Apr 2007 11:43 AM - 5 messages
Hi, I am creating an application which migrates all documents from one repository to another repository. Before migration i have to verify all the documents are unique. No duplicates has to be uploaded. Event the document created date, modified date, filename can be different. ...
Score multi-cores & multi-processors how does that effect threaded programming?
Coaster - 19 Apr 2007 11:30 AM - 6 messages
I am designing a process which will spawn a good number of threads and some of them will execute a c++ process which is quite memory intensive (although not multithreaded). This will run on a 2 cpu (both dual core) server. What ...
Score GC.Collect can be trusted?
Ward Bekker - 19 Apr 2007 10:37 AM - 49 messages
Hi, I'm wondering if the GC.Collect method really collects all objects possible objects? Or is this still a "smart" process sometimes keeping objects alive even if they can be garbage collected? I need to know because I'm looking for memory leaks in an application. ...
Score why doesn't this DrawLine code do anything?
RichGK - 19 Apr 2007 7:40 AM - 3 messages
This is from [link](VS.71).aspx         public MainForm()         {             InitializeComponent(); ...
Score Exception handling in C#
s33k3r - 19 Apr 2007 5:29 AM - 3 messages
hi all, I'll try and be brief, coz in the mood I'm in now if I start ranting there's no stopping. Actually I wanted to know if i can do any thing except, print debug messages in the final catch handler. From all the samples I've seen ...
Score enterprise Library Configuration
Vinki - 19 Apr 2007 4:46 AM - 3 messages
Hello Everyone,    I am trying to add multiple connection strings in my web.config file. I searched in google to find out how to add multiple connections strings through enterprise library 2.0 , 2006. All of them are mentioning that I can go to enterprise Library configuration ...
Score reference form
MikeJ - 19 Apr 2007 2:30 AM - 5 messages
how can i reference a form from a class processing recordset to update the form.... im still new MJ ...
Score simulating low-bandwith, latency on web service
Jeff Jarrell - 19 Apr 2007 2:26 AM - 3 messages
I'd like to create a service-locator\proxy type service that I can use to simulate low bandwith situations and latency issues on the service under test. The request comes from the client, is processed through the proxy to the ...
Score Application.Exit() vs Environmrnt.Exit(0)
Taoge - 19 Apr 2007 2:14 AM - 2 messages
Hi All, When I use applcation.exit() in winForm application, the form closed, but the process is still going!! ( The debug process is still running if debug in VS IDE). Environment.Exit(0) works fine. But how to do in such following ...
Score Image chaching and graphics resources...
rlrcstr - 19 Apr 2007 1:57 AM - 4 messages
I've got a winForm that has a good number of custom controls with custom graphics that are stored as resources in the project. Recently, I updated all of the graphics with a new look.  Added all the new images into the resource file and deleted all the old images. ...
Score parallel and distributed build
schouwla - 19 Apr 2007 1:32 AM - 2 messages
Any chance that Visual Studio 2005 will support parallel or even discributed build on c# code soon? Lars ...
Score Implementing a login window
chance - 18 Apr 2007 10:39 PM - 2 messages
Hello, I want to implement a login window that should remain in focus until the user has entered the correct password. I am coming from the PowerBuilder world and there this was implemented has a response or modal window. I looked around in properties but can't seem to find ...
Score CloseMainWindow() doesn't appear to work under Vista
SteveT - 18 Apr 2007 10:32 PM - 7 messages
I have written a very simple application that simply spawns IE then closes it.  The issue I have is that CloseMainWindow() always returns a false indicating the message was never sent.  Does someone know why? This application is nothing more than a form with a button.  The button's ...
Score C# GetType - Why does it need an instance?
Richard Coltrane - 18 Apr 2007 10:19 PM - 4 messages
Hi there, In VB.net i can just GetType(string) to get the string type? In C# it seems i need to have or create a non null variable and myvar.GetType(). Is there a shorthand version of this like VB.net in C#. On a couple of occasion ive ...
Score Marshaling to c++ DLL vector
rdh - 18 Apr 2007 9:46 PM - 2 messages
I'm trying to call a C++ DLL with a parameter that is a vector<string>. The  C# program  Marshaling keeps throwing an exception. any thoughts? ...
Score (asynch tcp client) I'm missing something with this example
David - 18 Apr 2007 9:29 PM - 7 messages
[link](VS.80).aspx I was looking at above link and I just don't see the advantage of this. The main thread is just stopping and waiting for each of the ...
Score Communicating with a running process
kirk - 18 Apr 2007 9:05 PM - 3 messages
Can someone tell me the cleanest way to achieve this --> I have a running C# tray application.  It has a tray menu to let the user turn on and off things, like monitoring the CPU usage for example. ...
Score Re: How to access control properties on other form? (Windows Mobile)
BLUE - 18 Apr 2007 8:03 PM - 2 messages
Verify that TextBox1 is declared as public in Form2 class or that you have a public property to set TextBox1.Text. ...
Score Changing a list while iterating over its elements with a foreach loop
Andreas Schmitt - 18 Apr 2007 7:58 PM - 10 messages
I am somewhat new to C# and I ran into a problem in a small program I am writing for teaching myself. I am handling a list ob objects and I want to delete some of them inside a loop like in: ...
Score searchable textbox?
Bhadan - 18 Apr 2007 7:19 PM - 4 messages
This is a beginner question: I wish to make a textbox searchable for strings. Is this possible with a property of the textbox, or do I have to wright a method. TIA. Bhads. ...
Score databinding buttons verticaly
DH - 18 Apr 2007 6:13 PM - 2 messages
"web develepor here trying to get to grips with winforms" I have a list of departments for a restaurant menu i.e Booz, Burgers etc and want to display a vertical list of buttons (depts pulled from db). This would be done with a repeater control in asp.net ...
Score Application pausing: sleep or timers?
BLUE - 18 Apr 2007 5:54 PM - 3 messages
I would like to pause an application while the GUI display a Label saying "Logging in...". System.Timers System.Windows.Forms.Timer System.Threading.Timer System.Threading ==> Thread.Sleep Which one? In the last case Sleep must be applied to what(Application, this or what)? ...
Score excel process not terminating properly
chuckie_9497 - 18 Apr 2007 5:28 PM - 14 messages
hello all you gurus.  I am struggling with releasing com objects.  I have isolated the problem to the code below. Objects are released and the process ends until I use "int k = sheet.Count;"  Then the process does not end. So I feel ...
Score Code Access Security for native Apps
Vedo - 18 Apr 2007 4:38 PM - 2 messages
Hi, Is there a way to assign permissions to native applications in Windows? Like app x can only access this and this directories, app y cannot impersonate the remote users, etc. Something similar to the .NET Framework code access security mechanism. ...
Score Waitable Timer in C# ?
Eric - 18 Apr 2007 4:38 PM - 12 messages
I'm coming from Win32 world. Now, I'm porting the existing code to C#. I cannot find the equivalent Win32 Waitable Timer in C#. I have a thread to perform some task periodically like following: While(...) {     Do something ... ...
Score ICollection implementation
Ethan Strauss - 18 Apr 2007 3:53 PM - 2 messages
Hi,         I have a class which inherits from CollectionBase. I set it up long ago and it works fine. I just ran FxCop on my project and it wants me to "provide a strongly typed implementation of ICollection.CopyTo" for that ...
Score Static classes: to use or not to use?
BLUE - 18 Apr 2007 3:49 PM - 2 messages
I know it's a stupid question but... I want to use a class that represents the current user of my application, another one that reads position from a GPS receiver and another one that reads RFID tags from a reader. ...
Score failed to import ActiveX
Sagaert Johan - 18 Apr 2007 3:03 PM - 2 messages
Hi I tried to import an ActiveX into the toolbox. There seems te be a problem when the designer generates the wrapper assembly. Also tried to use Aximp with same error : The error is TYPE_E_CANTLOADLIBRARY. The ActiveX is properly registered and gives no problem when used in a html ...
Score WebService Security!!
Vai2000 - 18 Apr 2007 2:36 PM - 2 messages
I need to create a WS, that can be called by users who call it with a SSL Certificate a userID and password...Can someone tell me or point to resource how to accomplish it? Also can I have individual certs for different users? ...
Score Emulate HyperTerminal
C a r l o s A n t o n i o - 18 Apr 2007 2:29 PM - 8 messages
Hello, I have to submit a file via HyperTerminal using my PC's internal modem on a daily basis.  Does anybodoy know how to accomplish this in VS2005?  Any language is good, VB preferred.  Thanks. Regards, C a r l o s  A n t o n i o ...
Score Deep copy alternatives
bg_ie - 18 Apr 2007 2:11 PM - 2 messages
Hi there, In my application I have a Settings class which has two objects, userSettings and defaultSettings. When the application starts, I use a deep copy to set-up userSettings with the values found in defaultSettings. This was an akward process, as the Settings class ...
Next »