all groups > c# > october 2003 > threads for sunday october 12
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Updating Access DB with changes from a DataSet results in error.
Posted by Bryan Masephol at 10/12/2003 11:53:45 PM
Hi All
I have a OleDbConnection as the "connection" below. I'm retriving a =
dataset from an access 2002 db and displaying it in a DataGrid. I'm =
making the connection to my access db file with this connection string
"Provider=3DMicrosoft.Jet.OLEDB.4.0;Data Source=3D" + filename
and ev... more >>
how to run a window on a seperate thread
Posted by Serge at 10/12/2003 11:50:07 PM
Hi,
I have some intensive code that is running on my main thread. I try to show
a status update on a 'status form'. The problem that i have is that because
it is running in the same thread the window is not responding to the user.
The user is now able to minimize, move the window because th... more >>
Building Timeout in C#
Posted by woutervu NO[at]SPAM hotmail.com at 10/12/2003 11:09:16 PM
Hello all,
I am trying to build a class that does something, and may timeout while
doing so. Ofcouse I want to be a bit elegant, so I came up with the code
found below. Problem is, I can't catch the exception thrown on timeout.
Anybody knows how to correctly implement timeout behaviour?
B... more >>
C++ vs. C# vs. Assembly Language
Posted by nospam at 10/12/2003 11:08:10 PM
Just wondering,
What do you think the difference in performance would be between
(1.) Compiled C#
(2.) Compiled C++
(3.) and Assembly Language
And how would the mix be if some if any of these languages had to hit
against a SQL Server database
And would the differences be more or less ... more >>
float array to byte array
Posted by Cory Autry at 10/12/2003 10:22:16 PM
What is the best way to convert a array of floats to a byte array, or at
least have the ADO dataset assignment operator see the array as a byte
array.
Thanks,
Jim
... more >>
Numbers Question!
Posted by Vai2000 at 10/12/2003 9:56:01 PM
what's the best way of getting unique numbers when requested other than
creating GUIDs? Right now this is what I am doing but I am not very happy
with it.
Random rnd=new Random((int)System.DateTime.Now.Ticks);
int unique=rnd.Next();
TIA
--
========
Regards
Vai
========
... more >>
Text Box Question
Posted by Patrick De Ridder at 10/12/2003 9:17:21 PM
Re displaying text in a multi-line text box:
Is it possible to have a margin on the left hand side, or on both
sides, so the text doesn't come right up to the border(s)?
Many thanks.
--
Regards,
Patrick.... more >>
mysql problem
Posted by Dirk Reske at 10/12/2003 8:43:26 PM
Hello,
I'm using the bytefx.data library to connect to a mysql server:
string ConnectionString = "Server=localhost;Database=test;User
Id=Freak;password=freak;";
IDbConnection dbConn;
dbConn = new ByteFX.Data.MySqlClient.MySqlConnection(ConnectionString);
dbConn.Open();
I get an NullRefe... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Thread.sleep(10000) is using 100% cpu
Posted by grant_currey NO[at]SPAM hotmail.com at 10/12/2003 4:31:21 PM
Hi,
I have an interesting threading issue in c#. I put a thread to sleep
for an arbitary period of time, during this period the cpu jumps
straight to 100% utilization. As one could guess this is very
anoying.
any suggestions on why?
Regards
grant... more >>
Concurrent Connections
Posted by Steven Blair at 10/12/2003 4:14:12 PM
Hi,
I have Server application which handles a single conenction froma client.
I want this program to accept concurrent connections.
Anyone help me out ?
I am using a TcpListener object. I thought that this would accept concurrent
connections, but apparently not, sicne I have my server run... more >>
Transparent colour on ImageList doesn't work on button?
Posted by A Ratcliffe at 10/12/2003 4:04:53 PM
Should be simple, but...
Wanted to put some nice bitmaps on my First/Previous/Next/Last buttons, so I
created four 16-colour bitmaps (as a test), used the traditional magenta
colour for the transparent, and added an ImageList to the Form. I added the
images to the ImageList, set the Transparen... more >>
VB.NET to C# converter: where ???
Posted by Stefano at 10/12/2003 3:57:50 PM
dear Friends,
i need a VB.NET to C# converter.
Can someone help me ??
TIA
Stefano
... more >>
windows servcie?
Posted by ll at 10/12/2003 3:43:42 PM
Hi,
How to communicate with windows service?
For example, how to pass in parameters and get the return values like
calling a COM object?
Thanks...
... more >>
Constructor
Posted by Zoltan Hernyak at 10/12/2003 12:06:38 PM
Hi,
see my classes:
public class One
{
public One(string s) { .... }
}
public class Two:One
{
public class Two(int x)
{
...
}
}
what if I have to make some preparation before call the "base"
constructor from Two? for example:
public class Two(int x)
{
... more >>
Overriding ToString() in an enumeration
Posted by Neil at 10/12/2003 11:57:15 AM
Is it possible to override the ToString() method when
creating a simple enumeration?
public enum myEnum {
Undefined = 0,
Unassigned = 1,
Assigned = 2,
Reallocated = 3
}
I would like to be abl... more >>
Custom Action during Setup!
Posted by Vai2000 at 10/12/2003 8:36:29 AM
Hi All, I need to execute custom action during installation of my program
(through MSI). Creating the MSI was pretty straight fwd. After that I went
into the Custom Action Editor and added the custom action (EXE) at the
install condition. Unfortunately when I roll out my MSI I don't see the
cust... more >>
Reference type?
Posted by Jesper Denmark at 10/12/2003 3:36:23 AM
Hi,
I'm using a very nice implementation of complex numbers
(by Ben Houston). There is a thing that is a bit unclear
though, why does the code in the main section below work
without creating the object with 'new'. Who is allocating
foo on the heap. What is hidded?, does it have anything
... more >>
|