all groups > c# > november 2007 > threads for tuesday november 27
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
injection into Activator.CreateInstance ???
Posted by nguyen.panther@gmail.com at 11/27/2007 11:59:22 PM
Hi,
Are there any solution for me to perform dependency injection in
Activator.CreateInstance(myType) ???
Please help me.... more >>
Replace rows in dataGridView
Posted by YarivD at 11/27/2007 11:43:01 PM
Hi to all.
How can I replace rows with all of their data in a dataGridView ?
I tried to do copy, clone and more but the row is added\copied without the
data inside.
I found a way on the web to do it but in this way we need to pass on each
cell in a row and to determine the value of it. I ... more >>
Error while trying to run project [.Net 1.1]
Posted by Navaneet at 11/27/2007 11:42:39 PM
Hi,
I added identity impersonate ="true" in web.config file, It causes
error. Following is the error-
"Error while trying to run project: Unable to start debugging on the
web server. Server side-error on sending debug HTTP request.
Make sure the server is opening correctly. Verify the synta... more >>
Play media files
Posted by Kevin at 11/27/2007 11:26:03 PM
Hi!
What is the best way to reproduce media files (mp3, wav, wma, wmv, etc)?
Thanks =)
... more >>
ReaderWriterLock write order
Posted by Tom at 11/27/2007 10:26:39 PM
If there are multiple threads that make calls to
ReaderWriterLock.AcquireWriterLock(x), clearly all but one will be
blocked at any time.
Is the order at which the threads acquire lock (as the previous one
releases) the same order that the threads called AcquireWriterLock in
the first place (e... more >>
Move an image without flickering ?
Posted by Polaris at 11/27/2007 9:13:06 PM
Hi Experts:
My program (Windows Form with C# and .net 2.0) shows a bitmap (a bitmap file
selected by the user) and allows the user to drag it to different positions
within the client area. I use Graphics.Clear() and Graphics.DrawImage(...)
to repeatly clear the client area and re-draw the b... more >>
foreach, IEnumerable and modifying contents
Posted by jehugaleahsa@gmail.com at 11/27/2007 8:24:28 PM
I have a rather complex need.
I have a class that parses web pages and extracts all relevant file
addresses. It allows me to download every pdf on a web page, for
instance. I would like to incorporate threads so that I can download N
files separately.
The obvious solution is a thread pool. ... more >>
Configure Presentation Power schemes settings via WMi/API
Posted by rflazaro at 11/27/2007 8:12:00 PM
Hi All,
We are trying to build an automation utility to configure OS. I found a way
to automate the processes below via registry:
Control Panel -> Power Options -> Power Schemes Tab:
-> Power schemes -> Presentation
Turn off monitor Never
Turn off hard disks Never
System St... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ERP application in .NET
Posted by Andrus at 11/27/2007 5:04:30 PM
I'm looking for a bigger ERP application or framefork in .NET
preferably Open Source and C# but may be others.
I have seen a lot of such Java applications (ADempiere, OfBiz, Compiere)
..NET does not have anything.
Is it better to switch to Java /Eclipse/Compiere for creating ERP
appication... more >>
class question
Posted by Gunawan at 11/27/2007 5:00:47 PM
hi all,
I have an issue. It's rather hard to explain. I hope you all could
understand.
I would like to create a class let's say myclass.
in myclass I have some static void function
myclass.function1()
myclass.function2() and so on.
If I need to use function1() I could just type
my... more >>
Lets say I wanted my C# program converted to client side Java?
Posted by Peter Webb at 11/27/2007 4:52:53 PM
I need to make a reasonably big decision, and I need some advice.
I have used C# to make some pretty nice and potentially very educational
toys/animation. One does n body orbit simulations, another does gas
molecules interacting according to the ideal gas law, and another generates
hypercyc... more >>
set IDE file as ReadOnly
Posted by lausivcid at 11/27/2007 4:47:25 PM
Hi,
My project include reading XML files, I would like to set ReadOnly
via a Keyboard Hot Key combination on the test XML files when I open
them in the IDE. Is there an IDE Command I can setup with a Hot
Key combination?
Thanks,
Lausivcip ... more >>
Compare datetime value from datetimepicker with value within db
Posted by Mike at 11/27/2007 4:46:13 PM
Hi,
I use MS SQL Express and VS 2005 c#, win application.
I would like to select value rom DateTimePicker and list all values
for selected date within GridView.
I have method as follows:
public DataTable GetOffersForDate_A(DateTime OfferDate)
{
DataTable dt =... more >>
I need extract email address from the address book in Outlook Express
Posted by Alexander Vasilevsky at 11/27/2007 4:41:09 PM
I need extract email address from the address book in Outlook Express also.
http://www.alvas.net - Audio tools for C# and VB.Net developers
... more >>
Simple question Related to Generic
Posted by DNB at 11/27/2007 4:24:59 PM
I am using generic in the following example.
But I can figure out how to remove an item in the collection??
Thanks
DNB
------------------------------------------------------------------------------------------------
using System.Collections.Generic;
using System.Text;
pr... more >>
How to extract email address from the letter in Outlook Express?
Posted by Alexander Vasilevsky at 11/27/2007 3:43:37 PM
How to extract email address from the letter in Outlook Express?
http://www.alvas.net - Audio tools for C# and VB.Net developers
... more >>
Assembly.GetTypes Exception
Posted by Dan Holmes at 11/27/2007 3:01:51 PM
Assembly a =
Assembly.LoadFrom(@"c:\sandbox\iaf.net\serverinstall\IVS.WMS.Category.Server.dll");
Type []t = a.GetTypes();
The GetTypes fails with this message:
"System.TypeLoadException: Could not load type
'IVS.WMS.Product.ICategoryService' from assembly
'IVS.WMS.Category.Common, Versi... more >>
Specifying the parent when adding treeview nodes?
Posted by SQACSharp at 11/27/2007 1:30:35 PM
I'm using the EnumChildWindows API with an EnumChildWndProc callback
to populate the treeview. The output will be something similar to spy+
+
How can I specify the parent when adding a new node ??
When adding a new node is there any way to get an handle or something
else to be able add the... more >>
[general] multiple databases in a heterogeneous application
Posted by Wiktor Zychla [C# MVP] at 11/27/2007 1:13:36 PM
Sorry for posting here but I belive that this group is read by a lot of
people who could share their experience.
I am facing the issue of large system built possibly in different
technologies and using several databases. I am to develop the architecture
of such system.
What I did in the ... more >>
Parsing double precision numbers
Posted by marathoner at 11/27/2007 12:34:06 PM
After reading the string representation of a double precision
number, -0.417597000000000D+06, from a text file, I am unable to convert it
to a double precision number. Here is the code I am using:
string[] result = block.Split(charSeparators,
StringSplitOptions.RemoveEmptyEntries);
do... more >>
Deploy .NET 3.5?
Posted by Smokey Grindel at 11/27/2007 11:59:35 AM
I need to deploy .NET 3.5 to a domain... we deployed .NET 2.0 via group
policy before... but no idea how to do 3.5... any ideas? thanks!
... more >>
Drawing
Posted by Weste at 11/27/2007 11:35:01 AM
On my form is a panel which is used for drawing and several text boxes. All
of my code to draw my object is in the OnPaint method. When the form loads,
the drawing is done fine. However, when the TAB key is clicked from within
one of the text boxes, the drawing disappears. It seems as if t... more >>
getsid for Workgroup Machines
Posted by AdrianDev at 11/27/2007 11:30:26 AM
Hi,
I can get the computer SID from any remote workgroup computer, by looking in
the machines registry (RegistryKey.OpenRemoteBaseKey)
Is the SID stored in the WMI database, or anywhere else?
thanks,
... more >>
c# 2008 install feedback takes too much CPU load
Posted by gs at 11/27/2007 10:11:51 AM
the feedback for the install of c#2008 places 97 to 99% cpu load for way too
long on athlon x64 3800+ PC. 3/4 an hour later its only about 80% complete,
continuing with 98% CPU load!
Next time installing visual studio /dot product I will likely make sure no
feedback
... more >>
SMS line feed
Posted by Nalaka at 11/27/2007 10:05:25 AM
Hi,
We are sending SMS messages using our ASDP.net site (C# code)....
How do I add a "Line Feed" character to the string that we are sending?
Any help is deeply appreciated
Thanks
Nalaka
... more >>
First Day in the Month
Posted by eps at 11/27/2007 9:56:42 AM
Hi there,
The following code gets the first day in the current month, I don't
understand how it works though, could someone try to explain it to me ?.
DateTime FirstDayInMonth =
DateTime.Now.Subtract(TimeSpan.FromDays(Month.Day - 1));
Any help appreciated.
--
Eps... more >>
Corrupt strings from GetPortnames()
Posted by Ole at 11/27/2007 9:53:52 AM
I'm facing a problem like a lot of others during the last few years and
Microsoft doesn't seem to care about it :-(
The problem (one of them) is with the Microsoft bluetooth stack that saves
the virtual com ports without the 0 terminating char in the registry. That
causes the SerialPort.GetP... more >>
Exception in thread
Posted by PGP at 11/27/2007 9:26:57 AM
Hello,
I have a library which does some database operations. There are threads in
the library which are transparent to the user. Database operations are done
in threads as they could be lengthy. When an exception occurs in a library
thread, i want to make this exception available to the use... more >>
Unit testing event handlers
Posted by David Veeneman at 11/27/2007 9:11:39 AM
This post is for the benefit of the Google spider and needs no response.
How do you unit test an event handler with NUnit? An event handler is not a
test method, and Asserts in test class event handlers will not be tested.
So, if the test class is to contain event handlers, the most obvious
... more >>
Checking that an event has handlers added to it - using Reflection
Posted by jehugaleahsa@gmail.com at 11/27/2007 9:07:13 AM
Hello:
I am creating a simple class library for simplifying reflection.
I am creating an EventWrapper class that allows programmers to treat
it like an event (minus the operator overloading).
I am concerned with how to check that handlers have been added to the
event prior to raising it.
... more >>
Binding List
Posted by csharpula csharp at 11/27/2007 8:42:11 AM
Hello,
I have the following situation: A BindingList (which is binding between
list of object and ListBox) of items. I choose few items from the list
-> press a button and want that the items that been choosen will be
transformed to other list and will be delited from the original
ListBox.My pr... more >>
Unsubscribing an anonymous delegate?
Posted by David Veeneman at 11/27/2007 8:32:58 AM
How do I unsubscribe an anonymous delegate from an event?
I am unit testing (in NUnit) a method that fires an event, and I am using an
anonymous delegate to subscribe the test method to the event:
// Create order
Order testOrder = new Order();
// Creat... more >>
Hosting EXE Application in a Winform?
Posted by Kevin at 11/27/2007 7:37:00 AM
Hi!
It's possible to Host a exe application in a winform?
Thanks... more >>
creating and using strongly named assembly
Posted by Mike P at 11/27/2007 7:33:27 AM
I have a class library that I want to make into a strongly named
assembly. I have used the command line to create the key and added the
..snk file to my class library, and have now tried to add the following
to the AssemblyInfo.cs :
[assembly: AssemblyKeyFileAttribute("Email.snk")]
But I g... more >>
XPath Syntax
Posted by Looch at 11/27/2007 7:22:05 AM
Can anyone tell me what's wrong with the syntax of the XPath query in
the SelectSingleNode parameter?
I keep getting an "Object reference not set to an instance of an
object" error. I've tried none, one and two forward slashes in front
of 'soap:Envelope' and still the same message. (The last c... more >>
Representing Null with a DateTimePicker
Posted by jehugaleahsa@gmail.com at 11/27/2007 7:10:24 AM
Hello:
We were hoping to allow users to have DateTimePicker value null so
that a unused date is stored on a Database. Does the control support
this? I am pretty sure it doesn't.
How would you go about representing this to a user so they are not
confused?
Thanks,
Travis... more >>
C++ and C# integrate
Posted by alep82@gmail.com at 11/27/2007 6:31:07 AM
What are the way to utilize C++ and C# language in the same project in
Visual Studio ?
Thanks... more >>
add items to list<>
Posted by csharpula csharp at 11/27/2007 5:22:21 AM
Hello,
I am trying to add SelectedItems from ListBox to List<string>. It seems
like it's not working,any idea how to do it?
Thank you!
*** Sent via Developersdex http://www.developersdex.com ***... more >>
C# teasers
Posted by Ludwig at 11/27/2007 5:14:13 AM
Hi,
I'm looking for C# brain teasers (or VB.NET): a little piece of code
that does something special, or where a little error is. Does anyone
has some of these, or links to sites?
Thanks!... more >>
Multiple Forms bound to same BindingSource
Posted by cppquester@googlemail.com at 11/27/2007 1:52:32 AM
I got a forms library build from a data source with the designer.
I want to use that as a custom widget (sevral instances).
The designer included BindingSources for the controls in my forms
library.
Is there a way to use only one set of BindingSources for several
instances
of the forms?
Oth... more >>
Design (gui)
Posted by csharpula csharp at 11/27/2007 1:10:22 AM
Hello,
I have few 2 forms which share common methods and update of one member
of form 1 - affect member in form 2 . I thought about placing this
mutual functionality in one class and the question is how they will use
it? Both of them create it or use one instance?
Thank you!
*** Sent via Dev... more >>
About Factory Method and Abstract Factory (design pattern)
Posted by Duy Lam at 11/27/2007 12:18:38 AM
Hi everyone,
Sorry, I don't know what group to post this problem, I think may be this
group is suitable.
I'm styduing DAO (Data Access Object) pattern in this link
http://java.sun.com/blueprints/corej2eepatterns/Patterns/DataAccessObject.html.
While I've read about implementing Data Access Ob... more >>
recording from WindowsMediaPlayer
Posted by Rinaldo at 11/27/2007 12:05:27 AM
Can you record from WindowsMediaPlayer anyway?
Yes! how?
Rinaldo... more >>
|