all groups > c# > december 2004 > threads for tuesday december 21
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
struct with fixed size
Posted by erdem at 12/21/2004 11:52:32 PM
hi all,
i guess this question had been asked many times but i couldnt find a way
how can we generate a struct with managed code with fixed size
i mean
struct easy
{
int a,b,c;
char[] name;
//or it can be string also
// string name;
}
i want all these objects type of easy have si... more >>
Hittest for segmented lines
Posted by gana at 12/21/2004 11:27:02 PM
Hello,
I'm drawing a segmented lines to a graphics object. I want to test for
each mouseclick event it should check whether the cursor is on the line. If
so it should select the entire line.
I'm createing a GraphicsPath object. Then adding each segments of the line
to this path. Then c... more >>
Adjusting Combo Box Height Property
Posted by Steve Le Monnier at 12/21/2004 11:26:31 PM
I've designed a user interface the uses the flat xp look for my controls,
but the crazy decision by ms to make the combo box 1 pixel higher than a
text box is really messing up my design.
I really need to adjust the size of this control without having to resort to
creating my own.
I have... more >>
Exception: Filestream will not open win32 devices.... don't use \ "\\\.\\\" in the path
Posted by Patrick Sannes at 12/21/2004 10:28:53 PM
Hi,
At this moment I have one large sourcecode file and want to seperate it into
multiple files. When I do so, the app crash after he created 6389 (156794880
bytes total) source files with the error:
Filestrem will not open Win32 devices such as disk partitions and tape
drives. Don't use \... more >>
ServiceController class not reporting status of service properly
Posted by Jonathan Leonard at 12/21/2004 10:14:23 PM
Hello,
I'm using the .NET class ServiceController to start my service. After
calling start, a subsequent call to ServiceController.Status is
returning 'stopped.' I know the service is running because it is
listed as 'Started' from the "Services Administrative Tool." Is there
some reason fo... more >>
Easy question drives me crazy.
Posted by ADLearner at 12/21/2004 9:59:04 PM
Why do some of the my text fields on a my webform background appear as yellow
by default. I have not set any properties nor have I added a CSS. Only
specfic controls appear this way. Is it possible to shut this feature off.... more >>
A beginner question about date format
Posted by Geri Reshef at 12/21/2004 8:02:31 PM
Supose I have a control Text1 with todays date (21/12/2004).
How can I show it in a "yyyymmdd" format?
Solution like Text1.Value.Year.tostring() + .....Month.tostring() + .... =
Day.tostring() seems to be unelegant..... more >>
What good obfuscators/protectors for .NET are on the market now ?
Posted by Oleg Subachev at 12/21/2004 6:22:18 PM
What good obfuscators/protectors for .NET are on the market now ?
--
Best regards,
Oleg Subachev
subachev@ural.ru
... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
Is there a way to use Outlook 2003 controls in c# applications (for Visual Studio 2003)?
Posted by Dave at 12/21/2004 5:19:24 PM
Is this even possible? In particular, I'd like to use the calander
controls in Outlook 2003. I have Visual Studio 2003 installed and I
also have the full Office 2003 installed (with Infopath which I've read
means I have the fullest set of Office 2003).
If this is possible, what is the name of ... more >>
is it possible to change the back color of text on the groupbox control?
Posted by Luminal at 12/21/2004 4:34:49 PM
greetings
is it possible to change the back color of text on the groupbox control?
I change the back color property of groupbox but the label's text back
color stay the same (grey). If it is possible, how?
TIA
Almeida... more >>
Getting the parameters passed to a function and log them
Posted by Julia at 12/21/2004 4:04:03 PM
Hi,
I have been asked this before but I think that I didn't explain myself well
I am using exception and logging and I would like to log the parameters
which was passed to the function
whenever an exception was occurred,again,I want to emphasize that I am the
owner of the code.
I can ... more >>
Event handling in UserControl
Posted by kannan at 12/21/2004 3:45:02 PM
hi,
I have created usercontrol which is having combobox and command button.
my requirement is, If i select some particular item in combo box, I will do
some process and i will remove this user control from my screen. When I do
this, it is successfully removing that control, but once come o... more >>
Reading binary data from web site
Posted by Pete Davis at 12/21/2004 3:15:11 PM
I'm trying to read some image files off of our web site and the code isn't
working. The files appear to be corrupt. The file size is correct the image
becomes corrupt after maybe 20 or 30 lines.
The url might be something like:
http://www.website.com/folder/chart1.jpg
And I want to save t... more >>
getting values for a given key in hashtable
Posted by SenthilVel at 12/21/2004 2:23:10 PM
how to get the corresponding values for a given Key in hashtable ??
... more >>
[OFF TOPIC] Merry christmas
Posted by Dennis Myrén at 12/21/2004 2:17:37 PM
I wish you all a merry christmas.
Now i am off for a week.
--
Regards,
Dennis JD Myrén
Oslo Kodebureau
... more >>
Methods, Named Parameters
Posted by Peter Hardy at 12/21/2004 1:39:36 PM
Hi Guys,
Can I use named parameters in C# Methods. i.e doFoo(fname="do",
lname="Foo");
Cheers, Pete
... more >>
How to send mail through OE?
Posted by Jeti [work] at 12/21/2004 1:39:22 PM
....and send it immediatley?
My goal is to send mail, and in the same time save a copy in a "Sent Items"
folder... Or if sending fails - to put that mail into "Outbox" folder...
Any suggestions?
OE APIs?
thank you...
... more >>
windows service with notify icon and contextmenu.. HELP!
Posted by chinimimita.hernandez at 12/21/2004 1:30:55 PM
Does anyone know how windows service work with notifyicon and contextmenu?
I was able to run the windows service with notifyicon part but when I
inserted the contextmenu command it didn't work. When I read the MSDN
articles about the windows service it says that if my WS needs to be
interac... more >>
Threading Question - New to Thread !!!
Posted by msnews.microsoft.com at 12/21/2004 1:10:51 PM
Hi All,
I have the following code. If the MessageBox.Show statement is enabled then
the "GetDataTableThread" is being started or else its state remains as
unstarted.
What should I do to start the GetDataTableThread Thread and make sure it is
started?
Any suggestions please?
Thanks... more >>
Sprites in C# sans DirectX
Posted by jpuopolo NO[at]SPAM mvisiontechnology.com at 12/21/2004 12:12:12 PM
All:
Does anyone have a sample (or a quick explanation) of creating a simple
sprite with C#? I want to write a simple game for my children.
Is it as simple as creating a PNG w/ a transparent color and "blitting"
(I am using C#, so "rendering" might be a better term here) the graphic
onto m... more >>
Can't sort DataSourced ComboBox?
Posted by MrNobody at 12/21/2004 12:07:04 PM
If I DataSource a ComboBox to a DataTable, and specify a column for
ValueMember and DisplayMember, everything comes out fine until I sort.
When I sort, it seems to sort the DisplayMembers separate from the
ValiueMembers, so for example ID 2 which used to map to "Widget" now might
map to so... more >>
Splitting with multiple spaces
Posted by Christine at 12/21/2004 12:07:02 PM
I have a text file that appears to be delimited by multiple spaces. The
split function will only work with one space if I am correct. Is there some
way to split this file into an array without getting the extra spaces?... more >>
txt1.AppendText appends extra char
Posted by Ron at 12/21/2004 11:21:32 AM
Greetings,
I am writing text to a multi line textbox on a timer as
follows:
txt1.AppendText(@"/* " + DateTime.Now.ToString() + "\n");
Here is what gets displayed
/* 1/1/2004 11:12:11 AM|
There is a pipe | char at the end of the string. I am
guessing it is the "\n" carriage return... more >>
VB.NET to C# converters?
Posted by aaa at 12/21/2004 10:47:13 AM
Are there any VB.NET to C# project converters out there?
TB
... more >>
MVP's: static methods in interfaces.
Posted by Picho at 12/21/2004 10:34:44 AM
Hi all,
I popped up this question a while ago, and I thought it was worth checking
again now... (maybe something has changed or something will change).
I read this book about component oriented design (owreilly - Juval Lowy),
and it was actually very nice.
The book goes on about how we sh... more >>
Authorization Manager Programming Issue
Posted by John Lee at 12/21/2004 10:30:04 AM
Hi,
Could someone help me on one issue regarding to Authorization Manager
(AzMan)? Thanks in advance!!!
I first open the AD based azMan store and an application, everything seems
work fine ... but when I tried to programatically to retrieve the tasks
defined for a specific role, instead of ... more >>
ForEach Support Inheriting From NameObjectCollectionBase HOW???
Posted by Mark Overstreet at 12/21/2004 10:27:16 AM
I am writing custom collections for my business objects but I need support
for the foreach construct. I also need key support so I am inheriting from
NameObjectCollectionBase. I need to support foreach something like
e.g. foreach (HostSystem hs in myHost.Systems)
Unfortunately the built... more >>
Improting Win32dll is managed or unmanaged
Posted by msnews.microsoft.com at 12/21/2004 10:21:22 AM
whether importing win32 dll and calling an API is managed call or unmanaged
call
... more >>
timer ability in serverside c#, triggered from aspx?
Posted by Jason Shohet at 12/21/2004 10:06:23 AM
There's common use of setTimeout() in javascript to cause a delay on the
client of an asp.net app.
I'm experimenting w/ a serverside delay. Ie, maybe there's a backend
process that I want to occur 10 seconds after the user hits the button on
the webpage -- not immediatly. Perhaps 1 codebe... more >>
control windows service
Posted by Ha ha at 12/21/2004 8:34:27 AM
how can i control a windows service through a web page,
for example:
start a service
stop a service
thanks
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!... more >>
'System.Data.OleDb.OleDbException' when creating a new DataSet..
Posted by brianbasquille NO[at]SPAM gmail.com at 12/21/2004 8:22:46 AM
Thanks for the advice with that Brian.
I found out using all the Exceptions that it's an OleDbException:
'Could not find installable ISAM'.
Anyone ever have any experience with this error before?... more >>
Q: DataGrid [Attribute] - $10 for answer
Posted by Bret Pehrson at 12/21/2004 8:13:53 AM
(I'm resorting to bribery for an answer here... First person to post to
_newsgroup_ a definitive and substantive answer (i.e. references), I'll give
$10.)
Question/issue:
I'm using a custom data source for my (WinForms) datagrid:
public class MyDataSource : IList
{
public void AddRow... more >>
DrawString and ellipsis problem
Posted by Herve Bocuse at 12/21/2004 7:53:59 AM
Hi,
I come from the MFC world and I can't get the same behaviour I add in
my old app with a new dotnet app written in C#.
I have a rectangle with a string inside and the user can drag the mouse
to shrink the rectangle width. While shrinking, a string "abcd" is
progressively displayed as:
... more >>
How to disable multi-threads in C# ??
Posted by microcode2004 NO[at]SPAM hotmail.com at 12/21/2004 7:19:18 AM
When I develop an application with VS.NET C#, when I click more than
one time on a button, it seems to execute many threads of the same
function.
How to disable it?
thanks... more >>
Database design question?
Posted by perspolis at 12/21/2004 6:46:39 AM
hi
I have two table named Purchase and Sale..all of fields of
both tables are the same...I make them design in one table
with an additional boolean field to determine which is Sale and Purchase...
it is good to design them in seperate tables without additional field??
or design both in one tab... more >>
programatically databinding
Posted by John at 12/21/2004 6:37:39 AM
Hi,
heres a brief description of what I'm trying to do.
I have a sql table named colors that looks like this:
color_id color_name
1 blue
2 red
3......... and so on
I created a composite custom control overode the
CreateChildControls method where I cre... more >>
reference all properties of a class within the constructor
Posted by Ric#k at 12/21/2004 6:13:01 AM
Is it possible to reference all the public properties that are in a class
within that class's constructor using REFLECTION, and then reference them
with a string variable?
I have a class that will have 35 integer values as public properties that
must be read in from a database. Also, each ... more >>
Referencing a non-self-registering DLL
Posted by ian at 12/21/2004 4:53:02 AM
Hi All
I have a DLL (nahd.dll) that has been supplied to me will a PBX phone
system. According to the documentation it is to allow developers to write
there own applications to monitor the system.
Now when I try to register this DLL I get an error.
“DLL RegisterServer entry point not f... more >>
'System.Data.OleDb.OleDbException' when creating a new DataSet..
Posted by brianbasquille NO[at]SPAM gmail.com at 12/21/2004 3:19:21 AM
Funny you mention that because that's why i didn't include more
information.. for some reason, i couldn't compile this try.. catch
block.
Can anyone give me the correct structure if i am missing something?
Does it have to be in a Main() method or anything? Haven't really used
try.. catch bloc... more >>
VISUAL C# 2005
Posted by romancingwithlife NO[at]SPAM fastmail.fm at 12/21/2004 3:01:18 AM
Has MicroSoft released Visual Studio 2004 or 2005 version ?
If not then should i buy Vc#.net 2003 or wait for the new version to released.
Thanks and Regards,
Ashish Thakkar... more >>
How to set focus to a particular row in datagrid ??.
Posted by Abhi poddar at 12/21/2004 2:57:01 AM
Hi Friends,
In a window form I have a datagrid and certain action of user
I want to select and set a focus to a particular row. I am to select a
particular row using dataGrid1.Select(int row), but I am not able to set
focus to that particular row.
... more >>
To add a taskbar to a C# application
Posted by vijayakumarg NO[at]SPAM gmail.com at 12/21/2004 2:34:23 AM
To add a taskbar to a C# application
Am currently developing a windows console application in C# (.NET
2003) and have a requirement to build a taskbar. The windows
application is designed to launch MS applications such as MS Word,
Excel, IE etc apart from third party applications which inclu... more >>
Enum question
Posted by ChInKPoInt [No MCSD] at 12/21/2004 2:26:35 AM
Say, if I got this enum defined:
enum Colors { Red = 1, Green = 2, Blue = 4 }
If someone passes me a string with value "Red" , how can I Cast it to enum
or convert the variable so that it returns Colors.Red?
string mystring = "Red";
... more >>
Enum question
Posted by ChInKPoInt [No MCSD] at 12/21/2004 2:26:25 AM
Say, if I got this enum defined:
enum Colors { Red = 1, Green = 2, Blue = 4 }
If someone passes me a string with value "Red" , how can I Cast it to enum
or convert the variable so that it returns Colors.Red?
string mystring = "Red";
... more >>
XPath Problems.. need help!
Posted by Chua Wen Ching at 12/21/2004 2:17:01 AM
Hi,
I read from this tutorial at codeproject
Question A:
http://www.codeproject.com/csharp/GsXPathTutorial.asp
regarding xpath.. but i try to apply in my situation, and can't get it work...
just say this is my xml file:
Device.xml
=========
<?xml version="1.0" encoding="utf-8"?>
... more >>
asynchronous
Posted by beginner at 12/21/2004 2:17:01 AM
Hello everyOne:
I want to use asynchronous technique in the recent project,but i
have no ideas of how to use it in c#?I also want to know it is suitable for
the recent project.I need some resource to get understand of it, or some
light on using it?
Resource will be more h... more >>
config web server
Posted by guy at 12/21/2004 2:09:20 AM
Hi All!
this is my first time that i write web application and i installed the iis
after the development environment . the problem is that the .net environment
doesn't recognize the web server.someone told me that i have to define that
in the registry or install again the environment and i wo... more >>
[Q] EndReceive Asynchron C# Socket
Posted by sky4walk NO[at]SPAM gmx.de at 12/21/2004 1:40:31 AM
Hi,
I'm implementing an asynchron socket Receiving method and I have a
question about EndReceive.
Read()
{
Socket.BeginReceive(buf,0,buf.Length,0,new
AsyncCallback(ReadCallback),dp);
}
ReadCallback(IAsyncResult asyncRes)
{
...
int bytesRead = Socket.EndReceive(asyncRes);
...
}... more >>
Event DataTable issue with Timer
Posted by Anders at 12/21/2004 1:39:36 AM
Hi again,
I have two classes Form1 and GenData. Form1 creates an instance of genData.
genData populates a Datatable and then sends it to Form1 using the event
seen below:.
private void updateDatagrid(object sender, DataTable dt)
{
if ( dataGrid1.InvokeRequired )
{
dat... more >>
Threading question
Posted by CK at 12/21/2004 1:21:19 AM
I have the following code in a windows service, when I start the windows
service process1 and process2 work fine , but final process (3) doesnt get
called. i stop and restart the windows service and the final process(3) gets
called. what am I doing wrong with the threading? by the way
Dire... more >>
Question about Destroying Objects..?
Posted by pachanga at 12/21/2004 12:51:24 AM
After you destroy a Object and its send to the garbage collections, can
you retrieve the object back? Also, if you can, can you destroy an
object permantly with no trace of it?
... more >>
windows services
Posted by CK at 12/21/2004 12:38:54 AM
Is there a way to tell a windows service to run between 9 am to 10 am?
Thanks in advance
... more >>
|