microsoft.public.dotnet.languages.csharp Archive - February 2004
Post a message to this list
Messages
Page: 1234567891011121314151617181920
2122232425262728293031323334353637383940
4142434445464748495051525354555657585960
616263
Why does this fail? Is my extern signature wrong? (9 replies)
microsoft.public.dotnet.languages.csharp
OK, I'm trying to programmatically create an Access database/mdb file but CreateDb(string) always returns false. I don't know what I'm doing wrong, is it my extern signature? Thx in advance my references: http://msdn.microsoft.com/library/default.asp?url /library/en us/vccore98/HTML/ core data source.3a .programmatically configuring an odbc data source.asp http://support.microsoft.com/default.aspx...
send utf-8 string http request (8 replies, VIP)
microsoft.public.dotnet.languages.csharp
I want to submit a utf 8 xml request to a servlet by the following coding. it seesm that the servlet can't recognize it correctly. can i just using string postData "..... utf 8 data" and then save the files at utf 8 encoded at the vs.net ide? or if i use string, vs.net ide will conside it to be utf 16??? UTF8Encoding encoding new UTF8Encoding(); string postData " ?xml version \"1.0\" encoding \"ut...
Creating a Pause in Execution (20 replies, VIP)
microsoft.public.dotnet.languages.csharp
What's a nice way to create a non blocking pause in execution? Will I need to use some kind of timer for this, or is there a nicer way?
WebService (3 replies)
microsoft.public.dotnet.languages.csharp
Hi, How can I use Webservices for transmit huge data to the database? thanks, dep
about inherited (3 replies, VIP)
microsoft.public.dotnet.languages.csharp
Hello: How I can know the class of some object?. Like in Object Pascal with this sentence TObject.ClassType SomeClass? Best Regards.
How to sort a datagrid when clicking on column? (3 replies, VIP)
microsoft.public.dotnet.languages.csharp
How do I enable my Windows Forms datagrid to sort when I click on the column header? I have a collection of custom classes that are displayed in my datagrid, and it works great except for this missing feature! AllowSorting property is set to True, but it doesn't seem to do anything. Thanks, Jon
Variable declaration intellisense... (2 replies, VIP)
microsoft.public.dotnet.languages.csharp
Hi all: I am almost positive someone showed me how to do this before, but I cannot remember how it is done. Problem: csharpcode public void DoSomething() { SqlConnection cn new SqlConnection(); } /csharpcode Before I type the first SqlConnection, how can I get the intellisense to pop up? (If I am not being clear, I want to get the intellisense to pop up when I declare the class type, much like wha...
Where to put images (3 replies, VIP)
microsoft.public.dotnet.languages.csharp
I'm new to win forms programming, and am having a bit of trouble figuring out where to place images that will accompany the program. Do you place them in the bin directory?? What if you are making a control library to accompany the app, and there are images that accompany the controls? Do you place them in with the library, but then how is it distributed if the control library is just a .dll? Sorr...
extendeddatagrid in VS 2002? (5 replies, VIP)
microsoft.public.dotnet.languages.csharp
Anyone know if I can find components similar to extendeddatagrid for VS *2002*?
html parser (8 replies, VIP)
microsoft.public.dotnet.languages.csharp
I want write a program with c# to pars a html file how ccan i do this with system.mshtml? or there is other way to do it p;ease help me?
App Module variable (VB-C#) (2 replies)
microsoft.public.dotnet.languages.csharp
Hi All, I was used to have a few global variables in VB module, so that each form or class can share the same value. Now in C#, I don't know how to do it. Is there an easy way? Thanks for any tip, Anony
csc error codes (3 replies, VIP)
microsoft.public.dotnet.languages.csharp
Does anyone know of a list of csc error codes other than the one in the MSDN documentation. Hunting through one codes per topic is a little ridiculous, IMHO.
Bound Control (2 replies)
microsoft.public.dotnet.languages.csharp
Hello, when you have bound a datatable to a control, say a comboBox and you have set the "ValueMember" and the "DisplayMenber". The cbo.SelectedValue returns the object which equates to the "ValueMember", but how do you retrieve the object which is associated with the Display Member? I have tried cbo.SelectedText, but that does not seem to do...I have tried cbo.SelectedItem...but again does not se...
how to call an event from an another event (2 replies)
microsoft.public.dotnet.languages.csharp
hi friends I need to call an event (private void groupBox4 Enter(object sender, System.EventArgs e)) from an another event (private void Appexit Closing(object sender, System.ComponentModel.CancelEventArgs e)),first of all is it possible to call an event from an another event? basically how to call an event? ..... hey Philip Rieck r u there? seash
C# DataGrid Issue (2 replies)
microsoft.public.dotnet.languages.csharp
Hi, I wanted to create some custom DataGrid columns that i could use in my DATAGrids and allow the user to use them. e.g. in addition to the TextBox, and Boolean column which are in the DataGrid by default, I would like to use, images and progress bar columns and perhaps any generic OBJECT column. With Regards Syed
how to create a nice GUI? (5 replies)
microsoft.public.dotnet.languages.csharp
hi can someone tell me, how i can create a really nice looking app? with nice effects do i need for this MDX (managed directx), or is it also possible with gdi ? for instance, windows media player 9 has a nice GUI thanx
gdi+ Flatten (3 replies, VIP)
microsoft.public.dotnet.languages.csharp
When i try using Flatten on my ellipse, i get 6 points no matter how fine i set the flatness parameter. According to my understanding of the documentation, the smaller i make flatness the closer the approximation should be, ie many more points in the approximation. What am i doing wrong? TIA!!! here's the doc: flatness Specifies the maximum permitted error between the curve and its flattened appro...
Drawing error,Help!Help!Help! (2 replies)
microsoft.public.dotnet.languages.csharp
My application have many picturebox objects,when run it ,sometimes i will have a strange error,how to work out ,help me please!(in windows98,the error cause frequently than in windowsxp) System.InvalidOperationExceptionSystem.InvalidOperationException: The object is currently in use elsewhere. at System.Drawing.Image.get Width() at System.Drawing.Image.get Size() at System.Windows.Forms.PictureBox...
"Posting" to GUI Thread from Background Thread (4 replies, VIP)
microsoft.public.dotnet.languages.csharp
I'm working on an app which uses a background thread to read data from a socket. At the moment I'm doing something a bit "naughty" I'm firing an event after reading from the socket, and this event gets picked up by an event handler in the GUI thread, without "synchronizing" with this GUI thread. How can I "synchronize" threads in .NET?
Read next in foreach ( string s in myArray ) (6 replies)
microsoft.public.dotnet.languages.csharp
Hello, I have a this: foreach ( string s in myArray ) { if ( s ""test") { } } How can I read the next "s" (if there is a next one) inside the current readed "s"? Thanks! Arjen
A Question of Style (4 replies)
microsoft.public.dotnet.languages.csharp
Should constant class member variables be held like this: public class Foo { public const int ConstVar 100; } Or like this: public class Foo { public int ConstVar { get { return 100; } } } Or even: public class Foo { private const int constVar 100; public int ConstVar { get { return constVar; } } } Since I've been using C# and .NET (about two weeks), I've been using the first way, i.e. public memb...
Measure my code (3 replies)
microsoft.public.dotnet.languages.csharp
Is there any tool (accompany with Visual Studio) which help me estimate the speed (or time duration of my application) ? Thanks
Some Facts About the Emerging C# Legacy (6 replies, VIP)
microsoft.public.dotnet.languages.csharp
Fact: F# Fact: J# Fact: XEN Q: What the hell are those 'facts' supposed to mean? A: Those are new languages and/or a code named development environment that Microsoft Research has been creating, each requires the C# compiler [1]. There is growing public awareness of these facts [2]. [1] http://research.microsoft.com/ [2] http://www.extremetech.com/article2/0,3973,1441657,00.asp % Clinton Gallagher...
A little help with Windows Services and threads (8 replies, VIP)
microsoft.public.dotnet.languages.csharp
Hi everyone, I need to make a service that monitors a directory for changes in the files contained within it. I have two questions: 1. I'm going to be using a FileSystemWatcher object to do the monitoring but do I need to somehow involve another thread to allow the service to do other stuff as well, or is another thread created automatically when the FileSystemMonitor object is created? 2. Because...
Exceptions: Order of Catch Statements? (9 replies, VIP)
microsoft.public.dotnet.languages.csharp
Could someone provide me with a URL documenting the specific order of exceptions? % Clinton Gallagher A/E/C Consulting, Web Design, e Commerce Software Development Wauwatosa, Milwaukee County, Wisconsin USA NET csgallagher@REMOVETHISTEXTmetromilwaukee.com URL http://www.metromilwaukee.com/clintongallagher/
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com